vue3-ts-shad-boilerplate Tailwind Templates

Vue3 Ts Shad Boilerplate

A modern frontend boilerplate built with Vue 3, TypeScript, Tailwind CSS, and Shadcn Vue.

Vue3 TypeScript Boilerplate

A modern frontend boilerplate built with Vue 3, TypeScript, Tailwind CSS, and Shadcn Vue components.

Features

  • โšก๏ธ Vue 3 - The Progressive JavaScript Framework
  • ๐Ÿ”ฅ Vite - Next Generation Frontend Tooling
  • ๐Ÿ”’ TypeScript - Static Type Checking
  • ๐ŸŽจ Tailwind CSS - Utility-First CSS Framework
  • ๐Ÿ“ฆ Shadcn Vue - Re-usable UI components
  • ๐Ÿ“Š Pinia - State Management
  • ๐Ÿงญ Vue Router - Official Router for Vue.js
  • ๐Ÿงน ESLint - Code Linting
  • โœจ Prettier - Code Formatting
  • ๐Ÿถ Husky - Git Hooks
  • ๐Ÿ“ Lint-Staged - Run linters on git staged files

Getting Started

Prerequisites

  • Node.js (version 16 or higher)
  • npm or yarn or pnpm

Installation

  1. Clone the repository:
git clone https://github.com/9ilfoyl3/vue3-ts-shad-boilerplate.git
cd vue3-ts-boilerplate
  1. Install dependencies:
npm install
# or
yarn install
# or
pnpm install

Development

Start the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

This will start the development server at http://localhost:6106.

Building for Production

Build the application for production:

npm run build
# or
yarn build
# or
pnpm build

Preview Production Build

Preview the production build locally:

npm run preview
# or
yarn preview
# or
pnpm preview

Project Structure

vue3-ts-boilerplate/
โ”œโ”€โ”€ public/              # Static assets
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ assets/          # Project assets (images, fonts, etc.)
โ”‚   โ”œโ”€โ”€ components/      # Vue components
โ”‚   โ”œโ”€โ”€ layouts/         # Layout components
โ”‚   โ”œโ”€โ”€ lib/             # Utility functions and libraries
โ”‚   โ”œโ”€โ”€ router/          # Vue Router configuration
โ”‚   โ”œโ”€โ”€ stores/          # Pinia stores
โ”‚   โ”œโ”€โ”€ views/           # Page components
โ”‚   โ”œโ”€โ”€ App.vue          # Root component
โ”‚   โ””โ”€โ”€ main.ts          # Application entry point
โ”œโ”€โ”€ .eslintrc.js         # ESLint configuration
โ”œโ”€โ”€ .prettierrc          # Prettier configuration
โ”œโ”€โ”€ index.html           # HTML template
โ”œโ”€โ”€ package.json         # Project dependencies and scripts
โ”œโ”€โ”€ postcss.config.js    # PostCSS configuration
โ”œโ”€โ”€ tailwind.config.js   # Tailwind CSS configuration
โ”œโ”€โ”€ tsconfig.json        # TypeScript configuration
โ””โ”€โ”€ vite.config.ts       # Vite configuration

Code Quality Tools

Linting

Run ESLint to check for code quality issues:

npm run lint
# or
yarn lint
# or
pnpm lint

Formatting

Format your code with Prettier:

npm run format
# or
yarn format
# or
pnpm format

Git Hooks

This project uses Husky to run pre-commit hooks that ensure code quality before committing:

  • pre-commit : Runs lint-staged to check and fix linting issues on staged files

Customization

Tailwind CSS

You can customize the Tailwind configuration in tailwind.config.js.

Shadcn Vue Components

This project uses Shadcn Vue for UI components. You can add more components as needed following the # offiicial documentation offiicial documentation.

Top categories

Loading Svelte Themes