#tailwind

bin+lib stylist-tailwind-core

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

1 unstable release

0.2.0 Apr 16, 2024

#14 in #tailwind-css

33 downloads per month
Used in 2 crates

MIT license

720KB
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–17MB
~252K SLoC