Nuxt UI
Vue component library built on Reka UI + Tailwind CSS + Tailwind Variants. Works with Nuxt, Vue (Vite), Laravel (Vite + Inertia), and AdonisJS (Vite + Inertia).
MCP Server
For component API details (props, slots, events, full documentation, examples), use the Nuxt UI MCP server. If not already configured, add it:
Cursor — .cursor/mcp.json:
{ "mcpServers": { "nuxt-ui": { "type": "http", "url": "https://ui.nuxt.com/mcp" } } }
Claude Code:
claude mcp add --transport http nuxt-ui https://ui.nuxt.com/mcp
Key MCP tools:
search_components — find components by name, description, or category (no params = list all)
search_composables — find composables by name or description (no params = list all)
search_icons — search Iconify icons (defaults to lucide), returns i-{prefix}-{name} names
get_component — full component documentation with usage examples
get_component_metadata — props, slots, events (lightweight, no docs content)
get_example — real-world code examples
When you need to know what a component accepts or how its API works, use the MCP. This skill teaches you when to use which component and how to build well.
Core rules (always apply)
- Always wrap the app in
UApp — required for toasts, tooltips, and programmatic overlays. Accepts a locale prop for i18n.
- Always use semantic colors —
text-default, bg-elevated, border-muted, etc. Never use raw Tailwind palette colors like text-gray-500.
- Read generated theme files for slot names — Nuxt:
.nuxt/ui/<component>.ts, Vue: node_modules/.nuxt-ui/ui/<component>.ts. These show every slot, variant, and default class for any component.
- Override priority (highest wins):
ui prop / class prop → global config → theme defaults.
- Icons use
i-{collection}-{name} format — lucide is the default collection. Use the MCP search_icons tool to find icons, or browse at icones.js.org.
How to use this skill
Based on the task, load the relevant reference files before writing any code. Don't load everything — only what's needed.
Reference files
Guidelines — design decisions and conventions:
- design-system — semantic colors, theming, brand customization, variants, the
ui prop
- component-selection — decision matrices: when to use Modal vs Slideover, Select vs SelectMenu, Toast vs Alert, etc.
- conventions — coding patterns, slot naming, items arrays, composables, keyboard shortcuts
- forms — form validation, field layout, error handling, Standard Schema
Layouts — full page structure patterns:
- landing — landing pages, blog, changelog, pricing
- dashboard — admin UI with sidebar and panels
- docs — documentation sites with navigation and TOC
- chat — AI chat with Vercel AI SDK
- editor — rich text editor with toolbars
Recipes — complete patterns for common tasks:
- data-tables — tables with filters, pagination, sorting, selection
- auth — login, signup, forgot password forms
- overlays — modals, slideovers, drawers, command palette
- navigation — headers, sidebars, breadcrumbs, tabs
Quick reference:
- components — categorized component index for finding the right component name
Routing table
| Task |
Load these references |
| Build a landing page |
design-system, conventions, landing |
| Build a dashboard / admin UI |
conventions, component-selection, dashboard |
| Add a settings page |
conventions, forms |
| Create a login / signup form |
conventions, forms, auth |
| Display data in a table |
conventions, component-selection, data-tables |
| Customize theme / brand colors |
design-system |
| Add a chat interface |
conventions, chat |
| Add a modal, slideover, or drawer |
conventions, component-selection, overlays |
| Build site navigation |
conventions, component-selection, navigation |
| Build a documentation site |
conventions, docs |
| Add a rich text editor |
conventions, editor |
| General UI work |
conventions, component-selection |
Installation
Nuxt
pnpm add @nuxt/ui tailwindcss
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@nuxt/ui'],
css: ['~/assets/css/main.css']
})
/* app/assets/css/main.css */
@import "tailwindcss";
@import "@nuxt/ui";
<!-- app.vue -->
<template>
<UApp>
<NuxtPage />
</UApp>
</template>
Vue (Vite)
pnpm add @nuxt/ui tailwindcss
// vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import ui from '@nuxt/ui/vite'
export default defineConfig({
plugins: [
vue(),
ui()
]
})
// src/main.ts
import './assets/main.css'
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import ui from '@nuxt/ui/vue-plugin'
import App from './App.vue'
const app = createApp(App)
const router = createRouter({
routes: [],
history: createWebHistory()
})
app.use(router)
app.use(ui)
app.mount('#app')
/* assets/main.css */
@import "tailwindcss";
@import "@nuxt/ui";
<!-- src/App.vue -->
<template>
<UApp>
<RouterView />
</UApp>
</template>
Add class="isolate" to your root <div id="app"> in index.html.
For Inertia: use ui({ router: 'inertia' }) in vite.config.ts.
1---2name: nuxt-ui3description: Build UIs with @nuxt/ui v4 — 125+ accessible Vue components with Tailwind CSS theming. Use when creating interfaces, customizing themes to match a brand, building forms, or composing layouts like dashboards, docs sites, and chat interfaces.4---56# Nuxt UI78Vue component library built on [Reka UI](https://reka-ui.com/) + [Tailwind CSS](https://tailwindcss.com/) + [Tailwind Variants](https://www.tailwind-variants.org/). Works with Nuxt, Vue (Vite), Laravel (Vite + Inertia), and AdonisJS (Vite + Inertia).910## MCP Server1112For component API details (props, slots, events, full documentation, examples), use the [Nuxt UI MCP server](https://ui.nuxt.com/docs/getting-started/ai/mcp). If not already configured, add it:1314**Cursor** — `.cursor/mcp.json`:1516```json17{ "mcpServers": { "nuxt-ui": { "type": "http", "url": "https://ui.nuxt.com/mcp" } } }18```1920**Claude Code**:2122```bash23claude mcp add --transport http nuxt-ui https://ui.nuxt.com/mcp24```2526Key MCP tools:27- `search_components` — find components by name, description, or category (no params = list all)28- `search_composables` — find composables by name or description (no params = list all)29- `search_icons` — search Iconify icons (defaults to `lucide`), returns `i-{prefix}-{name}` names30- `get_component` — full component documentation with usage examples31- `get_component_metadata` — props, slots, events (lightweight, no docs content)32- `get_example` — real-world code examples3334When you need to know **what a component accepts** or **how its API works**, use the MCP. This skill teaches you **when to use which component** and **how to build well**.3536## Core rules (always apply)37381. **Always wrap the app in `UApp`** — required for toasts, tooltips, and programmatic overlays. Accepts a `locale` prop for i18n.392. **Always use semantic colors** — `text-default`, `bg-elevated`, `border-muted`, etc. Never use raw Tailwind palette colors like `text-gray-500`.403. **Read generated theme files for slot names** — Nuxt: `.nuxt/ui/<component>.ts`, Vue: `node_modules/.nuxt-ui/ui/<component>.ts`. These show every slot, variant, and default class for any component.414. **Override priority** (highest wins): `ui` prop / `class` prop → global config → theme defaults.425. **Icons use `i-{collection}-{name}` format** — `lucide` is the default collection. Use the MCP `search_icons` tool to find icons, or browse at [icones.js.org](https://icones.js.org).4344## How to use this skill4546Based on the task, load the relevant reference files **before writing any code**. Don't load everything — only what's needed.4748### Reference files4950**Guidelines** — design decisions and conventions:51- [design-system](references/guidelines/design-system.md) — semantic colors, theming, brand customization, variants, the `ui` prop52- [component-selection](references/guidelines/component-selection.md) — decision matrices: when to use Modal vs Slideover, Select vs SelectMenu, Toast vs Alert, etc.53- [conventions](references/guidelines/conventions.md) — coding patterns, slot naming, items arrays, composables, keyboard shortcuts54- [forms](references/guidelines/forms.md) — form validation, field layout, error handling, Standard Schema5556**Layouts** — full page structure patterns:57- [landing](references/layouts/landing.md) — landing pages, blog, changelog, pricing58- [dashboard](references/layouts/dashboard.md) — admin UI with sidebar and panels59- [docs](references/layouts/docs.md) — documentation sites with navigation and TOC60- [chat](references/layouts/chat.md) — AI chat with Vercel AI SDK61- [editor](references/layouts/editor.md) — rich text editor with toolbars6263**Recipes** — complete patterns for common tasks:64- [data-tables](references/recipes/data-tables.md) — tables with filters, pagination, sorting, selection65- [auth](references/recipes/auth.md) — login, signup, forgot password forms66- [overlays](references/recipes/overlays.md) — modals, slideovers, drawers, command palette67- [navigation](references/recipes/navigation.md) — headers, sidebars, breadcrumbs, tabs6869**Quick reference:**70- [components](references/components.md) — categorized component index for finding the right component name7172### Routing table7374| Task | Load these references |75|---|---|76| Build a landing page | design-system, conventions, landing |77| Build a dashboard / admin UI | conventions, component-selection, dashboard |78| Add a settings page | conventions, forms |79| Create a login / signup form | conventions, forms, auth |80| Display data in a table | conventions, component-selection, data-tables |81| Customize theme / brand colors | design-system |82| Add a chat interface | conventions, chat |83| Add a modal, slideover, or drawer | conventions, component-selection, overlays |84| Build site navigation | conventions, component-selection, navigation |85| Build a documentation site | conventions, docs |86| Add a rich text editor | conventions, editor |87| General UI work | conventions, component-selection |8889## Installation9091### Nuxt9293```bash94pnpm add @nuxt/ui tailwindcss95```9697```ts98// nuxt.config.ts99export default defineNuxtConfig({100 modules: ['@nuxt/ui'],101 css: ['~/assets/css/main.css']102})103```104105```css106/* app/assets/css/main.css */107@import "tailwindcss";108@import "@nuxt/ui";109```110111```vue112<!-- app.vue -->113<template>114 <UApp>115 <NuxtPage />116 </UApp>117</template>118```119120### Vue (Vite)121122```bash123pnpm add @nuxt/ui tailwindcss124```125126```ts127// vite.config.ts128import { defineConfig } from 'vite'129import vue from '@vitejs/plugin-vue'130import ui from '@nuxt/ui/vite'131132export default defineConfig({133 plugins: [134 vue(),135 ui()136 ]137})138```139140```ts141// src/main.ts142import './assets/main.css'143import { createApp } from 'vue'144import { createRouter, createWebHistory } from 'vue-router'145import ui from '@nuxt/ui/vue-plugin'146import App from './App.vue'147148const app = createApp(App)149const router = createRouter({150 routes: [],151 history: createWebHistory()152})153154app.use(router)155app.use(ui)156app.mount('#app')157```158159```css160/* assets/main.css */161@import "tailwindcss";162@import "@nuxt/ui";163```164165```vue166<!-- src/App.vue -->167<template>168 <UApp>169 <RouterView />170 </UApp>171</template>172```173174> Add `class="isolate"` to your root `<div id="app">` in `index.html`.175> For Inertia: use `ui({ router: 'inertia' })` in `vite.config.ts`.