Skip to content

fix(tailwind): explain why box-shadow utilities are skipped - #3631

Open
maiconhenriquefa wants to merge 4 commits into
diegomura:masterfrom
maiconhenriquefa:patch-1
Open

maiconhenriquefa wants to merge 4 commits into
diegomura:masterfrom
maiconhenriquefa:patch-1

Conversation

@maiconhenriquefa

Copy link
Copy Markdown

Closes #3558

shadow-* and ring-* are valid Tailwind classes, but react-pdf can't draw box shadows, so tw() skips them. Today that shows up as Invalid class "shadow-lg", which reads like a typo or a bug.

The behavior stays the same (the class is skipped and the warning shows once per class), only the message changes for box-shadow utilities:

@react-pdf/tailwind: Unsupported class "shadow-lg": react-pdf can't draw box shadows

It covers shadow-*, inset-shadow-*, ring-* and inset-ring-*. I also added them to the unsupported list in the README, plus a test and a changeset.

@vercel

vercel Bot commented Nov 18, 2026

Copy link
Copy Markdown

@maiconhenriquefa is attempting to deploy a commit to the diegomura Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f8bca6c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@react-pdf/tailwind Patch
@react-pdf/ui Patch
@react-pdf/examples Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tailwind class shadow-* is not recognised

1 participant