vitepress-dark-theme

0.1.9 • Public • Published

vitepress-dark-theme

Basic dark theme for vitepress It starts with the current OS theme and for now it does not save the state. so refreshes will reset theme to OS default It add itself as last element in the navLink slot

Installation

install the module

npm i vitepress-dark-theme -D

Setup

import the theme and export the theme inside the theme folder

//.vitepress/theme/index.js
import DarkTheme from 'vitepress-dark-theme/index.js'
export default { ...DarkTheme }

In case you don't ave any nav bar and didn't set a repo in the configuration at least add an empty array in the nav config settings...

//docs\.vitepress\config.js
...
themeConfig: {
    ...
    nav: [],
    ...
}

Readme

Keywords

Package Sidebar

Install

npm i vitepress-dark-theme

Weekly Downloads

1

Version

0.1.9

License

MIT

Unpacked Size

9.24 kB

Total Files

6

Last publish

Collaborators

  • bottero