use-web-css
Small CSS utility primitives for RustUse.
Experimental
use-web-css is experimental while the use-web workspace remains below 0.3.0. Expect small API adjustments during the first release wave.
The published package name is use-web-css so it avoids the existing crates.io
collision on use-css, while the Rust library target remains use_css.
Example
use ;
let declarations = extract_css_declarations;
assert_eq!;
assert!;
assert_eq!;
Scope
- Lightweight CSS detection and declaration parsing.
- Small helpers for identifiers, custom properties, colors, and lengths.
- Comment stripping and basic minification.
Non-goals
- Full CSS parsing.
- Cascade engines.
- Browser style engines.
- CSS-in-JS utilities.
- JavaScript tooling.
License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license