Socket
Socket
Sign inDemoInstall

@hsds/utils-color

Package Overview
Dependencies
Maintainers
7
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hsds/utils-color

This library is part of Help Scout's [@hsds](https://github.com/helpscout/hsds).


Version published
Weekly downloads
565
decreased by-24.06%
Maintainers
7
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 04 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc