dioxus-tailwindcss 0.5.0

Dioxus tailwindcss
Documentation

dioxus-tailwindcss

Tricks

Due to rust's rule on constant names, there are some difference from tailwindcss.

tailwindcss dioxus-tailwindcss
static static_
2xl: xxl() and _2xl()
fraction e.g. -1/2 _1__2
.5 _half

Documents for Updating

Code Documentation Notes
modifier.rs link check the #pseudo-class-reference part for complete list
responsive.rs link 2xl is not a valid rust function name, define both xxl and _2xl for it
layout.rs link use static_ instead of static

TODO: add link and notes for all modules

Build All Used CSS Classes

Since tailwindcss need to get all used values, when using class!, the default build process is not working.

Check BUILD.md for how to handle this process.