#tailwind #yew #css #stylist #css-class #stylist-rs

stylist-tailwind

Adds a bunch of tailwind classes for stylist-rs to quickly add css to yew applications

6 releases

new 0.2.1 Apr 16, 2024
0.2.0 Apr 16, 2024
0.1.4 Apr 7, 2024
0.1.1 Dec 15, 2023

#1929 in Web programming

Download history 12/week @ 2024-02-23 5/week @ 2024-03-01 61/week @ 2024-03-22 4/week @ 2024-03-29 267/week @ 2024-04-05

332 downloads per month

MIT license

725KB
11K SLoC

Stylist tailwind contains a bunch of tailwind classes that you can use in Stylist.

Install

Add the following to your Cargo.toml:

stylist-tailwind = "0.2.0"

Usage

For detailed usage, please see documentation.

use yew::prelude::*;
use stylist::Style;

#[styled_component]
fn MyStyledComponent() -> Html {
    html! {<div class={Style::new(tw!("w-full px-4 my-8")).unwrap()}>{"Hello World!"}</div>}
}

Dependencies

~7–21MB
~297K SLoC