Skip to content

Glossary: Tailwind CSS

@custom-variant

Also written: custom variant

A Tailwind directive in your input CSS that defines a new variant or redefines an existing one. For example, it can make `dark:` follow a `data-theme` attribute instead of the device setting, so visitors can choose a theme.

Where the book teaches it

Related terms

VariantDark modedata-theme