chromajs

Installation
SKILL.md

chroma.js

Overview

chroma.js is a small JavaScript library for color conversion, color scales, mixing and WCAG contrast calculations. Current release is 3.2.0 (ES module package with a CommonJS build behind require). It ships no TypeScript types; they come from @types/chroma-js. Out-of-gamut or invalid input throws, so validate user-supplied strings with chroma.valid().

Instructions

npm install chroma-js
npm install -D @types/chroma-js

Use import chroma from "chroma-js" (ESM) or const chroma = require("chroma-js") (CommonJS).

Basic Color Operations

Installs
1
GitHub Stars
197
First Seen
11 days ago