Web
How the web uses the system: utility classes over raw values, and the ones to know.
Rules
Views use design-system utility classes, never raw values. Tokens are CSS custom properties exposed as Tailwind utilities; a design decision is never an inline Tailwind value, and a color is never a hex literal.
Key global utilities: content-area, px-safe, card-panel, widget-panel, card-row-item, input-base, page-title, section-heading, label-primary, label-secondary, badge-blue, badge-neutral, badge-featured, section-surface, btn-outlined-action
| Utility | Use when | Why it exists |
|---|---|---|
section-surface | A panel inside another surface that already has its own border or background (a card inside the sidebar, a settings group inside a settings page, a section inside a drawer) | A border inside a border doubles the weight; a slight background contrast (zinc-100 / zinc-900) reads as its own region without a second outline ("depth before borders") |
btn-outlined-action | A secondary action beside a primary one, or a quiet standalone action (the [+] beside a credit balance, "Edit" beside "Save") | A filled brand button competes with the primary action; this keeps the brand color on the border and icon only, with a press scale (active:scale-95). w-6 h-6 for an icon-only circle, px-3 h-8 for text |
Live specimens
page-titleWeekend market notes
section-headingWeekend market notes
label-primaryWeekend market notes
label-secondaryWeekend market notes
- Pro
badge-blue - Draft
badge-neutral - Featured
badge-featured
card-panel