Conversation
- Use @import tailwindcss, @theme, and @custom-variant for class-based dark mode - Switch PostCSS to @tailwindcss/postcss; remove autoprefixer - Remove duplicate universal reset; rely on Preflight and pointer base styles - Map previous tailwind.config theme to CSS; delete tailwind.config.ts - Update renamed v4 utilities (shadow-sm, outline-none) and tests Co-authored-by: Domenik Töfflinger <dmnktoe@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 30 minutes and 21 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (11)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #284 +/- ##
=======================================
Coverage 65.70% 65.70%
=======================================
Files 62 62
Lines 729 729
Branches 153 153
=======================================
Hits 479 479
Misses 250 250 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
This change upgrades the project to Tailwind CSS v4 and removes the hand-rolled universal reset (
* { box-sizing, margin, padding }) in favor of Preflight, which is the supported baseline in Tailwind.What changed
@tailwindcss/postcss;autoprefixerwas removed (handled by Tailwind v4).globals.cssuses@import "tailwindcss", a CSS-first@themeblock for the previousextendtheme (colors,font-primary/font-secondary), and@custom-variant darksodark:utilities follow theclassstrategy used bynext-themes(see dark mode).tailwind.config.tswas removed; theme lives in CSS per v4 best practice.var(--color-*)::root/.darkstill set--color-bgand friends sofill-[var(--color-bg)]and similar keep working, while theme colors resolve from--palette-*to avoid circularvar()references in@theme.shadow-sm→shadow-xsandoutline-none→outline-hiddenwhere used; tests were updated accordingly.cursor: pointer(v4 Preflight changes default button cursor).Verification
pnpm lintandpnpm testpass.pnpm run buildfails in this environment on missing Strapi URL for/articles/[slug]; that appears to be an existing data-collection requirement, not caused by the Tailwind upgrade.Notes
If you need the old v3 look for placeholder or border defaults, the upgrade guide documents optional base-layer snippets to restore them.