• Stars
    star
    123
  • Rank 288,305 (Top 6 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created about 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Base2Tone - duotone - Themes for Vim

Base2Tone-vim

Base2Tone-vim โ€“ colorschemes for Vim โ€“ collection of the syntax-highlighting themes containing the colorschemes of Base2Tone which were based on Duotone Themes by Simurai for Atom.

โ€œDuoTone themes use only 2 hues (7 shades in total). It tones down less important parts (like punctuation and brackets) and highlights only the important ones. This leads to a more calm color scheme, but still lets you find the stuff you're looking for.โ€

NOTE: These color schemes are optimized and have been tested in the GUI version of Vim, and will work in terminal versions as well. For terminals which donโ€™t support truecolor the colors will now use converted colors which are as close as possible in the 8-bit 256 colorspace. It works fine and looks good in Neovim, for the Gui colors for Neovim are now also specifically defined. For Terminal Vim 8+ and/or Neovim, in your (sourced) .vimrc or default .config/nvim/init.vim, have something like this:

set termguicolors
 if has('nvim')
" https://github.com/neovim/neovim/wiki/FAQ
set guicursor=n-v-c:block-Cursor/lCursor-blinkon0,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor
endif

For the most seamless experience: these same color schemes are also ported to iTerm2 and Hyper.


All colorschemes will come in a separate dark and light version.

Screenshot

Base2Tone Evening Dark
Base2Tone_EveningDark

Base2Tone Morning Light
Base2Tone_MorningLight

NOTE: For javaScript users, with the plugin Enhanced JavaScript Syntax for Vim the syntax-highlighting of these themes will look much better.

Installation

Option 1: Manual installation

  1. Move Base2Tone-*.vim to your .vim/colors directory. After downloading the vim script or package:
$ cd Base2Tone-vim/colors
$ mv *.vim ~/.vim/colors/

Option 2: for Vim 8+ installation in default pack/start folder of build-in package manager

$ cd ~/.vim/pack/bundle/start
$ git clone https://github.com/atelierbram/Base2Tone-vim.git

Option 3: for Vim 8+ and Neovim installation with minpac recommended

  1. Install minpac plugin
  2. in .vimrc:
call minpac#add('k-takata/minpac', {'type': 'opt'})
call minpac#add('atelierbram/Base2Tone-vim')

Option 4: Pathogen installation

Clone Base2Tone-vim colorschemes, with plugin manager Pathogen.

  1. Download and install Tim Pope's Pathogen.

  2. Next, move or clone the Base2Tone-vim directory so that it is a subdirectory of the .vim/bundle directory.

a. Clone:

$ cd ~/.vim/bundle
$ git clone https://github.com/atelierbram/Base2Tone-vim.git

b. Move:

In the parent working directory:

$ mv Base2Tone-vim ~/.vim/bundle/

Modify .vimrc

After either Option 1 or Option 2 above, put the following two lines in your .vimrc:

syntax enable
set background=dark
" Base2Tone Dark
colorscheme Base2Tone_EveningDark
" or any of the other schemes:
" colorscheme Base2Tone_MorningDark
" colorscheme Base2Tone_SeaDark
" colorscheme Base2Tone_SpaceDark
" colorscheme Base2Tone_EarthDark
" colorscheme Base2Tone_ForestDark
" colorscheme Base2Tone_FieldDark
" colorscheme Base2Tone_GardenDark
" colorscheme Base2Tone_DesertDark
" colorscheme Base2Tone_LakeDark
" colorscheme Base2Tone_MeadowDark
" colorscheme Base2Tone_DrawbridgeDark
" colorscheme Base2Tone_MallDark
" colorscheme Base2Tone_SuburbDark
" colorscheme Base2Tone_LavenderDark
" colorscheme Base2Tone_PoolDark
" colorscheme Base2Tone_PorchDark
" colorscheme Base2Tone_HeathDark
" colorscheme Base2Tone_CaveDark
" colorscheme Base2Tone_MotelDark

" Base2Tone Light
" colorscheme Base2Tone_EveningLight
" colorscheme Base2Tone_MorningLight
" colorscheme Base2Tone_SeaLight
" colorscheme Base2Tone_SpaceLight
" colorscheme Base2Tone_EarthLight
" colorscheme Base2Tone_ForestLight
" colorscheme Base2Tone_FieldLight
" colorscheme Base2Tone_GardenLight
" colorscheme Base2Tone_DesertLight
" colorscheme Base2Tone_LakeLight
" colorscheme Base2Tone_MeadowLight
" colorscheme Base2Tone_DrawbridgeLight
" colorscheme Base2Tone_MallLight
" colorscheme Base2Tone_SuburbLight
" colorscheme Base2Tone_LavenderLight
" colorscheme Base2Tone_PoolLight
" colorscheme Base2Tone_PorchLight
" colorscheme Base2Tone_HeathLight
" colorscheme Base2Tone_CaveLight
" colorscheme Base2Tone_MotelLight

Optional Airline Support

These themes are tested in Gvim, but when using Vim within terminals which do not support truecolor, it will fall back on the colors of the default dark theme for vim-airline it will now use converted colors which are as close as possible in the 8-bit 256 colorspace.

" Dark
let g:airline_theme='Base2Tone_EveningDark'
" or any of the other themes:
" Dark
" let g:airline_theme='Base2Tone_MorningDark'
" let g:airline_theme='Base2Tone_SeaDark'
" let g:airline_theme='Base2Tone_SpaceDark'
" let g:airline_theme='Base2Tone_EarthDark'
" let g:airline_theme='Base2Tone_ForestDark'
" let g:airline_theme='Base2Tone_FieldDark'
" let g:airline_theme='Base2Tone_GardenDark'
" let g:airline_theme='Base2Tone_DesertDark'
" let g:airline_theme='Base2Tone_LakeDark'
" let g:airline_theme='Base2Tone_MeadowDark'
" let g:airline_theme='Base2Tone_DrawbridgeDark'
" let g:airline_theme='Base2Tone_MallDark'
" let g:airline_theme='Base2Tone_SuburbDark'
" let g:airline_theme='Base2Tone_LavenderDark'
" let g:airline_theme='Base2Tone_PoolDark'
" let g:airline_theme='Base2Tone_PorchDark'
" let g:airline_theme='Base2Tone_HeathDark'
" let g:airline_theme='Base2Tone_CaveDark'
" let g:airline_theme='Base2Tone_MotelDark'

" Light
" let g:airline_theme='Base2Tone_EveningLight'
" let g:airline_theme='Base2Tone_MorningLight'
" let g:airline_theme='Base2Tone_SeaLight'
" let g:airline_theme='Base2Tone_SpaceLight'
" let g:airline_theme='Base2Tone_EarthLight'
" let g:airline_theme='Base2Tone_ForestLight'
" let g:airline_theme='Base2Tone_FieldLight'
" let g:airline_theme='Base2Tone_GardenLight'
" let g:airline_theme='Base2Tone_DesertLight'
" let g:airline_theme='Base2Tone_LakeLight'
" let g:airline_theme='Base2Tone_MeadowLight'
" let g:airline_theme='Base2Tone_DrawbridgeLight'
" let g:airline_theme='Base2Tone_MallLight'
" let g:airline_theme='Base2Tone_SuburbLight'
" let g:airline_theme='Base2Tone_LavenderLight'
" let g:airline_theme='Base2Tone_PoolLight'
" let g:airline_theme='Base2Tone_PorchLight'
" let g:airline_theme='Base2Tone_HeathLight'
" let g:airline_theme='Base2Tone_CaveLight'
" let g:airline_theme='Base2Tone_MotelLight'

Optional Lightline Support with Base2Tone

" lightline {{{
" -- INSERT -- is redundant because the mode information is displayed in the statusline:
set noshowmode
let g:lightline = {
      \ 'colorscheme': 'Base2Tone_Pool',
      \ }
" or any of the other colorschemes
" template is smart and detects light or dark colorscheme being used
" }}}

Optional (re)generate theme(s)

These themes are generated with Base16 Builder and can be adapted and regenerated with having that CLI installed.

$ npm install --global base16-builder

The file io.sh have to be made executable:

cd ~/.vim/bundle/Base2Tone-vim/
chmod +x io.sh

The templates light.ejs and dark.ejs can be found in db/vim. After adapting the templates, or after making a colorscheme (db/schemes) one can just type io.sh from the commandline, within the parent working directory of Base2Tone-vim. The colorscheme-files will than be regenerated within the colors-folder, and the themes for Airline in the autoload-folder.

Credits

Credits to Simurai, for these themes are based on Duotone Themes for Atom.

Resources

License

Released under MIT Licence

More Repositories

1

syntax-highlighting

collection of syntax highlighting colorschemes
SCSS
136
star
2

vim-colors_atelier-schemes

For easy cloning Atelier Schemes for Vim colorschemes, with plugin manager Pathogen or Vundle
Vim Script
64
star
3

Base2Tone

2 base hues - 32 variations > 1 theme
HTML
58
star
4

vim-colors_duotones

deprecated - please use Base2Tone-vim
Vim Script
40
star
5

c-tiles16

Colorscheming with Variables
CSS
36
star
6

Base2Tone-iterm2

Syntax highlighting colorschemes for iTerm2
HTML
30
star
7

Base2Tone-nvim

Collection of duotone colorschemes for Neovim written in lua.
Lua
24
star
8

Base2Tone-prism

Color Scheming from two Base Colors for Prism
CSS
21
star
9

base16-atelier-schemes

14
star
10

duotones-sublime-colorschemes

Colorschemes for Sublime Text based on DuoTone themes by Simurai
12
star
11

Base2Tone-VSCode-Themes

Duotone themes for VS Code
EJS
11
star
12

frame-patterns

Repeating patterns as borders with CSS3 border-image
CSS
7
star
13

Base4Tone-nvim

Collection of colorschemes for Neovim written in lua.
Lua
5
star
14

Base4Tone-vim

Themes for Vim
Vim Script
5
star
15

Base2Tone-alacritty

Colorschemes for Alacritty terminal
HTML
5
star
16

base16-prism

A template for building themes for Prism with Base16
HTML
5
star
17

iTerm2_Atelier-Schemes

Serie of color-schemes that come in a light, and in a dark background version for iTerm2
4
star
18

Base2Tone-sublime-text

Colorschemes for Sublime Text, Visual Studio Code and Textmate based on DuoTone themes by Simurai
HTML
4
star
19

svg-pixel-art

Pixel art as SVG vectors
PHP
4
star
20

hyperterm-duotone-light

HyperTerm theme based on DuoTone light colorscheme
JavaScript
3
star
21

trend-colors

Colors from Pantoneโ€™s biannual fashion color report converted into colorschemes
HTML
3
star
22

Base2Tone-markdown

Generate tabular data in markdown for Base2Tone color schemes with Base16-Builder
HTML
3
star
23

atelier-schemes-terminal

Color Themes for Mac OS X Terminal
3
star
24

Base2Tone-terminal

Duotone colorschemes for the default Mac OS X Terminal
Swift
3
star
25

kaldi-sculpin-netlify-template

Small-business template with Sculpin and Netlify CMS
SCSS
3
star
26

Atelier-VSCode-Themes

Atelier themes for VS Code
EJS
2
star
27

Base4Tone-VSCode-Themes

Themes for VS Code
2
star
28

typeface-tester

System Font Viewer - for iOS
JavaScript
2
star
29

Colour-Scheme-Blending

Intuitive tool for quick finding and testing (harmonious) colour blends with selected colours from a colorscheme.
CSS
2
star
30

atelier-schemes-alacritty

colorschemes for Alacritty terminal
HTML
2
star
31

Base2Tone-hyperterm

Generate DuoTone themes for HyperTerm with Base16-Builder
JavaScript
1
star
32

Base2Tone-highlight.js

Color Scheming from two Base Colors for Highlight.js
Shell
1
star
33

duotone-dark-drawbridge-syntax

Dark syntax theme for Atom
CSS
1
star
34

lazy-loading-logos

Lazy load images with javascript by replacing a small inline SVG data URI
1
star
35

base16-hyperterm

Generate themes for HyperTerm with Base16-Builder
JavaScript
1
star
36

Base2Tone-xrdb

Base2Tone colorschemes for Xresources
Shell
1
star
37

Base4Tone-alacritty

PHP
1
star
38

Base4Tone-prism

Syntax-highlighting on the web with Base4Tone colorthemes for Prism
SCSS
1
star