tailwind 4 oklch
not compality with old browser
#15356
-
tailwind 4 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hey! Tailwind 4 uses a lot of other features that aren’t compatible with older browsers so just changing this wouldn’t be enough to fix it. For v4 we’re targeting Safari 16.4 and above and recent versions of Chrome/Firefox. For older browsers you should stick with v3 for now 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
This blog post says Lightning CSS would transpile it in 4.0.
@adamwathan Is this Lightning CSS transpilation coming, or do you have a suggestion on how to add these as a fallback for those v4.0 devs who need to support older browsers? |
Beta Was this translation helpful? Give feedback.
-
Here's a starting point that I got my project running with. Not perfect, but good enough. If you find something broken, let me know and I might have another look. https://gist.github.com/alexanderbuhler/2386befd7b6b3be3695667cb5cb5e709 |
Beta Was this translation helpful? Give feedback.
-
In my case, I have to support those older browsers, but I don't want to stick with Tailwind 3 just because of it. By changing the colors to Check out this repo where I document those changes. |
Beta Was this translation helpful? Give feedback.
Hey! Tailwind 4 uses a lot of other features that aren’t compatible with older browsers so just changing this wouldn’t be enough to fix it. For v4 we’re targeting Safari 16.4 and above and recent versions of Chrome/Firefox. For older browsers you should stick with v3 for now 👍🏻