MICRO BLOG

Micro Blog

How to have the brow­ser pick a con­tras­ting color in CSS

How to have the brow­ser pick a con­tras­ting color in CSS
Have you ever wis­hed you could wri­te simp­le CSS to decla­re a color, and then have the brow­ser figu­re out whe­ther black or white should be pai­red with that color? Well, now you can, with con­trast-color(). Here’s how it works.
https://​ift​.tt/​x​Z​1​F​90J

🎈 Worte haben Gewicht – wählt sie weise.
💬 0