vuepress-theme-default-prefers-color-scheme
add prefers-color-scheme for vuepress default theme
Last updated 2 months ago by tolking .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vuepress-theme-default-prefers-color-scheme 
SYNC missed versions from official npm registry.

vuepress-theme-default-prefers-color-scheme

add prefers-color-scheme for vuepress default theme

README | CHANGELOG

This theme for Vuepress 1.x

Live Demo and Documentation


light.jpg

dark.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: {
    // ...
  }
}

Options

defaultTheme

  • Type: string, object
  • Required: false

By default, light or dark themes are displayed by prefers-color-scheme, You can change it by defaultTheme

support light, dark or { theme: [begin hours, end hours] }

module.exports = {
  theme: 'default-prefers-color-scheme',
  themeConfig: {
    defaultTheme: 'dark',
    // or
    defaultTheme: { dark: [18, 6] },
    // or
    defaultTheme: { light: [6, 18], dark: [18, 6] },
  }
}

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

Current Tags

  • 1.1.0                                ...           latest (2 months ago)

11 Versions

  • 1.1.0                                ...           2 months ago
  • 1.0.9                                ...           4 months ago
  • 1.0.8                                ...           4 months ago
  • 1.0.7                                ...           5 months ago
  • 1.0.6                                ...           6 months ago
  • 1.0.5                                ...           8 months ago
  • 1.0.4                                ...           8 months ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 32
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |