Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

code0x378/vim-colorscheme-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim colorscheme parser

VCP converts vim colorscheme (color/*.vim) files into json, css or sass files.

Requirements

  • python 3

Running

python parser.py

By default VCP uses "vim-colorschemes/colors" for input and "dist" for output.

Options


usage: parser.py [-h] [-f FORMAT] [-i INPUT] [-o OUTPUT] [-t TESTING]

optional arguments:

-h, --help  show this help message and exit
-f FORMAT, --format FORMAT Specify an output format (sass, json, css or all)
-i INPUT, --input INPUT Specify an input directory
-o OUTPUT, --output OUTPUT Specify an output directory
-t BOOL, --testing BOOL Uses test data from testing folder

Notes

  • gui colors take precedence over cterm
  • gui, term and cterm formatting values are not currently handled (i.e. no underline css)
  • named colors are looked up first via xterm 256 colors then X11 colors
  • int colors are looked up via xterm colors
  • if the colors (name or int), are not found they are just returned as is

About

Generate json and css from vim color files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors