pnpm workspace for the Sanity color palette and related tooling.
Published packages live under packages/. The Storybook lives under apps/.
| Package | Description |
|---|---|
@sanity/color |
Color palette |
figma-plugin-sanity-color |
Figma plugin for the @sanity/color palette |
| App | Description |
|---|---|
apps/storybook |
Palette and color tool Storybook (localhost:6006 via pnpm dev) |
- Node.js
>=22.13 - pnpm
12(pinned viapackageManagerinpackage.json)
pnpm install
pnpm build
pnpm testpnpm dev # Storybook at http://localhost:6006In the workspace, @sanity/color resolves to TypeScript source through package exports, so
Storybook hot-reloads package edits without a rebuild.
| Script | What it does |
|---|---|
pnpm build |
Build @sanity/color and the Figma plugin |
pnpm test |
Unit tests (@sanity/color) |
pnpm test:browser |
Storybook browser tests (Chromium via Playwright) |
pnpm lint |
Lint + type-check (oxlint) |
pnpm format |
Format with oxfmt |
pnpm knip |
Unused files / dependencies / exports |
pnpm changeset |
Add a changeset for a release |
See CONTRIBUTING.md. Releases use
Changesets: add a changeset on your
PR; merging to main opens a “Version Packages” PR that publishes to npm when
merged.
MIT — see LICENSE.