@@ -54,3 +54,34 @@ This is a personal blog built with:
5454- ** TailwindCSS v4** - Styling
5555
5656Content is stored in the ` content/ ` directory with blog posts in ` content/1.posts/ ` .
57+
58+ ## Nuxt UI v3 Styling Guidelines
59+
60+ When customizing Nuxt UI v3 components:
61+
62+ ### Use the ` ui ` prop for styling
63+ Do NOT use ` class ` to style internal parts of components. Instead, use the ` ui ` prop with slot names:
64+
65+ ``` vue
66+ <!-- ❌ Wrong - class doesn't affect internal elements -->
67+ <UNavigationMenu :items="items" class="text-xl font-semibold" />
68+
69+ <!-- ✅ Correct - use ui prop with slot names -->
70+ <UNavigationMenu
71+ :items="items"
72+ :ui="{ link: 'text-xl font-semibold' }"
73+ />
74+ ```
75+
76+ ### Common ui slots by component
77+ - ** UNavigationMenu** : ` root ` , ` list ` , ` link ` , ` linkLabel ` , ` linkLeadingIcon ` , etc.
78+ - ** UButton** : ` base ` , ` label ` , ` leadingIcon ` , ` trailingIcon `
79+ - ** UHeader** : ` root ` , ` left ` , ` center ` , ` right ` , ` logo `
80+ - ** UAvatar** : ` root ` , ` image ` , ` fallback `
81+
82+ ### Always check component documentation
83+ Use ` mcp_nuxt-ui_get-component ` or ` mcp_nuxt-ui_get-component-metadata ` to find:
84+ - Available props and their types
85+ - Available slots for customization
86+ - The ` ui ` prop structure with all customizable slots
87+ - Theme configuration in ` app.config.ts `
0 commit comments