Closed janboddez closed 9 months ago
I.e., some buttons have .components-button.is-destructive
and then inside that specific CSS rule, the colors are set to a darkish red. So we'd either have to use that same class or set the same colors (which we do anyway, except we skip the CSS variable part).
What we can't do is just use a :root
-or-something-defined variable in some of our own CSS rules.
Then other colors (a
) are actually hardcoded, still.
Which I think means it's not wise too spend too much time on this at the moment. :-D
The block editor uses CSS vars for colors, etc. (maybe to eventually allow [easier] theming?), so we should look into that. Although it probably means using the editor’s classes (some variables are updated based on those, rather than the CSS properties themselves).