caramelize
v0.0.1
Published
A small, growing family of components and utilities.
Readme
caramelize
A small, growing family of components and utilities. Early stage — this is the first real utility, more will follow.
Install
npm install caramelizeUsage
import { caramelize } from "caramelize";
caramelize("#3366cc"); // shifted halfway toward orange
caramelize("#3366cc", 1); // fully orangecaramelize(color: string, amount = 0.5): string shifts a hex color toward
orange. amount is clamped to 0–1, where 0 returns the input color unchanged
and 1 returns pure orange.
