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