New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support CSS variables in color function #3611
Comments
This can't be done (yet). The value of CSS variables is only known at runtime by the browser and the current browsers do not support equivalent color functions. You can assign colors generated by less to css variables, but not the other way around. |
While it is possible to assign LESS variables to CSS it's still breaking the allowance for LESS syntax. I personally much prefer how LESS handles variables compared to CSS but since the colors are precompiled they aren't usable for the theme detection functionality at all. When using I get that without official support this is not fixable but I believe LESS should offer the option to convert to CSS variables on assembly time. Are there plans for something like that? I really don't want to have to switch to CSS variables in all the projects intended to support dark theme. |
Along the same lines as this request, it would be very nice to have more visibility at compile time as to which LESS variable containing a CSS variable caused an exception. For instance, given a LESS variable that is defined as Having a clear log of how the |
This looks very similar to #3563 |
Looks like #3721 |
looks like #3551 |
for the colorful theme
The text was updated successfully, but these errors were encountered: