Spectrum 2 for Adobe.com — Design tokens, components, and documentation aligned with the Adobe.com redesign (Elliot Coakley’s team).
This Nx monorepo is the starter for the S2A Foundations Library. It provides:
- Design tokens — Synced from Figma Variables, built to CSS custom properties
- Components — Button, Product Lockup, Marquee, and others
- Storybook — Component documentation and testing
| Path | Package | Purpose |
|---|---|---|
packages/tokens |
s2a-tokens |
Token pipeline: sync from Figma → JSON in packages/tokens/json/ → CSS custom properties (--s2a-*) |
packages/components |
s2a-components |
UI components (Button, Button v2, Product Lockup, Marquee) built with Lit |
packages/grid |
s2a-grid |
Grid layout utilities (placeholder) |
apps/storybook |
— | Storybook app for component docs and visual testing |
docs/ |
— | Workflows, guardrails, how‑tos, setup guides |
story-ui-docs/ |
— | Design system docs used by Story UI / AI tools |
npm install
npm run storybook # Start Storybook
npm run tokens:build # Build design tokens📘 GETTING_STARTED.md — Designer-focused guide: running Storybook, where tokens live, the token pipeline, and Figma links.
| Command | Description |
|---|---|
npm run tokens:sync |
Pull latest variables from Figma |
npm run tokens:build |
Build tokens to CSS (output in dist/packages/tokens/css/) |
npm run tokens:package |
Create distributable tarball |
📖 Token Pipeline Runbook — Detailed workflow, troubleshooting, versioning.
📋 Token Pipeline Steps (FigJam) — Quick reference cards.
npm run storybook— Dev servernpm run storybook:build— Static build
Components are documented under Components/ (e.g. Button, Button v2, Product Lockup).
nx build tokens— Build tokensnx serve storybook— Serve Storybooknx graph— View project graph
The packaged tokens artifact can be consumed as:
npm install ./s2a-tokens-<version>.tgz
Outputs live in dist/packages/tokens/css/ (e.g. tokens.semantic.css, tokens.semantic.light.css, tokens.semantic.dark.css).