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