Leverage the full power of Nuxt UI in your AI-powered workflow. These guidelines are designed to help AI coding assistants like Cursor, Windsurf, Claude Code, and others understand the best practices for working with the Nuxt UI component library.
We provide two versions of Nuxt UI rules to fit different needs:
- ~600 lines - Comprehensive documentation and examples
- Detailed breaking changes - Full v2 → v3 migration guide
- Advanced patterns - Theming, performance, accessibility, TypeScript
- Best for most projects and learning
- ~140 lines - Optimized for AI assistants with token limits
- Essential changes only - Core breaking changes and patterns
- Quick reference - Most common pitfalls to avoid
- For AI assistants with limited context
Recommended → Use the complete rules
For AI assistants with limited context → Use the minimal rules
Option 1 - Via Settings Interface (Recommended) 🎯
- Open Cursor Settings (
Cmd/Ctrl + ,
) - Navigate to "Rules for AI" tab
- Copy and paste your chosen rule content:
- Complete: Copy from nuxt-ui.md
- Minimal: Copy from nuxt-ui-minimal.md
Option 2 - Via File Configuration
- Create
.cursor/rules/nuxt-ui.mdc
in your project root - Copy your chosen rule content into this file
Place your chosen rule file in your project directory, for instance, rules/nuxt-ui.md
. Then, anytime you need Claude to understand Nuxt UI best practices, simply @
-mention the file path in your prompt to load it into the current session's context.