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