janboddez / share-on-mastodon

Easily share WordPress posts on Mastodon.
https://jan.boddez.net/wordpress/share-on-mastodon
GNU General Public License v3.0
39 stars 5 forks source link

Use CSS variables #83

Closed janboddez closed 9 months ago

janboddez commented 11 months ago

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).

janboddez commented 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