@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.12331latest

Version History

VersionDownloads (Last 7 Days)Published
9.0.12331
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.22
9.0.6-prov.11
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.4425
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.33
8.2.21
8.2.1151
8.2.02
8.1.114
8.1.07
8.0.11
8.0.01
7.2.116
7.9.2-alpha.61
7.9.2-alpha.51
7.2.01
7.9.2-alpha.41
7.1.2-alpha.33
7.1.2-alpha.21
7.1.2-alpha.15
7.1.2-alpha.04
7.1.2-beta.01
7.1.128
7.1.1-beta.11
7.1.1-beta.01
7.1.1-alpha.01
7.1.01
7.0.01
5.3.0191
5.2.11,518
5.2.024
5.0.02
4.1.01
4.0.01

Package Sidebar

Install

npm i @hsds/utils-color

Weekly Downloads

705

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