Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
psygn89
· 3y ago · 0 comments
I wish CSS had a dynamic color property that will update the font color to white or black (or your choosing) depending on the background. For now I have to either calculate it with sass or js (when the users can change colors on the fly).
Comments
[–]
TheAngush
3y ago
There's a spec proposal for precisely that. It's in Colour Level... 6, I believe?
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value...
[–]
psygn89
OP
3y ago
Awesome! Thanks for letting me know.