This project is scaffolded using Vite, styled with Tailwind CSS, documented with Storybook, and tested with Jest and React Testing Library. It leverages Radix-UI and Shadcn/ui as base components to enhance its functionality and styling.
Before you begin, ensure that you have Node.js(v18.18.0) and Yarn(v4.0.1) installed on your machine.
Once they are available the install all the dependencies using:
yarn install
# or just
yarnWe use Storybook for component documentation. To run Storybook, use:
yarn storybookThis opens Storybook in your web browser, enabling you to see and interact with the components in various states.
Note: Since we are using custom tailwind theme config I am building tailwind.css file for applying the new classes
Tried figuring out a solution but couldn't due to time constraints.
Testing is set up using Jest and React Testing Library. Run the test suite with:
yarn testTODOs:
- Custom tailwind theme config to storybook
twMergeissues with custom tailwind theme. Need to extendtwMergeusingextendTailwindMerge- Path alias config to Jest
- Extract Jest config from
package.jsontojest.config.ts