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