Content

Swatches

For documenting tokens: a φ-ratio colour block with a monospace label.

Examples

Swatches

accent
success
warning
danger
info
surface

Anatomy

.swatchesAuto-fill grid of swatches.
> .swatchThe label as text. The colour block is drawn above it from --swatch.

API

AttributeValuesDescription
--swatchon .swatch<colour>The colour of the block. Any colour or token.

Accessibility

  • The colour block is a pseudo-element and is invisible to screen readers. The label must name the colour or token; add the value in text if it matters.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose