github diegomura/react-pdf @react-pdf/tailwind@0.2.0

latest release: @react-pdf/ui@1.0.0
4 hours ago

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

Don't miss a new react-pdf release

NewReleases is sending notifications on new releases.