Configuring Tailwind
PYUI supports Tailwind directly.You can start using Tailwind in your project just by following few steps.
For Windows
-
Grab a stable tailwind executable from TailwindCss Releases.Most probably
tailwindcss-windows-x64.exe -
Enable Tailwind inside your
settings.pyfile underCompilerSettingsclassclass CompilerSettings:
TAILWIND_ENABLED = True # <-- Change to True -
Now when you execute
PYUI.buildtoolsadd a extra--settings settings.py --tailwindpath <your-tailwind-exe-path>
The buildtools passes the converted html files to tailwind to compile global.css.Now you can use any tailwind classes freely.
For Linux
-
Grab a stable tailwind executable from TailwindCss Releases.Most probably
tailwindcss-linux-x64 -
Make the downloaded file executable by
chmod +x tailwindcss-linux-x64 -
Enable Tailwind inside your
settings.pyfile underCompilerSettingsclassclass CompilerSettings:
TAILWIND_ENABLED = True # <-- Change to True -
Now when you execute
PYUI.buildtoolsadd a extra--settings settings.py --tailwindpath <your-tailwind-path>
The buildtools passes the converted html files to tailwind to compile global.css.Now you can use any tailwind classes freely.