- First needs to install the package
pip install pytailwindcss
- Then Install the binary with
_tailwindcss_install_
- Then add import function in src/input.css from where the css will get generated
@import "tailwindcss";
tailwindcss init command is deprecated in v4 and with this python package the tailwind config file not getting generated and manually needs to create the file named
tailwind.config.js
and then add html content details from where the classes will get picked.
5. Then finally the watch command which will automatically generate the css when new changes occur tailwindcss -i input.css -o output.css --watch
pip install pytailwindcss_tailwindcss_install_@import "tailwindcss";tailwindcss initcommand is deprecated in v4 and with this python package the tailwind config file not getting generated and manually needs to create the file namedand then add html content details from where the classes will get picked.
5. Then finally the watch command which will automatically generate the css when new changes occur
tailwindcss -i input.css -o output.css --watch