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 689769b commit 2eec87e
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,8 +28,8 @@ 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]?** `rgb`(default), `array`, `hex` or `hexAlpha`
* `hexAlpha` is a hex color notation with alpha channel, i.e. `#rrggbbaa`
* `opt.format` **[string][93]?** 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`

Returns **([string][93]? | [Array][96])** `rgba?()`, `[r, g, b, a]`, `#rrggbb(aa)?`, `null`, or if `key` is specified, `[key, rgba?()|[r, g, b, a]|#rrggbb(aa)?|null]`
Expand Down

0 comments on commit 2eec87e

Please sign in to comment.