Registry / utility / css-color-parser

css-color-parser

JSON →
library0.1.2rscratesunverified

Easy-to-use Rust parser for CSS3 color strings, supporting named colors, hex, rgb, hsl, and more.

# Cargo.toml [dependencies] css-color-parser = "0.1.2"
INSTALL
IMPORT
SIG · CSS-COLOR-PARSER
C
css-color-parser
utilityrustv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Color
use css_color_parser::Color;

Parse a hex color string into a Color struct.

use css_color_parser::Color; let color: Color = "#ff5733".parse().unwrap(); println!("Parsed color: {:?}", color);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
css-color-parser — cargo add css-color-parser · libregistry