Could inline styles be generally set with CSS variables?

Inline styles are sometimes set using CSS variables, but other times declared directly for the property. I think it would be nice if the pattern with CSS variables would be generally adopted. It seems it’s perfectly backward compatible?

E.g. like this on the category banners:

3 Likes

Sure, we generally want CSS variables in more places. If there are other places this would be convenient for that don’t currently have them, let us know!

This uses --category-banner-background and --category-banner-color

2 Likes