PackageTrack
Sign in Get early access

csscolorparser

CSS color parser library

0.8.3 21M downloads/mo #2056 most downloaded on crates.io mazznoer/csscolorparser-rs

What this package is like to depend on

Last release 5 months ago

09 Mar 2026

Ships unpredictably

gaps range from 3 weeks to 2.1 years

Most releases are documented

notes for 10 of 15 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

15 releases · first in 2020

4 releases in the last 12 months

see the full history below

Release timeline

15 releases · Dec 2020 to Mar 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 15
  1. 0.8.3 09 Mar 2026

    Nothing published for this version

  2. 0.8.2 01 Feb 2026
    Release notes
    • Parse none value in absolute color format.
    • Changed impl Display for Color to hex color format.
    • Remove unnecessary allocations.
    Open source →
  3. 0.8.1 28 Nov 2025
    Release notes

    Changed

    • Improvements in parser code.
    • improvements of calc() parser for relative color format.

    Fixed

    • Require phf only if needed.
    Open source →
    Release notes

    Changed

    • Improvements in parser code.
    • improvements of calc() parser for relative color format.

    Fixed

    • Require phf only if needed.
    Open source →
  4. 0.8.0 08 Nov 2025
    Release notes

    Added

    • Support no_std. Thanks to @orhun

    Changed

    • Support for parsing lab() format is always enabled now. Remove the lab cargo feature.
    • Using phf::OrderedMap and uncased::UncasedStr to store named colors.
    Open source →
    Release notes

    Added

    • Support no_std.
    • Support parsing relative color format.

    Changed

    • Support for parsing lab format is always enabled now. Remove the lab cargo feature.
    • Using phf::OrderedMap and uncased to store named colors.
    Open source →
  5. 0.7.2 03 Jun 2025
    Release notes

    Added

    • Color::to_oklcha()
    • Color::to_css_hex()
    • Color::to_css_rgb()
    • Color::to_css_hsl()
    • Color::to_css_hwb()
    • Color::to_css_lab()
    • Color::to_css_lch()
    • Color::to_css_oklab()
    • Color::to_css_oklch()

    Changed

    • Deprecate Color::to_hex_string() and Color::to_rgb_string().

    Full Changelog: v0.7.1...v0.7.2

    Open source →
    Release notes

    Added

    • Color::to_oklcha()
    • Color::to_css_hex()
    • Color::to_css_rgb()
    • Color::to_css_hsl()
    • Color::to_css_hwb()
    • Color::to_css_lab()
    • Color::to_css_lch()
    • Color::to_css_oklab()
    • Color::to_css_oklch()

    Changed

    • Deprecate Color::to_hex_string() and Color::to_rgb_string()
    Open source →
  6. 0.7.1 16 May 2025
    Release notes

    What's Changed

    • avoid an allocation in the Deserialize impl for Color by @m4rch3n1ng in #20
    • docs: Add documentation to undocumented public APIs by @sorairolake in #25
    • Remove some unnecessary allocations on parser code by @mazznoer

    New Contributors

    Full Changelog: v0.7.0...v0.7.1

    Open source →
    Release notes

    Changed

    • Remove some unnecessary allocations on parser code.
    Open source →
  7. 0.7.0 05 Aug 2024
    Release notes

    Added

    • Color::from_oklcha()
    • Support parsing oklab() and oklch() color format.
    • Color::{from,to}_{laba,lcha}()

    Changed

    • f64 -> f32
    • Return type for Color::to_{hsva,hsla,hwba,lab,lch,oklaba,linear_rgba}() changed from tuple to array.
    • Deprecate Color::{from,to}_{lab,lch}(), use Color::{from,to}_{laba,lcha}() instead.
    • NAMED_COLORS is now public
    Open source →
    Release notes

    Added

    • Color::from_oklcha()
    • Support parsing oklab() and oklch() color format.
    • Color::{from,to}_{laba,lcha}()

    Changed

    • f64 -> f32
    • Return type for Color::to_{hsva,hsla,hwba,lab,lch,oklaba,linear_rgba}() changed from tuple to array.
    • Deprecate Color::{from,to}_{lab,lch}(), use Color::{from,to}_{laba,lcha}() instead.
    • NAMED_COLORS is now public

    Removed

    Fixed

    • Fix parsing lab() and lch() color format.
    • Update oklab formula.
    Open source →
  8. 0.6.2 22 Jul 2022
    Release notes
    • Update dependencies.
    • Some improvements.
    Open source →
  9. 0.6.1 14 Jul 2022
    Release notes
    • New Color's methods: new, to_array, to_rgba8, to_rgba16, clamp, from_rgba8, from_linear_rgba8, name.
    • Deprecate some Color's methods.
    • Remove deprecated Color's methods: from_lrgb, from_lrgba, from_lrgb_u8, from_lrgba_u8, red, green, blue, alpha, to_lrgba, to_lrgba_u8, interpolate_lrgb.
    • More strict parser. rgb(255,100%,50%) is now invalid.
    • Update dependencies.
    • And some improvements.
    Open source →
  10. 0.6.0 14 May 2022
    Release notes
    • Added support for parsing lab and lch color format.
    Open source →
  11. 0.5.0 12 Jun 2021
    Release notes
    • Color: r, g, b, a fields are now public.
    • Color: Deprecate red(), green(), blue() and alpha().
    • Color: Rename some method functions to more descriptive names:
      • from_lrgba() -> from_linear_rgba()
      • interpolate_lrgb() -> interpolate_linear_rgb()
      • and some others.
    • phf are now optional dependency.
    • Rename ParseError -> ParseColorError.
    • Add support for serde, cint, rgb.
    Open source →
  12. 0.4.0 06 Feb 2021

    Nothing published for this version

  13. 0.3.0 10 Jan 2021

    Nothing published for this version

  14. 0.2.0 22 Dec 2020

    Nothing published for this version

  15. 0.1.0 13 Dec 2020

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive