CssToInlineStyles
CssToInlineStyles copied to clipboard
Any plans on adding CSS variables support?
https://developer.mozilla.org/en-US/docs/Web/CSS/var()
what do you need exactly as support for CSS variables ?
I was thinking about
:root {
--fg-color: rgb(55, 53, 47);
}
.notion {
color: var(--fg-color);
}
Which results in
<div class="notion" style="color: rgb(55, 53, 47)"></div>
that issue already supported?
Doing that will require building a more complete CSS engine, to parse values of properties (which are not parsed currently). While I'm open to contributions for that, I won't have the resources to do such big work myself.