Skip to content

Migrate Tailwind CSS from v3.4 to v4.3 with updates and fixes#679

Merged
jamespepper81 merged 2 commits into
mainfrom
dev
Jun 30, 2026
Merged

Migrate Tailwind CSS from v3.4 to v4.3 with updates and fixes#679
jamespepper81 merged 2 commits into
mainfrom
dev

Conversation

@jamespepper81

Copy link
Copy Markdown
Contributor

No description provided.

jamespepper81 and others added 2 commits June 30, 2026 09:25
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)
@jamespepper81 jamespepper81 merged commit ed7ac0b into main Jun 30, 2026
6 checks passed
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