Skip to content

secondsky/claude-skills / plugins/shadcn-vue/skills/shadcn-vue

shadcn-vue

Verified

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.

scripts/quick-setup.sh

View on GitHub
#!/bin/bash

# Quick Setup Script for shadcn-vue
# This script helps quickly set up shadcn-vue in a Vue or Nuxt project

set -e

echo "🎨 shadcn-vue Quick Setup"
echo "========================"
echo ""

# Check if we're in a Vue/Nuxt project
if [ ! -f "package.json" ]; then
  echo "❌ Error: No package.json found. Run this script from your project root."
  exit 1
fi

# Detect project type
PROJECT_TYPE="unknown"
if grep -q '"nuxt"' package.json; then
  PROJECT_TYPE="nuxt"
  echo "βœ“ Detected: Nuxt project"
elif grep -q '"vue"' package.json; then
  PROJECT_TYPE="vue"
  echo "βœ“ Detected: Vue project"
else
  echo "⚠️  Warning: Could not detect project type. Assuming Vue."
  PROJECT_TYPE="vue"
fi

echo ""

# Ask for package manager preference
echo "Choose package manager:"
echo "1) bun (recommended)"
echo "2) npm"
echo "3) pnpm"
read -p "Enter choice [1-3]: " pm_choice

case $pm_choice in
  1)
    PM="bun"
    PM_ADD="bun add"
    PM_RUN="bunx"
    ;;
  2)
    PM="npm"
    PM_ADD="npm install"
    PM_RUN="npx"
    ;;
  3)
    PM="pnpm"
    PM_ADD="pnpm add"
    PM_RUN="pnpm dlx"
    ;;
  *)
    echo "Invalid choice. Defaulting to bun."
    PM="bun"
    PM_ADD="bun add"
    PM_RUN="bunx"
    ;;
esac

echo ""
echo "Using: $PM"
echo ""

# Install Tailwind CSS if not present
if ! grep -q '"tailwindcss"' package.json; then
  echo "πŸ“¦ Installing Tailwind CSS..."
  $PM_ADD tailwindcss @tailwindcss/vite
else
  echo "βœ“ Tailwind CSS already installed"
fi

# Install @types/node if TypeScript project
if [ -f "tsconfig.json" ]; then
  if ! grep -q '"@types/node"' package.json; then
    echo "πŸ“¦ Installing @types/node..."
    $PM_ADD -D @types/node
  else
    echo "βœ“ @types/node already installed"
  fi
fi

echo ""
echo "πŸš€ Running shadcn-vue init..."
echo ""

# Run shadcn-vue init
$PM_RUN shadcn-vue@latest init

echo ""
echo "βœ… Setup complete!"
echo ""
echo "Next steps:"
echo "1. Add your first component: $PM_RUN shadcn-vue@latest add button"
echo "2. Import in your Vue file: import { Button } from '@/components/ui/button'"
echo "3. Use in template: <Button>Click me</Button>"
echo ""
echo "For dark mode setup, see: references/dark-mode-setup.md"
echo "For full documentation, see: SKILL.md"
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall