npm install -D tailwindcss postcss autoprefixer vite # vite is used for local dev
npx tailwindcss init -p # creates tailwind.config.js and postcss.config.js
node node_modules/esbuild/install.js # to avoid this error on Mac -> Error: esbuild: Failed to install correctly
npm run dev # starts vite