RAIA™ Specification

2.34 Workspace Design System — Universal Template Freeze (Border, Font, Loading Bar, Primitives)

Think of the workspace as a rented flat. The landlord (Eugin) has decided the wall colour, the light switches, the door handles, and the ceiling lights. Every new dashboard screen is a new piece of furniture you bring into that flat. You do not repaint, rewire, or install a new ceiling. The flat stays the same. ADR-295 is the lease that says: content changes, chrome does not.

← Back to Developer Hub TEXTBOOK SPECIFICATION
In Plain English

Think of the workspace as a rented flat. The landlord (Eugin) has decided the wall colour, the light switches, the door handles, and the ceiling lights. Every new dashboard screen is a new piece of furniture you bring into that flat. You do not repaint, rewire, or install a new ceiling. The flat stays the same. ADR-295 is the lease that says: content changes, chrome does not.

Universal template freeze as of 2026-08-02 after Eugin FE session. New dashboard screens place content only. Element design is decided. Compose primitives; do not invent new borders, type sizes, cards, buttons, or panel loading UIs.

ADR-295 Template Freeze Frontend SSOT Eugin 2026-08-02 FE Session
1
Chrome border per theme (--t-border)
5
Fixed type sizes: display, title, body, secondary, label, micro
6
Primitive components — build everything from these
0
Allowed freestyle cards, dead borders, or h2 heading font

Workspace Design System — Token Hierarchy Primitives Raw values colours · spacing shadows · radii FROZEN — do not edit mapped to Semantic Tokens Purpose-named vars --color-bg · --color-text --radius-card · --space-4 Light + dark variants applied to Component Classes CSS utility classes .ctl-btn · .ctl-input .raia-card · .raia-pill Composable patterns renders UI Consistent look & feel

Freeze The Freeze Rule

🚨 Universal Template Freeze — 2026-08-02

New dashboard screens place content only. Element design is decided. You compose from existing primitives; you do not invent new borders, type sizes, cards, buttons, or panel loading UIs. This freeze applies to every workspace screen — Leads, Win Back, Identification, Tenancies, Properties, Fees, Services, and any future menu. A PR that introduces a new primitive or a custom variant is rejected automatically.

The freeze is enforced by the modular-architecture-enforcer skill and the FE PR checklist. Exception requests go directly to Eugin.

Freeze Theme Tokens — The Only Visual Knobs

The globals.css file defines --t-* CSS custom properties per theme. Every surface, text, and accent in the workspace reads from these tokens. There is exactly one chrome border per theme (--t-border). No component may define its own border colour.

Token Purpose Used By
--t-bg Main background Page body, pane shells
--t-bg-subtle Subtle background Card surfaces, hover states
--t-border Chrome border Every structural border — cards, pane edges, inputs. One border per theme; never overridden.
--t-text Primary text Headings, body copy
--t-text-muted Secondary text Subtitles, descriptions, hints
--t-accent Primary accent Active states, primary buttons, links
--t-accent-hover Accent hover Button hover, link hover
--t-accent-subtle Accent background Subtle accent backgrounds, selected rows
--t-success Success state Green indicators, confirmed statuses
--t-warning Warning state Amber indicators, pending statuses
--t-danger Danger state Red indicators, errors, rejections
--t-info Info state Blue indicators, informational badges

Themes re-skin only these tokens. A theme change flips every --t-* value globally — no component is left behind. The exception is semantic chips (ADR-287), which use fixed hex values for meaning that must survive theme changes (e.g. Enquiries = blue, regardless of mode).

Freeze Type Scale — Fixed, Not Invented

The workspace type scale is defined in type-scale.css with TS.* utility classes. These six sizes are the only font sizes used in workspace screens. No component may define its own font-size.

Class Size Usage Font Family
TS.display 15 Page titles, section heads in workspace var(--t-font)
TS.title 13 Card titles, panel headers var(--t-font)
TS.body 13 Body text, descriptions var(--t-font)
TS.secondary 12 Subtitles, metadata, timestamps var(--t-font)
TS.label 10 (uppercase) Labels, badges, small annotations var(--t-font)
TS.micro 10 Field-level hints, timestamps in tight spaces var(--t-font)
⚠️ Font Family Rule

In workspace screens, every text node uses font-family: var(--t-font). The decorative heading font --t-font-heading is only applied via the class .theme-heading-font — and never on person names. This fixes the Home/Candy Lora bug where person names were rendered in the decorative heading font instead of the workspace body font.

Freeze Primitive Inventory — The Only Building Blocks

Every workspace screen is built from these six primitives. No other component types may be introduced for chrome, layout, or UI patterns within workspace screens.

Primitive SSOT Location Rule
WorkspaceSection components/ui/WorkspaceSection.tsx Only allowed section wrapper for centre content. Every centre card uses this. No custom wrappers or ad-hoc section containers.
Controls components/ui/controls.tsx Button, TextField, Select — .ctl-* classes. Theme-safe via --t-*. No hardcoded hex, no custom button variants.
Chip components/ui/Chip.tsx + lib/ui/chip-tokens.ts Semantic chips use fixed hex per ADR-287. Structural chips use theme vars. No new chip variants.
ContactAboutBlock components/ui/ContactAboutBlock.tsx Person summary block shown in list rows and detail headers. Single SSOT; no inline person summary re-implementations.
RegistryListShell components/ui/RegistryListShell.tsx List + pager for every registry. Owns title, search, sort, filter, pagination. No page-local list chrome.
PanelLoadingBar Shared loading component Top 2px indeterminate accent bar. Show if loading >~200ms. No centred spinner for panel loads.
WorkspaceSection

The standardised card wrapper for centre content. Every section in a workspace — About, Contact, Documents, Compliance — is a WorkspaceSection. Variants are not allowed.

RegistryListShell

One list chrome for all registries. Landlords, Win Back, Identification all share the same shell. Page-local chrome (title bars, search in the panel) is forbidden.

PanelLoadingBar

The only panel-level loading indicator. Thin top bar, indeterminate, accent-coloured. No centred spinners, no skeleton screens for panel loads. Button micro-actions may keep a tiny spinner on the button itself.

Controls

controls.tsx exports CtlButton, CtlTextField, CtlSelect. All use .ctl-* CSS classes. No inline styling, no ad-hoc button markup. Theme tokens only.

Freeze Loading Rules

Two loading patterns, clearly separated:

Scenario Indicator Rules
Panel / section load PanelLoadingBar Top 2px indeterminate accent bar. Show if loading exceeds ~200ms. No centred spinner. No skeleton placeholders for panel-level loads. The bar sits at the top edge of the loading panel/section.
Button micro-action Inline spinner on button Tiny spinner replaces or sits beside the button label. Only for actions that take <2s (save, delete, toggle). PanelLoadingBar is not used for button actions.
Full page load Browser-native or top-level spinner Handled by the route shell, not workspace primitives. The workspace itself starts empty or with PanelLoadingBar on the active pane.
Why No Centred Spinner?

Centred loading spinners create visual bouncing — the user sees a spinner, then content pops in underneath. The PanelLoadingBar provides a fixed-position progress cue that doesn't shift layout when content arrives. It is subtler, faster to perceive, and matches modern SaaS patterns (Linear, Notion, Slack).

The navigation chrome is frozen. These dimensions and behaviours are non-negotiable:

Element Spec Enforcement
Icon rail 56px width. Icons only. EA bot = Home → Chat order. No resizing. No additional rail elements. Order is SSOT.
Header org mark Sits in a 56px cell in the header bar, aligned with the icon rail. No repositioning. Must align vertically with rail icons.
Collapsed footer Shows jurisdiction + organisation name only. No avatar, no links, no extra metadata in collapsed state.
Pin behaviour Rail pins only when menu is open. Pinning with menu closed is a no-op. Pin button disabled or hidden when menu is collapsed.

Pitfalls Common Template Freeze Violations

These are the most common PR rejections under the freeze. If you are writing or reviewing a workspace PR, check for these first.

1
Dead border-border class

Tailwind's border-border resolves to border-color: var(--border) which uses the index page CSS var, not the workspace --t-border. This produces a border that does not change when the theme changes. All workspace borders must use --t-border via a theme-aware class or inline --t-border. Search for border-border in every workspace component and replace it.

2
<h2> heading font on person names

The decorative --t-font-heading is applied via .theme-heading-font class. It is never correct on person names. Person names must render in the workspace body font (var(--t-font)). The Home/Candy Lora bug showed a person's name in the decorative heading font — this pattern must not recur.

3
Freestyle card wrappers

Every centre card needs WorkspaceSection. Creating a new wrapper component with slightly different padding, border-radius, or shadow creates drift. The only allowed card wrapper for centre content is WorkspaceSection. If the design feels constrained, adjust WorkspaceSection itself — do not fork it.

4
Inventing new type sizes

The six-type scale (display 15, title 13, body 13, secondary 12, label 10 upper, micro 10) is frozen. No text-sm, text-base, or arbitrary font-size in workspace components. Use TS.* classes.

5
Custom button variants

controls.tsx exports exactly the variants Eugin decided. No new variant prop, no inline button styling, no new colour combinations for buttons. If you need a different button, it's a new primitive request — go to Eugin.

6
PanelLoadingBar on button actions

The PanelLoadingBar is for panel/section loads only. Button micro-actions use a tiny inline spinner. Using the PanelLoadingBar for a save button creates a visual disconnect — the bar at the top of the panel for a button click.

Design System — Type Scale & Freeze Zones 6-Level Type Scale TS-1 32px TS-2 24px TS-3 18px TS-4 14px TS-5 12px TS-6 10px Frozen Zones ⛔ • globals.css primitives • theme.ts token map • Nav component props • Breakpoints (sm/md/lg) Freeze means: PR + ADR required Safe to Extend ✅ • New semantic aliases • Component compositions • Page-level overrides • New .ctl-* classes No PR required for these

Checklist Freeze Checklist for PRs

Every workspace PR must pass these checks before review. The modular-architecture-enforcer skill automates some of these; the FE reviewer confirms the rest.

# Check Automated Reviewer
1 No border-border class — workspace borders use --t-border ✅ Skill
2 No --t-font-heading on person names 👤 Review
3 All centre cards use WorkspaceSection — no custom wrappers ✅ Skill
4 Type sizes use TS.* classes — no raw font-size 👤 Review
5 Buttons come from controls.tsx — no inline button markup 👤 Review
6 Panel loads use PanelLoadingBar — no centred spinners 👤 Review
7 Button micro-actions use inline spinner, not PanelLoadingBar 👤 Review
8 No inline hex colours in component files (exception: chip-tokens.ts) 👤 Review
9 Registry list pages use RegistryListShell — no page-local chrome ✅ Skill
10 Nav rail is 56px, EA bot order = Home → Chat, header org mark aligned 👤 Review

References Sources & Related Docs

Source Type Relevance
ADR-295 — Workspace Design System SSOT Architecture Decision Record Primary source. Three-pane shell + primitive SSOT + theme-only skinning.
ADR-284 — RegistryListShell Stage SSOT Architecture Decision Record List chrome for centre-left pane. Slot stack, stage vocabulary, filter SSOT.
ADR-287 — Semantic Chips Theme-Stable Architecture Decision Record Exception to theme-only skinning: semantic chips use fixed hex.
Eugin 2026-08-02 — Universal Template Freeze FE Session Decision The freeze this page documents. Decided border, font, loading bar, primitives.
globals.css — Theme Variables Source Code --t-* CSS custom properties per [data-theme]. The skin layer.
type-scale.css — Type Scale Source Code TS.* utility classes for the six fixed type sizes.
controls.tsx — UI Controls Source Code Button, TextField, Select with .ctl-* theme-safe classes.
modular-architecture-enforcer skill Hermes Skill Automated enforcement of freeze rules in workspace PRs.