CSS Color String Parser and Generator

JSON →
library 2.1.4 ·javascript
verified May 27, 2026

color-string is a focused utility library for parsing and generating CSS-compatible color strings, supporting various formats like RGB, HSL, HWB, and named colors. The current stable version is 2.1.4. The library maintains a reasonably active release cadence, with recent updates introducing features like case-insensitive string checks and improved parsing for modern CSS color notations, alongside crucial bug fixes. Its key differentiators include its lightweight nature, explicit support for multiple color models, and direct conversion capabilities to and from different string representations, making it a reliable choice for frontend and backend color manipulation tasks where CSS compatibility is paramount. It ships with TypeScript types for enhanced developer experience.

total hits 21
actors 9 distinct systems
last hit 2d ago Bingbot
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France