gka/chroma.js

JavaScript library for all kinds of color manipulations

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 59 minutes ago
Added to GitGenius on September 5th, 2026
Created on December 12th, 2011
Open Issues & Pull Requests: 75 (+0)
GitHub issues: Enabled
Number of forks: 549
Total Stargazers: 10,578 (+0)
Total Subscribers: 130 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

Chroma.js is a small-ish zero-dependency JavaScript library for color conversions and color scales.

The library solves the problem of programmatically manipulating colors in web applications. It provides functions to convert between color spaces, create and interpolate color scales, and apply transformations to colors. The tool supports multiple color spaces including RGB, HSL, Lab, and Lch, with Lab and Lch interpolation producing perceptually smoother color transitions than RGB-based approaches. It enables construction of custom color scales with features like quantile-based domains and logarithmic scaling, and includes built-in access to Color Brewer palettes.

Chroma.js suits projects that need sophisticated color handling in the browser or Node.js environments. It works well for data visualization, where perceptually accurate color scales matter, and for any application requiring color space conversions or dynamic color manipulation. The README mentions similar libraries including Chromatist, d3.js, and language-specific alternatives like GrapeFruit and colors.py, but makes no direct performance or feature comparisons. The tool can be installed via npm, used directly in browsers through a hosted CDN version, or integrated into SASS workflows through a companion package.

The project maintains a measured development pace focused on stability rather than frequent updates. The maintainer has explicitly stated that long gaps between commits do not indicate abandonment and that bugs will be fixed with new features arriving periodically. The tool includes comprehensive interactive documentation alongside a static markdown version, and the project welcomes contributions through an active Discord community channel. Build tooling supports compilation from source, automated testing, and documentation generation with local preview capabilities.