Theming & Vuetify
Customize Vuetify theme colors, global component defaults, brand logos, images, and Material Design Icons in Nuxtify.
How Vuetify Is Integrated
@nuxtify/core pulls in vuetify-nuxt-module automatically and sets a minimal baseline theme and component defaults:
- Default light theme colors:
primary: '#020420',secondary: '#00DC82',background: '#fff' - Default button styling:
VBtn: { color: 'secondary', variant: 'flat', class: 'text-none' }(with context-aware overrides insideVAlert,VFooter, andVNumberInput)
Because Nuxtify leans on Vuetify's built-in theme tokens and global defaults instead of heavy custom CSS, you can transform the look of your entire site from one config file.
Customizing vuetify.config.ts
Create a vuetify.config.ts file at the root of your project using defineVuetifyConfiguration:
// vuetify.config.ts
import { defineVuetifyConfiguration } from 'vuetify-nuxt-module/custom-configuration'
export default defineVuetifyConfiguration({
components: ['VBtn', 'VAlert'],
theme: {
themes: {
light: {
colors: {
primary: '#0F172A',
secondary: '#10B981',
background: '#FFFFFF',
},
},
},
},
defaults: {
VBtn: {
rounded: 0,
},
VCard: {
rounded: 'lg',
},
},
})
Why List components in vuetify.config.ts?
Vuetify tree-shakes components automatically in .vue files, but components invoked dynamically inside Markdown/MDC (such as ::v-alert or ::v-btn) aren't statically visible to the compiler. Adding them to components: ['VBtn', 'VAlert'] ensures they are globally available in Markdown content.
Global Component Defaults vs. Nuxtify Options
Prefer Vuetify's defaults in vuetify.config.ts whenever you want to restyle Vuetify primitives across your entire site (button border radius, card elevation, alert variants, text field density).
Brand Logos and Responsive Sizing
Configure your site's light and dark logos under nuxtify.brand.logo in app/app.config.ts:
// app/app.config.ts
export default defineAppConfig({
nuxtify: {
brand: {
name: 'Acme',
logo: {
lightUrl: '/img/logo-light.png',
darkUrl: '/img/logo-dark.png',
width: 400,
mobileWidth: 200,
height: 100,
mobileHeight: 50,
},
},
},
})
The recommended aspect ratio is 4:1 (e.g. 400 x 100 px).
The built-in AppLogo component automatically:
- Uses
lightUrlin the header anddarkUrlin the dark footer (<AppLogo dark />). - Switches between
width/heighton desktop andmobileWidth/mobileHeighton small screens (smAndDown). - Falls back cleanly to your
brand.nametext if no logo URL is configured.
Optimized Images with NuxtifyImg
@nuxtify/core includes @nuxt/image and registers NuxtifyImg, a wrapper around Vuetify's <v-img> that generates responsive srcset attributes and WebP conversions automatically (while bypassing format conversion for .svg assets):
<NuxtifyImg
src="/img/hero-screenshot.png"
alt="Product dashboard preview"
:width="1200"
:height="675"
sizes="sm:100vw md:800px lg:1200px"
/>
Pass the to prop to wrap the image in a <NuxtLink> automatically.
Material Design Icons
Vuetify is configured with Material Design Icons (mdi-*). Use any MDI icon string across:
- Navigation links (
icon: 'mdi-file-document-outline') - Page hero & CTA buttons (
appendIcon: 'mdi-chevron-right') - Docs category tabs and pages (
icon: 'mdi-rocket-launch-outline') - Vuetify
<v-icon>components
Next Steps
- Configure your site's header, dropdown menus, announcement bar, and footer in Layouts & Navigation.
- Browse all theming and brand options in Core Options.