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
|
|
|
---
|
|
|
|
|
|
|
|
# [SpaceVim Layers:](https://spacevim.org/layers) colorscheme
|
2017-05-12 20:06:20 +08:00
|
|
|
|
2018-03-25 18:01:48 +08:00
|
|
|
## Description
|
|
|
|
|
2017-05-30 10:46:57 +08:00
|
|
|
This layer provides many Vim colorschemes for SpaceVim, the default colorscheme is gruvbox.
|
|
|
|
|
2018-03-25 18:01:48 +08:00
|
|
|
## Install
|
|
|
|
|
|
|
|
This layer is disabled by default in SpaceVim.
|
|
|
|
|
|
|
|
To use this configuration layer, add `call SpaceVim#layers#load('colorscheme')` to your custom configuration file.
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
2017-05-30 10:46:57 +08:00
|
|
|
To change the colorscheme:
|
2017-12-02 23:23:58 +08:00
|
|
|
|
2017-05-12 20:06:20 +08:00
|
|
|
```vim
|
|
|
|
let g:spacevim_colorscheme = 'onedark'
|
|
|
|
```
|
2017-05-30 10:46:57 +08:00
|
|
|
|
2018-03-25 18:01:48 +08:00
|
|
|
**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 |
|
|
|
|
|
2017-05-30 10:46:57 +08:00
|
|
|
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
|
|
|
|
`g:spacevim_colorscheme_bg`:
|
2018-03-25 18:01:48 +08:00
|
|
|
|
2017-05-30 10:46:57 +08:00
|
|
|
```vim
|
|
|
|
let g:spacevim_colorscheme_bg = 'dark'
|
|
|
|
```
|
2017-05-30 11:21:47 +08:00
|
|
|
|
2018-03-25 18:01:48 +08:00
|
|
|
colorscheme layer support random colorscheme on startup. just load this layer with layer option `random-theme`
|
|
|
|
|
|
|
|
```vim
|
|
|
|
call SpaceVim#layers#load('colorscheme', {
|
|
|
|
\ 'random-theme' : 1,
|
|
|
|
\ })
|
|
|
|
```
|
|
|
|
|
|
|
|
## Contributing
|