The Tailwind + Yew component system β built entirely in Rust.
TailYew is an open-source component system for Yew apps, built using idiomatic Rust and styled with Tailwind CSS. This repo includes the component crate, full demo/docs site, and the scaffolding CLI.
π― This README is for contributors. If you want to use TailYew in your project, check the crate README or the create-tailyew-app CLI to get started.
This repo is a monorepo with:
crates/tailyew/β the component crate (tailyew)frontend/β the live demo and docs site (Yew + WASM)crates/create-tailyew-app/β CLI for scaffolding new TailYew projects
Youβll need:
- Rust + WASM toolchain (
rustup,wasm32-unknown-unknown, etc.) - Node.js (for Tailwind CSS + dev server)
make(used for all common workflows)
Clone the repo and enter it:
git clone https://github.com/apjames93/tailyew.git
cd tailyewThen:
# Install all Rust deps
cargo check
# Install required Node packages for the frontend
cd frontend
npm install
cd ..
# Run the full docs site with hot reload (frontend + component crate)
make run-frontendYou can now open http://localhost:8080 and see the live docs site running.
make run-frontend # Run frontend + crate (hot reload)
make pretty # Format + lint everything
make watch-docs # Watch + build Rust docs (crates/tailyew/docs.rs)Need to run something just in the frontend?
make fe-build
make fe-runOr just in the crate?
make tailyew-doc
make tailyew-test.
βββ crates/
β βββ tailyew/ # Main component system crate
β βββ create-tailyew-app/ # CLI to scaffold new apps
βββ frontend/ # Demo/docs site (Yew + Tailwind)
βββ docs/ # GitHub Pages markdown (optional)
βββ Makefile # Root orchestrator (delegates to subdirs)
Before submitting a PR:
- β
Run
make pretty(formats + lints) - β
Run
make release-check - β Test both light mode and dark mode
- β
Update related demo pages in
frontend/src/pages/ - β Include before/after screenshots for visual changes
- π₯ Open a Pull Request
- π Report a Bug
- π‘ Propose a Feature
Whether you're submitting a PR, filing an issue, or just exploring the project β thank you for helping us grow the Rust UI ecosystem.
- π¦ Yew Framework
- π¨ Tailwind CSS