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

68 lines
1.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"
```
**List colorschemes**
| Name | dark | light | term | gui | statusline |
| ---------- | ---- | ----- | ---- | --- | ---------- |
| gruvbox | yes | yes | yes | yes | yes |
| one | yes | yes | yes | yes | yes |
| molokai | yes | no | yes | yes | yes |
| jellybeans | yes | no | yes | yes | yes |
| nord | yes | no | yes | yes | yes |
| onedark | yes | no | yes | yes | yes |
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"
```
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-05-23 21:33:16 +08:00
random-theme = true
```