Crate dioxus_tailwindcss

Source
Expand description

§dioxus-tailwindcss

§Tricks

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

tailwindcssdioxus-tailwindcss
staticstatic_
2xl:xxl() and _2xl()
fraction e.g. -1/2_1__2
.5_half

§Documents for Updating

CodeDocumentationNotes
modifier.rslinkcheck the #pseudo-class-reference part for complete list
responsive.rslink2xl is not a valid rust function name, define both xxl and _2xl for it
dark_mode.rslinkuse dark_ instead of dark
layout.rslink Layoutuse static_ instead of static
flex.rslink Flexbox & Grid
spacing.rslink Spacing

| sizing.rs | link Sizing | | | typography.rs | link Typography | | | backgrounds.rs | link Backgrounds | | | borders.rs | link Borders | | | effects.rs | link Effects | | | filters.rs | link Filters | | | tables.rs | link Tables | | | tansitions.rs | link Transitions & Animation | | | transforms.rs | link Transforms | | | interactivity.rs | link Interactivity | | | svg.rs | link SVG | | | accessibility.rs | link Accessibility | |

§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.

Re-exports§

pub use dioxus_class;

Modules§

accessibility
backgrounds
borders
build
dark_mode
effects
ext
filters
flex
interactivity
layout
macros
modifier
prelude
responsive
sizing
spacing
svg
tables
transforms
transitions
typography

Macros§

_1_to_6
_1_to_12
_1_to_13
_3xs_to_7xl
any
blend
border_radius
border_width
colors
fraction_2_to_4
fraction_2_to_6
fraction_12
minus
opacities
percents
scales
size_0_to_96
sm_to_2xl
special_ending
special_ending_internal
xs_to_7xl