@hsds/utils-color

9.0.8-beta.2 • 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.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @hsds/utils-color

    Weekly Downloads

    1,964

    Version

    9.0.8-beta.2

    License

    none

    Unpacked Size

    40.2 kB

    Total Files

    8

    Last publish

    Collaborators

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