All Projects → romainl → Vim Dichromatic

romainl / Vim Dichromatic

Licence: mit
A dark Vim colorscheme for color blind vimmers. But not only.

Projects that are alternatives of or similar to Vim Dichromatic

Palenight.vim
Soothing color scheme for your favorite [best] text editor
Stars: ✭ 492 (+846.15%)
Mutual labels:  colorscheme
Nord Visual Studio Code
An arctic, north-bluish clean and elegant Visual Studio Code theme.
Stars: ✭ 749 (+1340.38%)
Mutual labels:  colorscheme
Elrodeo Vim Colorscheme
Dark low-contrast color scheme for Vim
Stars: ✭ 32 (-38.46%)
Mutual labels:  colorscheme
Vim Colortemplate
The Toolkit for Vim Color Scheme Designers!
Stars: ✭ 535 (+928.85%)
Mutual labels:  colorscheme
Apprentice
A dark, low-contrast, Vim colorscheme.
Stars: ✭ 688 (+1223.08%)
Mutual labels:  colorscheme
Briofita vim
colorful Vim colorscheme for both GUI and 256-color terminals
Stars: ✭ 9 (-82.69%)
Mutual labels:  colorscheme
Emacs Kaolin Themes
Set of eye pleasing themes for GNU Emacs. Supports both GUI and terminal.
Stars: ✭ 421 (+709.62%)
Mutual labels:  colorscheme
Arcadia
Vim Colorscheme
Stars: ✭ 35 (-32.69%)
Mutual labels:  colorscheme
Wal
🎨 Generate and change colorschemes on the fly. Deprecated, use pywal instead. -->
Stars: ✭ 689 (+1225%)
Mutual labels:  colorscheme
Vim Monokai Phoenix
Monokai Phoenix Theme for Vim
Stars: ✭ 31 (-40.38%)
Mutual labels:  colorscheme
Nord Tmux
An arctic, north-bluish clean and elegant tmux color theme.
Stars: ✭ 567 (+990.38%)
Mutual labels:  colorscheme
Nord Iterm2
An arctic, north-bluish clean and elegant iTerm2 color scheme.
Stars: ✭ 651 (+1151.92%)
Mutual labels:  colorscheme
Nord Guake
An arctic, north-bluish clean and elegant Guake color theme.
Stars: ✭ 20 (-61.54%)
Mutual labels:  colorscheme
Srcery Vim
Dark colorscheme for gvim and vim
Stars: ✭ 518 (+896.15%)
Mutual labels:  colorscheme
Iosvkem
Because what the world needs is yet another vim colourscheme
Stars: ✭ 34 (-34.62%)
Mutual labels:  colorscheme
Nord
An arctic, north-bluish color palette.
Stars: ✭ 4,816 (+9161.54%)
Mutual labels:  colorscheme
Tender.vim
A 24bit colorscheme for Vim, Airline and Lightline
Stars: ✭ 816 (+1469.23%)
Mutual labels:  colorscheme
Onehalf
Clean, vibrant and pleasing color schemes for Vim, Sublime Text, iTerm, gnome-terminal and more.
Stars: ✭ 974 (+1773.08%)
Mutual labels:  colorscheme
Leonardo
Generate colors based on a desired contrast ratio
Stars: ✭ 973 (+1771.15%)
Mutual labels:  colorscheme
Tf rgb lab
TensorFlow module for RGB (from / to) LAB color-space conversion.
Stars: ✭ 30 (-42.31%)
Mutual labels:  colorscheme

Dichromatic

A dark colorscheme for color blind vimmers, but not only.


Humans are capable of perceiving a relatively large color spectrum thanks to special receptors in our retina called cones. Most of us have three types of cones to take care of the different wavelengths that compose visible light. That's called trichromia, it's the norm and most Vim colorschemes are designed against that norm.

Some of us — as much as 8% of the male population in some parts of the world — have a missing or damaged cone, however, which prevents them from perceiving some colors. That condition is called dichromia or, coloquially, color blindness.

Color blindness comes in many forms, depending on what cones are missing or damaged or even if we are talking rods, but the end result is always the same: the person gets confused pretty easily when colors are too close to each other or fall into one of their blind spots or if there's not enough contrast. If that wasn't enough, dichromia itself comes in three forms: protanopia, deuteranopia and tritanopia which have varying effects. Choosing the right colors is a difficult task when designing for "normal" vision but it should be apparent by now that designing for color blind users is at another level entirely.

Here is a screenshot of another theme of mine illustrating the problem:

Normal vision:

Normal vision

Tritanopia:

Tritanopia

The colors in Apprentice are nice and all for us "normals" but they are obviously less than optimal for someone with, say… tritanopia. The problem is not limited to Vim, of course: maps, charts, traffic lights and all kinds of information systems are routinely designed without any thought for dichromia but that shouldn't be a comforting thought. We can do better.

Thankfully, researchers across the world have been busy designing color palettes suitable for anybody, color blind or not. One such effort produced the palette I used as a basis for Dichromatic:

SRON palette

The image below shows the "final" palette used in Dichromatic, slightly modified from the colors above to fit in the standard xterm palette.

Dichromatic palette

And here are screenshots of dichomatic, first without filter, for color blind users to form their opinion, then with various filters applied, for users with normal vision to get an idea of how color blind users may see it:

Normal vision:

Normal vision

Deuteranopia (common):

Deuteranopia

Protanopia (rare):

Protanopia

Tritanopia (very rare):

Tritanopia

Configuration

This colorscheme is pretty much compatible with any reasonably recent Vim executed in any correctly set-up environment. "Compatible" in the sense that it will not break anything but it is only guaranteed to work the way it's supposed to work in GUI Vim (GVim, MacVim) and in TUI Vim in 256color-ready terminal emulators. 8color-ready and 16color-ready terminal emulators are not directly supported at the moment but they will. Stay tuned.

GVim/MacVim

GUI Vim is pretty much the bee's knees, colorscheme-wise, so there's nothing to do here.

256 colors terminal emulators

Make sure your terminal emulator correctly tells Vim that it is capable of displaying 256 colors. It is usually done by setting the TERM environment variable to something like xterm-256color or screen-256color. How to do that depends on your terminal emulator so you should read its documentation if you are unsure about the exact method.

Installation

Use your favorite plugin manager or drop dichromatic.vim into:

$HOME/.vim/colors/                on unix-like systems
%userprofile%\vimfiles\colors\    on Windows

Usage

Add the line below somewhere near the end of your vimrc:

colorscheme dichromatic

Hacking

The heavily commented template used for the creation of Dichromatic is available in the colors/ directory. Feel free to play with it and send pull requests.

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].