Skip to content

fix(deps): migrate Tailwind CSS from v3 to v4#711

Open
wpfleger96 wants to merge 2 commits into
mainfrom
fix/tailwind-v4
Open

fix(deps): migrate Tailwind CSS from v3 to v4#711
wpfleger96 wants to merge 2 commits into
mainfrom
fix/tailwind-v4

Conversation

@wpfleger96
Copy link
Copy Markdown
Collaborator

@wpfleger96 wpfleger96 commented May 21, 2026

Summary

  • Replace tailwindcss v3 + autoprefixer with @tailwindcss/postcss v4 in both packages (autoprefixer is now built-in)
  • Replace deprecated tailwindcss-animate with tw-animate-css (pure CSS, not a plugin)
  • Migrate CSS directives from @tailwind base/components/utilities to @import "tailwindcss" with @config directive
  • Clean up tailwind.config.js — remove content array (v4 auto-detects), remove darkMode: ["class"] (v4 handles natively)
  • Rename shifted utility classes across 83 component files: shadow-smshadow-xs, rounded-smrounded-xs, outline-noneoutline-hidden, backdrop-blurbackdrop-blur-sm
  • @tailwindcss/typography v0.5.19 already supports Tailwind v4 — no version change needed
  • All custom CSS preserved (Tiptap editor styles, shimmer animation, Catppuccin theme variables)
  • Unblocks Renovate PR chore(deps): update dependency tailwindcss to v4 #668

Stacked on Vite v8 — merge pnpm and Vite PRs first, then this PR auto-retargets to main.

@wpfleger96 wpfleger96 requested a review from a team as a code owner May 21, 2026 21:02
Base automatically changed from fix/vite-v8 to main May 21, 2026 23:04
Replace tailwindcss v3 + autoprefixer with @tailwindcss/postcss.
Replace tailwindcss-animate with tw-animate-css (pure CSS).
Update CSS directives from @tailwind to @import "tailwindcss".
Rename shifted utility classes across 83 component files
(shadow-sm→shadow-xs, rounded-sm→rounded-xs, outline-none→outline-hidden,
backdrop-blur→backdrop-blur-sm).
Migrate from the legacy JS plugins array to the v4-native CSS @plugin
directive, which is the recommended approach for Tailwind v4.
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