The design lab and the directions
The 27 directions under /d: the explorations, the three site concepts, the production mirror, and how the gallery presents them.
The design lab holds twenty-seven directions for the General Translation website. Each one is a built page that runs live.
- 23 explorations: single-page directions, each a different answer to the same brief.
- 3 site concepts on the Toolchain foundation: Dossier, Orbit and Signal, each a home page plus an enterprise page.
- The production mirror at
/d/production: the site that shipped at generaltranslation.com, rebuilt page for page, with the dashboard's sign-in and onboarding states (/d/production/signin,/onboarding,/consent,/deviceand/cli;?state=<id>opens any state).
src/lib/directions.ts is the registry: the slug, the name, the concept and the tone of each. The gallery, the presenter, /directions/<slug>, the sitemap and the sidebar's Sites and Explorations rows all read it.
Self-contained by design
Each direction lives under src/app/d/<slug> with its own type, colors and stylesheets. The shell's rules do not reach it, and the type lint skips the files its allow list names. A direction can be read, changed or deleted without touching another.
src/app/d/toolchain is the single source the three site concepts fork. A fork imports Toolchain's sections and re-skins them by rescoping its root class, and it never edits Toolchain's files. ARCHITECTURE.md explains the rule.
Forking Toolchain
- Give the fork's root element its own class, such as
.terminusboard-root, and set the fork's tokens on it. - Import Toolchain's sections, diagrams and components from
@/app/d/toolchain/.... Imports run one way, from a fork to the source, so a fix in Toolchain reaches every fork. Canvas and shader engines that several forks share live once insrc/lib. - A component whose stylesheet is scoped by its own class (
.tflow,.eg,.iso) and readsvar(--tc-*)with fallbacks needs nothing more. A stylesheet scoped to.toolchain-rootneeds a rescoped copy in the fork, because its selectors match nothing under another root. - Dark mode is a token remap under
[data-theme='dark'] .<fork>-rootand nothing else. A plate that is always dark never remaps, and a canvas reads its ink from a CSS variable and reads it again whenhtml[data-theme]changes. - Change Toolchain itself only when the change is meant for every fork.
Terminus Board shows step 3. It imports LocaleTag from Toolchain, and the tag's rules live in toolchain/components/icons.css under .toolchain-root, so none of those rules would match on the fork. The fork carries the same rules under its own root in terminus-board/sections/locale-icons.css:
/* before: src/app/d/toolchain/components/icons.css, matches only under Toolchain */
.toolchain-root .lct {
display: inline-flex;
align-items: baseline;
gap: 4px;
font-style: normal;
}
/* after: src/app/d/terminus-board/sections/locale-icons.css, the same rule rescoped */
.terminusboard-root .lct {
display: inline-flex;
align-items: baseline;
gap: 4px;
font-style: normal;
}On 2026-10-08 the frozen local copies of Toolchain sections that two forks still carried were deleted, since nothing imported them. Before adding a copy, import the source and rescope only the CSS.
How the hub presents them
/reads the directions as one article, shows one live exhibit at a time, or lays them out as a grid of captures./directions/<slug>presents one direction on the shell: the prototype in a frame, its captures in both themes, and what it was for./compareruns two directions side by side in scroll-synced frames./presentis the full-screen walkthrough with the first 16 prototypes live./archive/<slug>keeps a retired direction as a full-page capture with the commit that last held its code.
Keeping the mirror in step
/d/production follows generaltranslation.com. After a gt-cloud pull request changes a page, the change is ported here: one root class per page, the gt-cloud stylesheets as rescoped copies, and every copy recorded in scripts/lint/copies.json, which pnpm lint:copies checks.
The port recipe
- Put the whole port under one root class on its root element, and scope every rule it adds under that class.
- Copy each gt-cloud stylesheet the page uses whole, then transform it: its source roots (
.enterprise-root,.toolchain-root) become the port's root, a doubled root collapses to one,--color-emphasisbecomes--tc-accent, and!importantis stripped. A mirror holds nothing else, so a re-sync replaces it in one copy. - Put everything the port adds, such as bridges to the hub's tokens and explicit form margins, in one compatibility sheet,
port-compat.css. Mirrors are never edited by hand. - Pass each section file through the same transform:
gt-nextis stripped, so<T>andgt()become plain strings;LocaleFlagbecomesflag-icons; andCtais ported locally with link shims. - Record the copy in
scripts/lint/copies.jsonin one of three modes:pin, where gt-cloud is the source and the copy is frozen at a sha256;source, where this repository is the source; orfork, where the copies differ on purpose andfromandreasonsay why.
Two traps meet every port. Tailwind's margin utilities are dead on a ported route, because the family's unlayered reset outranks Tailwind's utilities layer, so margins go in the compatibility sheet. Lightning CSS folds a standalone scale into transform, so a hover-scale reset happens in the markup.
Search engines
The directions reassemble General Translation's marketing copy, prices and legal text into design studies, so every /d/ page is noindex, follow. One layout, src/app/d/layout.tsx, sets it for the whole folder. The mirror's pages name their generaltranslation.com page as the canonical, since the live page is the original. The /directions/<slug> pages hold original writing and captures, and they are indexed. The SEO system gives the reasons.