baselinewidelyVariants
Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:tdu:500.
Breakpoints
Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.
| @xs:tdu:500 | From 32rem up. |
| @sm:tdu:500 | From 40rem up. |
| @md:tdu:500 | From 48rem up. |
| @lg:tdu:500 | From 64rem up. |
| @xl:tdu:500 | From 80rem up. |
| @xxl:tdu:500 | From 96rem up. |
Containers
Apply a class from a container's width up, not the viewport's. Mark the parent with ct:is first.
| @c:xs:tdu:500 | Container from 32rem up. |
| @c:sm:tdu:500 | Container from 40rem up. |
| @c:md:tdu:500 | Container from 48rem up. |
| @c:lg:tdu:500 | Container from 64rem up. |
| @c:xl:tdu:500 | Container from 80rem up. |
| @c:xxl:tdu:500 | Container from 96rem up. |
Media
Apply a class when the device or the page matches a condition, or on the first frame an element renders.
| @pc:tdu:500 | On a touch screen. |
| @prm:tdu:500 | With reduced motion on. |
| @st:tdu:500 | On the first frame. |
States
Apply a class only while the element is in a state, such as hovered, focused or checked.
| h:tdu:500 | On :hover. |
| f:tdu:500 | On :focus. |
| fv:tdu:500 | On :focus-visible. |
| a:tdu:500 | On :active. |
| d:tdu:500 | On :disabled. |
| fc:tdu:500 | On :first-child. |
| c:tdu:500 | On :checked. |
| e:tdu:500 | On :empty. |
| fw:tdu:500 | On :focus-within. |
| i:tdu:500 | On :invalid. |
| in:tdu:500 | On :indeterminate. |
| lc:tdu:500 | On :last-child. |
| nc:tdu:500 | On :nth-child. |
| r:tdu:500 | On :required. |
| ro:tdu:500 | On :read-only. |
| v:tdu:500 | On :valid. |
Pseudo Elements
Style a part of the element rather than the element itself, such as its placeholder or the selected text.
| a::tdu:500 | On ::after. |
| b::tdu:500 | On ::before. |
| p::tdu:500 | On ::placeholder. |
| s::tdu:500 | On ::selection. |