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