How to install Tailwind CSS and daisyUI with 1 command?

Опубликовано: 18 Октябрь 2024
на канале: Pouya Saadeghi
650
3

Setting up Tailwind CSS and PostCSS and then adding daisyUI is not that hard at all, but it can be annoying to do the same process again and again on every project.

Install Tailwind CSS and PostCSS and Autoprefixer
Create tailwind.config.js file
Create postcss.config.js file
Add Tailwind CSS to postcss.config.js
Install daisyUI
Require daisyUI in tailwind.config.js

Now, you can do all of these with a single command:
npm init daisyui

Read more about it on daisyUI blog:
daisyui.com/blog/npm-init-daisyui/