Package Exports
- colord
Readme
colord is a tiny color manipulation and conversion tool (is not production ready yet)
Benchmarks
Name | Bundle size | Bundle size (gzip) | Dependencies |
---|---|---|---|
colord | |||
tinycolor2 | |||
color |
Roadmap
- Parse and convert Hex, RGB(A), HSL(A), HSV(A)
- Saturate, desaturate, grayscale
- Trim an input value
- Clamp input numbers to resolve edge cases (e.g.
rgb(256, -1, 999, 2)
) -
brightness
,isDark
,isLight
- Set and get
alpha
- Plugin API
- 4 and 8 digit Hex
-
lighten
,darken
-
invert
- CSS color names (via plugin)
- A11y and contrast utils (via plugin)