@torkanposten/coruscant-design-system
v0.1.54
Published
A Tailwind React component library for Coruscant
Readme
coruscant-design-system
A Tailwind React component library for Coruscant
Commands
- Bundle React components and CSS
yarn build - Watch for changes and build in real time
yarn dev
Usage
- Import CSS file in your project root
import "@torkanposten/coruscant-design-system/tailwind.css"; - Import components
import { Button } from "@torkanposten/coruscant-design-system/Button";
External CSS
If using external libs with their own CSS, import the css-files within public/tailwind.css
Storybook for component development
- Run
yarn storybookto open storybook and develop components
Local development for other projects
- Run
yarn linkin this repo to register your local copy as yarn local linkable package - Run
yarn link "@torkanposten/coruscant-design-system"in the projects, like BO-next
