The following files are generated by this script.
This script requires Rust toolchain. Install it by following the official instruction
and confirm that cargo
command is available for package management.
To generate files:
$ cargo run -- --dir ..
Without --dir
option, it dumps generated contents to stdout. Please see --help
for more detail.
To run tests:
$ cargo test
To build a release binary:
$ cargo build --release
$ ./target/release/gen-spring-night-theme --dir ..
To modify colors or highlights, you can update tables and lists in src/main.rs
.
Palette
inpalette
module is a struct to define colors.Palette::default
method constructs the instance. You can find the color palette inside the function body.Colorscheme
incolorscheme
module is a struct to generate Vim colorscheme file.ColorschemeWriter::new
method constructs the definition of highlights. Read the function body to know/modify the highlights for each syntax items. The terminal colors used in:terminal
are also defined here.AirlineTheme
inairline
module is a struct to generate vim-airline theme file.AirlineThemeWriter::new
method defines color palettes for each modes.AlacrittyTheme
inalacritty
module is a struct to generate Alacritty theme file.AlacrittyTheme::new
method defines the terminal ANSI colors.