Skip to content
apjames93Public

About

TailYew helps you ship fast, beautiful Yew apps using fully-styled, accessible components with dark mode, markdown rendering, charts, modals, and form elements β€” all built in idiomatic Rust.

Topics

Resources

Stars

25 stars

Watchers

4 watching

Forks

Latest commit

 

History

210 Commits

Folders and files

Repository files navigation

Crates.io Docs.rs License

🌬️ TailYew

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.


πŸ› οΈ Local Setup

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)

βœ… Getting Started

Clone the repo and enter it:

git clone https://github.com/apjames93/tailyew.git
cd tailyew

Then:

# 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-frontend

You can now open http://localhost:8080 and see the live docs site running.


πŸ§ͺ Common Dev Commands

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-run

Or just in the crate?

make tailyew-doc
make tailyew-test

πŸ—‚οΈ Folder Structure

.
β”œβ”€β”€ 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)

βœ… Contribution Checklist

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

πŸ“‚ Helpful Links


πŸ™Œ Thank You

Whether you're submitting a PR, filing an issue, or just exploring the project β€” thank you for helping us grow the Rust UI ecosystem.


πŸ”— Related

About

TailYew helps you ship fast, beautiful Yew apps using fully-styled, accessible components with dark mode, markdown rendering, charts, modals, and form elements β€” all built in idiomatic Rust.

Topics

Resources

Stars

25 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages