sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

Colortemplate : A tentative proposal for an “official” colorscheme template

 script karma  Rating 4/1, Downloaded by 69    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 that allows you to easily develop colorschemes. Its ambitious goal is to become *the* way to create new colorschemes 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>
Maintainer: Me <me@somewhere.org>

Background: dark

# Color palette
Color:      black #000000 ~
Color:      white #ffffff ~

# Highlight group definitions
Normal white black
# Etc…

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

:Colortemplate ~/.vim

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

Main Features:

- Generates colorschemes that support true colors and 256 colors by default.
- Generates colorschemes that load efficiently and have a consistent structure following best practices.
- Detects a few common mistakes, e.g., missing highlight group definitions.
- Supports generating any number of auxiliary files (say, autoload/gorgeous.vim).
- Much more! To get started, see :help ft-colortemplate.

Besides, Colortemplate has a few functions to help you develop your colorscheme, in particular functions to find the best 256-color approximations for GUI colors and to display information about the highlight group under the cursor.

The discussion that prompted the creation of this script: https://github.com/vim/vim/issues/1665
 
install details
 

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
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: 54.145.51.250

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.
   
SourceForge.net Logo