Skip to content
1 min read · 86 words

@nhtio/adk/batteries/tools/color

Pre-constructed tools for color conversion and palette-oriented calculations.

Remarks

Pre-constructed bundled tools for the color category. Import individually, the whole category, or import every tool via @nhtio/adk/batteries.

Variables

VariableDescription
colorAdjustToolLighten or darken a colour by a percentage of HSL lightness.
colorContrastToolCompute the WCAG 2.1 contrast ratio between two colours.
colorSchemeToolGenerate a colour palette from a base colour using a named harmony.