Registry / web-framework / stylist

stylist

JSON →
library0.15.1rscratesunverified

CSS-in-Rust styling solution for WebAssembly Applications.

# Cargo.toml [dependencies] stylist = "0.15.1"
INSTALL
IMPORT
SIG · STYLIST
S
stylist
web-frameworkrustv0.15.1
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.

style
use stylist::style;

Creates a scoped CSS style for a WebAssembly application.

use stylist::style; fn main() { let css = style!("body { background-color: red; }").unwrap(); println!("{}", css.get_class_name()); }
Debug
Known issues
gotchaRequires the `wasm-bindgen` feature for WebAssembly targets.
fix
Enable the `wasm-bindgen` feature in Cargo.toml.
affects: >=0.15.0
Upgrade
Version history
0.15.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
stylist — cargo add stylist · libregistry