You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Django-tailwind with crispy-tailwind but after rendering the form, input CSS is not extract to main.css. That's why input field don't apply CSS properly. How to extract crispy input CSS to main CSS when Django-tailwind compiling CSS.
The text was updated successfully, but these errors were encountered:
shahriar350
changed the title
cripsy-tailwind css is not load to main css
crispy-tailwind CSS is not load to main CSS
Jul 8, 2021
Unfortunately I don't know Django-tailwind. I would suggest that you'll likely get a better response though asking in stack overflow, there are far more folk looking at that site than here. 👍
You need to tell django-tailwind to compile css classes in your python files (eg. forms.py). Assuming you have followed the installation instructions of django-tailwind, you should uncomment this line from theme/static_src/tailwind.config.js:
module.exports={contents: [
...
/** * Python: If you use Tailwind CSS classes in Python, uncomment the following line * and make sure the pattern below matches your project structure. */'../../**/*.py'],
....
I use Django-tailwind with crispy-tailwind but after rendering the form, input CSS is not extract to main.css. That's why input field don't apply CSS properly. How to extract crispy input CSS to main CSS when Django-tailwind compiling CSS.
The text was updated successfully, but these errors were encountered: