121 releases
Uses new Rust 2024
| new 0.0.14-canary.fac2d44a37 | Jan 4, 2026 |
|---|---|
| 0.0.14-canary.b91df5b9a8 | Jan 3, 2026 |
| 0.0.11-canary.efc7e551f1 | Dec 29, 2025 |
| 0.0.7-canary.f08affa44d | Oct 27, 2025 |
| 0.0.4-canary… | Sep 30, 2025 |
#1248 in Parser implementations
46 downloads per month
Used in 4 crates
(3 directly)
99KB
3K
SLoC
chromashift
A library for converting between various color formats and color spaces.
Features
- RGB/sRGB: Standard RGB with optional alpha channel
- HSL: Hue, Saturation, Lightness with intuitive manipulation
- HSV/HSB: Hue, Saturation, Value/Brightness for color pickers
- HWB: Hue, Whiteness, Blackness as specified in CSS Color Level 4
- LAB: Perceptually uniform CIE Lab* color space
- LCH: Lightness, Chroma, Hue cylindrical representation of LAB
- XYZ: CIE XYZ tristimulus values for device-independent color
Optional Features
anstyle- Enables converting to anstyle.
Part of csskit
This crate is part of the csskit project, a comprehensive CSS toolchain.
For more information, visit csskit.rs.
License
MIT
Dependencies
~49KB