The Sanity icons. Browse and search the full set at
icons.sanity.dev, and see the
@sanity/icons README for installation and usage.
This repository is a pnpm workspace: the published package lives under
packages/, and the Storybook, the icon showcase, its Sanity Studio and its
serverless functions live under apps/.
| Package | Description |
|---|---|
@sanity/icons |
Icon components (SVG → React) |
| App | Description |
|---|---|
apps/storybook |
Icon Storybook (localhost:6006 via pnpm dev) |
apps/icons |
icons.sanity.dev searchable icon catalog |
apps/studio |
Sanity Studio for the icon search dataset (icons.sanity.studio) |
apps/blueprints/docs |
Sanity Blueprint (serverless icon-enrichment function) |
- Node.js
>=22.13 - pnpm
12(pinned viapackageManagerinpackage.json)
pnpm install
pnpm build
pnpm testpnpm dev # Storybook at http://localhost:6006
pnpm dev:icons # Icon showcase at http://localhost:5173
pnpm dev:studio # Sanity Studio at http://localhost:3333In the workspace, @sanity/icons resolves to its TypeScript source through the
package exports, so Storybook and the apps hot-reload package edits without a
rebuild.
| Script | What it does |
|---|---|
pnpm build |
Build @sanity/icons |
pnpm test |
Unit tests (@sanity/icons) |
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.