Minor Changes
-
#3536
9c2e5119ee47e3e92beede0a12870f1ebe3ecc8eThanks @diegomura! - Add@react-pdf/tailwind, a Tailwind CSS to react-pdf style converter. Migrated fromreact-pdf-tailwindby Andreas Anckar, with the author's permission.On top of the original: breakpoint and orientation variants map onto react-pdf's media queries (
lg:p-4,portrait:), colour opacity is supported wherever a colour is accepted (bg-red-500/50,text-black/25), and utilities were added for react-pdf style properties that had no Tailwind mapping —aspect-*,line-clamp-*,float-*/clear-*,skew-*,size-*, and thefont-variant-numericutilities. Anything react-pdf can't draw — state variants likehover:, lengths likew-fit, the defaultfont-sansstacks — is reported as an unsupported class rather than emitted and crashing layout.
Patch Changes
- Updated dependencies [
10d8365e2eb8fc3987cf94d4d61a7559f4ba1dfb]:- @react-pdf/types@2.14.0