Skip to content

feat(web): use tailwindcss v4#3021

Open
gabrielmfern wants to merge 4 commits intocanaryfrom
feat/use-tailwind-v4-in-web
Open

feat(web): use tailwindcss v4#3021
gabrielmfern wants to merge 4 commits intocanaryfrom
feat/use-tailwind-v4-in-web

Conversation

@gabrielmfern
Copy link
Member

@gabrielmfern gabrielmfern commented Mar 5, 2026

Summary by cubic

Upgraded the web app to Tailwind CSS v4 and migrated classnames to the new syntax. Pinned Tailwind and the PostCSS plugin to 4.1.18 and added a base CSS rule to keep v3-like border colors.

  • Dependencies

    • Pinned tailwindcss to 4.1.18 in the workspace catalog and lockfile.
    • Added @tailwindcss/postcss 4.1.18 to the catalog; switched PostCSS in web and preview-server; removed autoprefixer.
    • Updated globals.css to use @import "tailwindcss" and @config; added a base border-color override.
  • Refactors

    • Migrated utilities to v4: mask-[…], bg-linear-to-, dvh/dvw, z-, ring-3, outline-hidden, rounded-xs, shadow-xs, transition-discrete.
    • Adopted new size tokens/shorthands (e.g., w-50/w-90, md:max-w-160/184); replaced bracketed values where possible.
    • Updated variants/selectors and focus styles: data-placeholder:…, [&_svg]:hover:…, focus-visible/focus-within outline-hidden.

Written for commit 1ed28a4. Summary will update on new commits.

@gabrielmfern gabrielmfern requested review from a team and joaopcm and removed request for a team March 5, 2026 21:06
@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2026

⚠️ No Changeset found

Latest commit: 1ed28a4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Mar 5, 2026

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

Project Deployment Actions Updated (UTC)
react-email Ready Ready Preview, Comment Mar 5, 2026 9:23pm
react-email-demo Ready Ready Preview, Comment Mar 5, 2026 9:23pm

Request Review

@socket-security
Copy link

socket-security bot commented Mar 5, 2026

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​tailwindcss/​postcss@​4.1.17 ⏵ 4.1.1810010010098100

View full report

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 5, 2026

Open in StackBlitz

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

commit: afda970

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 58 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

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