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).

NOTE
This page is the design intent. The live tokens are 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

--orchard-primary

#1e5146

#3a9080

Headers, primary actions, brand identity

--orchard-primary-hover

#2d7060

#4ba692

Hover state

--orchard-accent

#ecbf44

#ecbf44

Decorative only — rules, overlines, leaves

IMPORTANT
The accent gold (#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

--orchard-surface

#f1f6f3

#131c18

--orchard-surface-raised

#ffffff

#1c2a23

--orchard-surface-sunken

#dde5e0

#0e1612

Text

Token Light Dark

--orchard-text

#031018

#e4e4e7

--orchard-text-body

#38424b

#d3dcd7

--orchard-text-muted

#4d6259

#a8d5c5

Chrome

Token Light Dark

--orchard-border

#c8d9cf

#2d4035

--orchard-border-soft

#e2eae4

#243530

Navigation (added after the handoff)

Sidebar chrome tokens theme.rs emits beside the handoff set:

Token Light Dark

--orchard-nav-bg

#1e5146

#0e1612

--orchard-nav-muted

#a8d5c8

#7faa9a

--orchard-nav-muted-dim

#7ba090

#5d8475

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

--orchard-success

#2c9a5c

#5cc080

--orchard-success-bg

#d8f0e1

#1f4231

--orchard-success-text

#1c6b3e

#a3e3b9

--orchard-warning

#e08a2b

#e8a85a

--orchard-warning-bg

#fbe6c8

#3e2a0e

--orchard-warning-text

#8e510f

#f0c587

--orchard-error

#c8412e

#e07060

--orchard-error-bg

#f5d6cf

#3e1812

--orchard-error-text

#8a2916

#e4a094

--orchard-info

#3a8a8f

#5ab5ba

--orchard-info-bg

#d6ebec

#163336

--orchard-info-text

#275f63

#8fc8cc

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 #d8f0e1 on #1c6b3e, pending #fbe6c8 on #8e510f, denied #f5d6cf on #8a2916, info #d6ebec on #275f63, neutral on --orchard-surface-sunken / --orchard-text; dark: approved #1f4231 on #a3e3b9, pending #3e2a0e on #f0c587, denied #3e1812 on #e4a094, info #163336 on #8fc8cc.

  • Status badges (.u-badge-success, .u-badge-error, .u-badge-warning, .u-badge-error-solid) — the -bg surface with its -text colour, 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-success it 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-error and .u-badge-warning share a template slot, so they share one size. A pack that brings a semantic pair under 4.5:1 fails every_shipped_pack_semantic_pair_meets_aa in services/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: #fbe6c8 bg, #f0c587 border, #8e510f text; dark: #3e2a0e bg, #6b4810 border, #f0c587 text.

  • Discrepancy row — a tint of the new error: light #fbeae6 bg with a --orchard-error left edge; dark #3e1812 bg.

NOTE
The brand layer (--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-face in canopy-web.css) — Montserrat 400 / 500 / 600 / 700 and JetBrains Mono 400 / 500 / 700. base.html preloads 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

--sp-1

4px

Hairline

--sp-2

6px

Tight inline rhythm, pill padding

--sp-3

8px

Default gap

--sp-4

12px

Compact card padding

--sp-5

16px

Default card padding

--sp-6

20px

Section gap

--sp-8

24px

Page padding

--sp-10

32px

Hero padding

3.4 Radii

Token Value

--r-sm

3px

--r-md

4px

--r-lg

6px

--r-xl

8px

--r-2xl

10px

--r-3xl

12px

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

PanelFrame

The unit of composition. Card with overline + gold rule header.

panel_frame

Overline

Small-caps brand label.

overline

GoldRule

2px gold horizontal accent.

gold_rule

BigNumber

Tabular-num display number (sm/md/lg/xl/xxl sizes).

big_number

Delta

Directional micro-stat with semantic color.

delta

StatusPill

approved / pending / denied / info / neutral, plus the shipped active / sanctioned / terminated / closed (.u-status-). Discrepancy is a *row treatment (.u-row-discrepancy), not a pill.

status_pill

EditorialFlag

Eyebrow-style status (replaces pills in editorial layouts).

editorial_flag

ProgramStripe

3px colored left edge identifying program.

program_stripe

ProgramTag

Solid colored chip with white text per program.

program_tag

MiniBar

Horizontal bar for inline stats.

— (.jsx only)

LeafGlyph

Decorative single-leaf brand mark.

leaf_glyph

Sparkline

Tiny inline trend.

sparkline

HeroStrip

Dark-green band with greeting + big stat + leaf watermark.

hero_strip

TableScroll

A .u-table-scroll region around one table (role="region", tabindex="0", a static aria-label from the table’s heading or caption), so a table wider than the viewport scrolls inside it, not the page (#560). Every worker-portal table sits in one and carries .data-table, the one table style in canopy-web.css, and primitives_test.rs fails on a template <table> that misses either (#3045).

table_scroll

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: reduce disables 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-expanded is its only state: the stylesheet hides #nav-panel while it reads false, and initNavToggle in static/js/canopy-web.js flips it.

    • Every table scrolls inside its own table_scroll region (§3.7), as the SC’s data-table exception allows.

    • The responsive Playwright 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.

Edit this page · default