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