baselinewidely| Class | CSS |
|---|---|
| to:c | text-overflow: clip; |
| to:e | text-overflow: ellipsis; |
Variants
Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:to:e.
Breakpoints
Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.
| @xs:to:e | From 32rem up. |
| @sm:to:e | From 40rem up. |
| @md:to:e | From 48rem up. |
| @lg:to:e | From 64rem up. |
| @xl:to:e | From 80rem up. |
| @xxl:to:e | 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:to:e | Container from 32rem up. |
| @c:sm:to:e | Container from 40rem up. |
| @c:md:to:e | Container from 48rem up. |
| @c:lg:to:e | Container from 64rem up. |
| @c:xl:to:e | Container from 80rem up. |
| @c:xxl:to:e | 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:to:e | On a touch screen. |
| @prm:to:e | With reduced motion on. |
| @st:to:e | On the first frame. |
States
Apply a class only while the element is in a state, such as hovered, focused or checked.
| h:to:e | On :hover. |
| f:to:e | On :focus. |
| fv:to:e | On :focus-visible. |
| a:to:e | On :active. |
| d:to:e | On :disabled. |
| fc:to:e | On :first-child. |
| c:to:e | On :checked. |
| e:to:e | On :empty. |
| fw:to:e | On :focus-within. |
| i:to:e | On :invalid. |
| in:to:e | On :indeterminate. |
| lc:to:e | On :last-child. |
| nc:to:e | On :nth-child. |
| r:to:e | On :required. |
| ro:to:e | On :read-only. |
| v:to:e | On :valid. |
Pseudo Elements
Style a part of the element rather than the element itself, such as its placeholder or the selected text.
| a::to:e | On ::after. |
| b::to:e | On ::before. |
| p::to:e | On ::placeholder. |
| s::to:e | On ::selection. |