Add TailwindCSS
Use the sv
CLI to add Tailwind CSS to your project.
Install dependencies
Setup path aliases
Update your path aliases in your tsconfig.json
and vite.config.ts
.
Run the CLI
You will be asked a few questions to configure components.json
:
That's it
You can now start adding components to your project.
The command above will add the Button
component to your project. You can then import it like this: