03 — Foundations

Spacing

The source declares no spacing variables; these steps are the values the skill and the showcase actually use, named on the Tailwind stems they appear as. Radius is one token, rarely used. Fixed sizes and opacities complete the set.

Spacing scale

space-14px
space-28px
space-312px
space-416px
space-520px
space-624px
space-832px
space-1040px
space-1664px
TokenValueUsage
space-14pxStripe gap at marker size; dot prefix size on outlined tags.
space-28pxButton vertical padding; gap between a label and its input; list row padding.
space-312pxInput horizontal padding; section-header gap between title and rule.
space-416pxButton horizontal padding; showcase card inner padding; sidebar nav gap.
space-520pxGallery card padding and grid gap.
space-624pxCard padding; page gutter; grid gap between rule cards.
space-832pxSidebar padding; content gutter inside the sidebar layout; gap between figures.
space-1040pxSidebar nav top margin; wide two-column gap.
space-1664pxSection vertical padding; hero-band vertical padding.

Layout

Content is centered at content-max (1100px; 900px inside the sidebar layout) with space-6 gutters. Sections take space-16 above and below with a 1px top border. Cards pad space-6; the showcase gallery pads space-5. Buttons pad space-2 by space-4. Inputs pad space-2 by space-3.

Section header
Section title
With stripe marker
Elevation is a background step

card on background

1px border, one step up, no shadow.

Corner radius

TokenValueUsage
radius0.5remThe one base radius (theme.css --radius). Rarely used: most corners are square. rounded-full is reserved for 6px dot indicators only, never containers or pills.
square
0.5rem
dot only

theme.css also derives --radius-sm / --radius-md / --radius-lg as base minus 2px, base, base plus 2px for Tailwind's utilities.

Sizing

TokenValueUsage
content-max1100pxMax content width, centered (1000 to 1200px). Inside the sidebar layout the inner column is 900px.
sidebar-width22%Structural Block sidebar width, capped at about 25% of the viewport.
sidebar-min220pxSidebar minimum width.
sidebar-max280pxSidebar maximum width.
modal-max560pxModal panel max width.
border-width1pxEvery border. Visible, full ink or full cream.
rule-heavy2pxTable header bottom rule; pull-quote left rule.
stripe-height3pxSegment stripe thickness at every length.
stripe-marker36pxSegment stripe as a heading marker (gap 3px).
stripe-hero64pxSegment stripe under the hero wordmark (gap 4px).
stripe-flourish140pxSegment stripe as a closing flourish (gap 6px).
icon20pxLucide icon box (16 to 20px), stroke 1.5, square caps, miter joins.
dot6pxStatus pip dot. The only rounded-full element.

Opacity

State is opacity or weight, never a new color

TokenValueUsage
disabled0.4Disabled controls: always opacity 0.4, never a color change.
nav-rest0.75Sidebar nav link at rest on the red block; 1 on hover.
backdrop0.8Modal backdrop: background at 80%, a dim, not a shadow.
grid-line0.15Chart grid lines in muted-foreground.
zero-axis0.4Chart zero line in muted-foreground; the toggle middot.