0.1.9 • Published 2 years ago

vitepress-dark-theme v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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: [],
    ...
}
0.1.8

2 years ago

0.1.9

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago