dwind

Crates.iodwind
lib.rsdwind
version0.7.0
created_at2024-12-02 14:21:25.169681+00
updated_at2025-11-19 21:07:51.051152+00
descriptionStyle your DOMINATOR applications using a tailwind-like syntax and utility class collection!
homepagehttps://github.com/JedimEmO/dwind
repositoryhttps://github.com/JedimEmO/dwind
max_upload_size
id1468725
size149,326
Mathias Myrland (JedimEmO)

documentation

README

DWIND

This crate provides tailwind-like syntax and utility classes to be used from your DOMINATOR web applications!

It allows you to apply classes using pseudo selectors and signals, removing the indirection of CSS files for understanding how compoents look. Component libraries do not need to bundle some out-of-band CSS definitions, as everything is compiled into your rust binary.

As an added benefit, tree shaking is done by the normal rust dead code elimination, removing the need for extra tooling.

For online examples, check out the example app here: https://jedimemo.github.io/dwind/examples/

Usage

fn hello() {
    html!("div", {
        .dwclass!("hover:font-extrabold")
        .dwclass_signal!("text-l", always(true))
        .text("Hello, world!")
        
        // Make the children stylish!
        .dwclas!("[& > *]:text-picton-blue-500")
        .children([
            text("Bob"),
            text("Alice"),
        ])
    })
}
Commit count: 137

cargo fmt