All Projects → tolking → vuepress-theme-default-prefers-color-scheme

tolking / vuepress-theme-default-prefers-color-scheme

Licence: MIT license
add prefers-color-scheme for vuepress default theme

Programming Languages

stylus
462 projects
Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vuepress-theme-default-prefers-color-scheme

vuepress-theme-ououe
A blog theme for VuePress
Stars: ✭ 77 (+50.98%)
Mutual labels:  light-theme, dark-theme, vuepress, vuepress-theme
Adonis Ui
Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
Stars: ✭ 878 (+1621.57%)
Mutual labels:  light-theme, dark-theme
Snippetstore
🎉 A snippet management app for developers 🚀
Stars: ✭ 762 (+1394.12%)
Mutual labels:  light-theme, dark-theme
Gatsby Starter Hello Friend
Pretty basic starter for Gatsby that covers all of the essentials. All you have to do is start typing!
Stars: ✭ 162 (+217.65%)
Mutual labels:  light-theme, dark-theme
Startpage
New revamped and improved Startpage, now with Dark Mode support!
Stars: ✭ 35 (-31.37%)
Mutual labels:  light-theme, dark-theme
Avalondock
Our own development branch of the well known WPF document docking library
Stars: ✭ 518 (+915.69%)
Mutual labels:  light-theme, dark-theme
St Theme Freesia
Freesia theme for Sublime Text 3. (Unmaintained.)
Stars: ✭ 108 (+111.76%)
Mutual labels:  light-theme, dark-theme
Ayu
🎨🖌 Modern Sublime Text theme
Stars: ✭ 3,933 (+7611.76%)
Mutual labels:  light-theme, dark-theme
Firefox Gnome Theme
A theme for Firefox 57+ matching GNOME Adwaita.
Stars: ✭ 179 (+250.98%)
Mutual labels:  light-theme, dark-theme
Gruvbox
🎨 Sublime Text themes & color schemes with pastel 'retro groove' colors
Stars: ✭ 191 (+274.51%)
Mutual labels:  light-theme, dark-theme
Edi
Edi - The open source text editor IDE based on AvalonDock and AvalonEdit
Stars: ✭ 220 (+331.37%)
Mutual labels:  light-theme, dark-theme
theme-collection
A collection of themes for Node-RED
Stars: ✭ 43 (-15.69%)
Mutual labels:  light-theme, dark-theme
Spacemacs Theme
Light and dark theme for spacemacs that supports GUI and terminal
Stars: ✭ 483 (+847.06%)
Mutual labels:  light-theme, dark-theme
Sweet
Light and dark colorful Gtk3.20+ theme
Stars: ✭ 703 (+1278.43%)
Mutual labels:  light-theme, dark-theme
Emacs Kaolin Themes
Set of eye pleasing themes for GNU Emacs. Supports both GUI and terminal.
Stars: ✭ 421 (+725.49%)
Mutual labels:  light-theme, dark-theme
Elrodeo Vim Colorscheme
Dark low-contrast color scheme for Vim
Stars: ✭ 32 (-37.25%)
Mutual labels:  light-theme, dark-theme
vscode-theme-gruvbox-minor
Gruvbox theme for Visual Studio Code
Stars: ✭ 17 (-66.67%)
Mutual labels:  light-theme, dark-theme
Elementaryos Firefox Theme
This theme for Firefox supports all the window buttons layouts from Tweaks and it blends into the elementary OS user interface.
Stars: ✭ 291 (+470.59%)
Mutual labels:  light-theme, dark-theme
Rsthemes
🔮 Full RStudio IDE and Syntax Themes
Stars: ✭ 307 (+501.96%)
Mutual labels:  light-theme, dark-theme
Windows Auto Night Mode
Automatically switches between the dark and light theme of Windows 10 and Windows 11
Stars: ✭ 3,375 (+6517.65%)
Mutual labels:  light-theme, dark-theme

License Latest tag via npm Latest tag via GitHub

vuepress-theme-default-prefers-color-scheme

This plugin adds support for prefers-color-scheme to the Vuepress 1.x default theme.

Live Demo and Documentation

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'
}

Options

overrideTheme (optional)

Force users into a specific theme, ignoring prefers-color-scheme.

Allowed values:

  • 'light' | 'dark': Always use the given theme
  • { light: [beginHours: number, endHours: number], dark: [beginHours: number, endHours: number] }: Control the time of the day when each theme is used

For example:

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

prefersTheme (optional)

Use the given theme when the browser does not support prefers-color-scheme but supports CSS Variables

Allowed values:

  • 'light' | 'dark'

For example:

module.exports = {
  theme: 'default-prefers-color-scheme',
  themeConfig: {
    prefersTheme: 'dark',
  }
}

Theme Config

Styling

Apply simple color overrides to the styling of the default preset in your .vuepress/styles/palette.styl file.

Alternatively, set CSS Variables in your .vuepress/styles/index.styl file.

$accentColor and $accentDarkColor are best changed together

Changelog

This project uses semantic versioning and tracks changes in CHANGELOG.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].