Skip to content
Primer printing platePrimer

Design principles

Primer is a visual vocabulary and interaction reference. It supplies primitives, semantic roles, typography, terminal color roles, and component guidance. Applications own their controls and workflows. Working catalog specimens make the guidance inspectable. Component anatomy, including the badge, lives in specs/. See elements.

The default follows the chosen Fable direction: Geist, neutral paper surfaces, orange emphasis, a quiet workspace, and Compact folio document proportions. Source and extraction decisions distinguish actual runtime values from optional themes and intentional accessibility adjustments.

  • Use light, dark, or system appearance. System is recommended for new application setup.
  • Use one accent at a time. Orange is the default; brown, violet, green, amber, and blue remain explicit alternatives. Red communicates critical actions.
  • Build hierarchy with type, space, and grouping. Give separate layers distinct jobs: shell, canvas, document/card, and floating overlay.
  • Keep reading typography independent of compact interface density. Geist interface text is 15px; the reading role is 17px with a 660px measure.

Primitives describe ingredients: colors, spacing, font sizes and weights, radii, durations, easing, opacity, and elevation. Semantic roles describe their jobs. Component guidance maps an anatomy and its states onto those roles.

Use color.text.base for primary reading, color.text.subdued for supporting copy, and color.text.subtle for quieter readable text. Use color.accent.base for text and icons, and pair color.accent.fill with color.accent.on-fill for actions. Use color.accent.vivid for decoration; it is not a contrast-safe text, action, focus, control boundary, or chart color.

Decorative separators and necessary control boundaries have separate roles. A hairline does not satisfy a focus or control-boundary requirement. Foreground/fill pair guarantees are checked in both themes and across supported accents.

Use the 4px spacing scale. A 20px icon is a glyph size, not a hit target. Keep touch targets at least 44px while allowing compact desktop controls. Reduce margins and rearrange content before shrinking labels or touch targets.

The chosen shell is a composition recipe: 272px labeled navigation, with a named navigation drawer at narrow widths. Compact folio places 112px artwork beside a desktop heading; on phone its 68×40px artwork precedes a full-width heading. Applications adapt these arrangements to their content without changing the interaction contract.

Small transitions communicate state changes. Authored icon timelines acknowledge activation and return to their resting poses. Fable plays on activation and an inactive-to-active destination change; an initially selected item stays still. Hover and focus do not play an animation, and timelines do not loop. Repeated activation restarts the action; reduced motion keeps a stable resting image. See icon motion for the application behavior and catalog examples.

Use native semantics, visible labels, keyboard access, focus restoration, and equivalent touch routes. Inspect disabled, loading, validation, empty, and failure states where relevant. Component guidance and design review define the review boundary. Product state, persistence, and business validation belong to the application.