Skip to content

Glossary: Tailwind CSS

Variant

Also written: variants

A prefix and colon in front of a utility that applies it only under a condition, such as `hover:`, `md:` or `dark:`. Variants can be stacked, as in `md:hover:underline`.

Where the book teaches it

Related terms

BreakpointDark modeHover state