electron-shadcn-template Tailwind Templates

Electron Shadcn Template

A custom Electron template that uses Vite + Shadcn/ui + Tailwind 4

Electron + Vite + Shadcn/ui + Tailwind v4 Template

Custom Electron template created based on LuanRoger's template

Core

Dev

UI

Test

Packing and distribution

CI/CD

Directory structure

.
└── ./src/
    ├── ./src/assets/
    │   └── ./src/assets/fonts/
    ├── ./src/components/
    │   ├── ./src/components/template
    │   └── ./src/components/ui/
    ├── ./src/helpers/
    │   └── ./src/helpers/ipc/
    ├── ./src/layout/
    ├── ./src/lib/
    ├── ./src/pages/
    ├── ./src/style/
    └── ./src/tests/
  • src/: Main directory
    • assets/: Store assets like images, fonts, etc.
    • components/: Store UI components
      • template/: Store the all not important components used by the template. It doesn't include the WindowRegion or the theme toggler, if you want to start an empty project, you can safely delete this directory.
      • ui/: Store Shadcn UI components (this is the default direcotry used by Shadcn UI)
    • helpers/: Store IPC related functions to be called in the renderer process
      • ipc/: Directory to store IPC context and listener functions
        • Some implementations are already done, like theme and window for the custom title bar
    • layout/: Directory to store layout components
    • lib/: Store libraries and other utilities
    • pages/: Store app's pages
    • style/: Store global styles
    • tests/: Store tests (from Vitest and Playwright)

How to use

  1. Clone this repository
git clone https://github.com/LuanRoger/electron-shadcn.git

Or use it as a template on GitHub

  1. Install dependencies
npm install
  1. Run the app
npm run dev

Top categories

Loading Svelte Themes