shadcn-vue
Vue and Nuxt component skill that guides shadcn-vue setup with accessible Reka UI components and Tailwind.
- CCM score
- 49 of 100
- version
- 3.12.0
- GitHub stars
- 254
Own this plugin? Claim it
What it does
- Covers setup for Vue, Nuxt, and Astro, plus
components.jsonand TypeScript path alias configuration - Adds guidance for Auto Form built on Zod schemas, TanStack data tables, and Unovis charts
- Handles dark mode with CSS variables and useColorMode, and troubleshoots missing component imports and styling errors
- Designed for Vue 3 projects that use Tailwind CSS and need accessible UI or Reka UI migration help
shadcn-vue for Vue/Nuxt with Reka UI components and Tailwind. Use for accessible UI, Auto Form, data tables, charts, or encountering component imports, dark mode, Reka UI errors.
Add marketplace
/plugin marketplace add secondsky/claude-skillsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install shadcn-vue@claude-skillsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceshadcn-vue Production Stack
Production-tested: Vue/Nuxt applications with accessible, customizable components Last Updated: 2025-12-09 Status: Production Ready ✅ Latest Version: shadcn-vue@latest (Reka UI v2) Dependencies: Tailwind CSS, Reka UI, Vue 3+ or Nuxt 3+
Quick Start (3 Minutes)
For Vue Projects (Vite)
1. Initialize shadcn-vue
# Using Bun (recommended)
bunx shadcn-vue@latest init
# Using npm
npx shadcn-vue@latest init
During initialization:
- Style:
New YorkorDefault(cannot change later!) - Base color:
Slate(recommended) - CSS variables:
Yes(required for dark mode)
2. Configure TypeScript Path Aliases
// tsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
3. Configure Vite
// vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite' // Tailwind v4
import path from 'path'
export default defineConfig({
plugins: [vue(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
})
4. Add Your First Component
bunx shadcn-vue@latest add button
# or: npx shadcn-vue@latest add button
See Full Setup: templates/quick-setup.ts
For Nuxt Projects
# Create project with Tailwind
bun create nuxt-app my-app
cd my-app
bun add -D @nuxtjs/tailwindcss
# Configure Nuxt
# nuxt.config.ts
export default defineNuxtConfig({
modules: ['@nuxtjs/tailwindcss']
})
# Initialize shadcn-vue
bunx shadcn-vue@latest init
# or: npx shadcn-vue@latest init
# or: pnpm dlx shadcn-vue@latest init
Component Library (50+ Components)
Navigation & Layout
- Accordion, Alert Dialog, Avatar, Badge, Breadcrumb, Card, Carousel, Collapsible, Dialog, Drawer, Dropdown Menu, Menu Bar, Navigation Menu, Pagination, Popover, Resizable, Scroll Area, Sheet, Sidebar, Tabs, Toast, Tooltip
Form Components
- Auto Form, Button, Calendar, Checkbox, Combobox, Command, Context Menu, Date Picker, Form, Input, Input OTP, Label, Number Field, PIN Input, Radio Group, Range Calendar, Select, Slider, Sonner, Switch, Textarea, Toggle, Toggle Group
Data Display
- Aspect Ratio, Data Table, Skeleton, Stepper, Splitter, Table, Tag Input
Advanced
- Charts (Unovis), Color Picker, Editable, File Upload, Sortable
Full Component Reference: https://shadcn-vue.com/docs/components
Auto Form - Schema-Based Forms
Installation
bunx shadcn-vue@latest add auto-form
# or: npx shadcn-vue@latest add auto-form
bun add zod
# or: npm install zod
Basic Usage
<script setup lang="ts">
import { AutoForm } from '@/components/ui/auto-form'
import { z } from 'zod'
const schema = z.object({
name: z.string().min(2, 'Name must be at least 2 characters'),
email: z.email({ error: 'Invalid email' }),
age: z.number().min(18, 'Must be 18 or older'),
bio: z.string().optional(),
subscribe: z.boolean().default(false)
})
function onSubmit(values: z.infer<typeof schema>) {
console.log('Form submitted:', values)
}
</script>
<template>
<AutoForm :schema="schema" @submit="onSubmit">
<template #submit>
<Button type="submit">Submit</Button>
</template>
</AutoForm>
</template>
Supported Field Types: string, number, boolean, date, enum, array, object
Data Tables with TanStack Table
Installation
bunx shadcn-vue@latest add data-table
# or: npx shadcn-vue@latest add data-table
bun add @tanstack/vue-table
# or: npm install @tanstack/vue-table
Basic Setup
<script setup lang="ts">
import { DataTable } from '@/components/ui/data-table'
import { h } from 'vue'
const columns = [
{
accessorKey: 'id',
header: 'ID',
},
{
accessorKey: 'name',
header: 'Name',
},
{
accessorKey: 'email',
header: 'Email',
}
]
const data = [
{ id: 1, name: 'John Doe', email: 'john@example.com' },
{ id: 2, name: 'Jane Smith', email: 'jane@example.com' }
]
</script>
<template>
<DataTable :columns="columns" :data="data" />
</template>
Features: Sorting, filtering, pagination, row selection, column visibility, expandable rows
Dark Mode Implementation
Installation
bun add @vueuse/core
# or: npm install @vueuse/core
Setup Theme Provider
<!-- components/ThemeProvider.vue -->
<script setup lang="ts">
import { useColorMode } from '@vueuse/core'
const mode = useColorMode()
</script>
<template>
<div :class="mode">
<slot />
</div>
</template>
Use in Components
<script setup>
import { useColorMode } from '@vueuse/core'
const mode = useColorMode()
function toggleTheme() {
mode.value = mode.value === 'dark' ? 'light' : 'dark'
}
</script>
<template>
<Button @click="toggleTheme">
{{ mode === 'dark' ? '🌙' : '☀️' }}
</Button>
</template>
Critical Rules
Always Do
✅ Run init before adding components
- Creates required configuration and utilities
- Sets up path aliases
✅ Use CSS variables for theming (cssVariables: true)
- Enables dark mode support
- Flexible theme customization
✅ Configure TypeScript path aliases
- Required for component imports
- Must match
components.jsonaliases
✅ Keep components.json in version control
- Team members need same configuration
- Documents project setup
✅ Use Bun for faster installs (recommended)
- 10-20x faster than npm
Never Do
❌ Don't change style after initialization
- Requires complete reinstall
- Reinitialize in new directory instead
❌ Don't mix Radix Vue and Reka UI v2
- Incompatible component APIs
- Use one or the other
❌ Don't skip TypeScript configuration
- Component imports will fail
- IDE autocomplete won't work
❌ Don't use without Tailwind CSS
- Components are styled with Tailwind
- Won't render correctly
Top 7 Critical Issues
Issue #1: Missing TypeScript Path Aliases
Error: Cannot find module '@/components/ui/button'
Solution:
// tsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
Issue #2: Tailwind CSS Not Configured
Error: Components render without styles
Solution:
/* src/assets/index.css */
@import "tailwindcss";
// vite.config.ts (Tailwind v4)
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [vue(), tailwindcss()]
})
Issue #3: CSS Variables Not Defined
Error: Theme colors not applying, gray/transparent components
Solution: Ensure all CSS variables are defined (run init command)
Issue #4: Wrong Style Selected
Error: Components look different than expected
Solution: Choose carefully during init (New York or Default) - cannot change later without reinstall
Issue #5: Mixing Radix Vue and Reka UI
Error: Type conflicts, duplicate components
Solution:
- Use
bunx shadcn-vue@latestfor Reka UI v2 - Use
bunx shadcn-vue@radixfor legacy Radix Vue - Don't mix both
Issue #6: Monorepo Path Issues
Error: Components installed in wrong directory
Solution: Use -c flag to specify workspace:
bunx shadcn-vue@latest init -c ./apps/web
bunx shadcn-vue@latest add button -c ./apps/web
Issue #7: Component Import Fails After Manual Edit
Error: Import paths broken after editing components.json
Solution: Keep components.json and tsconfig.json aliases in sync. Test imports after any config changes.
See All 7 Issues: references/error-catalog.md
CLI Commands Reference
init Command
# Initialize in current directory
bunx shadcn-vue@latest init
# or: npx shadcn-vue@latest init
# Initialize in specific directory (monorepo)
bunx shadcn-vue@latest init -c ./apps/web
# or: npx shadcn-vue@latest init -c ./apps/web
add Command
# Add single component
bunx shadcn-vue@latest add button
# or: npx shadcn-vue@latest add button
# Add multiple components
bunx shadcn-vue@latest add button card dialog
# Add all components
bunx shadcn-vue@latest add --all
# or: npx shadcn-vue@latest add --all
diff Command
# Check for component updates
bunx shadcn-vue@latest diff button
# or: npx shadcn-vue@latest diff button
Reka UI v2 Migration
shadcn-vue now uses Reka UI v2 (formerly Radix Vue) as its foundation. All new components use Reka UI primitives.
Migration: Existing projects should update to Reka UI v2. See official migration guide: shadcn-vue.com/docs/changelog#reka-ui
Configuration
shadcn-vue uses components.json to configure:
- Component paths (
@/components/ui) - Utils location (
@/lib/utils) - Tailwind config paths
- TypeScript paths
Full example: See templates/components.json or generate via bunx shadcn-vue@latest init
Utils Library
The @/lib/utils.ts file provides the cn() helper for merging Tailwind classes:
- Combines multiple className strings
- Uses
clsx+tailwind-mergefor conflict resolution
Auto-generated by shadcn-vue init - no manual setup needed.
Bundled Resources
Templates (templates/):
quick-setup.ts- Complete setup guide for Vue/Nuxt with examples (190 lines)
References (references/):
error-catalog.md- All 7 documented issues with solutions (267 lines)
When to Load References
Load these references based on the task:
-
Load
references/error-catalog.mdwhen:- User encounters "component not found" or import errors
- Setup commands fail or configuration issues arise
- Tailwind CSS variables or TypeScript paths broken
- Trigger phrases: "not working", "error", "fails to", "broken"
-
Load
references/component-examples.mdwhen:- User asks "how do I implement [component]?"
- Need copy-paste examples for specific components
- Building forms, tables, navigation, or data display
- Trigger phrases: "example", "how to use", "implement", "code sample"
-
Load
references/dark-mode-setup.mdwhen:- Implementing dark mode / theme switching
- User mentions Vue 3 + Vite, Nuxt, or Astro setup
- Need composable patterns for theme management
- Trigger phrases: "dark mode", "theme", "light/dark", "color scheme"
Integration with Other Skills
This skill composes well with:
- nuxt-v4 → Nuxt framework
- tailwind-v4-shadcn → Tailwind v4 with React shadcn/ui
- react-hook-form-zod → Form validation patterns (similar to Auto Form)
- tanstack-query → Data fetching for tables
- zustand-state-management → State management
Resources
References (references/):
component-examples.md- All 50+ component examples with codedark-mode-setup.md- Complete dark mode implementation guideerror-catalog.md- Common errors and solutions
Templates (templates/):
- Component templates available in references/component-examples.md
Secure Installation
When installing packages during setup, follow supply chain security best practices:
- Block post-install scripts —
npm config set ignore-scripts true(or Bun: disabled by default) - Cooldown period — Wait 7 days for new package versions to be vetted by the community
- Audit before installing — Run
socket package score npm <pkg>or usesocket npm install <pkg>to check packages
Load the dependency-upgrade skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement.
Additional Resources
Official Documentation:
- shadcn-vue Docs: https://shadcn-vue.com
- Reka UI Docs: https://reka-ui.com
- GitHub: https://github.com/radix-vue/shadcn-vue
Examples:
- Component Examples: https://shadcn-vue.com/examples
- Starter Templates: https://github.com/radix-vue/shadcn-vue/tree/main/templates
Production Tested: Vue/Nuxt applications, admin dashboards, content management systems Last Updated: 2025-12-09 Token Savings: ~65% (reduces setup + component documentation)
Readme
shadcn-vue
Status: Production Ready ✅ Last Updated: 2025-11-10 Production Tested: Vue/Nuxt applications with accessible component library
Auto-Trigger Keywords
Claude Code automatically discovers this skill when you mention:
Primary Keywords
- shadcn-vue
- shadcn vue
- shadcn for vue
- shadcn/vue
- Reka UI
- reka-ui
- radix-vue
- Vue UI components
- Nuxt UI components
- Vue component library
- Nuxt component library
- accessible Vue components
- headless Vue components
- Tailwind Vue components
Framework Keywords
- Vue 3
- Nuxt 3
- Vite Vue
- Astro Vue
- Vue composition API
- Vue composables
- VueUse
Component Keywords
- Auto Form
- Vue form builder
- Zod validation Vue
- schema-based forms
- TanStack Table Vue
- data table Vue
- Vue charts
- Unovis Vue
- Vue dialog
- Vue modal
- Vue tooltip
- Vue popover
- Vue dropdown
- Vue select
- Vue combobox
- Vue date picker
- Vue calendar
- Vue toast
- Sonner Vue
- Vue accordion
- Vue tabs
- Vue card
- Vue button variants
Setup & Configuration Keywords
- npx shadcn-vue
- bunx shadcn-vue
- components.json
- shadcn init
- shadcn add component
- TypeScript path aliases Vue
- @/ imports Vue
- Tailwind Vue setup
- CSS variables theming
Dark Mode Keywords
- Vue dark mode
- useColorMode
- theme switching Vue
- dark mode toggle Vue
- Nuxt color mode
- @vueuse/core theme
Error-Based Keywords
- "cannot find module @/components"
- "shadcn components not styled"
- "TypeScript path error Vue"
- "CSS variables not working"
- "dark mode not applying"
- "components.json not found"
- "Reka UI not found"
- "radix-vue migration"
- "component import failed"
What This Skill Does
This skill provides comprehensive guidance for setting up and using shadcn-vue, the Vue/Nuxt adaptation of shadcn/ui. It covers installation, configuration, all 50+ components, Auto Form with Zod, Data Tables with TanStack, Charts with Unovis, dark mode implementation, TypeScript setup, and accessibility features.
Core Capabilities
✅ Quick Setup: Initialize shadcn-vue in Vue, Nuxt, or Astro projects (3 minutes) ✅ 50+ Components: Complete component library with accessible, customizable UI elements ✅ Auto Form: Generate forms automatically from Zod schemas with validation ✅ Data Tables: Build powerful tables with sorting, filtering, pagination using TanStack ✅ Charts: Create beautiful visualizations with Unovis (Area, Bar, Line, Donut) ✅ Dark Mode: Implement theme switching with CSS variables and useColorMode ✅ TypeScript: Full type safety with proper path aliases and component types ✅ Accessibility: ARIA-compliant components with keyboard navigation ✅ Reka UI v2: Latest headless component foundation with individual dependencies ✅ Monorepo Support: Configure for monorepo workspaces ✅ Customization: Extend components with variants, styles, and custom logic
Known Issues This Skill Prevents
| Issue | Why It Happens | How Skill Fixes It |
|---|---|---|
| Missing TypeScript path aliases | @/ imports not configured in tsconfig.json | Provides exact tsconfig.json configuration with baseUrl and paths |
| Components not styled | Tailwind CSS not imported or configured | Shows proper Tailwind setup for Vite, Nuxt, and Astro |
| CSS variables broken | CSS variables not defined in main CSS | Includes complete CSS variable definitions for light and dark modes |
| Component dependency conflicts | Mixing Radix Vue and Reka UI v2 | Explains migration and using correct version tags |
| components.json misconfigured | Wrong paths or aliases | Provides complete components.json examples for each framework |
| Dark mode not working | Missing useColorMode or class binding | Complete dark mode setup with VueUse and Nuxt color mode |
| Monorepo path issues | Components installed in wrong directory | Shows -c flag usage and monorepo configuration |
When to Use This Skill
✅ Use When:
- Setting up shadcn-vue in a new Vue or Nuxt project
- Adding accessible UI components to existing Vue apps
- Building forms with automatic validation (Auto Form + Zod)
- Creating data tables with advanced features (TanStack Table)
- Adding charts and data visualizations (Unovis)
- Implementing dark mode with theme switching
- Configuring TypeScript path aliases for component imports
- Migrating from Radix Vue to Reka UI v2
- Building accessible, ARIA-compliant interfaces
- Customizing component variants and styles
- Setting up shadcn-vue in monorepos
- Debugging component import or styling issues
- Working with Tailwind CSS and Vue/Nuxt
❌ Don't Use When:
- Building with React (use tailwind-v4-shadcn skill instead)
- Working with vanilla shadcn/ui (not the Vue port)
- Using Vue 2 (shadcn-vue requires Vue 3+)
- Not using Tailwind CSS (components require Tailwind)
- Looking for unstyled headless components only (use Reka UI directly)
Quick Usage Example
# 1. Initialize shadcn-vue
bunx shadcn-vue@latest init
# 2. Configure TypeScript paths (if not auto-configured)
# Add to tsconfig.json:
# "paths": { "@/*": ["./src/*"] }
# 3. Add your first component
bunx shadcn-vue@latest add button
# 4. Use in your Vue component
<script setup>
import { Button } from '@/components/ui/button'
</script>
<template>
<Button variant="default">Click me</Button>
</template>
Result: Fully styled, accessible button component with dark mode support
Full instructions: See SKILL.md
Package Versions (Verified 2026-08-03)
| Package | Version | Status |
|---|---|---|
| vue | 3.5.0+ | ✅ Latest stable |
| shadcn-vue | latest | ✅ Latest stable (Reka UI v2) |
| tailwindcss | 4.0.0+ | ✅ Latest stable |
| @tailwindcss/vite | 4.0.0+ | ✅ Latest stable |
| @vueuse/core | 10.7.0+ | ✅ Latest stable |
| class-variance-authority | 0.7.0+ | ✅ Latest stable |
| zod | 4.3.6+ | ✅ Latest stable |
| @tanstack/vue-table | 8.11.0+ | ✅ Latest stable |
| @unovis/vue | 1.3.0+ | ✅ Latest stable |
Dependencies
Prerequisites:
- Vue 3.5+ or Nuxt 4+
- Tailwind CSS configured
- TypeScript (recommended)
Integrates With:
- VueUse (@vueuse/core) - Composables and utilities
- TanStack Table - Advanced data tables
- Unovis - Chart visualizations
- Zod - Schema validation for Auto Form
- Nuxt Color Mode - Dark mode in Nuxt
File Structure
shadcn-vue/
├── SKILL.md # Complete documentation (comprehensive guide)
├── README.md # This file (quick reference)
├── references/ # Additional documentation
│ ├── component-examples.md # Component usage examples
│ ├── auto-form-guide.md # Auto Form comprehensive guide
│ ├── data-table-guide.md # Data Table comprehensive guide
│ ├── charts-guide.md # Charts comprehensive guide
│ └── dark-mode-setup.md # Dark mode implementation guide
└── assets/ # Configuration templates
├── components.json # Example components.json
├── tsconfig.json # TypeScript configuration
├── vite.config.ts # Vite configuration for Vue
├── nuxt.config.ts # Nuxt configuration
└── tailwind.css # CSS variables and Tailwind imports
Official Documentation
- shadcn-vue: https://shadcn-vue.com
- Reka UI: https://reka-ui.com
- Tailwind CSS: https://tailwindcss.com
- Vue 3: https://vuejs.org
- Nuxt 3: https://nuxt.com
- VueUse: https://vueuse.org
- TanStack Table: https://tanstack.com/table
- Unovis: https://unovis.dev
- Zod: https://zod.dev
Related Skills
- tailwind-v4-shadcn - Tailwind v4 with shadcn/ui for React
- nextjs - Next.js framework setup
Contributing
Found an issue or have a suggestion?
- Open an issue: https://github.com/secondsky/claude-skills/issues
- See SKILL.md for detailed documentation
License
MIT License - See main repo LICENSE file
Production Tested: Vue/Nuxt applications with 50+ accessible components Token Savings: ~70% Error Prevention: 100% Ready to use! See SKILL.md for complete setup.
Details
- Marketplace
- secondsky/claude-skills
- Source
- plugins/shadcn-vue
- Category
- Frontend
- Keywords
- shadcn-vue, shadcn, vue, frontend, components
- Listed since
- Apr 7, 2026
Questions
What is the shadcn-vue plugin for Claude Code?
The shadcn-vue plugin gives Claude Code guidance for setting up and using shadcn-vue, the Vue and Nuxt port of shadcn/ui, built on Reka UI components and Tailwind. It covers Auto Form with Zod, data tables with TanStack, charts with Unovis, and dark mode with useColorMode.
How do I install the shadcn-vue plugin?
Run /plugin marketplace add secondsky/claude-skills, then /plugin install shadcn-vue@claude-skills inside Claude Code. The shadcn-vue plugin then adds its Vue and Nuxt component guidance to your session.
Which problems does the shadcn-vue plugin help fix?
The shadcn-vue plugin addresses missing TypeScript path aliases, components that are not styled, broken CSS variables, and dark mode that does not apply. It also covers components.json misconfiguration and monorepo path issues.
Is the shadcn-vue plugin for React projects?
No, the shadcn-vue plugin is for Vue 3 projects and Nuxt, and its README says to use the tailwind-v4-shadcn skill instead when building with React. It also requires Tailwind CSS, so it is not for projects that avoid it.
More from secondsky/claude-skills
All 122- systematic-debuggingv3.12.0
- tailwind-v4-shadcnv3.12.0
- tanstack-aiv3.12.0
- tanstack-queryv3.12.0
- tanstack-routerv3.12.0
- tanstack-startv3.12.0
- tanstack-tablev3.12.0
- tech-debtv3.12.0
- technical-specificationv3.12.0
- test-quality-analysisv3.12.0
- thesys-generative-uiv3.12.0
- threejsv3.12.0
- turborepov3.12.0
- typescript-migrationv3.12.0
- ultracitev3.12.0
- unknowns-discoveryv3.12.0
- vitest-testingv3.12.0
- vulnerability-scanningv3.12.0
- web-performance-auditv3.12.0
- web-performance-optimizationv3.12.0
- websocket-implementationv3.12.0
- woocommerce-backend-devv3.12.0
- woocommerce-code-reviewv3.12.0
- woocommerce-copy-guidelinesv3.12.0
Similar to shadcn-vue
More Frontend & UI Codenuxt-ui-v4Skillsecondsky/claude-skills430 installsDashboard, chat, editor, and page-layout component library for Nuxt v4 with Tailwind v4 and Reka UI accessibility.
nuxt-uiSkillonmax/nuxt-skills7.3K installsVue component library theming, forms, tables, and overlays built on Reka UI and Tailwind CSS with live MCP docs.
nuxt-v5Pluginsecondsky/claude-skills254 starsComprehensive Nuxt 5 development with 4 focused skills (core, data, server, production), 3 diagnostic agents (debugger, migration, performance), and interactive
artifacts-builderPluginComposioHQ/awesome-claude-skills51.5K starsSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for
vuePluginTheBushidoCollective/han201 starsAdvanced Vue skills for Composition API, components, and reactivity.
BlatuiMCP serveranousss007269 starsCopy-paste shadcn/ui-style Blade components, blocks, and charts for Laravel, read and installed via the BlatUI registry.