跳到正文
Skillpedia
网站与界面(前端)7.0k · #13692

nuxt-ui

它能做什么

这项技能指导使用基于 Vue 和 Tailwind CSS 构建的 Nuxt UI 库来开发网页界面。它适合希望为仪表盘、表单、文档或聊天界面获得无障碍且带主题的组件的开发者。

适用场景

  • ✓当你正在构建 Nuxt 或 Vue 界面,并希望使用现成的无障碍组件时。
  • ✓当你需要自定义主题,使其与品牌匹配的时候。
  • ✓当你在组合仪表盘、文档站或聊天界面布局的时候。

技能链接

https://github.com/nuxt/ui/blob/v4/skills/nuxt-ui/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nuxt/ui/blob/v4/skills/nuxt-ui/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“你能用 Nuxt UI 组件在我的 Nuxt 应用中做一个设置页面,并使用符合我们品牌的深色主题吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会为页面的每个部分选择合适的组件,为品牌设置主题令牌,并组装布局。对于确切的属性和事件,它会使用 Nuxt UI 文档服务器。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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, category, or intent (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)

  1. Always wrap the app in UApp — required for toasts, tooltips, and programmatic overlays. Accepts a locale prop for i18n.
  2. Always use semantic colors — text-default, bg-elevated, border-muted, etc. Never use raw Tailwind palette colors like text-gray-500.
  3. 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.
  4. Override priority (highest wins): ui prop / class prop → global config → theme defaults.
  5. 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,
常见问题

它能在 Nuxt 之外使用吗?

可以。该技能说明,该库也可用于配合 Vite 的 Vue、Laravel 和 AdonisJS。

我在哪里查询组件的属性?

该技能推荐使用 Nuxt UI MCP 服务器获取确切的组件详情。

它针对哪个版本?

它是为 @nuxt/ui 第 4 版编写的。

详情

作者的原始描述

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.

repo: nuxt/ui

热度

GitHub 星标
7.0k
排名
#13692
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能