Skip to content
DocPensieve
0.2.0

ForTheme

Keeps its content for the sites whose theme matches. The choice is made at build time: the other variant does not even reach the HTML.

<ForTheme framework="tailwind">

With Tailwind, a utility: `className="max-w-sm"`.

</ForTheme>
<ForTheme framework="custom">

With the custom theme, a class of the `theme/` folder: `className="narrow"`.

</ForTheme>

It is how the pages of this documentation show each example in the terms of your theme. Changing theme.framework in the configuration changes what they show, without editing them.

On this site

This site is built with the Tailwind theme.

What it refuses

A framework other than tailwind or custom stops the build, with the accepted values: a typo would otherwise hide the content under every theme, without a word.