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.
Before getting started, ensure you have the following tools installed:
dx
CLI and configure your Rust environment.This template is built with the following versions:
0.6.2
4.0.0
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.