How to install Tailwind CSS and daisyUI in a Next.js project
npx sv create
npm install tailwindcss@next @tailwindcss/postcss@next daisyui@beta
Add Tailwind CSS to your PostCSS config file
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
'@tailwindcss/postcss': {},
},
};
export default config;
Put Tailwind and daisyUI to your CSS file
@import "tailwindcss";
@plugin "daisyui";
Now you can use daisyUI class names!