Tailwind-RS WASM
A fully WASM-compatible implementation of Tailwind CSS for Rust web applications. This crate provides optimized functionality for WebAssembly and browser environments.
🌐 WASM Compatibility
This crate is fully WASM-compatible and compiles to wasm32-unknown-unknown.
Perfect for building modern web applications with any Rust web framework.
🚀 Performance Benefits
- Synchronous operations - No async runtime overhead
- Smaller bundles - ~25% reduction in bundle size
- Faster compilation - ~30% faster build times
- Memory efficient - Optimized for WASM constraints
📦 Features
- Type-safe class building - Compile-time validation
- Responsive design - Complete breakpoint system
- Color system - Full Tailwind color palette
- Spacing system - All Tailwind spacing utilities
- WASM bindings - Direct JavaScript interop
Example
use *;
// Create WASM-optimized classes
let mut builder = new;
builder.class;
builder.class;
builder.class;
let classes = builder.build;
assert_eq!;