Skip to content

thedotcomdev/convex

Repository files navigation

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.

About

The.com design system ▻▽◅

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published