Table of Contents

Enum StyleVariantKind

Namespace
Velvet
Assembly
Velvet.Docs.dll

State-variant kinds for utility classes — the hover: / focus: / active: prefixes.

public enum StyleVariantKind

Fields

Active = 3
Checked = 4
Dark = 10
Focus = 1
FocusVisible = 2
GroupActive = 14
GroupFocus = 12
GroupFocusWithin = 13
GroupHover = 11
Hover = 0
Lg = 7
Md = 6
PeerActive = 18
PeerChecked = 19
PeerFocus = 16
PeerFocusWithin = 17
PeerHover = 15
Sm = 5
Xl = 8
Xxl = 9

Remarks

disabled: is intentionally absent: UI Toolkit has no reliable "enabled changed" event to drive a manipulator, so disabled-state styling stays on the USS :disabled pseudo-class (the curated disabled-* utilities). Responsive (sm:/md:), dark:, and group/peer are tracked separately (they need a breakpoint / theme / structural signal source).

Equivalent to Tailwind CSS's state-variant prefixes for users migrating from Tailwind.