Using a theme

Using a theme is almost the 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 theme 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 theme whose name starts with @vuepress/theme- is an officially maintained theme.