npm install @skchr/color
yarn add @skchr/color
bun add @skchr/color
deno add jsr:@skchr/color
Import functions from the package:
import { token, colors, hueshift } from "@skchr/color";
// Parse a color to hex
token("cyan"); // "#00ffff"
// Get Tailwind colors
colors("red"); // ['#fef2f2', '#fee2e2', ...]
// Generate a hue-shifted palette
hueshift("#3e0000"); // ['#ffffe1', '#ffdca5', ...]