@hsds/utils-color

9.0.12 • Public • Published

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, warning
  • osx
  • link
  • default
    • palette
    • border
    • link
    • osx
    • state
    • text

Running unit tests

Run nx test utils-color to execute the unit tests via Jest.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
9.0.12236latest

Version History

VersionDownloads (Last 7 Days)Published
9.0.12236
9.0.12-beta.01
9.0.111
9.0.101
9.0.91
9.0.81
9.0.8-beta.31
9.0.8-beta.21
9.0.8-beta.11
9.0.8-beta.01
9.0.71
9.0.7-esm.11
9.0.7-esm.01
9.0.61
9.0.6-prov.31
9.0.6-prov.21
9.0.6-prov.12
9.0.6-prov.01
9.0.51
9.0.41
9.0.31
9.0.21
9.0.2-next.41
9.0.2-next.31
9.0.2-next.21
9.0.2-next.11
9.0.2-next.01
9.0.11
9.0.01
8.2.5-beta.21
8.2.5-beta.11
8.2.5-beta.01
8.2.4285
8.2.4-rc.51
8.2.4-rc.41
8.2.4-rc.31
8.2.4-rc.21
8.2.4-rc.11
8.2.4-rc.01
8.2.4-beta.21
8.2.4-beta.11
8.2.4-beta.01
8.2.31
8.2.21
8.2.191
8.2.01
8.1.11
8.1.01
8.0.11
8.0.01
7.2.151
7.9.2-alpha.61
7.9.2-alpha.51
7.2.01
7.9.2-alpha.41
7.1.2-alpha.31
7.1.2-alpha.28
7.1.2-alpha.11
7.1.2-alpha.01
7.1.2-beta.01
7.1.12
7.1.1-beta.11
7.1.1-beta.02
7.1.1-alpha.01
7.1.01
7.0.01
5.3.01
5.2.11
5.2.01
5.0.01
4.1.01
4.0.01

Package Sidebar

Install

npm i @hsds/utils-color

Weekly Downloads

741

Version

9.0.12

License

none

Unpacked Size

41.1 kB

Total Files

8

Last publish

Collaborators

  • kdipaolo
  • luketlancaster
  • charca
  • justin-helpscout
  • jjanczyk
  • tinkertrain
  • helpscout