#tailwind #applications #across

tailwind-importer

Use tailwind across your rust project

3 releases

0.1.2 Sep 13, 2022
0.1.1 Sep 13, 2022
0.1.0 Sep 13, 2022

#42 in #tailwind

MIT license

3KB

Yew Tailwind

[build-dependencies]
tailwind-importer = "0.1.2"

For Applications

Create a tailwind.css for your application, including all compatible crates.

Requires tailwindcss to be in the path, recommended to use npm i -g tailwindcss.

build.rs

fn main() {
    tailwind_importer::build_frontend();
}

For Libraries

This will create a copy of the source code in the target out directory so it can be read by the tailwind command.

build.rs

fn main() {
    tailwind_importer::build_library();
}

Dependencies

~0.1–6.5MB
~34K SLoC