DEV Community

Discussion on: CSS Variables and Redis: How color customization is implemented on Forem

Collapse
 
s_aitchison profile image
Suzanne Aitchison

This is very cool! Did you consider setting the default font colour for buttons etc to black when the chosen brand colour didn't meet the necessary contrast with white text? Just wondering as I've noticed in working with the React material-ui library this is what they do to adjust to the primary brand colour πŸ€”

Collapse
 
ben profile image
Ben Halpern

Currently it only allows β€œdark” colors, but yeah I think a follow up will be to allow light colors and likewise change the color to black (or sufficiently dark complementary colors.)

Collapse
 
s_aitchison profile image
Suzanne Aitchison

Nice, and the way you guys have implemented it is totally open to that kind of extension later.

I love stuff like this that makes users' lives easier and promotes accessibility at the same time β™₯️