OverviewWhat @layer base covers, how the 23 files are grouped, and the two conventions that run through all of them.Read more
HeadingsOne shared rule for h1 to h6, and a per-level size token that each element reassigns.Read more
ParagraphsBlock spacing and a measure cap on p, and the two places that cap is deliberately removed.Read more
ListsProse list indentation in em, sized for the marker, and item spacing, wrapped in :where() so a navigation list…Read more
CodeInline code, block code, kbd and samp, and the component-token-with-semantic-fallback pattern this file demonstrates.Read more
AddressUndoing the user agent italic on address, and the paragraph spacing that would otherwise break it apart.Read more
AbbreviationsA dotted underline on abbr[title], and why this is the one file in the layer with hardcoded values.Read more
FiguresA flex column around the image and its caption, with a caption that turns into a row at 48rem.Read more
VideoFluid sizing on the native element, and where the aspect ratio and the controls come from instead.Read more
TablesCollapsed borders, token-driven cell padding, a tinted header, and the last row that drops its rule.Read more
DetailsA bordered disclosure with a masked marker, an open state, and the summary + div contract it expects.Read more
Inputs and labelslabel, legend and every text-like input, the inset box-shadow outline, and the per-type handling for search, number,…Read more
CheckboxesA custom checkbox built from appearance none, with a masked tick, an indeterminate state and a clickable adjacent label.Read more
RadiosThe same box as the checkbox, drawn round, with a ::before dot that scales in from zero.Read more
RangeThe slider, its two vendor track and thumb implementations, and the .range-value output that follows the thumb via…Read more
SelectA select with its own chevron, the padding that keeps text off it, and the multiple case that drops it.Read more
SwitchA track and knob built from a checkbox with role="switch", moved with flex-grow rather than translation.Read more
TextareaA textarea that grows with its content through field-sizing, with a 5lh floor and vertical resizing kept.Read more
Accessibility helpers.visually-hidden and .visually-hidden-focusable, the only two classes in @layer base.Read more