Skip to content

Conversation

@gabrielmfern
Copy link
Member

@gabrielmfern gabrielmfern commented Dec 8, 2025

This is exclusive to the UI, so no changes to any components or anything related to user code.

The process for this was to first run the migration script

npx @tailwindcss/upgrade

And then, started migrating the remaining things we had in the JS config to the globals.css file. I also followed the instructions in https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor to maintain the pointer cursor for all button-like elements.


Summary by cubic

Upgrade preview-server UI to Tailwind CSS v4. Migrates theme and utilities into CSS, updates classes, and preserves v3 visuals (button cursor, border color).

  • Refactors

    • Removed tailwind.config.ts; defined theme, keyframes, and arrow-hide via @theme/@Utility in globals.css.
    • Updated class names for v4 (e.g., bg-linear-to-*, w-dvw/h-dvh, outline-hidden, rounded-sm/xs, grow/shrink) and adjusted aria selectors.
    • Added base-layer compatibility (default border-color) and pointer cursor for buttons per upgrade guide.
    • Stopped importing Tailwind config in code; use TailwindConfig from @react-email/tailwind.
    • Enabled Tailwind directives parsing in Biome (css.tailwindDirectives).
  • Dependencies

    • Bumped tailwindcss to 4.1.17.
    • Added @tailwindcss/postcss and updated postcss.config; removed autoprefixer.
    • Updated lockfile to reflect new Tailwind v4 toolchain.

Written for commit 3740910. Summary will update automatically on new commits.

@gabrielmfern gabrielmfern requested a review from a team December 8, 2025 15:17
@gabrielmfern gabrielmfern self-assigned this Dec 8, 2025
@gabrielmfern gabrielmfern requested review from Cisneiros and removed request for a team December 8, 2025 15:17
@changeset-bot
Copy link

changeset-bot bot commented Dec 8, 2025

🦋 Changeset detected

Latest commit: 3740910

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

This PR includes changesets to release 2 packages
Name Type
@react-email/preview-server Patch
react-email 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

@vercel
Copy link

vercel bot commented Dec 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-email Ready Ready Preview Comment Dec 8, 2025 3:22pm
react-email-demo Ready Ready Preview Comment Dec 8, 2025 3:22pm

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​tailwindcss/​postcss@​4.1.1710010010099100

View full report

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 8, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/preview-server@2720

commit: 3740910

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 23 files

@gabrielmfern gabrielmfern merged commit 6f5cb91 into canary Dec 8, 2025
17 of 18 checks passed
@gabrielmfern gabrielmfern deleted the chore/update-to-tailwindcss-v4 branch December 8, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants