Crate tailwind_css
source · [−]Expand description
Tailwind to Css
use tailwind_css::TailwindBuilder;
fn build() {
let mut tailwind = TailwindBuilder::default();
//
tailwind.trace("py-2 px-4 bg-green-500");
println!("{}", tailwind.build().unwrap())
}
Notice
This library is not strictly implemented according to the original version.
Especially when some writing methods can be simplified or generalized.
For example arbitrary values of z-index needs brackets, but rs version does not.
- raw:
z-[100]
- rs:
z-100
Implement Progress
-
preflight:
crate::PreflightSystem
- Layout
-
aspect-ratio:
TailwindAspect
- container: [``]
- columns: [``]
-
break-after:
TailwindBreak::After
-
break-before:
TailwindBreak::Before
-
break-inside:
TailwindBreak::Inside
- box-decoration-break
- box-sizing
- display
- float
- clear
- isolation
- object-fit
- object-position
- overflow
- overscroll-behavior
- position
- top-right-bottom-left
- visibility
- z-index
-
aspect-ratio:
- Flexbox & Grid
- Spacing
- Sizing
- Typography
- Backgrounds
- Borders
- Effects
- Filters
- Tables
Structs
In general, it is a look-up table.
https://tailwindcss.com/docs/preflight
https://tailwindcss.com/docs/aspect-ratio
Error type for all tailwind operators
Enums
Utilities for controlling the stack order of an element.
Actual error data for the error
Utilities for setting the maximum width of an element.
Utilities for setting the minimum width of an element.
|
width
Traits
Type Definitions
All result about tailwind
Tailwind Parsed Result