https://github.com/jamesclarke7283/taurileptostailwindtemplate
A template i forked from https://github.com/michalvavra/tauri-leptos-example Currently the most complete Tauri+Leptos+Tailwind template.
https://github.com/jamesclarke7283/taurileptostailwindtemplate
leptos tailwind tailwindcss tauri template
Last synced: 2 months ago
JSON representation
A template i forked from https://github.com/michalvavra/tauri-leptos-example Currently the most complete Tauri+Leptos+Tailwind template.
- Host: GitHub
- URL: https://github.com/jamesclarke7283/taurileptostailwindtemplate
- Owner: JamesClarke7283
- License: other
- Created: 2023-08-25T18:48:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-12T15:31:46.000Z (6 months ago)
- Last Synced: 2025-03-12T02:51:15.104Z (3 months ago)
- Topics: leptos, tailwind, tailwindcss, tauri, template
- Language: Rust
- Homepage:
- Size: 231 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Tauri Leptos Example (With TailwindCSS)
- [Tauri][tauri_web]
- [Leptos][leptos_repo]See [Prerequisites](#prerequisites) section.
```sh
# Build and develop for desktop
cargo tauri dev# Build and release for desktop
cargo tauri build
```## Prerequisites
```sh
# Tauri CLI
cargo install --locked [email protected]# Rust stable (required by Leptos)
rustup toolchain install stable --allow-downgrade# WASM target
rustup target add wasm32-unknown-unknown# Trunk WASM bundler
cargo install --locked trunk# `wasm-bindgen` for Apple M1 chips (required by Trunk)
cargo install --locked wasm-bindgen-cli# `esbuild` as dependency of `tauri-sys` crate (used in UI)
npm install --global --save-exact esbuild# Optional: `tailwindcss` for UI styling
npm install --global tailwindcss
```## Running
### Run in Dev mode
```bash
cargo tauri dev
```### Build in Production
```bash
cargo tauri build
```## Credits
All credit for the counter example in [`./src-ui/src/lib.rs`](src-ui/src/lib.rs)
goes to authors and contributors of [gbj/leptos][leptos_repo] GitHub repository,
[MIT License][leptos_license], Copyright 2022 Greg Johnston.[tauri_web]: https://tauri.app/
[leptos_repo]: https://github.com/gbj/leptos
[leptos_nightly_note]: https://github.com/gbj/leptos#nightly-note
[leptos_license]: https://github.com/gbj/leptos/blob/e465867b30db8fccce7493f9fc913359246ac4bd/LICENSE