Migrate Tailwind CSS from v3.4 to v4.3 with updates and fixes#679
Merged
Conversation
Performs the full v3 -> v4 migration so the Dependabot bump (#597) is safe to ship; merging the version bump alone would have broken the build. - Run official @tailwindcss/upgrade codemod: @tailwind directives -> @import "tailwindcss", utility renames across 49 files (shadow/rounded scale, bg-gradient-to-* -> bg-linear-to-*, flex-grow/shrink -> grow/shrink, outline-none -> outline-hidden), and PostCSS swap to @tailwindcss/postcss (autoprefixer dropped, now bundled in v4). - Retain the existing theme via @config '../../tailwind.config.ts' in globals.css (lowest-risk path; preserves the hsl(var()) shadcn color map, beam keyframes/animations, boxShadow.glow, container, borderRadius). - Replace unmaintained tailwindcss-animate with tw-animate-css (v4-native, pure-CSS; same animate-in/fade/slide/zoom utilities). - Fix codemod false-positive: shadcn Button variant="outline" was wrongly rewritten to "outline-solid" in glossary/page.tsx. - Update docs (CLAUDE.md, README, AGENTS) to reflect v4 + remove the "do not upgrade to v4" rule. Verified: npm run ci (lint+typecheck+test+webpack build) passes; dev (Turbopack) renders light + dark correctly with themed colors, gradients, shadows, glow, and animations. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat: migrate Tailwind CSS v3.4 → v4.3 (implements #597)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.