How to install Tailwind CSS and daisyUI in a Angular project
Install Angular CLI globally
npm install -g @angular/cli@latestCreate a new Angular project called my-project and navigate to it
ng new my-project --style css
cd my-projectnpm install daisyui@latest tailwindcss@latest @tailwindcss/postcss@latest postcss@latest --forceAdd Tailwind CSS plugin for PostCSS to a new .postcssrc.json file at root
{
"plugins": {
"@tailwindcss/postcss": {}
}
}Put Tailwind CSS and daisyUI in your CSS file (and remove old styles)
@import "tailwindcss";
@plugin "daisyui";Run the Angular development server
ng serveNow you can use daisyUI class names!
