Design system guide
Status: ACTIVE · Updated: 2026-11-30 · Owner: ADR-0175, ADR-0179
Which Studio is canonical, which surface runs which copy, what the web still renders from Studio 1.2, and the order in which the rest converges.
1. Canonical
design/studio/DESIGN.md (Studio 2.4.0 since 2026-11-30: the
walkthrough's kinds, tokens and words, ADR-0181) is
the design specification for every surface in this repository
(ADR-0175).
Its tokens are generated from that file into
design/studio/packages/system/dist
(tokens.json, tokens.css, components.tokens.css, fonts.css, StudioKit's
StudioTokens.swift). A token changes in DESIGN.md and nowhere else.
design/studio and design/icons are nested Station modules (their own
station.json, README.md, CHANGELOG.md, lockfile). Their .station/
folders are kept as module history; the root .station
is authoritative for status and jobs.
2. What consumes what
| Surface | Design source | Version | Where it is wired |
|---|---|---|---|
apps/web | @aidenlive/studio-system (every token, fonts, base, components) and @aidenlive/studio-react (shell, collections), React 19; the remaining 1.2 lk- components from studio, every value a 2.2 reference | 2.4.0 (+ 1.2 components) | apps/web/src/index.css; root workspaces design/studio/packages/{system,react} (ADR-0179) |
apps/marketing | Studio 2.2's generated tokens.css and fonts.css, read in place, plus the Cardsite product overlay (src/styles/overrides.json → brand.tokens.css, then brand.css) | 2.4.0 | apps/marketing/src/styles/global.css:6; apps/marketing/astro.config.mjs (@studio-system) |
design/icons | Studio 2.2's DESIGN.md and generated tokens.json, read in place, plus public/design/overrides.json | 2.4.0 | design/icons/public/design/system.json |
apps/apple | StudioKit 2.2 (design/studio/packages/swift) | 2.4.0 | apps/apple/project.yml |
apps/toolkit | Studio 2.2 system, site and assets, copied at build | 2.4.0 | apps/toolkit/build.mjs:28 |
| Studio site, gallery, worked examples | design/studio itself | 2.4.0 | design/studio/tools/build.mjs |
design/studio keeps its own lockfile for its tooling (generator, site,
gallery, Playwright); only its two runtime packages are root workspaces, and
apps/web/vite.config.ts dedupes React, Phosphor and dnd-kit against the
copies design/studio's own install carries. Marketing and Icons hold no copy
of Studio: each reads 2.2 in place and its own gate fails if the source is not
the pinned release (apps/marketing/scripts/studio-tokens.mjs,
design/icons/tools/lib/design.mjs loadSystem).
3. One token source for the web
The web loads @aidenlive/studio-system/studio.css first. Studio 1.2's token
file, studio/tokens/studio.tokens.json,
still names what the 1.2 component layer and the app's CSS read (--accent,
--r-md, --font-body, the .t-* scale), but every value 2.2 states is a
reference, {2.2:<path>}, resolved by
studio/tokens/v22.mjs:
studio/tokens/build.mjs emits it as var(--<2.2 name>) and never
re-declares a name 2.2 owns. App and 1.2 CSS sit in the studio.cardsite
sublayer, between 2.2's base and its components.
scripts/check-studio-convergence.mjs
holds it: every mapped pair must be the reference to its 2.2 token, and every
themed 1.2 token must be a reference. A literal that drifts, a literal that
merely copies 2.2's value, or a reference to the wrong token fails
npm run verify (and the design workflow's convergence job).
| Group | Pairs | Sourced from 2.2 |
|---|---|---|
| accent | 12 | 11 |
| canvas, ink, status, code, dataviz | 58 | 58 |
| glass, elevation | 16 | 16 |
| radius, space, motion, z | 27 | 27 |
type families and the .t-* scale | 69 | 69 |
| themed tokens beyond the pairs | 1 | 0 |
| total | 183 | 181 |
The two non-sourced rows are one decision, recorded with its reason in
studio/CONVERGENCE.json: light
--accent-line keeps 1.2's oklch(58% 0.2 142) because 2.2's
primary-line measures 2.996:1 on surface-3, under the 3:1 focus floor
studio/scripts/check-contrast.mjs enforces. It closes when design/studio
raises primary-line.
Still 1.2's, because 2.2 has no role for them: the breakpoints, safe-area
insets, the sidebar/header sizes the admin console reads, and --z-base.
4. Migration plan
| Phase | Status | Work | Done when |
|---|---|---|---|
| 0. Gates | DONE | Convergence check; one root CI workflow for design/* | — |
| 1. Web tokens | DONE (2026-11-22) | Every mapped 1.2 token a 2.2 reference; 2.2's fonts; one cascade | check:studio-convergence passes with one recorded exception |
| 1b. Web shell and collections | DONE (2026-11-22) | React 19; 2.2 AppShell/TopBar/PagePill/search/NewSheet/AccountMenu/TabBar; the nine resource lists on ResourceCollection | The frame and the nine lists import @aidenlive/studio-react |
| 1c. Web surfaces | PLANNED | Convert the remaining pages (table below) from @csxbase/studio-react 1.2 to 2.2, then delete studio/ | apps/web imports only @aidenlive/studio-* |
| 2. Marketing | DONE | 2.2 tokens and fonts read in place under the product overlay | npm run build and npm run check pass in apps/marketing |
| 3. Icons | DONE | 2.2 read in place | make validate passes in design/icons |
| 4. Apple | DONE | StudioKit 2.2; the fork in studio/packages/swift is deleted | macOS CI builds apps/apple |
On 2.2 now
- The frame (
apps/web/src/components/layout/AppLayout.tsx,ShellSearch.tsx,ShellAccount.tsx): every signed-in page. The destination menu, tab bar and search read the navigation registry (lib/navigation.ts, surfacesmenu,palette,tab). - The collections (
components/resources/ResourceCollection.tsx): short links, bio pages, vCards, events, file links, static pages, splash pages, payment links, QR codes — header, Filter (state and sort behind one button with a count), results line, resource rows with Copy and one ⋮ menu, empty and failed states, pager. Every kind opens at/resources/edit/<kind>/<id>(since 2026-12-01, job 014); a list's old?new=1and?edit=<id>redirect there. Since 2026-11-23 in Studio Origins' Library anatomy: the page header, one row of state chips, one toolbar row (search pill, sort, list / grid / cards view), and one New per screen (the empty state's while empty). - Page anatomy (
components/layout/PageHeader.tsx,styles/page.css): one header for every signed-in page — kicker, title with its italic serif accent, one lede, the actions — in two sizes (displayfor Home, the collections, Statistics and the catalogue;compactfor working pages). Every page that rendersPageHeadertakes it. - Pages wholly on 2.x: Home (
pages/dashboard: returning and first run — the paste-to-shorten composer, KPIs, the kinds, the recents), Resources (pages/resources,/resources: the library of every kind, with the share sheet incomponents/share), Account (pages/account,/account: eight tabs — Profile, Billing, Plans, Notifications, Appearance, Security, Team, Referrals — replacing the Settings, Preferences, Workspaces, Teams, Plans, Payments, Referrals and Notification handlers pages, whose paths redirect to a tab), Statistics (pages/statistics,/statisticsand/statistics/:id), the catalogue, the signed-out pages (pages/auth: sign in, register, forgot and reset password,/activate-user, the OAuth callback, in one auth frame with its showcase), Cyte (components/cyte: the assistant's launcher and panel, which replaced the AI chat page), the Inbox (pages/internal-notifications, rebuilt onNotificationGroup/NotificationRow), and the editor workspace (pages/editor,/resources/edit/:kind/:id: one route for every kind — Short link, Page, QR code, vCard, Event, File, Site, Splash and Pay — on one frame (ResourceEditor,SettingsPanel); it replacedLinkDetailPage, the resource drawers and the bio page and QR builders, job 014).
What remains on 1.2, and why
105 files still import @csxbase/studio-react (most used, at the 2026-11-22 count: Button 79,
Stack 74, Card 69, Field 64, confirmDialog 59, EmptyState 52, Input
49, DataTable 39, Pagination 38, Drawer 33, FilterRow 21). They render
2.2 values with 1.2 anatomy. In order of what a person sees most:
| Surface | Files | Why it is not yet 2.2 | 2.2 target |
|---|---|---|---|
| The editor workspace's pickers and dialogs | 13 | The editors are 2.4, but take confirmDialog, useToast, DateTimePicker and ColorPicker (with their Field) from 1.2: the app's toast provider and leave/delete confirm are still 1.2's, and 2.4 exports no date-time or colour picker | 2.4 Modal confirm, 2.4 toast, 2.4 pickers |
| Domains | 1 | The table and its create drawer are 1.2 (header and first-run state are 2.2) | ResourceCollection generalised, a 2.2 dialog |
| Other signed-in lists (projects, pixels, PWAs, signatures, uploads, data, logs, AI tools) | ~20 | Not registry kinds; tables with per-row buttons; some FilterRows still wrap at 390 px (rule 7) | ResourceCollection generalised to non-kind records |
| Admin console | 34 | Its own layout (AdminLayout, inverse rail) and 21 FilterRows | A 2.2 shell variant and collections |
| Public pages | 10 | Visitor-facing; the block renderer and 1.2 forms | 2.2 Previews, Field |
The 1.2 pieces kept are exactly what those imports need:
studio/packages/react (controls, feedback, surfaces, overlays, resource,
Avatar, TabBar for the toast nudge), studio/packages/core (the lk-
component and resource layers, the token alias layer, the 1.2 type scale), and
the app CSS in apps/web/src/styles/ that a page still emits
(check:emitters fails on the rest).
Deleted with phases 1–1b: the 1.2 shell, chrome, site/docs/editor/canvas/auth
layouts and CommandPalette; 1.2's fonts (Certia, Editorial New, Space
Grotesk) and the 1.2 demo apps (HTML, React, Swift) and kit sync; the app's
Sidebar, Topbar, CommandPalette, DuplicateAction, ~170 dead CSS rules;
check:studio-parity, whose Swift target is gone — StudioKit 2.2 against
studio-react 2.2 is design/studio's own make validate (ADR-0179).
5. Commands
| Package | Install | Build | Check |
|---|---|---|---|
design/studio | npm ci | make build | make validate (27 steps), make e2e (209, Chromium) |
design/icons | npm ci | make build | make validate (9 steps), npx playwright test (215) |
apps/marketing | npm ci | npm run build (product tokens, then static dist/ and dist-offline/; reads design/studio/packages/system in place) | npm run check |
root (apps/web, studio/ 1.2) | npm ci | npm run studio:build, npm run web:build | npm run studio:lint, npm run check:studio-convergence, npm run verify |
Source: docs/guides/design-system.md