407 private links
We can compute the amount of red, green and blue with the rgb() function. The same applies to color functions.
hsl() has limitations because the percieved color is not consistent accross hue, saturation and lightness values. That's why oklch comes in: it's a 2020 patch of the 1976 version of lch, that itself improves over hsl.
Also color-mix can be used in different color spaces. Transparency is available when two colors have a sum less than 100%, or mix one color with transparent.
In order to avoid repetition, custom functions is coming to CSS.
While some of what we looked at does require some setup — once it’s in place, we can create very robust systems, and, along with the static world of design software, it does beg the question if more design should be done directly in the browser.
#idea #project create the colors of a design system directly from the browser.