You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Tailwind team 👋
I'm facing a compatibility issue when importing a precompiled design system built with Tailwind v3 into a project using Tailwind v4.
Setup
Problem
Once imported, several Tailwind v4 utilities stop working properly — e.g.:
Cause
Tailwind v3 preflight sets global border defaults:
Tailwind v4’s preflight, however, resets borders differently:
The v3 preflight overrides v4’s expectations, breaking CSS variable–based utilities like border-red-500.
Temporary workaround
As a temporary fix, I’m using the following override to revert the v3 preflight impact:
This restores most v4 utility behavior, but it’s not ideal or sustainable.
Questions
Thanks for your time and guidance 🙏
Beta Was this translation helpful? Give feedback.
All reactions