Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 2.04 KB

README.md

File metadata and controls

50 lines (32 loc) · 2.04 KB

mod8.vim

mod8 is a dark theme only modification of the base16 vim colorschemes. Since mod8 uses only the dark background, it requires fewer colors, thereby freeing up certain terminal colors. This is useful for other terminal applications like ncmpcpp, weechat, dircolors etc.

Here is a comparison of base16 and mod8 using the base16-ocean theme. On the left is gvim with base16-ocean, and on the right is vim in urxvt, with mod8 using the base16-ocean palette.

colorschemes comparison

Here is the comparison of the terminal colors. On top is mod8 using the base16-ocean palette, and bottom is the default colors in base16-ocean.dark.Xresources file.

palette

As you can see, mod8 frees up the colors from 10-13.

Usage

For generating the mod8 vim colorscheme from a base16 based scheme, run

$ ./genmod8.sh <base16-colorscheme.vim>

This will generate the vim colorscheme, and an Xresources file to use for terminal colors. Currently, Xresources is the only supported format for terminal emulators.

Note that generating a new vim theme is required only if you want to use the theme in gvim. If you only wish to use it in terminal, just the new Xresources is required.

Tips

Head over to husl-colors.org to generate well behaved themes based on base16. You can then run the genmod8.sh script to give you the terminal colors, and the mod8 theme.

Links & Credits

  • base16 repo by Chris Kempson.
  • HUSL - Random syntax colorschemes.
  • harmonic16 - A color generator for harmonic base16 colorschemes.

TODO

  • Integrate husl-colors generator.
  • Make husl generator bound to a particular palette
  • Use palette from images to automatically generate well behaved vim colorschemes, matching the wallpaper.