Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.13 KB

File metadata and controls

35 lines (24 loc) · 1.13 KB

Convex

storybook npm version

Design system and React components for The.com light app.

Very much still a work in progress. Comments and feedback welcome.

Components

Icon

convex
└── src
    └── components
	    └── Icon
		    ├── icons/
			├── raw/
			├── Icon.tsx
			└── [...etc]

New .svg files (exported from Figma or otherwise) should be placed in the raw/ directory. The only attribute these SVG files should have is viewBox. No height, width, fill, xmlns, etc.

After that, two helper scripts are provided:

yarn generate-icon-metadata
yarn generate-icons

The first script (generate-icon-metadata) creates empty .yml files for each new SVG for storing icon metadata.

The next script (generate-icons) properly sets up JavaScript imports for these SVGs so that they can be consumed by the Icon component.