@hsds/utils-color
v9.0.12
Published
This library is part of Help Scout's [@hsds](https://github.com/helpscout/hsds).
Downloads
3,676
Keywords
Readme
utils-color
This library is part of Help Scout's @hsds.
Includes:
isHex
lightThreshold
optimalTextColorValues
hexToRgb
hexToHsl
optimalTextColor
rgbToHsl
lightenDarkenColor
lighten
darken
getColorShade
rgba
getColor
getThemeBrandProp
defaultBrandColor
makeBrandColors
palette
text
: default, extraMuted, faint, muted, slightlyMuted, subtle,border
state
: danger, error, info, success, warningosx
link
default
palette
border
link
osx
state
text
Running unit tests
Run nx test utils-color
to execute the unit tests via Jest.