Skip to content

feat(site): add Tailwind docs page and playground example - #3541

Merged
diegomura merged 1 commit into
masterfrom
diegomura/tailwind-docs-page
Aug 27, 2026
Merged

feat(site): add Tailwind docs page and playground example#3541
diegomura merged 1 commit into
masterfrom
diegomura/tailwind-docs-page

Conversation

@diegomura

Copy link
Copy Markdown
Owner

Adds a Tailwind page to the v4 docs covering installation, createTw usage, theme customization, and the supported class subset, plus a live playground example wired into the site's example index under "Advanced".

To make the playground actually run Tailwind snippets, @react-pdf/ui now lists @react-pdf/tailwind as an optional peer dependency and lazily imports it on demand, matching how @react-pdf/math and @react-pdf/mermaid are already handled. Consumers who never import it install nothing extra; if it's missing, the existing "cannot import" playground error surfaces as before. Includes a patch changeset for @react-pdf/ui.

馃 Generated with Claude Code

Adds a Tailwind docs page with a live playground example, and lets
playground code import `@react-pdf/tailwind` as an optional lazy module
in `@react-pdf/ui`, alongside math and mermaid.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

馃 Changeset detected

Latest commit: f143add

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

This PR includes changesets to release 1 package
Name Type
@react-pdf/ui 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

@diegomura
diegomura merged commit 47670de into master Aug 27, 2026
15 checks passed
@diegomura
diegomura deleted the diegomura/tailwind-docs-page branch August 27, 2026 22:41
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.

1 participant