Skip to content
forked from agmmnn/tauri-ui

๐Ÿฆ€ Create modern desktop applications with Tauri and shadcn/ui.

License

Notifications You must be signed in to change notification settings

hick/tauri-action

This branch is 3 commits ahead of, 38 commits behind agmmnn/tauri-ui:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aacafdb ยท Jul 5, 2023
Jul 5, 2023
Jan 27, 2023
Apr 18, 2023
May 25, 2023
May 25, 2023
Jan 27, 2023
May 22, 2023
Feb 10, 2023
Jun 5, 2023
Apr 17, 2023
Jan 27, 2023
Apr 11, 2023
May 27, 2023
May 27, 2023
Jan 27, 2023
May 1, 2023
May 6, 2023
Apr 11, 2023

Repository files navigation

tauri-ui

Tauri UI Template

Tauri UI Template is a starting point for building modern desktop applications with web technologies. Customizable UI components with shadcn/ui, a lightweight and secure desktop app framework Tauri 2, the React-based framework Next.js 13, the utility-first CSS framework Tailwind.

You can download pre-built final bundles from the Releases section.

Getting Started

Use create-tauri-ui to quickly scaffold a Tauri UI project.

pnpm create tauri-ui

Or clone the repository
gh repo clone agmmnn/tauri-ui
cd tauri-ui

pnpm i
pnpm tauri dev
pnpm tauri build

Features

tauri-ui

Next.js is used in this template to facilitate quick integration of the /examples directory of shadcn/ui. You can also easily use shadcn/ui with the React + Vite stack and any React router library (optionally) in Tauri.

Customization

The template can be customized by editing the following files:

Update Components

Note that shadcn/ui is not a library, therefore you will need to update the components manually. To do so, 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/pages/api-reference/next-config-js
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ postcss.config.js
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ public
โ”œโ”€โ”€ src               //frontend src:
โ”‚   โ”œโ”€โ”€ app           //next.js appdir https://nextjs.org/docs/app/building-your-application/routing
โ”‚   โ”œโ”€โ”€ assets
โ”‚   โ”œโ”€โ”€ components    //from shadcn/ui
โ”‚   โ”‚   โ””โ”€โ”€ ui
โ”‚   โ”œโ”€โ”€ data
โ”‚   โ”œโ”€โ”€ hooks
โ”‚   โ”œโ”€โ”€ lib
โ”‚   โ””โ”€โ”€ styles
โ”œโ”€โ”€ 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
โ”‚   โ””โ”€โ”€ tauri.conf.json  //tauri config file https://next--tauri.netlify.app/next/api/config
โ”œโ”€โ”€ prettier.config.js     //prettier config file https://prettier.io/docs/en/configuration.html
โ”œโ”€โ”€ tailwind.config.js     //tailwind config file https://tailwindcss.com/docs/configuration
โ””โ”€โ”€ tsconfig.json          //typescript config file https://www.typescriptlang.org/docs/handbook/tsconfig-json.html

Recommended IDE Setup

About

๐Ÿฆ€ Create modern desktop applications with Tauri and shadcn/ui.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.5%
  • CSS 1.5%
  • Other 1.0%