Context
The docs app must define no tokens of its own. It consumes
@workspace/ui and the tokens in packages/ui/src/styles/globals.css, which is
what keeps the docs and the app looking like one product. See
docs/dx_1/001_docs_site.md §5 and DESIGN.md.
Scope
- Add
@workspace/ui as a workspace dependency and import its globals.css.
- Configure Tailwind v4 in the docs app to consume the shared
@theme block —
no tailwind.config.js, matching the repo's CSS-first setup.
- Extend
scripts/check-design-tokens.ts to scan apps/docs on the same terms
as apps/web, with no new allowlist entries.
- Render one primitive from
@workspace/ui (a Button) on the placeholder page
to prove the pipeline end to end.
- Self-host fonts through the existing mechanism; no remote font requests.
Acceptance criteria
Out of scope
- The MDX component map (DX-034) and docs-specific chrome (DX-030).
Spec: docs/dx_1/001_docs_site.md §5 · Depends on: DX-026
Context
The docs app must define no tokens of its own. It consumes
@workspace/uiand the tokens inpackages/ui/src/styles/globals.css, which iswhat keeps the docs and the app looking like one product. See
docs/dx_1/001_docs_site.md§5 andDESIGN.md.Scope
@workspace/uias a workspace dependency and import itsglobals.css.@themeblock —no
tailwind.config.js, matching the repo's CSS-first setup.scripts/check-design-tokens.tsto scanapps/docson the same termsas
apps/web, with no new allowlist entries.@workspace/ui(aButton) on the placeholder pageto prove the pipeline end to end.
Acceptance criteria
bun run check:tokenscoversapps/docsand passes with zero violationsand zero new allowlist entries.
Out of scope
Spec:
docs/dx_1/001_docs_site.md§5 · Depends on: DX-026