Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Jan 26, 2024
1 parent 2eec87e commit 5e56931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resolve CSS color
* [<system-color>](https://developer.mozilla.org/en-US/docs/Web/CSS/system-color)s are not supported
* `opt` **[object][94]?** options
* `opt.currentColor` **[string][93]?** color to use for `currentcolor` keyword
* `opt.format` **[string][93]?** one of `rgb`(default), `array`, `hex` or `hexAlpha`
* `opt.format` **[string][93]?** output format, one of `rgb`(default), `array`, `hex` or `hexAlpha`
* `hexAlpha` gets hex color with alpha channel, i.e. `#rrggbbaa`
* `opt.key` **any?** key e.g. CSS property `background-color`

Expand All @@ -47,7 +47,7 @@ parse CSS color
* `value` **[string][93]** color value
* `color-mix()` and [<system-color>](https://developer.mozilla.org/en-US/docs/Web/CSS/system-color)s are not supported
* `opt` **[object][94]?** options
* `opt.d50` **[boolean][95]?** xyz in d50 white point
* `opt.d50` **[boolean][95]?** get xyz values in d50 white point

Returns **[Array][96]<[number][97]>** `[x, y, z, a]` x|y|z|a: 0..1

Expand Down

0 comments on commit 5e56931

Please sign in to comment.