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