Login
From:
A Beautiful Site
(Uncensored)
subscribe
Better Buttons with color-mix() and Custom Properties
https://www.abeautifulsite.net/posts/better-buttons-with-color-mix-and-custom-properties/
links
backlinks
Roast topics
Find topics
Find it!
Let's build a button that accepts one color and calculates its hover and focus states automatically. For this experiment, we'll use CSS Custom Properties, color-mix(), and OKLCH to ensure that tints and shades are perceptually uniform.