π―States and selectors
Style elements differently based on user interaction (hover, focus, active) or target virtual parts of an element (::before, ::after) using states and selectors.

States (pseudo-classes)
Adding a state

Custom states
Pseudo-elements
Adding a pseudo-element

Common pseudo-elements
Pseudo-element
What it targets
Example: decorative element with ::before

Combining states and tokens
Related
Last updated
Was this helpful?
