aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-05-04 17:50:42 +0900
committerGitHub <noreply@github.com>2020-05-04 17:50:42 +0900
commit69b6894b1997a773678709a7cd591afddc15c8ce (patch)
tree07e4c665829236e733316ae6f2684fe03b0a6781 /docs
parent49addd75b76f185c9dad5d74e44e39cbea360510 (diff)
parent44ff8e449dba0de32500da3c3f17fc1361449717 (diff)
Merge pull request #751 from ueokande/dark-mode
Supports dark mode
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/css/style.scss1
-rw-r--r--docs/properties.md16
2 files changed, 17 insertions, 0 deletions
diff --git a/docs/assets/css/style.scss b/docs/assets/css/style.scss
index f539a2f..18380ed 100644
--- a/docs/assets/css/style.scss
+++ b/docs/assets/css/style.scss
@@ -136,6 +136,7 @@ main {
pre > code {
background: none;
+ padding: .2em 0;
}
code {
diff --git a/docs/properties.md b/docs/properties.md
index 921fbff..2fb6d20 100644
--- a/docs/properties.md
+++ b/docs/properties.md
@@ -52,3 +52,19 @@ Each character represents the following:
```
:set complete=sbh
```
+
+## `colorscheme`
+
+Set color scheme on the console. The allowed value is one of `light`, `dark`,
+and `system` (default). `light` and `dark` indicate the light-mode and
+dark-mode are used in the console, respectively. `system` indicate the
+preferred color configured by system settings is used (see also
+[prefers-color-scheme][]).
+
+```
+set colorscheme=system " Use system settings
+set colorscheme=light " Light mode
+set colorscheme=dark " Dark mode
+```
+
+[prefers-color-scheme]: https://developer.mozilla.org/docs/Web/CSS/@media/prefers-color-scheme