Tetrahedron is a React UI library that is built to be as unopinionated and flexible as possible.
- Nothing should be assumed about the use-case of any components
- No values should be hard-coded, instead, use
defaultProps
so they can be overridden - Compound Components should be used everywhere that is appropriate.
If you'd like to contribute to Tetrahedron UI, please follow the steps below to prepare for development.
Since Tetrahedron UI uses submodules, you must run the following command to clone the entire repo
git clone --recursive [email protected]:tetrahedron/ui tetrahedron-ui
cd tetrahedron-ui
make
You can also compile individual packages like so
cd packages/grid
yarn build
Now you're all setup.
Typically when working on a package locally, I create a secondary react project that I can use to test out the package in a real environment. To do this, I use yarn link
. If I was going to work on the grid system, I would do the following
cd packages/grid
yarn link
Then cd
into your react app, and run
yarn link @tetrahedron/grid
Now the package is linked. So everytime you either run make
from the master dir or yarn build
from inside the packages/grid
dir, you will see the changes in your react app.
Tetrahedron is a project by Garet McKinley
MIT