JSPM

vuepress-theme-default-prefers-color-scheme

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 94
  • Score
    100M100P100Q92489F
  • License MIT

add prefers-color-scheme for vuepress default theme

Package Exports

  • vuepress-theme-default-prefers-color-scheme

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vuepress-theme-default-prefers-color-scheme) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vuepress-theme-default-prefers-color-scheme

add prefers-color-scheme for vuepress default theme

This theme for Vuepress 1.x, Works only on supported operating systems and browsers

prefers-color-scheme

Live Demo and Documentation


light.jpg

light.jpg


Installation

yarn add vuepress-theme-default-prefers-color-scheme
# or
npm i vuepress-theme-default-prefers-color-scheme

Usage

// .vuepress -> config.js
module.exports = {
  theme: 'default-prefers-color-scheme',
  themeConfig: {
    // ...
  }
}

Theme Config

Styling

To apply simple color overrides to the styling of the default preset, In your .vuepress/styles/palette.styl file.

$accentColor and $accentDarkColor are best changed together

License

MIT

Keywords

vue vuepress documentation prefers-color-scheme default-theme light-theme dark-theme