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