Orchard Design System
Overview
For plugin authors and worker-portal maintainers: this page is the
design-system contract for the canopy worker portal (services/canopy-web)
and its Orchard theme. Every color token, type-scale entry, spacing step,
radius, motion rule, voice guideline, and reusable component named here is
part of the contract, not a suggestion.
It is the worker-portal handoff’s §3 ("Design system (the contract)") with
the Palette Revision values folded in. The handoff prose lives on this page;
its artboards stay under design/canopy-web/ (Design System.html,
Palette Revision.html, design-system/foundations.jsx and components.jsx).
services/canopy-web/src/theme.rs (the ColorPalette struct; its
css_variables() output is served as /theme.css) and
services/canopy-web/static/css/canopy-web.css (the utility classes and the
--sp- / --r- scales). The georgia pack’s notices/components/orchard.typ
is the Typst notice palette — five legacy tokens that share the brand
colours, not a source for the --orchard-* variables. When code and this page
disagree on a literal value, the code is what ships; this page records the
design the code is meant to realize.
3. Design system (the contract)
All colors are exposed as --orchard-{name} CSS variables. Theme switching
is the data-theme attribute on <html>: templates/base.html ships
data-theme="system", static/js/canopy-web.js writes dark / light onto
document.documentElement, the light palette is the :root default,
[data-theme="dark"] selects the dark palette, and a
@media (prefers-color-scheme: dark) block applies it under
[data-theme="system"].
3.1 Color tokens
Brand
| Token | Light | Dark | Purpose |
|---|---|---|---|
|
|
|
Headers, primary actions, brand identity |
|
|
|
Hover state |
|
|
|
Decorative only — rules, overlines, leaves |
#ecbf44, Orchard Gold) has strict scope. It is
for brand and decoration only: the center leaf of the canopy mark, section
rule accents (the 14–40px gold lines), selected-row indicators (left rail + soft
tint), and overline labels (sparingly). Gold is never used for functional
warning UI (use warning amber #e08a2b), status pills, or body text (it fails
contrast on white at any size). A second gold (#D0AE56, "DHS Logo Gold")
exists only for rendering the Georgia DHS agency seal in co-branded materials
and is out of scope for general UI.
Surface
| Token | Light | Dark |
|---|---|---|
|
|
|
|
|
|
|
|
|
Text
| Token | Light | Dark |
|---|---|---|
|
|
|
|
|
|
|
|
|
Navigation (added after the handoff)
Sidebar chrome tokens theme.rs emits beside the handoff set:
| Token | Light | Dark |
|---|---|---|
|
|
|
|
|
|
|
|
|
Semantic (foreground + soft bg)
Each semantic family has a base foreground token plus a -bg (soft
background) and a -text (readable-on-bg foreground) variant. The info
family was the addition introduced by the Palette Revision (previously
missing).
| Token | Light | Dark |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The semantic tints also drive several functional UI recipes whose values are intentionally pinned (so the recipe stays consistent across jurisdictions even when a jurisdiction overrides the primary palette):
-
Status pills (
.u-status-*) — light: approved#d8f0e1on#1c6b3e, pending#fbe6c8on#8e510f, denied#f5d6cfon#8a2916, info#d6ebecon#275f63, neutral on--orchard-surface-sunken/--orchard-text; dark: approved#1f4231on#a3e3b9, pending#3e2a0eon#f0c587, denied#3e1812on#e4a094, info#163336on#8fc8cc. -
Status badges (
.u-badge-success,.u-badge-error,.u-badge-warning,.u-badge-error-solid) — the-bgsurface with its-textcolour, never white on the bare swatch. A badge is 12px at weight 500, which is normal text, so the floor is AA’s 4.5:1. White text fails it: on--orchard-successit is 3.57:1 light and 2.26:1 dark (#3035). The pairs, the same in every shipped pack and the built-in default, reach:-
success: 5.42:1 light, 7.57:1 dark;
-
error, for both error badges: 6.39:1 light, 7.26:1 dark;
-
warning: 5.18:1 light, 8.46:1 dark (#3039).
.u-badge-success,.u-badge-errorand.u-badge-warningshare a template slot, so they share one size. A pack that brings a semantic pair under 4.5:1 failsevery_shipped_pack_semantic_pair_meets_aainservices/canopy-web/src/theme.rs.
-
-
Expedited / time-sensitive banner — uses
--orchard-warning(amber), not the gold accent. Gold is brand-only. -
Service error panel — light:
#fbe6c8bg,#f0c587border,#8e510ftext; dark:#3e2a0ebg,#6b4810border,#f0c587text. -
Discrepancy row — a tint of the new error: light
#fbeae6bg with a--orchard-errorleft edge; dark#3e1812bg.
--orchard-primary, --orchard-primary-hover,
--orchard-accent) and the leaf-mark SVG colors are intentionally fixed; the
Palette Revision moved only the semantic, surface, text, and dark-mode layers.
3.2 Type
-
Display + body: Montserrat 400 / 500 / 600 / 700.
-
Mono: JetBrains Mono 400 / 500 / 600 for IDs, hex, timestamps, config.
-
As shipped: both families are self-hosted from
services/canopy-web/static/fonts/(@font-faceincanopy-web.css) — Montserrat 400 / 500 / 600 / 700 and JetBrains Mono 400 / 500 / 700.base.htmlpreloads the two first-paint faces, Montserrat 400 and 700, ahead of the stylesheet (#1888).
Scale:
| Use | Size | Weight | Letter-spacing |
|---|---|---|---|
Hero display |
42px |
700 |
-1px |
Page title |
28px |
700 |
-0.4px |
Section title |
22px |
700 |
-0.3px |
Card title |
17px |
700 |
-0.2px |
Body large |
14px |
500 |
normal |
Body |
12px |
500 |
normal |
Caption |
10.5px |
500 |
normal |
Overline |
9.5px |
700 |
2px (uppercase) |
Numbers in mono always use tabular figures:
font-variant-numeric: tabular-nums;
font-feature-settings: "tnum";
3.3 Spacing
4px base. Most things land on 8, 12, 16, 20.
| Token | Value | Use |
|---|---|---|
|
4px |
Hairline |
|
6px |
Tight inline rhythm, pill padding |
|
8px |
Default gap |
|
12px |
Compact card padding |
|
16px |
Default card padding |
|
20px |
Section gap |
|
24px |
Page padding |
|
32px |
Hero padding |
3.5 Motion
The handoff named two animations: cy-pulse (skeleton loaders, 1.6s
ease-in-out, opacity 1 ↔ 0.55) and cy-caret-blink (input carets, 1.05s
steps(2), never on UI elements). As shipped, canopy-web.css defines one
keyframe, pulse, with the skeleton timing above; no caret animation exists.
The cy-* names survive only in the design artboards under design/canopy-web/ (for example design-system/foundations.jsx); nothing under services/ uses them.
@media (prefers-reduced-motion: reduce) disables every animation and
transition in canopy-web.css, not just the skeleton pulse.
3.6 Voice
The system speaks like a thoughtful caseworker, not a SaaS app.
-
Editorial · not chirpy. "Nothing in your queue." not "Oops! Looks empty 😊"
-
Name the service, not the user. "canopy-ievs service unreachable" not "Something went wrong."
-
Numbers in mono. Case IDs, hex, timestamps in JetBrains Mono with tabular-nums. Counts in body sans.
-
Time relative, then exact. "14m ago", "Yesterday 16:48", "May 11". Detail rails always include the ISO timestamp.
3.7 Components
Reusable primitives (Design System.html for live examples; the .jsx
shapes are design/canopy-web/dashboard/primitives.jsx, the Askama macros
services/canopy-web/templates/_primitives/orchard.html):
| Component | Description | Askama macro |
|---|---|---|
|
The unit of composition. Card with overline + gold rule header. |
|
|
Small-caps brand label. |
|
|
2px gold horizontal accent. |
|
|
Tabular-num display number (sm/md/lg/xl/xxl sizes). |
|
|
Directional micro-stat with semantic color. |
|
|
approved / pending / denied / info / neutral, plus the shipped |
|
|
Eyebrow-style status (replaces pills in editorial layouts). |
|
|
3px colored left edge identifying program. |
|
|
Solid colored chip with white text per program. |
|
|
Horizontal bar for inline stats. |
— ( |
|
Decorative single-leaf brand mark. |
|
|
Tiny inline trend. |
|
|
Dark-green band with greeting + big stat + leaf watermark. |
|
|
A |
|
Shipped beyond the handoff kit, in the same macro file: money_cell, and the
panel-state primitives empty_state, skeleton / skeleton_row,
error_block / panel_error (the §2.5 states of the
worker portal design reference).
3.8 Accessibility commitments
-
Contrast ≥ AA (4.5:1 body, 3:1 large/UI) in both modes. Audited per release.
-
Full keyboard path for every interaction. ⌘K opens the palette. Tab order = visual order.
-
Focus rings always visible (2px gold accent on
:focus-visible). Never removed for aesthetics. -
Semantic landmarks (
<main>,<nav>,<header>,<aside>),role="tablist",aria-current="page",aria-selected. -
Status pills never rely on color alone — always accompanied by a label.
-
prefers-reduced-motion: reducedisables every animation and transition (§3.5). -
Reflow (WCAG 2.1 SC 1.4.10, #560):
-
Below 900 px the worker nav collapses behind a Menu disclosure button in
base.html, in both layouts. The panel opens in the page flow under the nav bar, so it needs no focus trap, and Escape closes it back to the button.aria-expandedis its only state: the stylesheet hides#nav-panelwhile it readsfalse, andinitNavToggleinstatic/js/canopy-web.jsflips it. -
Every table scrolls inside its own
table_scrollregion (§3.7), as the SC’s data-table exception allows. -
The
responsivePlaywright project (tests/e2e/specs/responsive.spec.ts) asserts no overflow at 320 and 768 px in the sidebar layout, each page under a role that reaches it. As the caseworker: the dashboard, Customize, Case Search, Applications, Notices, Appeals and Renewals pages, the seeded case in the tabs shell, tab by tab under each of the five programs, and its summary across programs, an application’s process page and its intake page under each program, and the three device pages. As the supervisor: the dashboard, the team queue, the quarantine and held worklists, the day-30 report, the scheduler page, the Studio refusal page and the seeded case under each program in the scroll shell. As the analyst: the dashboard and the same case in the card-grid shell. As the Studio admin: Studio home, the four onboarding steps and the audit log. As the security admin: the lookup, create-subject, link, signing-keys and clients pages, and one cast subject’s page. -
The case and application pages are one seeded household and application, so a section that renders only for other data is not reached.
-
The topbar layout has no assertion (#3044): no pack the devstack loads selects it, so the e2e battery cannot reach it.
-