tailwindlabs / tailwindcss

A utility-first CSS framework for rapid UI development.
https://tailwindcss.com/
MIT License
82.35k stars 4.16k forks source link

Tailwind CSS not working well with django-weasyprint #11191

Closed ethernalarts closed 1 year ago

ethernalarts commented 1 year ago

Discussed in https://github.com/tailwindlabs/tailwindcss/discussions/11187

Originally posted by **ethernalarts** May 9, 2023 Hello. I am working on a django app using Tailwind CSS at the frontend. When outputing an HTML template as a PDF file using django-weasy print, Tailwind CSS stylesheet isn't applied and it looks bland, disorderly and ugly. The error log file showed a lot of "ignored" and "invalid" errors. Please has anyone come across this problem, and any ideas how to solve this? Thanks. Attached is a copy of the weasyprint log file. [weasyprint.log](https://github.com/tailwindlabs/tailwindcss/files/11429816/weasyprint.log)
adamwathan commented 1 year ago

Let's stick with the discussion for this one until we know it's really a bug in Tailwind itself.