Giter VIP home page Giter VIP logo

toast.vim's Introduction

Toast!

Toast! A colorful, medium-contrast theme with full Vim and Neovim support, true color and 256-color support, and automatic light and dark variants. Easy to read without frying your retinae.

Toast Light Toast Dark

Toast is not meant to be a "color system" or anything fancy like that, although it does operate within a few parameters to make its development easier and to aim for some degree of theoretical color harmony.

  • All text has (or should have) a contrast ratio of at least 3:1, meeting WCAG level A. (Level AA across the board makes the colors too drab for my taste, but there will be an option for this in the future, because a11y is important.)
  • All hues are multiples of 15 degrees apart on the color wheel, because why not.
  • Within these parameters, saturation and luminance levels are chosen based on what I think looks good while dogfooding the themes.

See something that looks wrong or that you don't like? File an issue!

Much of the basis for this code and approach comes from Chris Kempson's venerable Tomorrow theme.

Installation

Vim:

mkdir -p ~/.vim/colors
curl -o ~/.vim/colors/toast.vim https://raw.githubusercontent.com/jsit/toast.vim/master/colors/toast.vim

Neovim:

mkdir -p ~/.config/nvim/colors
curl -o ~/.config/nvim/colors/toast.vim https://raw.githubusercontent.com/jsit/toast.vim/master/colors/toast.vim

Customization

To use the light version:

set background=light
colorscheme toast

To use the dark version:

set background=dark
colorscheme toast

If your terminal emulator and version of Vim support true color:

set termguicolors

Set up autocmd overrides to change the colors to your liking. For instance, if you don't want red to be used for constants and strings, you can link them to a different highlight group with something like this in your .vimrc (Vim) or init.vim (Neovim):

augroup toast
  autocmd colorscheme toast hi clear Constant | hi link Constant Type
augroup END

Colors

Colors

Red Green Yellow Blue Magenta Cyan
Normal #d12d00 #427b00 #b68200 #006fd1 #a53bce #119c97
Bright #e74d23 #7dc030 #ffc233 #5aa2e0 #b968d9 #15c1bb

Grays

Light Background #f4f3ef #eae8e1 #e4e2d8 #7f7757 #4f4a36 #423e2e #323434
Dark Background #c3d2df #b9cbda #acc1d3 #547d9c #253846 #1e2d38 #17222b

Et cetera

The font used in the screenshots is IBM Plex Mono.

License

Copyright (c) Jay Sitter. Distributed under the same terms as Vim itself. See :help license.

toast.vim's People

Contributors

jsit avatar tannerwelsh avatar willmcpherson2 avatar jdhao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.