Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Dec 16, 2024
1 parent 68b1329 commit e7a1265
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ resolves CSS color
e.g. `customProperty: { '--some-color': '#008000' }`
* and/or `callback` function to get the value of the custom property,
e.g. `customProperty: { callback: someDeclaration.getPropertyValue }`
* `opt.dimension` **[object][135]?**
* dimension, e.g. for converting relative length to pixels
* pair of unit and it's value as a number in pixels,
e.g. if `1em === 12px`, `1rem === 16px` and `100vw === 1024px`,
then `dimension: { em: 12, rem: 16, vw: 10.24 }`
* and/or `callback` function to get the value as a number in pixels,
e.g. `dimension: { callback: convertUnitToPixel }`
* `opt.format` **[string][133]?**
* output format, one of below
* `computedValue` (default), [computed value][139] of the color
Expand Down

0 comments on commit e7a1265

Please sign in to comment.