Note: for Spectrum 2 token data has been graduated to the main
branch. If you need access to the S1 data, use the s1-legacy
branch and v12.x.x
packages on NPM.
The Spectrum token visualizer shows the token data for S1. For Spectrum 2 data, use opensource.adobe.com/spectrum-tokens/s2-visualizer/.
This repo uses:
- pnpm for package management
- moon to manage task running
- Changesets for automated versioning and releasing
- Prettier for code formatting/linting
- commitlint and Convetional Commits to standardize commit messages
- husky to automate formatting of committed files and linting of commit messages
Packages in this monorepo:
- Spectrum Tokens design tokens for Spectrum, Adobe's design system.
- Spectrum Token Visualizer Tool a visualizer for inspecting tokens. Published as a static site, not an NPM package.
- Spectrum Token Visualizer Tool S2 a version of the visualizer that shows the Spectrum 2 data. Published as a static site.
- Spectrum Tokens Docs a static site to show the component options API and other token data.
- Spectrum Token Diff Generator a library and cli tool that reports changes made between two schema/releases/branches.
- Install pnpm using this guide.
- Install dependencies
pnpm i
Run build script
pnpm moon run :build
pnpm moon run :test