@nuxt/theme

4,922 35
Install
npm install @nuxt/theme
Latest Version:0.0.2
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm

@nuxt/theme

npm version npm downloads ci

Add theme/extends support to Nuxt 2 projects!

Features

  • Forward compatible with Nuxt 3 multi Apps
  • Support nested extends
  • Smartly merge config and hooks
  • Allow theme development to be like a normal nuxt project

Usage

Common Setup

Install @nuxt/theme as a dependency:

# yarn
yarn add @nuxt/theme

# npm
npm i @nuxt/theme

Update nuxt.config file:

import { resolveConfig } from '@nuxt/theme'

export default resolveConfig({
  // Your actual Nuxt configuration
})

Theme Consumer

Use extends key in nuxt.config:

import { resolveConfig } from '@nuxt/theme'

export default resolveConfig({
  extends: '@nuxt/docs-theme',
})

Theme Author

  1. Update nuxt.config and ensure required rootDir and name properties are provided
import { resolveConfig } from '@nuxt/theme'

export default resolveConfig({
  rootDir: __dirname,
  name: 'myTheme',
}

Note: If you are extending another theme, rootDir should be ONLY provided if you want to also extend project.

  1. Instead of using ~/ or @/ aliases, use ~myTheme or @myTheme

License

MIT. Made with 💖

Related Packages

@nuxt/opencollective
204,891,232 29
@nuxt/kit

Toolkit for authoring modules and interacting with Nuxt

180,912,103 61,000
@nuxt/devtools-kit
74,439,777 3,310
@nuxt/devtools

The Nuxt DevTools gives you insights and transparency about your Nuxt App.

52,400,352 3,310
@nuxt/eslint-config

ESLint config for Nuxt projects

24,335,600 640

Version History

Version Released License
0.0.2 MIT
0.0.1 MIT
0.0.0 MIT