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