Skip to content
Toolkit

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

SurfaceDesign sourceVersionWhere 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 reference2.4.0 (+ 1.2 components)apps/web/src/index.css; root workspaces design/studio/packages/{system,react} (ADR-0179)
apps/marketingStudio 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.0apps/marketing/src/styles/global.css:6; apps/marketing/astro.config.mjs (@studio-system)
design/iconsStudio 2.2's DESIGN.md and generated tokens.json, read in place, plus public/design/overrides.json2.4.0design/icons/public/design/system.json
apps/appleStudioKit 2.2 (design/studio/packages/swift)2.4.0apps/apple/project.yml
apps/toolkitStudio 2.2 system, site and assets, copied at build2.4.0apps/toolkit/build.mjs:28
Studio site, gallery, worked examplesdesign/studio itself2.4.0design/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).

GroupPairsSourced from 2.2
accent1211
canvas, ink, status, code, dataviz5858
glass, elevation1616
radius, space, motion, z2727
type families and the .t-* scale6969
themed tokens beyond the pairs10
total183181

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

PhaseStatusWorkDone when
0. GatesDONEConvergence check; one root CI workflow for design/*—
1. Web tokensDONE (2026-11-22)Every mapped 1.2 token a 2.2 reference; 2.2's fonts; one cascadecheck:studio-convergence passes with one recorded exception
1b. Web shell and collectionsDONE (2026-11-22)React 19; 2.2 AppShell/TopBar/PagePill/search/NewSheet/AccountMenu/TabBar; the nine resource lists on ResourceCollectionThe frame and the nine lists import @aidenlive/studio-react
1c. Web surfacesPLANNEDConvert the remaining pages (table below) from @csxbase/studio-react 1.2 to 2.2, then delete studio/apps/web imports only @aidenlive/studio-*
2. MarketingDONE2.2 tokens and fonts read in place under the product overlaynpm run build and npm run check pass in apps/marketing
3. IconsDONE2.2 read in placemake validate passes in design/icons
4. AppleDONEStudioKit 2.2; the fork in studio/packages/swift is deletedmacOS 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, surfaces menu, 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=1 and ?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 (display for Home, the collections, Statistics and the catalogue; compact for working pages). Every page that renders PageHeader takes 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 in components/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, /statistics and /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 on NotificationGroup / 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 replaced LinkDetailPage, 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:

SurfaceFilesWhy it is not yet 2.22.2 target
The editor workspace's pickers and dialogs13The 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 picker2.4 Modal confirm, 2.4 toast, 2.4 pickers
Domains1The 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)~20Not registry kinds; tables with per-row buttons; some FilterRows still wrap at 390 px (rule 7)ResourceCollection generalised to non-kind records
Admin console34Its own layout (AdminLayout, inverse rail) and 21 FilterRowsA 2.2 shell variant and collections
Public pages10Visitor-facing; the block renderer and 1.2 forms2.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

PackageInstallBuildCheck
design/studionpm cimake buildmake validate (27 steps), make e2e (209, Chromium)
design/iconsnpm cimake buildmake validate (9 steps), npx playwright test (215)
apps/marketingnpm cinpm 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 cinpm run studio:build, npm run web:buildnpm run studio:lint, npm run check:studio-convergence, npm run verify

Source: docs/guides/design-system.md

Library