#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

#34 in #tailwind

Download history 1045/week @ 2024-07-18 1113/week @ 2024-07-25 1183/week @ 2024-08-01 505/week @ 2024-08-08 628/week @ 2024-08-15 897/week @ 2024-08-22 1146/week @ 2024-08-29 1372/week @ 2024-09-05 680/week @ 2024-09-12 297/week @ 2024-09-19 652/week @ 2024-09-26 856/week @ 2024-10-03 1558/week @ 2024-10-10 1162/week @ 2024-10-17 6/week @ 2024-10-24

2,855 downloads per month

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–7.5MB
~38K SLoC