refactor(*): migrate deprecated Tailwind v3 utility classes to v4#1034
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (38)
📝 WalkthroughWalkthroughThis PR performs a broad Tailwind CSS utility class migration across components and routes: ChangesTailwind Utility Class Migration
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
tanstack-com | abf86e8 | Commit Preview URL Branch Preview URL |
Jul 08 2026, 12:33 AM |
6670e67 to
abf86e8
Compare
Summary
This project uses Tailwind CSS v4 (
tailwindcss@^4.2.2,@tailwindcss/vite), but several v3-era utility classes that were removed or renamed in v4 remained in the codebase. This PR migrates them.The changes are split into three logical commits.
Changes
1.
fix(admin/roles):bg-opacity-50→bg-black/50(1 occurrence)bg-opacity-*was removed in v4. The class was no longer generated, so the modal backdrop lost its opacity. Replaced with the slash opacity modifier.src/routes/admin/roles.$roleId.tsx2.
refactor(*):flex-shrink-0→shrink-0(33 occurrences, 16 files)flex-shrink-*was removed in v4 in favor ofshrink-*.3.
refactor(*):bg-gradient-to-*→bg-linear-to-*(60 occurrences, 25 files)bg-gradient-*was renamed tobg-linear-*in v4 (to distinguish it from the new radial/conic gradient utilities).Stats
bg-opacity-50→bg-black/50: 1flex-shrink-0→shrink-0: 33bg-gradient-to-*→bg-linear-to-*: 60Verification
vite buildandtsc --noEmit: both pass.flex-shrink-0/bg-gradient-to-*/bg-opacity-*classes, new utilities render correctly, no visual regressions, and no CSS-related console errors.bg-black/50resolves correctly (oklab(0 0 0 / 0.5)).Summary by CodeRabbit