Skip to content

πŸ¦€Tauri desktop app template with shadcn/ui, Next.js 13, Tailwind.

License

Notifications You must be signed in to change notification settings

saogregl/tauri-ui-boilerplate

Β 
Β 

Repository files navigation

tauri-ui-boilerplate

Tauri + Next.js 13 + shadcn/ui

Tauri boilerplate with Next.js 13 and shadcn/ui.

Getting Started

gh repo clone agmmnn/tauri-ui-boilerplate
cd tauri-ui-boilerplate
yarn
yarn tauri dev
yarn tauri build

To-Do

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

Customization

Update Components

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.

Folder Structure

.
β”œβ”€β”€ 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

Recommended IDE Setup

About

πŸ¦€Tauri desktop app template with shadcn/ui, Next.js 13, Tailwind.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.5%
  • JavaScript 1.8%
  • Other 0.7%