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