π TailYew
A modern, reusable component library for Yew apps β powered by Tailwind CSS and built in Rust.
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.
πΈ Preview
Explore TailYewβs live components, props, and code samples:
π https://tailyew.com
π Get Started in 2 Minutes
β Option 1: Use the Starter Template (Recommended)
Then open π http://localhost:8080
This gives you hot reloading, built-in Tailwind support, and access to every TailYew component.
π οΈ Install Tooling
You'll need a mix of Rust + JS tooling:
Rust CLI tools:
JavaScript tools:
Installs
tailwindcssand dev tools (e.g.serve)
π¨ Tailwind Setup (Important!)
Tailwind uses static analysis to detect classes. To expose classes from TailYew's crate, run:
This copies crates/tailyew into your appβs vendor/ directory so Tailwind includes all component class usage.
βοΈ Run the App
This watches both Tailwind + Yew code for hot reloading using cargo-watch.
π¦ Using TailYew as a Crate (without starter)
Add to your Cargo.toml:
= "0.1.2"
Make sure your tailwind.config.js includes the path:
content:
Then use in your app:
use Button;
html!
π§© Component Highlights
TailYew comes with battle-tested components including:
- β Forms β Input, Select, Checkbox, JSON, Phone, File
- π Charts β LineChart, BubbleChart (canvas-based)
- π§ͺ Modals, Accordions, AppBar, Tabs
- π Markdown β Parse + sanitize with
pulldown-cmarkandammonia - βοΈ Clipboard, Notifications, Popover, Section, and more
- π Dark mode ready β with Tailwindβs
dark:utilities
π See them all at π https://tailyew.com/demo/getting_started
ποΈ Project Goals
- π‘ Atomic Design β Atoms β Molecules β Organisms
- βοΈ Yew-Native β Fully idiomatic Rust, zero JavaScript
- π¨ Tailwind-First β Utility classes, theming, dark mode
- π Composable APIs β Clean prop-driven ergonomics
- π§ͺ Developer Experience β Hot reload, clear docs, consistent props
π Folder Structure
π Related
- π¦ Yew Framework
- π¨ Tailwind CSS
- π TailYew Starter
Looking to build a full Yew app with Markdown, forms, charts, and SSR-ready UI blocks? TailYew is your foundation.