Initialize Nuxt UI v4 in an existing Nuxt project with proper configuration
Sets up Nuxt UI v4 with optional AI, dashboard, and editor configurations.
/plugin marketplace add secondsky/claude-skills/plugin install nuxt-ui-v4@claude-skills[--ai] [--dashboard] [--editor]Initialize Nuxt UI v4 in the current Nuxt project with optimal configuration.
--ai: Include AI SDK v5 and Chat components setup--dashboard: Include Dashboard components configuration--editor: Include TipTap Editor setupCheck Prerequisites
nuxt.config.ts)Install Dependencies
bun add @nuxt/ui
If --ai flag:
bun add ai @ai-sdk/vue @ai-sdk/gateway
If --editor flag:
bun add @tiptap/vue-3 @tiptap/starter-kit
Configure nuxt.config.ts Add @nuxt/ui to modules:
export default defineNuxtConfig({
modules: ['@nuxt/ui'],
ui: {
colorMode: true
}
})
Setup app.vue Wrap with UApp and add CSS imports:
<template>
<UApp>
<NuxtPage />
</UApp>
</template>
<style>
@import "tailwindcss";
@import "@nuxt/ui";
</style>
Create app.config.ts Setup semantic colors:
export default defineAppConfig({
ui: {
theme: {
colors: {
primary: 'green',
neutral: 'slate'
}
}
}
})
If --dashboard flag: Create dashboard layout
layouts/dashboard.vue
If --ai flag: Create chat API endpoint
server/api/chat.post.ts
Generate Types
bunx nuxt prepare
Verify Installation
bun run dev
Report what was configured:
bun as the preferred package manager