Tips:
- The default platform is Web and you can change it in
Cargo.toml- The template use
dioxus 0.6.0-alpha.4
-
Install Package
pnpm i
-
Dev
You need two teminal to run these at same time
pnpm dev dx serve
-
Build
pnpm build
-
iconify/utils
// Allow you use `i-icon:[name]` to use `assets/svg/[name].svg` as a icon div { class: "i-icon:click" }
-
.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; }
-
// 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
