Skip to main content

Control-state and environment variants

Supported control-state and environment variants utilities.

Quick reference​

SyntaxBehavior
pressed: / focused: / disabled:Control-state appearance.
selected: / expanded: / invalid:Declared control semantics.
motion-safe: / motion-reduce:Effective motion-policy styling.

Example​

<Button title="Save" class="button-prominent pressed:opacity-80 disabled:opacity-50" />

Rules and validation​

Supported control-state precedence is selected, expanded, pressed, focused, invalid, disabled; later priority overrides earlier states. State applicability is checked by component: invalid is for editing/pressable/checkable controls. Layout cannot depend on control state. Unknown prefixes and unsupported chains fail validation; do not assume Tailwind responsive/hover variants exist. Motion phase prefixes have their own documented grammar.

Style lesson · Style index · Themes