Giter Site home page Giter Site logo

dani-nawaz / tauri-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agmmnn/tauri-ui

0.0 0.0 0.0 1.42 MB

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

License: MIT License

JavaScript 1.19% Rust 0.18% TypeScript 96.42% CSS 2.21%

tauri-ui's Introduction

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

gh repo clone agmmnn/tauri-ui
cd tauri-ui
pnpm i
pnpm tauri dev
pnpm tauri build

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.

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.

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
β”œβ”€β”€ public
β”œβ”€β”€ src               //frontend src:
β”‚   β”œβ”€β”€ app           //next.js appdir https://beta.nextjs.org/docs/routing/fundamentals
β”‚   β”œβ”€β”€ 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           //rust codes
β”‚   └── 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

tauri-ui's People

Contributors

agmmnn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.