Skip navigation

Core concepts

Four-pixel scale

Use multiples of four for spacing, fixed layout dimensions, and corners. Use the same values across designs and implementation.

Count in four-pixel units

--scale-N means N × 4px: --scale-1 is 4px, --scale-4 is 16px, and --scale-12 is 48px. The shipped steps are 0–8, 10, 12, 16, 20 and 25. Prefer a semantic setting such as --item-gap when it describes the relationship.

TokenValueCommon useActual size
--scale-14pxAvailable step
--scale-28pxControl corners
--scale-312pxMedia gap / button group gap
--scale-416pxPage gutter / surface corners
--scale-520pxContent rhythm
--scale-624pxItem gap
--scale-728pxCard padding
--scale-832pxAvailable step
--scale-1040pxModal padding
--scale-1248pxLayout gap
--scale-1664pxAvailable step
--scale-2080pxAvailable step
--scale-25100pxGroup space

Use semantic settings

Group owns section space, Container owns page gutters, Columns owns layout gaps, and Content owns text rhythm. Buttons owns the gap between buttons. Keep those responsibilities instead of adding individual margins to every element.

Card spacing example

This Card uses 28px padding, 20px Content rhythm, and 16px corners. Its button group has a 12px gap.

/* In artist-applied.css, loaded after artist.css */
:root {
  --item-gap: var(--scale-6);    /* 24px */
  --card-padding: var(--scale-7); /* 28px */
  --radius: var(--scale-4);       /* 16px */
}

There are no numeric spacing utility classes to memorize. Existing names such as art-2, reservation levels, palette steps and grid counts keep their existing meanings; they do not count four-pixel units.

Scope and exceptions

Typography keeps its own readable scale, including 14px metadata and 18px body text. Line height, letter spacing, 1px borders, icon strokes, focus offsets, circular and pill shapes, and optical positioning are independent. Percentages, rem/em measures, viewport and container units, aspect ratios and fluid interpolation can produce intermediate sizes. The rule governs fixed geometry defaults, not every rendered pixel.

Some defaults reference --scale-* through semantic settings; other component dimensions use literal multiples of four. Font sizes use independent typography settings such as --h1-size and --size-medium. Changing a scale token does not resize the entire framework.