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
| Token | Value | Usage |
|---|---|---|
space-1 | 4px | Stripe gap at marker size; dot prefix size on outlined tags. |
space-2 | 8px | Button vertical padding; gap between a label and its input; list row padding. |
space-3 | 12px | Input horizontal padding; section-header gap between title and rule. |
space-4 | 16px | Button horizontal padding; showcase card inner padding; sidebar nav gap. |
space-5 | 20px | Gallery card padding and grid gap. |
space-6 | 24px | Card padding; page gutter; grid gap between rule cards. |
space-8 | 32px | Sidebar padding; content gutter inside the sidebar layout; gap between figures. |
space-10 | 40px | Sidebar nav top margin; wide two-column gap. |
space-16 | 64px | Section 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
| Token | Value | Usage |
|---|---|---|
radius | 0.5rem | The 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
| Token | Value | Usage |
|---|---|---|
content-max | 1100px | Max content width, centered (1000 to 1200px). Inside the sidebar layout the inner column is 900px. |
sidebar-width | 22% | Structural Block sidebar width, capped at about 25% of the viewport. |
sidebar-min | 220px | Sidebar minimum width. |
sidebar-max | 280px | Sidebar maximum width. |
modal-max | 560px | Modal panel max width. |
border-width | 1px | Every border. Visible, full ink or full cream. |
rule-heavy | 2px | Table header bottom rule; pull-quote left rule. |
stripe-height | 3px | Segment stripe thickness at every length. |
stripe-marker | 36px | Segment stripe as a heading marker (gap 3px). |
stripe-hero | 64px | Segment stripe under the hero wordmark (gap 4px). |
stripe-flourish | 140px | Segment stripe as a closing flourish (gap 6px). |
icon | 20px | Lucide icon box (16 to 20px), stroke 1.5, square caps, miter joins. |
dot | 6px | Status pip dot. The only rounded-full element. |
Opacity
State is opacity or weight, never a new color
| Token | Value | Usage |
|---|---|---|
disabled | 0.4 | Disabled controls: always opacity 0.4, never a color change. |
nav-rest | 0.75 | Sidebar nav link at rest on the red block; 1 on hover. |
backdrop | 0.8 | Modal backdrop: background at 80%, a dim, not a shadow. |
grid-line | 0.15 | Chart grid lines in muted-foreground. |
zero-axis | 0.4 | Chart zero line in muted-foreground; the toggle middot. |