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

update examples to use lab/lch lightness as % #4

Merged
merged 1 commit into from
Apr 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update examples to use lab/lch lightness as %
  • Loading branch information
argyleink authored Apr 11, 2020
commit 6e1ecb07954fdde97c6fa7501153b1e2b208a9db
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ CSS, following the [CSS Color] specification.

```pcss
:root {
--firebrick: lab(40 56.6 39);
--firebrick-a50: lch(40 68.8 34.5 / 50%);
--firebrick: lab(40% 56.6 39);
--firebrick-a50: lch(40% 68.8 34.5 / 50%);
--gray-40: gray(40);
--gray-40a50: gray(40 / .5);
}
Expand Down Expand Up @@ -72,17 +72,17 @@ postcssLabFunction({ preserve: true })

```pcss
:root {
--firebrick: lab(40 56.6 39);
--firebrick-a50: lch(40 68.8 34.5 / 50%);
--firebrick: lab(40% 56.6 39);
--firebrick-a50: lch(40% 68.8 34.5 / 50%);
}

/* becomes */

:root {
--firebrick: rgb(178, 34, 34);
--firebrick: lab(40 56.6 39);
--firebrick: lab(40% 56.6 39);
--firebrick-a50: rgba(178, 34, 34, .5);
--firebrick-a50: lch(40 68.8 34.5 / 50%);
--firebrick-a50: lch(40% 68.8 34.5 / 50%);
}
```

Expand Down