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