AccentColor and AccentColorText

Note

Message thread

Miriam Suzanne wrote on

Continued from previous comment.

We can’t set accentColor for good reason. That gives us CSS access to the operating system accent color, which can also be set by users.

And we don’t necessarily need CSS access to the accent-color because… we set it. We can set it from a variable, and access that variable if we want.

Matthias Zöchling wrote on

In reply to: @mia@front-end.social.

Wow, thanks, TIL! I’m using #CSS system colors frequently when tweaking things for High Contrast Mode (a.k.a. Contrast Themes), but did not know about AccentColor and AccentColorText.

I’ve updated my old blog post about accent-color and linked to your toot.

Get involved

Have your say on Mastodon, or simply share this thread.