Skip to content

@react-pdf/tailwind@0.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Aug 23:04
· 8 commits to master since this release
2c0b6d4

Minor Changes

  • #3536 9c2e5119ee47e3e92beede0a12870f1ebe3ecc8e Thanks @diegomura! - Add @react-pdf/tailwind, a Tailwind CSS to react-pdf style converter. Migrated from react-pdf-tailwind by 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 the font-variant-numeric utilities. Anything react-pdf can't draw — state variants like hover:, lengths like w-fit, the default font-sans stacks — is reported as an unsupported class rather than emitted and crashing layout.

Patch Changes