A modern, batteries-included template for building desktop applications with Tauri, Dioxus, and Tailwind CSS.
- 🚀 Tauri 2.0 - Latest version with improved performance and security
- 🦀 Dioxus 0.6 - Reactive UI framework for Rust
- 🎨 Tailwind CSS - Utility-first CSS framework with dark mode support
- 🔧 Pre-configured - All the configuration issues are already fixed
- 📦 Cargo Generate - Easy project scaffolding
- Rust 1.70 or higher
- Node.js 16 or higher (for Tailwind CSS)
- cargo-generate:
cargo install cargo-generate - Dioxus CLI:
cargo install dioxus-cli
cargo generate --git https://github.com/codeitlikemiley/tauri-dioxus-tailwind-templatetailwind -i ./input.css -o ./assets/tailwind.css --watchcargo tauri devThis template includes several important fixes:
- Non-interactive dx serve: The
beforeDevCommanduses-i falseflag to prevent the dx serve from hanging - Correct port configuration: Both Dioxus and Tauri are configured to use port 1420
- Tailwind CSS integration: Pre-configured with dark mode support
your-project/
├── src/ # Dioxus frontend code
│ ├── main.rs # Entry point
│ └── app.rs # Main app component
├── src-tauri/ # Tauri backend code
│ ├── src/
│ │ ├── main.rs # Tauri entry point
│ │ └── lib.rs # Tauri commands
│ ├── icons/ # App icons
│ └── tauri.conf.json # Tauri configuration
├── assets/ # Static assets
├── dist/ # Build output
├── Cargo.toml # Rust dependencies
├── Dioxus.toml # Dioxus configuration
├── tailwind.config.js # Tailwind configuration
└── package.json # Node dependencies
This template already includes the fix (-i false flag), but if you still have issues:
- Make sure no other process is using port 1420
- Try running
dx serve --port 1420 -i falsemanually
If you see errors about Cargo.lock version, change the version in Cargo.lock from 4 to 3.
Install the WASM target:
rustup target add wasm32-unknown-unknownThis template is open source and available under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.