Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nuxt/ui/llms.txt
Use this file to discover all available pages before exploring further.
Vue Installation
Install and configure Nuxt UI in your standalone Vue 3 application with Vite.Prerequisites
- Node.js
^20.19.0or>=22.12.0 - Vue
^3.5.0 - Vite-based project setup
Installation
Install the Package
Install Nuxt UI and Tailwind CSS:
vue-router is required for Nuxt UI’s Link component functionality.Plugin Configuration
Customize Nuxt UI by passing options to the Vite plugin:vite.config.ts
Configuration Options
prefix
Customize the component prefix (default:U).
vite.config.ts
colorMode
Enable or disable color mode integration with@vueuse/core (default: true).
vite.config.ts
theme.colors
Define available color aliases for components (default:['primary', 'secondary', 'success', 'info', 'warning', 'error']).
vite.config.ts
theme.transitions
Enable or disable component transitions (default:true).
vite.config.ts
theme.defaultVariants
Set default variants for all components.vite.config.ts
theme.prefix
Add a prefix to Tailwind CSS utility classes.vite.config.ts
dts
Generate TypeScript declaration files for auto-imported components (default: based on environment).vite.config.ts
router
Configure router integration mode.vite.config.ts
autoImport
Customizeunplugin-auto-import options.
vite.config.ts
components
Customizeunplugin-vue-components options.
vite.config.ts
scanPackages
Scan additional packages for Nuxt UI components.vite.config.ts
Auto-Imports
The Vite plugin automatically imports:- Components: All UI components are auto-imported with your configured prefix
- Composables: Utility composables from Nuxt UI and VueUse
- Types: TypeScript types for components and composables
Auto-imports are powered by
unplugin-auto-import and unplugin-vue-components, which are included with Nuxt UI.Color Mode Integration
WhencolorMode: true (default), Nuxt UI integrates with VueUse’s color mode:
Inertia.js Integration
For Inertia.js applications, use therouter: 'inertia' option:
vite.config.ts
main.ts
TypeScript Support
For full TypeScript support, ensure yourtsconfig.json includes:
tsconfig.json
Next Steps
Component Library
Explore all available components.
Theming
Customize component styles and create your design system.
Composables
Learn about utility composables and hooks.
Examples
See real-world usage examples.