3 ms·
> All of these features are available today, as of this reading, with every major browser supporting them in the current version > This mixes your primary colo
by airstrike 3y ago
> All of these features are available today, as of this reading, with every major browser supporting them in the current version
> This mixes your primary color with 50% white, in the sRGB space. You can use other, newer, better color spaces too, such as OKLCH, which is my favorite.
Relative OKLCH colors aren't available on Firefox as of today: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch#browser_compatibility https://developer.mozilla.org/en-US/docs/Web/CSS/color_value...
Here's a page with example gradients in SRGB and OKLCH, in which the second gradient does not show if viewed on Firefox: https://www.learnwithjason.dev/blog/oklch-better-color-css-browser/ https://www.learnwithjason.dev/blog/oklch-better-color-css-b...