design.md


title: Wajo design system url: https://wajo.ai/design.md

tokens: light: surfaces: "--wajo-cream": "oklch(0.9950 0.0034 67.78)" "--wajo-cream-2": "oklch(0.9596 0.0051 67.76)" "--wajo-paper": "oklch(1 0 0)" "--background": "var(--wajo-cream)" "--card": "var(--wajo-paper)" "--popover": "var(--wajo-paper)" "--muted": "var(--wajo-cream-2)" "--sidebar": "var(--wajo-cream-2)" type: "--wajo-text": "oklch(0.1776 0 0)" "--wajo-text-2": "oklch(0.4495 0 0)" "--wajo-text-3": "oklch(0.6830 0 0)" "--wajo-sans": ""Inter", system-ui, -apple-system, sans-serif" "--wajo-mono": ""DM Mono", "Courier New", monospace" "--foreground": "var(--wajo-text)" "--card-foreground": "var(--wajo-text)" "--popover-foreground": "var(--wajo-text)" "--primary-foreground": "var(--wajo-cream)" "--secondary-foreground": "var(--wajo-text)" "--muted-foreground": "var(--wajo-text-2)" "--accent-foreground": "var(--wajo-text)" "--destructive-foreground": "var(--wajo-paper)" "--warning-foreground": "var(--wajo-paper)" "--sidebar-foreground": "var(--wajo-text)" "--sidebar-primary-foreground": "var(--primary-foreground)" "--sidebar-accent-foreground": "var(--wajo-text)" borders: "--wajo-border": "oklch(0 0 0 / 7%)" "--wajo-border-2": "oklch(0 0 0 / 13%)" "--wajo-hairline": "oklch(0 0 0 / 4%)" "--wajo-overlay-whisper": "oklch(0.1776 0 0 / 2%)" "--wajo-overlay-faint": "oklch(0.1776 0 0 / 4%)" "--wajo-overlay-soft": "oklch(0.1776 0 0 / 6%)" "--wajo-overlay-thin": "oklch(0.1776 0 0 / 10%)" "--wajo-overlay-medium": "oklch(0.1776 0 0 / 18%)" "--wajo-overlay-strong": "oklch(0.1776 0 0 / 28%)" "--wajo-overlay-heavy": "oklch(0.1776 0 0 / 45%)" "--wajo-danger-border-3": "oklch(0.5732 0.1605 30.14 / 30%)" "--wajo-danger-border-5": "oklch(0.5732 0.1605 30.14 / 50%)" "--wajo-warning-border-3": "oklch(0.5400 0.1400 65.00 / 30%)" "--border": "var(--wajo-border)" "--input": "var(--wajo-border-2)" "--ring": "var(--wajo-accent)" "--sidebar-border": "var(--wajo-border)" "--sidebar-ring": "var(--wajo-accent)" accent: "--wajo-accent": "oklch(0.4396 0.0717 139.36)" "--wajo-olive": "oklch(0.7999 0.1151 111.50)" "--wajo-warning-ink": "oklch(0.5400 0.1400 65.00)" "--primary": "var(--wajo-accent)" "--secondary": "oklch(0 0 0 / 5%)" "--accent": "var(--wajo-cream-2)" "--destructive": "var(--wajo-danger-ink)" "--warning": "var(--wajo-warning-ink)" "--sidebar-primary": "var(--wajo-accent)" "--sidebar-accent": "var(--wajo-paper)" "--chart-1": "var(--wajo-accent)" "--chart-2": "oklch(0.5433 0.0732 138.40)" "--chart-3": "var(--wajo-olive)" "--chart-4": "oklch(0.9332 0.0097 72.66)" "--chart-5": "var(--wajo-text)" motion_easing: "--wajo-ease": "cubic-bezier(0.22, 1, 0.36, 1)" "--wajo-ease-strong": "cubic-bezier(0.23, 1, 0.32, 1)" "--wajo-ease-reveal": "cubic-bezier(0.77, 0, 0.175, 1)" "--wajo-ease-rush": "cubic-bezier(0.7, 0, 0.3, 1)" "--wajo-ease-drift": "cubic-bezier(0.45, 0.05, 0.4, 1)" "--wajo-ease-drawer": "cubic-bezier(0.32, 0.72, 0, 1)" radii: "--wajo-radius-sm": "4px" "--wajo-radius": "14px" "--wajo-radius-lg": "14px" "--radius": "var(--wajo-radius)" dark: surfaces: "--wajo-cream": "oklch(0.9950 0.0034 67.78)" "--wajo-cream-2": "oklch(0.9596 0.0051 67.76)" "--wajo-paper": "oklch(1 0 0)" "--background": "var(--wajo-cream)" "--card": "var(--wajo-paper)" "--popover": "var(--wajo-paper)" "--muted": "var(--wajo-cream-2)" "--sidebar": "var(--wajo-cream-2)" type: "--wajo-text": "oklch(0.1776 0 0)" "--wajo-text-2": "oklch(0.4495 0 0)" "--wajo-text-3": "oklch(0.6830 0 0)" "--wajo-sans": ""Inter", system-ui, -apple-system, sans-serif" "--wajo-mono": ""DM Mono", "Courier New", monospace" "--foreground": "var(--wajo-text)" "--card-foreground": "var(--wajo-text)" "--popover-foreground": "var(--wajo-text)" "--primary-foreground": "var(--wajo-cream)" "--secondary-foreground": "var(--wajo-text)" "--muted-foreground": "var(--wajo-text-2)" "--accent-foreground": "var(--wajo-text)" "--destructive-foreground": "var(--wajo-paper)" "--warning-foreground": "var(--wajo-paper)" "--sidebar-foreground": "var(--wajo-text)" "--sidebar-primary-foreground": "var(--primary-foreground)" "--sidebar-accent-foreground": "var(--wajo-text)" borders: "--wajo-border": "oklch(0 0 0 / 7%)" "--wajo-border-2": "oklch(0 0 0 / 13%)" "--wajo-hairline": "oklch(0 0 0 / 4%)" "--wajo-overlay-whisper": "oklch(0.1776 0 0 / 2%)" "--wajo-overlay-faint": "oklch(0.1776 0 0 / 4%)" "--wajo-overlay-soft": "oklch(0.1776 0 0 / 6%)" "--wajo-overlay-thin": "oklch(0.1776 0 0 / 10%)" "--wajo-overlay-medium": "oklch(0.1776 0 0 / 18%)" "--wajo-overlay-strong": "oklch(0.1776 0 0 / 28%)" "--wajo-overlay-heavy": "oklch(0.1776 0 0 / 45%)" "--wajo-danger-border-3": "oklch(0.5732 0.1605 30.14 / 30%)" "--wajo-danger-border-5": "oklch(0.5732 0.1605 30.14 / 50%)" "--wajo-warning-border-3": "oklch(0.5400 0.1400 65.00 / 30%)" "--border": "var(--wajo-border)" "--input": "var(--wajo-border-2)" "--ring": "var(--wajo-accent)" "--sidebar-border": "var(--wajo-border)" "--sidebar-ring": "var(--wajo-accent)" accent: "--wajo-accent": "oklch(0.4396 0.0717 139.36)" "--wajo-olive": "oklch(0.7999 0.1151 111.50)" "--wajo-warning-ink": "oklch(0.5400 0.1400 65.00)" "--primary": "var(--wajo-accent)" "--secondary": "oklch(0 0 0 / 5%)" "--accent": "var(--wajo-cream-2)" "--destructive": "var(--wajo-danger-ink)" "--warning": "var(--wajo-warning-ink)" "--sidebar-primary": "var(--wajo-accent)" "--sidebar-accent": "var(--wajo-paper)" "--chart-1": "var(--wajo-accent)" "--chart-2": "oklch(0.5433 0.0732 138.40)" "--chart-3": "var(--wajo-olive)" "--chart-4": "oklch(0.9332 0.0097 72.66)" "--chart-5": "var(--wajo-text)" motion_easing: "--wajo-ease": "cubic-bezier(0.22, 1, 0.36, 1)" "--wajo-ease-strong": "cubic-bezier(0.23, 1, 0.32, 1)" "--wajo-ease-reveal": "cubic-bezier(0.77, 0, 0.175, 1)" "--wajo-ease-rush": "cubic-bezier(0.7, 0, 0.3, 1)" "--wajo-ease-drift": "cubic-bezier(0.45, 0.05, 0.4, 1)" "--wajo-ease-drawer": "cubic-bezier(0.32, 0.72, 0, 1)" radii: "--wajo-radius-sm": "4px" "--wajo-radius": "14px" "--wajo-radius-lg": "14px" "--radius": "var(--wajo-radius)"

DESIGN.md — Wajo frontend taste

This is the first file every agent reads before touching any Wajo frontend code. It encodes the taste, not the conventions. Conventions live in the layered CLAUDE.md + //.claude/rules/frontend-*.md files; this one is the why and the feel.

If the agent skips this and writes code that ignores it, the code is wrong — even if it compiles, passes tests, and meets the literal feature request.

How to use this file when designing

Before writing any UI code:

  1. Invoke /emil-design-eng — the vendored Emil Kowalski skill at //.claude/skills/emil-design-eng/ is the trained design-engineering instinct. It teaches the animation framework, easing benches, motion durations, the "things that feel right" library. Treat its review checklist as authoritative for craft.
  2. Read the mock. Visual canon lives in //frontend/mocks/ when a mock exists for a screen. If a mock exists and your code disagrees with it, the mock wins on visual intent (the code wins on behaviour).
  3. Read this file. Pin the taste vocabulary below before you touch a colour, font, or motion value.

The skill teaches craft (motion, polish, the invisible details). This file teaches taste (what Wajo specifically wants to feel like). Both apply.

The taste in one paragraph

Quiet luxury. Restrained palette, generous whitespace, calm typography. A single accent used sparingly, never as a fill. Hairline borders (rgba(0,0,0,0.05–0.13)). Soft shadows at large radii. Long easings that suggest rather than announce. Copy that respects the reader. Nothing shouts. The aggregate of invisible correctness creates an interface people love without knowing why.

If a design feels loud, it's wrong for this product. If a primitive is elegant in code but jarring on screen, that's a regression — even if the abstraction is clean.

Vocabulary

Anti-patterns reviewers reject on sight

These come from real corrections. Each one looks like a normal choice in isolation and breaks the taste in aggregate. The Emil skill catches most of them — invoke it on any UI diff.

  1. Loud surfaces. Saturated background fills, drop shadows with hard offsets, contrasty hero gradients on interior pages. Backgrounds are cream / paper / hairline-bordered.
  2. More than one accent on a screen. Two CTAs in two colours, an accent-coloured nav item AND an accent-coloured button. Pick one. Demote the rest.
  3. Five font weights on one screen. Display 700 + body 400 + button 600 + label 500 + meta 400 italic = too much voice. Three weights is the ceiling.
  4. transition: all. Names the wrong contract — specify transform 200ms ease-out (or whichever property actually changes). See the Emil skill's review checklist.
  5. ease-in on a UI animation. Starts slow, feels sluggish, makes the app feel unresponsive even when fast. Use ease-out or FO.easeStrong (cubic-bezier(0.23, 1, 0.32, 1)).
  6. scale(0) on enter. Nothing in the real world disappears completely. Use scale(0.95) + opacity: 0.
  7. transition-duration > 300ms on UI. Modals 200-500ms, dropdowns 150-250ms, button feedback 100-160ms. Marketing animations can be longer. See the Emil skill's duration table.
  8. Animation on a keyboard-driven action. Command palettes, keyboard nav, repeated shortcuts — no animation. Ever. Users hit these hundreds of times per day; animation makes them feel slow.
  9. Hardcoded hex that should be a token. If a colour recurs, it lives in //frontend/packages/wajo-ui/src/tokens.css (or fo-start's src/styles.css semantic overrides). One-off literal values are tolerated; recurring ones are flagged by //scripts/check-fe-hex.sh.
  10. Tooltip-as-label. Native title="" has a UA-controlled show delay and a system style that fights every surface. Use <Tooltip> from @wajo/ui (packages/wajo-ui/src/Tooltip/Tooltip.tsx) — asymmetric timing, conditional-mount, hover + focus.
  11. A new font without the root document's font <link> updated. Family falls through to system defaults and looks uncanny.
  12. Page scrollbar on a chat surface. Chat-shaped views must be viewport-bound (calc(100dvh - <chrome>) with min-height: 0 on the flex thread). One overflow per surface.

When you genuinely need to break a rule

Document it inline:

/* Intentional 400ms transition: this is the marketing reveal,
   not a UI affordance. Linear is correct for the parallax. */
transition: transform 400ms linear;

The rule exists; the override exists; the reader can re-derive both. Silent breaks rot the design language faster than any individual ugly screen.

The design loop

Don't design components point-wise — that's slow and converges on average taste. Use the variant-grid recipe:

  1. Mount a candidate component on a throwaway dev route (fo-start route file).
  2. Ship 8-10 variants side-by-side in one render — different motion, different spacing, different copy.
  3. Review with the Emil skill's checklist applied to each.
  4. Pick 1-2 directions. Remix. Repeat.
  5. When converged, lift the winner into its real home (//frontend/packages/wajo-ui/src/... or the fo-start component group it belongs to).

Single-shot designs converge slower than batched 10-variant designs by a wide margin. Default to variant-grid for any new visual primitive.

Where to find what

What Where
Trained craft instinct (motion, polish) /emil-design-eng skill → //.claude/skills/emil-design-eng/SKILL.md
Cross-product calm tokens //frontend/packages/wajo-ui/src/tokens.css
fo-start semantic token overrides //frontend/fo-start/src/styles.css
Visual mocks (canonical) //frontend/mocks/
Primitive lookup table //frontend/packages/wajo-ui/src/shad/ + the @wajo/ui exports
Cross-cutting FE rules //.claude/rules/frontend-*.md
fo-start layout / routing / auth //frontend/fo-start/CLAUDE.md
Top-of-tree non-negotiables //frontend/CLAUDE.md

What this file is not