Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 4b6b237

Browse files
authored
update examples to use lab/lch lightness as % (#4)
1 parent 8ef420d commit 4b6b237

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ CSS, following the [CSS Color] specification.
1010

1111
```pcss
1212
:root {
13-
--firebrick: lab(40 56.6 39);
14-
--firebrick-a50: lch(40 68.8 34.5 / 50%);
13+
--firebrick: lab(40% 56.6 39);
14+
--firebrick-a50: lch(40% 68.8 34.5 / 50%);
1515
--gray-40: gray(40);
1616
--gray-40a50: gray(40 / .5);
1717
}
@@ -72,17 +72,17 @@ postcssLabFunction({ preserve: true })
7272

7373
```pcss
7474
:root {
75-
--firebrick: lab(40 56.6 39);
76-
--firebrick-a50: lch(40 68.8 34.5 / 50%);
75+
--firebrick: lab(40% 56.6 39);
76+
--firebrick-a50: lch(40% 68.8 34.5 / 50%);
7777
}
7878
7979
/* becomes */
8080
8181
:root {
8282
--firebrick: rgb(178, 34, 34);
83-
--firebrick: lab(40 56.6 39);
83+
--firebrick: lab(40% 56.6 39);
8484
--firebrick-a50: rgba(178, 34, 34, .5);
85-
--firebrick-a50: lch(40 68.8 34.5 / 50%);
85+
--firebrick-a50: lch(40% 68.8 34.5 / 50%);
8686
}
8787
```
8888

0 commit comments

Comments
 (0)