Component Library for Nitro
pre-commit install yarn yarn dev
Publish to npm
yarn build yarn publish --access public
We use pre-commit to run linting and formatting on our code. You can install it with
brew install pre-commit.
Seperation of Concerns
The components in this library aim for two seemingly opposing goals:
- All relevant code to understand the style and functionality of a component is in one place.
- The style and functionality of a component are cleanly seperated, and it's easy to understand how to use a component.
We reconcile these goals by using CVA, Tailwind, and Typescript. Typescript is used to define the levers used to change the behavior of a component, Tailwind is used to define the style of a component, and CVA is used to tie the two together.