This is a simple template for desktop application development, combining Dioxus, TailwindCSS, and DaisyUI to help you quickly build modern, responsive, and customizable user interfaces.
- 🚀 Dioxus 0.6.2 for fast, efficient, and safe Rust-based UI development.
- 🎨 TailwindCSS 4.0.0 for utility-first CSS design.
- 🌸 DaisyUI 5.0.0-beta.2 for pre-styled UI components, reducing boilerplate CSS.
Before getting started, ensure you have the following tools installed:
-
- Follow the guide to set up
dx
CLI and configure your Rust environment.
- Follow the guide to set up
-
- Node.js and npm are required for managing and building TailwindCSS.
This template is built with the following versions:
- Dioxus:
0.6.2
- TailwindCSS:
4.0.0
- DaisyUI:
5.0.0-beta.2
We recommend keeping your toolchain versions consistent to avoid compatibility issues. See the provided package.json
and Cargo.toml
for additional details.
git clone https://github.com/Etase/Dioxus-Tailwind-DaisyUI.git
cd Dioxus-Tailwind-DaisyUI
Run the following commands to set up the project dependencies:
# Install Rust dependencies
cargo build
# Install TailwindCSS and DaisyUI
npm install
To start developing, follow these steps:
Build CSS: Run TailwindCSS in watch mode to compile your CSS:
npx tailwindcss -i ./input.css -o ./assets/tailwind.css --watch
Run the Dioxus development server in another terminal:
dx serve
.
├── src/ # Source code for the Dioxus application
├── assets/ # Static assets such as compiled CSS, images, and other resources
├── node_modules/ # Dependencies installed via npm
├── input.css # TailwindCSS input file for styling
├── package.json # npm configuration file, including dependencies and scripts
├── Cargo.toml # Rust project configuration and dependencies
├── Dioxus.toml # Dioxus-specific configuration and dependencies
└── README.md # Project documentation and instructions
Contributions are welcome! If you encounter issues or have suggestions for improvement, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.