CSS Color String Parser and Generator for Chart.js
JSON →This library, `chartjs-color-string`, provides utilities for parsing and generating CSS color strings in various formats, including named colors, hex, rgb(a), and hsl(a). It outputs color components as numerical arrays. While it is part of the Chart.js ecosystem, its latest version, 0.6.0, was published over seven years ago, indicating a mature and stable, but infrequently updated, project. It supports modern CSS color string formats like `#rgba` and `#rrggbbaa` since version 0.6.0 and case-insensitive parsing of RGB(A) strings since 0.5.0. Its primary differentiator is its lightweight focus on string conversion, making it suitable for environments where a full-featured color manipulation library is not needed. The package should be considered in maintenance mode.
Traffic · last 30 days ↓50% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore