bunjs-vue-shadcn Tailwind Templates

Bunjs Vue Shadcn

Simple Dashboard Admin Template. Stack: Bunjs + Vite + Shadcn-vue

Bunjs + Vite + Shadcn-vue Starter Template

A minimalist starter template for small Vue.js projects using Bun as the JavaScript runtime and package manager.

āš ļø Important: This template is recommended for small projects that don't require SEO. For large-scale applications, consider using Nuxt.js instead.

Stack

  • šŸš€ Bun - Fast all-in-one JavaScript runtime & package manager
  • āš”ļø Vite - Next Generation Frontend Tooling
  • šŸŽØ Shadcn-vue - Re-usable components built with Radix UI and Tailwind CSS
  • šŸŽÆ Vue 3 - The Progressive JavaScript Framework
  • šŸ’Ž TypeScript - JavaScript with syntax for types
  • šŸŽØ Tailwind CSS - A utility-first CSS framework

Getting Started

# Clone the repository
git clone <repository-url>

# Navigate to project directory
cd <project-name>

# Install dependencies
bun install

Project Setup

  1. Initialize shadcn-vue:

    npx shadcn-vue@latest init
    
  2. Follow the initialization prompts for components.json:

  • TypeScript: Yes
  • Framework: Vite
  • Style: Default
  • Base color: Your preference
  • Global CSS file: src/assets/index.css
  • CSS variables: Yes
  • Tailwind config: tailwind.config.js
  • Import alias components: @/components
  • Import alias utils: @/lib/utils

Development Scripts

# Start development server
bun run dev

# Build for production
bun run build

# Preview production build
bun run preview

Using Components

Install shadcn-vue components:

npx shadcn-vue@latest add button

Usage example:

<script setup lang="ts">
import { Button } from '@/components/ui/button'
</script>

<template>
  <Button>Click me</Button>
</template>

Project Structure

ā”œā”€ā”€ src/
│   ā”œā”€ā”€ assets/
│   │   └── index.css
│   ā”œā”€ā”€ components/
│   │   └── ui/
│   ā”œā”€ā”€ lib/
│   │   └── utils.ts
│   ā”œā”€ā”€ App.vue
│   └── main.ts
ā”œā”€ā”€ components.json
ā”œā”€ā”€ tailwind.config.js
ā”œā”€ā”€ tsconfig.json
└── vite.config.ts

Features

  • āš”ļø Lightning-fast development with Bun and Vite
  • šŸŽØ Beautiful UI components from shadcn-vue
  • šŸ’Ŗ Type-safe development with TypeScript
  • šŸŽÆ Modern Vue 3 Composition API
  • šŸ“¦ Efficient package management with Bun
  • šŸŽØ Utility-first styling with Tailwind CSS

Performance Considerations

This template is optimized for:

  • Single Page Applications (SPA)
  • Client-side rendered applications
  • Small to medium-sized projects
  • Rapid prototyping and development

License

MIT


šŸ” Note: For projects requiring SEO, server-side rendering, or more complex architecture, we recommend using Nuxt.js.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Top categories

Loading Svelte Themes