Universal Tailwind CSS configuration.
pnpm add -D tailwindcss postcss autoprefixer @bit-ocean/tailwind
npx tailwindcss init -p
Add the following styles to your src/styles/index.scss
or global styles file:
@tailwind base;
@tailwind components;
@tailwind utilities;
Then add the following tailwind config presets to your tailwind.config.js
:
module.exports = {
presets: [require('@bit-ocean/tailwind')],
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}']
}
MIT License © 2024 Bit Ocean