stnd.build

The Craftsman — Design Systems, OKLCH & The Living Workshop

The master design system blueprint for Swiss typography, OKLCH color spaces, accessible UI primitives, and real-time in-browser manipulation.

Standard rejects the trial-and-error approach of modern web styling. There are no arbitrary margins, no guessing padding values, and no eyeballed color contrasts.

Instead, Standard operates as an optical and mathematical instrument. Every dimension, typeface hierarchy, and chromatic ramp derives from three foundational constants:

  1. The Silver Ratio (1.414) for typographic scale and modular bounding boxes.
  2. The Root Line Height (1rlh) for vertical rhythm and proportional spacing.
  3. The Perceptually Uniform OKLCH Color Space for guaranteed AAA contrast across 34 themes.

Coupled with the in-browser Workshop drawer (]), Standard transforms interface design into a living, tactile craft.


1. The Optical Manifesto

flowchart LR
  A["1. Silver Ratio (1.414)<br/>Modular Type Scale"] --> B["2. Root Line Height (1rlh)<br/>Vertical Rhythm Cadence"] --> C["3. OKLCH Perceptual Space<br/>Guaranteed AAA Contrast"]
  1. No Eyeballed Dimensions: Every spacing token derives mathematically from a single root line-height unit (1rlh). Spacing scales up and down in harmonic musical increments.
  2. Perceptual Uniformity: In OKLCH, a chroma value of 0.18 has the exact same visual intensity regardless of whether the hue is electric blue or warm ochre. Dark mode is derived mathematically, never hand-patched.
  3. The Living Document: The design system documents itself live from the active stylesheet. Pressing ] opens the Workshop, allowing you to tweak tokens and watch components re-render instantaneously.

2. The Living Atelier: The In-Browser Workshop (])

Interactive Testbed Shortcut: ]

Open the Live Design Workshop

You can test this right now without leaving this page. Click below or press the ] key on your keyboard to slide out the live token editor, swap color themes, and inspect the 1rlh baseline grid in real-time.

Standard features a built-in, zero-dependency design environment directly inside the running application. You never have to leave the browser or recompile CSS to audit layout changes:

[ (hold)                # Workshop: inspect page without local changes
]                       # Workshop: toggle drawer (open, pin, close)
Shift + Cmd/Ctrl + D    # Toggle debug mode (baseline grid & rhythm overlay)
ESC                     # Close active drawer or modal

Real-Time In-Browser Levers

With the Workshop drawer pinned (]), you can:


3. The 35 Semantic Primitives (@stnd/ui) & 6 Layouts (@stnd/layout)

Standard prioritizes a Vanilla-First hierarchy: 90% of interfaces can be constructed using semantic HTML tags (<button>, <dialog>, <table>, <input>) pre-styled with OKLCH tokens.

For complex interactive behaviors, Standard ships 35 accessible Svelte 5 and Astro primitives:

Category Primitives Role
Overlays & Modals <Dialog />, <AlertDialog />, <Popover />, <ContextMenu />, <Dropdown /> Accessible floating surfaces with focus trapping and ESC bindings
Data & Structure <DataTable />, <Stat />, <Empty />, <Tabs />, <Accordion />, <Tree /> High-density information display adapting to active theme roles
Inputs & Controls <Combobox />, <OtpInput />, <Pagination />, <Toast /> Keyboard-first form elements and transient feedback banners
Navigation & Shell <Header />, <Footer />, <Breadcrumb />, <TableOfContents /> Structural framing for editorial and application pages

The 6 Layout Shells (@stnd/layout)


4. Swiss 12-Column Grid & Spatial Rhythm

Layouts in Standard consume Josef Müller-Brockmann’s 12-column Swiss proportional grid. Space is organized horizontally into 12 equal tracks, combined with .gap-* rhythmic units:

<div class="grid gap-2">
  <main class="col-8 sm:col-12">Primary Content (66%)</main>
  <aside class="col-4 sm:col-12">Contextual Sidebar (33%)</aside>
</div>

Classic Swiss Proportions

The Inviolable Spacing Rule

Always apply gap on the parent container (.flex or .grid), never margin on child elements. Margins on children create asymmetric edge spacing that breaks outer container boundaries.


5. The Interactive Studio (/studio)

The Studio is Standard’s dedicated design engineering laboratory, accessible at /studio:


6. Where to Go Next