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