Tauri boilerplate with Next.js 13 and shadcn/ui.
- Tauri
- Next.js 13
- shadcn/ui
- Radix UI
- TypeScript
- Tailwind
- Lucide Icons
- Bundle size optimized
Cargo.toml
(.msi 2mb)
gh repo clone agmmnn/tauri-ui-boilerplate
cd tauri-ui-boilerplate
yarn
yarn tauri dev
yarn tauri build
- Titlebar draggable.
- Titlebar minimize, maximize, close buttons.
- Titlebar double-click maximize.
- Decomposing UI into components.
- Dark-Light mode switch.
- Get simple data from the Rust backend code.
- package.json
- src-tauri/tauri.conf.json
- Update
app-icon.png
, runyarn tauri icon
. This will automatically generate icon files into src-tauri/icons.
shadcn/ui is not a library. So you need to update components by hand. You can download the shadcn/ui/apps/www/components/ui directory and paste it into src/components/ui.
.
βββ next-env.d.ts
βββ next.config.js //nextjs config file https://nextjs.org/docs/api-reference/next.config.js/introduction
βββ package.json
βββ postcss.config.js
βββ README.md
βββ src //frontend src:
β βββ assets
β βββ components //from shadcn/ui
β β βββ ui //from shadcn/ui
β βββ lib
β βββ pages //next.js pages folder
β βββ styles
β βββ types
βββ src-tauri //backend src:
β βββ build.rs
β βββ Cargo.lock
β βββ Cargo.toml // https://doc.rust-lang.org/cargo/reference/manifest.html
β βββ icons // https://tauri.app/v1/guides/features/icons/
β βββ src //rust codes
β βββ tauri.conf.json //tauri config file https://tauri.app/v1/api/config/
βββ tailwind.config.js //tailwind config file
βββ tsconfig.json //typescript config file
βββ yarn.lock