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

UtilityUse whenWhy it exists
section-surfaceA 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-actionA 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

Key global utilitiesDesign decisions are named utilities in global.css, never inline values or hex.
  • page-title

    Weekend market notes

  • section-heading

    Weekend market notes

  • label-primary

    Weekend market notes

  • label-secondary

    Weekend market notes

Badges
  • Probadge-blue
  • Draftbadge-neutral
  • Featuredbadge-featured
Surfaces
card-panel
widget-panel
section-surface