Skip to content

Etase/Dioxus-Tailwind-DaisyUI

Repository files navigation

Desktop Development Template with Dioxus, TailwindCSS, and DaisyUI

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.


Features

  • 🚀 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.

Prerequisites

Before getting started, ensure you have the following tools installed:

  1. Install Dioxus

    • Follow the guide to set up dx CLI and configure your Rust environment.
  2. Install npm

    • Node.js and npm are required for managing and building TailwindCSS.

Toolchain

This template is built with the following versions:

We recommend keeping your toolchain versions consistent to avoid compatibility issues. See the provided package.json and Cargo.toml for additional details.


Getting Started

1. Clone This Repo

git clone https://github.com/Etase/Dioxus-Tailwind-DaisyUI.git
cd Dioxus-Tailwind-DaisyUI

2. Install Dependencies

Run the following commands to set up the project dependencies:

# Install Rust dependencies
cargo build

# Install TailwindCSS and DaisyUI
npm install

3. Serve Your App

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

Directory Structure

.
├── 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  

Contributing

Contributions are welcome! If you encounter issues or have suggestions for improvement, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published