DEV Community

Phenoo
Phenoo

Posted on

Tailwindcss and Sass

Can someone use tailwind css and sass in the same project?

Top comments (2)

Collapse
 
irtiza751 profile image
Muhammad Irtiza

Yes off course we can use sass with tailwindcss.

Process

First initialize the tailwindcss project then install sass by using npm i sass --save-dev
then add these two scripts in your package.json file

"watch:css": "sass --watch <directory-name> <output-folder>",
"build:css": "sass --style compressed <directory-name> <output-folder>",
Enter fullscreen mode Exit fullscreen mode

and that's it.

Happy coding :)

Collapse
 
grocker42 profile image
Grocker

Why not but why would you want ?