Inspired by posva's vite-tailwind-starter
Note if you have access to Tailwind UI, you can follow the following steps to add it:
- Install
@tailwindcss/ui:
yarn add @tailwindcss/ui- Add the plugin in
tailwind.config.jswithout changing anything else:
// tailwind.config.js
module.exports = {
// ...
// rest of the config
plugins: [require('@tailwindcss/ui')],
}yarnyarn devyarn buildHead over to the vite react-ts template and just copy the needed files.