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