Forum Feature requests

Support CSS @layer and @property rules (make Prince compatible with Tailwind)

eric@govwell.com
I'm a big fan of your software, thank you for making PDF generation easy!

I want it to be even easier. I have for years used React to generate the HTML I pass to Prince, which makes it relatively simple to create shared components and a printed document design system. This keeps document writing simple and maintainable.

I find TailwindCSS to be a really developer-friendly framework for theming and styling. I was hoping to start using it in my document generation system, but when I tried to run the HTML through Prince I got warnings about the CSS 5 @layer and @property rules (and possibly other things) that aren't supported by PrinceXML.

https://drafts.csswg.org/css-cascade-5/#layering
https://drafts.css-houdini.org/css-properties-values-api/#at-property-rule
chrisryland
Yes, just noticed that Apple has agreed to include Tailwind CSS in Safari so there's no loading overhead.

If that's not evidence of domination, don't know what is...
mimecine
Tailwind v4 doesn't work for the above reasons, but Tailwind v3 mostly does. You get a few warnings about unsupported pseudo-* and properties in their base reset but that's it.
https://v3.tailwindcss.com/

Being able to use v4 would be great though
wezm
Yes, just noticed that Apple has agreed to include Tailwind CSS in Safari so there's no loading overhead.

Just to clarify for anyone else reading this, it appears to have been a joke/April Fools. See:
chrisryland
Ouch, got me!