Skip to content
Toolkit

ADR-0179 — The web renders Studio 2.2: one token source, 2.2's shell and collections

Status: Accepted · Date: 2026-11-22 · Track: 013 GTM consolidation · Builds on: ADR-0175 · Amends: ADR-0176 (workspaces), ADR-0018 (the Swift target)

Context

ADR-0175 made Studio 2.2 the specification and left apps/web on the Studio 1.2 runtime "until migrated". The owner's brief for the migration: the web "has yet to adopt the updated studio design system components… so many duplicated / alternatives", and clean UI with progressive disclosure (AGENTS.md launch rule 7). Measured before this change: 118 mapped tokens, 49 drifting, 8 one-sided; a sidebar, a topbar, a hand-rolled command palette and a mobile nav sheet as the signed-in frame; every resource list a wrapped table of five icon buttons per row.

Decision

  1. 2.2 is the only token source the web renders. apps/web loads @aidenlive/studio-system/studio.css (2.2's generated tokens, component tokens, type roles, fonts, base and components). Every value in studio/tokens/studio.tokens.json that 2.2 states is a reference, {2.2:<path>} (studio/tokens/v22.mjs); studio/tokens/build.mjs emits it as var(--<2.2 name>), never re-declares a name 2.2 owns, and resolves it to 2.2's value for the JS, JSON and contrast outputs. 1.2's own faces (Certia, Editorial New, Space Grotesk) are deleted; the fonts are 2.2's.
  2. The convergence gate counts sources, not values. check:studio-convergence now fails on any mapped 1.2 token that is not the reference to its 2.2 pair (a literal that drifts, a literal that copies, a wrong reference) and on any themed 1.2 token that is a literal. 182 of 183 pairs are sourced; the one recorded exception (studio/CONVERGENCE.json) is light --accent-line: 2.2's primary-line measures 2.996:1 on surface-3, under the 3:1 focus floor check-contrast.mjs enforces, so light keeps 1.2's value until design/studio raises it.
  3. One cascade. App and 1.2 CSS sit in studio.cardsite, a sublayer of 2.2's stack between its base and its layout/components: an app element rule can never restyle a 2.2 component, and a 1.2 class still beats 2.2's element defaults.
  4. React 19, and 2.2 as workspaces. apps/web is on React 19. design/studio/packages/system and design/studio/packages/react are root npm workspaces (amending ADR-0176 for these two runtime packages only; design/studio keeps its lockfile for its own tooling). Vite dedupes React, Phosphor and dnd-kit, because design/studio's own install carries copies.
  5. The signed-in frame is 2.2's shell. AppShell, TopBar, PagePill with the destination menu, the top-bar search (⌘K, spotlight results, paste-to-shorten), New → NewSheet of the nine kinds, the bell, the AccountMenu (theme, language, workspace, account pages, sign out) and, on phones, TabBar. No sidebar. The navigation registry gains a menu surface: the destination menu holds Home, Resources (the nine kinds) and five everyday places; everything else is one search away.
  6. Every resource list is one composition. ResourceCollection (apps/web/src/components/resources/) is 2.2's CollectionHeader + FilterButton + ResultsLine + ResourceRow + EmptyState; the nine list pages hand it records and actions. A drawer-type record opens at <list>?edit=<id> (useEditOnArrival, the ?new=1 contract's twin), so a row's name is a link like every other kind's.
  7. The registries carry 2.2's words. @csxbase/link-model descriptors carry studioKind and openPathFor(); catalogue products carry their kind; registry icons are Phosphor components (the names always were).
  8. What the conversion replaced is deleted (ADR-0178): the 1.2 shell (Sidebar, Topbar, CommandPalette in the app; AppShell … AuthForm, the chrome family and CommandPalette in @csxbase/studio-react; the shell, fonts and demo layers in studio/), the app CSS they emitted, and check:studio-parity, whose Swift target (the StudioKit fork) is gone: StudioKit 2.2 against studio-react 2.2 is design/studio's own make validate, and a second checker would be a second truth.

Consequences

  • A token edit happens in design/studio/DESIGN.md and nowhere else; a 1.2 literal reintroduced for a mapped token fails npm run verify.
  • Pages not yet converted (settings, editors, admin, the dashboard's body) still render 1.2 lk- components, on 2.2 values. The list of what remains and why is docs/guides/design-system.md § 4.
  • Search, state and sort on a collection act on the page of records the API returned; the results line says so. Server-side filtering is a later API change, not a UI one.

Alternatives considered

  • Copy 2.2's values into the 1.2 JSON and gate the copy — rejected: two files holding the same numbers is the duplicate the owner asked to remove.
  • file: dependency on design/studio — rejected: a link's own dependencies are not hoisted into the root tree, so the app would resolve them from design/studio's install; a workspace puts them in the root lock.
  • Re-point check:studio-parity at StudioKit 2.2 — rejected: it would compare a retiring 1.2 React set with 2.2 Swift (140 new rows of noise) and duplicate design/studio's parity check.

Source: docs/decisions/0179-the-web-renders-studio-2-2.md

Library