Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

emersonbottero/vitepress-dark-theme

Repository files navigation

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

About

Basic dark theme for vitepress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published