Skip to content

Repository files navigation

A simple Dioxus template with UnoCSS

example

Usage

Tips:

  • The default platform is Web and you can change it in Cargo.toml
  • The template use dioxus 0.6.0-alpha.4
  1. Install Package

    pnpm i
  2. Dev

    You need two teminal to run these at same time

    pnpm dev
    dx serve
  3. Build

    pnpm build

Integrated plugins

  • iconify/utils

    // Allow you use `i-icon:[name]` to use `assets/svg/[name].svg` as a icon
    div {
        class: "i-icon:click"
    }
  • transformer-directives

    .custom-div {
      @apply text-center my-0 font-medium;
    }
    /* Will be transformed to */
    .custom-div {
      margin-top: 0rem;
      margin-bottom: 0rem;
      text-align: center;
      font-weight: 500;
    }
  • transformer-variant-group

    // Make this
    div {
        class: "hover:bg-gray-400 hover:font-medium",
    }
    // To this
    div {
        class: "hover:(bg-gray-400 font-medium)",
    }

More config see uno.config.ts

About

A simple Dioxus template with UnoCSS

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages