5 unstable releases

0.3.0 Dec 12, 2020
0.2.0 Feb 16, 2020
0.1.2 Jan 26, 2020
0.1.1 Jan 25, 2020
0.1.0 Jan 25, 2020

#6 in #styled

MIT/Apache

14KB
285 lines

styled-yew

CSS in Rust, similar to styled-components, but for Yew.

Syntax

styled!(pub RedDiv : Div {
    color: "red";
});

See the example here.

Running the Example

cargo install wasm-pack
cd example
npm i
npm start -- --open

Dependencies

~7.5–10MB
~182K SLoC