- Issue created by @hitfactory
- 🇦🇹Austria hudri Austria
This is currently not possible. Technically it is possible to use Tailwind JIT with admin themes too. But I myself have stopped doing this for performance reasons, because especially on the node edit form with Paragraphs it was unbearingly slow. (Paragraphs is doing a lot of Ajax calls, and every single Ajax call was Tailwind compiled, so every single click took 2-3 seconds).
Therefore I would not recommend this approach, and currently have no plans to implement this. MR's welcome though :-)
The workaround I did for my projects was creating a gin_custom.css → : First I exported all config. Then I created a static CSS file, using the
config/sync/
directory and themy_theme/templates/
directory as content source for the Tailwind compiler to create that static gin_custom.css file. This is currently the best tradeoff (it is very fast, but includes only pre-configured style (e.g. in your CKeditor), but no on-the-fly styles created by your editor).