Colors
import { darken, hexToRgb, isValidHex } from '@rtorcato/js-common/colors'
Exports
| Name | Summary |
|---|---|
darken | Darkens a hex color by a given percentage. |
hexToRgb | Converts a hex color string to an RGB object. |
isValidHex | Converts a hex color string to an HSL object. |
lighten | Lightens a hex color by a given percentage. |
matchingTextColor | Generates a random color with a given alpha value. |
randomColor | Generates a random hex color string. |
rgbToHex | Converts RGB values to a hex color string. |