Overriding Defaults
Learn how Nuxtify's CSS-like cascading override model lets you replace any component, layout, page, composable, or utility cleanly.
How Cascading Overrides Work
Nuxtify is built around progressive upgrading—the same mental model as CSS cascading. Each layer registers its runtime files with a lower priority than the layer above it:
@nuxtify/coreruntime imports register at priority-30@nuxtify/pagesruntime imports register at priority-20@nuxtify/cmsruntime imports register at priority-10- Your Nuxt layers and host app resolve at default priority (
0), so your files always take priority
That means you can adopt Nuxtify defaults on day one and selectively replace individual pieces later without ejecting or forking the module.
Overriding Components
To override any auto-imported Nuxtify component, create a component with the same name inside your app's app/components/ directory.
For example, @nuxtify/pages ships an empty placeholder component named FooterCustom.vue rendered inside AppFooter.vue. Creating app/components/FooterCustom.vue injects your custom footer row automatically:
<!-- app/components/FooterCustom.vue -->
<script setup lang="ts">
const links = [
{ text: 'Status', to: '/status' },
{ text: 'Changelog', to: '/changelog' },
]
</script>
<template>
<v-row class="mb-2">
<v-col cols="12">
<v-divider class="mb-6 opacity-20" />
<div class="d-flex flex-wrap gc-5 text-body-2">
<NuxtLink
v-for="link in links"
:key="link.text"
:to="link.to"
>
{{ link.text }}
</NuxtLink>
</div>
</v-col>
</v-row>
</template>
You can use the exact same pattern to replace any built-in component—such as AppHeader.vue, AppFooter.vue, ArticleCard.vue, or PageHero.vue—simply by matching its component name.
Built-In Extension Hooks
Two components exist specifically as zero-override extension points so you don't have to replace an entire parent template:
FooterCustom.vue(@nuxtify/pages) — renders insideAppFooter.vuebetween the link columns andAppCredits.ContributorCustomContent.vue(@nuxtify/cms) — renders extra author-specific content on contributor profile pages.
Overriding Layouts
@nuxtify/pages registers DefaultLayout.vue as the default layout. If your project defines app/layouts/default.vue, Nuxt automatically uses yours instead.
You can also add additional named layouts (like app/layouts/blank.vue) and opt into them per page with definePageMeta({ layout: 'blank' }).
Overriding and Adding Pages
@nuxtify/cms registers its built-in routes (such as /:slug?, /articles, /topics, /contributors, /notes, and /docs/:slug(.*)*) via extendPages.
Before prepending each built-in route, @nuxtify/cms checks whether your host app already defines a page with the same route name or normalized path (including routes nested under parent children). When a host override exists, @nuxtify/cms skips registering its default route altogether instead of adding a duplicate route.
In your own app, adding a standard Vue page in app/pages/ works seamlessly alongside Nuxtify's routes:
- Replace a built-in page: Create the matching file in
app/pages/(for example,app/pages/articles/index.vueorapp/pages/topics/[slug].vue). Your page takes over and the module's default route is skipped. - Add custom routes alongside catch-all Markdown pages: Create any custom route like
app/pages/pricing.vueorapp/pages/use-cases/[slug].vue—Vue Router matches more specific routes ahead of the/:slug?catch-all.
Overriding Composables and Utilities
Because Nuxtify lowers the auto-import priority of its runtime composables and utilities, creating a function with the same exported name in app/composables/ or app/utils/ cleanly overrides the module's version.
// app/composables/useReadingTime.ts
export function useReadingTime(text: string): number {
const words = text.trim().split(/\s+/).length
return Math.max(1, Math.ceil(words / 220))
}
Extending vs. Replacing in MDC
When authoring Markdown pages with @nuxtify/cms, you don't have to choose between built-in blocks and custom Vue components. Any component in app/components/ is usable directly in Markdown alongside Nuxtify's Page* blocks:
::PageSection{title="Interactive Calculator"}
::PricingCalculator{currency="USD"}
::
::
Next Steps
- Customize colors, typography, and Vuetify component defaults in Theming & Vuetify.
- Configure your header, footer, and announcement bar in Layouts & Navigation.