Skip to content

Library of icons used in apps and marketing sites

License

Notifications You must be signed in to change notification settings

storybookjs/icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
cdedreuille
Mar 7, 2025
3673633 · Mar 7, 2025
Jul 8, 2024
Jul 8, 2024
Oct 12, 2023
Mar 7, 2025
May 14, 2023
May 14, 2023
Jul 13, 2023
May 14, 2023
May 14, 2023
May 14, 2023
May 14, 2023
May 14, 2023
May 14, 2023
Mar 7, 2025
May 14, 2023
Jan 22, 2025
May 14, 2023
Mar 7, 2025
Jan 23, 2025
Oct 12, 2023
Jul 12, 2023
Oct 18, 2023
May 14, 2023

Repository files navigation

Icons

This library contains the icons used in Storybook and Chromatic apps and marketing sites. They are 14x14. To view the list of all available icons, please go to https://main--64b56e737c0aeefed9d5e675.chromatic.com/

Install

npm:

npm install @storybook/icons

yarn:

yarn add @storybook/icons

pnpm:

pnpm add @storybook/icons

To Do

  • Export every single icon instead of a single component
  • Add stories for each component

Generating new icons from Figma

First, set local environment variables:

FIGMA_API_TOKEN=<YOUR_FIGMA_API_TOKEN>
FIGMA_FILE_ID=<FIGMA_FILE_ID>
FIGMA_CANVAS=Icons

Then, fetch all icons from Figma locally and create React components + stories automatically:

pnpm generate-icons

Inspired by this article.

Developing

Watch and rebuild code with tsup and run Storybook to preview your UI during development:

pnpm storybook

Building

Build package with tsup for production:

pnpm build