File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,24 @@ Introduction {#intro}
29
29
Currently Sass, calc() on HSL values, or PostCSS is used to do this.
30
30
Preprocessors are unable to work on dynamically adjusted colors,
31
31
and all current solutions are restricted to the sRGB gamut
32
- and to the perceptual limitations of HSL.
32
+ and to the perceptual limitations of HSL
33
+ (colors are bunched up in the color wheel,
34
+ and two colors with visually different lightness,
35
+ like yellow and blue,
36
+ can have the same HSL lightness).
33
37
34
38
This module adds three functions:
35
39
''color-mix'' ,
36
40
''color-contrast''
37
41
and a way to modify existing colors.
38
42
43
+ The perceptually uniform ``lch()`` colorspace
44
+ is used for mixing by default,
45
+ as this has no gamut restrictions
46
+ and colors are evenly distributed.
47
+ However, other colorspaces can be specified,
48
+ including ``hsl()`` or ``srgb`` if desired.
49
+
39
50
Issue(3187): there are two proposals for color modification.
40
51
The CSS WG expects that the best aspects of each
41
52
will be chosen to produce a single eventual solution.
You can’t perform that action at this time.
0 commit comments