v4 - Are CSS variables required to be supported by Browser? #16413
Replies: 2 comments 3 replies
-
Yep, v4 leans even more heavily into CSS variables. Apart from that though, it uses even more newer CSS features. So if you're using a browser that does not support CSS variables, you're going to have an even worser time in v4 probably. |
Beta Was this translation helpful? Give feedback.
-
Take a look at this PostCSS plugin: https://github.com/metonym/postcss-inline-css-vars Not sure if you'll be able to use it directly in your project but that is the approach I would take if I was on your shoes. Perhaps there is an equivalent solution for Lightning CSS (sorry but I'm not familiar with the ecosystem). Also not familiar with the v4 codebase but there might be a way to inline custom properties (make sure to check the docs and the codebase). It's been a while since I last contributed anything significant to the core framework lol |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know it seems like an odd question, but here it goes: 😇
I'm working on the project that uses proprietary Browser that does not support CSS vars. 😭
Using
v3
I was able to configure TCSS such that its not an issue (gradients and other utils that require vars is still an issue, and I was able to disable those utils) , but am curious if its still the case withv4
since I'd really like us to move tov4
without spending too much time investigating it first. 😇I'd appretiate if TCSS devs coiuld chime in...
@MattStypa @RobinMalfait @reinink @hacknug @lukewarlow
Thank a bunch! 🙏
PS, please feel free to tag devs who could help.
Beta Was this translation helpful? Give feedback.
All reactions