sponsor Vim development Vim logo Vim Book Ad

Colortemplate : The Toolkit for Color Scheme Designers!

 script karma  Rating 17/11, Downloaded by 3942  Comments, bugs, improvements  Vim wiki

created by
Lifepillar
 
script type
ftplugin
 
description
GitHub repo: https://github.com/lifepillar/vim-colortemplate

Colortemplate is a plugin for Vim 8 and later that allows you to easily develop color schemes. Its ambitious goal is to become *the* way to create new color schemes for Vim!

Colortemplate is based on a very simple but very flexible template format. This is a minimal template:

Full name:  My Gorgeous Theme
Short name: gorgeous
Author:     Me <me@somewhere.org>

Variant:    gui 256
Background: dark

; Color palette
Color:      myblack #333333 ~
Color:      mywhite #fafafa ~

; Highlight group definitions
Normal      mywhite myblack

Term colors: mywhite mywhite mywhite mywhite mywhite mywhite mywhite mywhite
Term colors: myblack myblack myblack myblack myblack myblack myblack myblack

Use :Colortemplate to turn a template into a full-fledged colorscheme. For example:

:Colortemplate ~/.vim

will translate your template and write your new shining color scheme into ~/.vim/colors/gorgeous.vim, ready to be used!

Main Features:

- Generates color schemes that support all environments, from black&white to
  millions of colors, and both terminal and GUI Vim.
- Generates color schemes that load efficiently and have a consistent structure
  following best practices.
- Automatically provides xterm approximations for GUI colors.
- Imports any color scheme. You do not have to start from scratch!
- Provides a sophisticated style picker. Create color schemes in real-time
  directly within Vim!
- Displays information about the highlight group under the cursor.
- Computes useful statistics about your color scheme.
- Supports generating any kind of auxiliary files (say,
  `autoload/gorgeous.vim` or `scripts/foo.sh`).
- Has syntax completion for highlight groups, keywords and common colors.
- …And a lot more!

Colortemplate is fully documented: to learn everything about it, read `:help
colortemplate.txt`.
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-colortemplate-2.1.0.tar.gz 2.1.0 2020-09-20 8.0 Lifepillar The toolkit for color scheme developers! What's new: 1. 🎨 The Style Picker: edit color schemes in real-time directly within Vim! 2. 🎬 Import function to generate a template from any color scheme: you don't need to start from scratch! 3. 🐞 Bug fixes.

Bring your color schemes to another level!
vim-colortemplate-2.0.0.tar.gz 2.0.0 2019-07-15 8.0 Lifepillar After applying the final touches, the v2.0 milestone has been reached! What are you expecting to start designing your color schemes?
vim-colortemplate-2.0.0rc1.tar.gz 2.0.0rc1 2019-07-03 8.0 Lifepillar The v2.0 milestone is approaching! This release fixes a few minor issues and adds a couple more options to control the output of your color scheme (now even from the template itself via the `Colortemplate Options` key!). New features: `omit` keyword to omit parts of a highlight group definition (e.g., `hi Foo white omit` defines only the foreground color); RGB names are not converted to hex values in the output. Please test and provide feedback so v2.0 will be a rock solid release!
vim-colortemplate-2.0.0rc1.tar.gz 2.0.0rc1 2019-07-03 8.0 Lifepillar The v2.0 milestone is approaching! This release fixes a few minor issues and adds a couple more options to control the output of your color scheme (now even from the template itself via the `Colortemplate Options` key!). New features: `omit` keyword to omit parts of a highlight group definition (e.g., `hi Foo white omit` defines only the foreground color); RGB names are not converted to hex values in the output. Please test and provide feedback so v2.0 will be a rock solid release!
vim-colortemplate-2.0.0b3.tar.gz 2.0.0b3 2019-06-11 8.0 Lifepillar Ironed out a few features and added new ones: `ga` now shows colors; statistics has been extended with “critical pairs” of fg/bg colors; file extension may be omitted when including files; added #if, #let, #unlet, #call commands to streamline some verbatim blocks. And several bugs were removed!
vim-colortemplate-2.0.0b1.tar.gz 2.0.0b1 2019-06-04 8.0 Lifepillar Fixed a couple of regressions, notably one breaking mappings.
vim-colortemplate-2.0.0b.tar.gz 2.0.0b 2019-06-03 8.0 Lifepillar The toolkit for color scheme designers, pure 100% VimScript. Colortemplate aspires to become your favourite way to make color schemes! V2 is a complete overhaul of the script with a lot of new features—too many to mention here! Streamlined UI with window toolbar (if your Vim supports it), variants, mappings, new commands, improved documentation, etc… but it is still very easy to use!
vim-colortemplate-1.3.0.tar.gz 1.3.0 2018-08-05 8.0 Lifepillar Output a statistics tab when compiling a template, with useful information about your colorscheme (contrast ratio, color difference, brightness difference, GUI/terminal differences). Create colorschemes that transparently fallback to using 16 colors when t_Co < 256. Many other minor changes.
vim-colortemplate-1.2.2.tar.gz 1.2.2 2018-03-04 8.0 Lifepillar Enable completion of Colortemplate keywords. Add syntax highlighting for debugPC and debugBreakpoint. Minor updates to the documentation.
vim-colortemplate-1.2.1.tar.gz 1.2.1 2018-01-23 8.0 Lifepillar A few bug fixes, especially a couple related to the Include: directive. Clean up the templates folder.
vim-colortemplate-1.2.0.tar.gz 1.2.0 2018-01-21 7.0 Lifepillar Lots of small (and not so small) fixes! Improved documentation. Add Palette directive to include generated palettes. New functions to generate Vimspectr color palettes. Making top notch colorschemes has never been easier!
vim-colortemplate-1.1.1.tar.gz 1.1.1 2017-11-11 8.0 Lifepillar Lots of new goodies! "Include" directive to import files; "auxfile" blocks to generate additional files (e.g., in autoload); warnings for undefined basic highlight groups; more and stricter checks; improved documentation (with new Best practices section!). There are some backward incompatible changes wrt v1.0.0: please see the help file.
vim-colortemplate-1.0.0.tar.gz 1.0.0 2017-10-28 8.0 Lifepillar The toolkit for colorschemes developers!
Lots of new features and bug fixes: new parser; better error handling; generate colorschemes supporting 16 colors, 256 colors and true colors, with dark and/or light background; infer the best approximate colors automatically using DeltaE*; embed the documentation directly in the template; new information fields and interpolation possibilities; utility function to explore approximated colors; toggle the display of details about the highlight group under the cursor; tests added.
vim-colortemplate-0.0.2.tar.gz v0.0.2 2017-10-01 8.0 Lifepillar Bug fixes in error handling.
vim-colortemplate-0.0.1.tar.gz 0.0.1 2017-10-01 8.0 Lifepillar Initial upload
ip used for rating: 18.189.180.244

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github