๐งฉ TailYew โ Reusable Yew + Tailwind Component Library
TailYew is a modular, reusable UI component system for Yew built with the utility-first power of Tailwind CSS. It provides elegant, accessible, and composable components to build Rust web frontends faster and with consistency.
This crate is used internally in our own documentation site โ see ../frontend/ โ which showcases each component with live usage and examples.
๐๏ธ Project Goals
- ๐ก Atomic Design pattern (atoms โ molecules โ organisms)
- โ๏ธ Yew-native components โ idiomatic Rust, no JavaScript
- ๐จ Tailwind-first styling โ utility-based, flexible, consistent
- ๐งช Well-documented
- ๐งฉ Composable API for building custom UIs
๐ Folder Structure
๐งฐ Development
This crate is part of a Cargo workspace. You can develop it in isolation or alongside the documentation frontend.
๐ง Build
๐ Generate docs
Or skip opening the browser:
๐งช Testing in the Docs Site
To see components in use:
- Run
make run-frontendfrom the root - Edit components in this crate (
src/atoms/, etc.) - Rebuild and preview live in
frontend/
Hot reloading is handled via cargo watch from the root Makefile. The docs site imports this crate directly via:
# frontend/Cargo.toml
= { = "../crates/tailyew" }
๐ Publishing
Before publishing, ensure tests and docs pass:
Then:
๐ Related
frontend/โ Docs site showcasing TailYewMakefileโ Root build & dev orchestrator- Yew Framework
- Tailwind CSS