1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 23:10:04 +08:00
SpaceVim/docs/layers/colorscheme.md

98 lines
2.6 KiB
Markdown
Raw Normal View History

2017-12-02 23:23:58 +08:00
---
title: "SpaceVim colorscheme layer"
2017-12-06 20:20:04 +08:00
description: "colorscheme provides a list of colorscheme for SpaceVim, default colorscheme is gruvbox with dark theme."
2017-12-02 23:23:58 +08:00
---
2018-06-23 14:37:41 +08:00
# [Available Layers](../) >> colorschemes
2018-05-23 21:33:16 +08:00
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
- [Configuration](#configuration)
<!-- vim-markdown-toc -->
## Description
This layer provides many Vim colorschemes for SpaceVim, the default colorscheme is gruvbox.
## Install
This layer is disabled by default in SpaceVim.
2018-05-23 21:33:16 +08:00
To use this configuration layer, add this snippet to your custom configuration file.
```toml
[[layers]]
name = "colorscheme"
2018-05-23 21:33:16 +08:00
```
## Configuration
To change the colorscheme:
2017-12-02 23:23:58 +08:00
2018-05-23 21:33:16 +08:00
```toml
[options]
colorscheme = "onedark"
```
2018-09-16 13:05:35 +08:00
Colorscheme list
| Name | dark | light | term | gui | statusline |
| ------------ | ---- | ----- | ---- | --- | ---------- |
| molokai | yes | no | yes | yes | yes |
| srcery | yes | no | yes | yes | yes |
| onedark | yes | no | yes | yes | yes |
| jellybeans | yes | no | yes | yes | yes |
| palenight | yes | no | yes | yes | yes |
| one | yes | yes | yes | yes | yes |
| nord | yes | no | yes | yes | yes |
| gruvbox | yes | yes | yes | yes | yes |
| NeoSolarized | yes | yes | yes | yes | yes |
| hybrid | yes | yes | yes | yes | yes |
| material | yes | yes | yes | yes | yes |
| SpaceVim | yes | yes | yes | yes | yes |
2018-09-16 13:05:35 +08:00
2019-04-20 13:10:18 +08:00
By default this layer only include above colorschemes. If you want to use other colorschemes which
are available on Github, use the `custom_plugins` section in configuration file. For example:
2018-09-16 13:05:35 +08:00
```toml
[options]
colorscheme = "OceanicNext"
colorscheme_bg = "dark"
# add custom_plugins: https://github.com/mhartington/oceanic-next
[[custom_plugins]]
name = "mhartington/oceanic-next"
merged = 0
```
Some colorschemes offer dark and light styles. Most of them are set by changing
Vim background color. SpaceVim support to change the background color with
2018-05-23 21:33:16 +08:00
`colorscheme_bg`:
2018-05-23 21:33:16 +08:00
```toml
[options]
colorscheme = "onedark"
colorscheme_bg = "dark"
```
2018-09-25 15:56:41 +08:00
Colorscheme layer support random colorscheme on startup. just load this layer with layer option `random_theme`
2018-05-23 21:33:16 +08:00
```toml
[[layers]]
name = "colorscheme"
2018-09-25 15:56:41 +08:00
random_theme = true
```
2018-09-16 13:05:35 +08:00
2019-04-28 21:19:09 +08:00
The frequency can be changed via `frequency` layer options, the available values are `daily`, `hourly`, `weekly`.
2018-09-25 15:56:41 +08:00
You can also use `number + unit`, for example: `1h`.
```toml
[[layers]]
name = "colorscheme"
random_theme = true
2018-09-25 22:05:49 +08:00
frequency = "daily"
2018-09-25 15:56:41 +08:00
```