Repository navigation
tailwind 4 oklch not compality with old browser
#15356
|
tailwind 4 |
Replies: 8 comments 8 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 👍🏻 |
|
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? |
|
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 |
|
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. |
|
Due to this issue, html2pdf throws error |
This comment was marked as disruptive content.
This comment was marked as disruptive content.
|
I created a site on the |
|
Tailwind v4 is a modern plague. I've lost count of how many tools it has reduced to inaccessible, gilded trinkets that cannot be used on a browser older than last Christmas. The developers of this CSS framework seem to lack an understanding that the web is built on progressive enhancement, the core of which is backward compatibility. Forcing the OKLCH color space without classic HEX or RGB fallback is nothing but a tech-fed myopia — all for a wide-gamut shade of blue invisible to the average user. |
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 👍🏻