Using a theme

Using a theme is almost same as using a plugin.

Using a theme from a dependency

Themes can be published on npm in raw Vue SFC format as vuepress-theme-xxx.

module.exports = {
  theme: 'vuepress-theme-xx'
}

Theme Shorthand

If you prefix the plugin with vuepress-theme-, you can use a shorthand to leave out that prefix:

module.exports = {
  theme: 'xxx'
}

Same with:

module.exports = {
  theme: 'vuepress-theme-xxx'
}

This also works with Scoped Packages:

module.exports = {
  theme: '@org/vuepress-theme-xxx', // or an official theme: '@vuepress/theme-xxx'
}

Shorthand:

module.exports = {
  theme: '@org/xxx', // or an official theme: '@vuepress/xxx'
}

Note

The plugin whose name starts with @vuepress/theme- is an officially maintained theme.