Scripts / tools / config for terminal styling and colors / colours
When testing out a color scheme/theme consider different use cases:
pyshow_colors2.py
- ls colors (LSCOLORS, LS_COLORS,
dircolors
and .dir_colors)- dracula/putty#3
- https://github.com/joshjon/bliss-dircolors - good starting point
- neofetch
vim
colorscheme
In general avoid:
- Solutions that modify the TERM variable in .bashrc.
- Solutions that modify the Vim t_Co variable.
- Under Linux, Bitstream Vera Sans Mono is typically built-in and not bad
- Under Windows, the built-in Consolas is not bad (better than Courier New, that Putty defaults to), available since Microsoft Windows Vista. A similar (free) font is Inconsolata / InconsolataGo (Inconsolata with straight quotes)
- Many fonts at https://www.nerdfonts.com/ - worth checking out:
- EnvyCodeR
- FiraMono - https://mozilla.github.io/Fira/
- Go-Mono
- InconsolataGo https://github.com/im-AMS/Inconsolata-Nerd-Font-with-ligatures
- Overpass
- UbuntuMono
- Fantasque Sans Mono - https://github.com/belluzj/fantasque-sans
- Iosevka
- sample_text_editor.txt utf-8 text file to test view/edit of fixed width fonts. Not suitable for in depth syntax highlighting tests.
- https://github.com/altercation/solarized/tree/master/utils/tests has a collection of (small) different source code file types for testing syntax highlighting.
- https://github.com/darekkay/config-files/tree/master/color-schemes/example-files
- truecolor.awk modified from https://github.com/sonph/dotfiles/blob/master/bin/truecolor.sh - truecolor test
- invaders.bash from https://paste.xinu.at/m-dAiJ/
- show_colors.bash from https://bbs.archlinux.org/viewtopic.php?id=51818&p=1%29
- Unknown license, many different versions of this script online
- show_colors2.bash my version derived from show_colors.bash
- color-test.bash - derived from https://gilesorr.com/bashprompt/howto/c333.html - shows all foreground colors as text with default background as a sanity check
- pyshow_colors2.py in-progress Python version of show_colors2.bash
- colors.py from https://gist.github.com/lilydjwg/fdeaf79e921c2f413f44b6f613f6ad53
- parse_palette_tools.py - tools for dumping palettes for easier read/conversion
- parse_palette_tools.py - tools for dumping palettes for easier read/conversion
- alacritty_toml2tstk_json.py - convert alacritty TOML Color Schemes
- goghjson2puttyjson.py - tools for converting Gogh JSON Color Schemes from https://github.com/Gogh-Co/Gogh/ into json that Putty conversion tools (json2putty_reg.py) can use
- iterm2_theme2tstk_json.py - convert iTerm2 Color Schemes
- pywaltemplate2puttymustache.py - convert pywal16 template
- pywaltheme2tstk_json.py - convert pywal16 color theme
- putty/json2putty_reg.py - convert (Putty) json into Putty registry import and html preview - Used to create https://github.com/clach04/putty_themes
- Also see https://github.com/clach04/themer
- python_windows_registry_putty_colors.py - dumps session names and colors (only) along with simple show sessions that use the exact same same-color scheme feature
- Sane Putty settings https://web.archive.org/web/20191231204120/http://dag.wiee.rs/blog/content/improving-putty-settings-on-windows
lots of good tips, identifies the problem with the out of box blue color in Putty, recommends:
- ANSI Blue; Red: 74 Green: 74 Blue:255
- ANSI Blue Bold; Red:140 Green:140 Blue:255
- https://www.thegeekstuff.com/2009/07/10-practical-putty-tips-and-tricks-you-probably-didnt-know/
ANSI colors are often named:
0 black
1 dark red
2 dark green
3 brown
4 dark blue
5 dark magenta
6 dark cyan
7 light grey
8 dark grey
9 red
10 green
11 yellow
12 blue
13 magenta
14 cyan
15 white
- https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit
- https://github.com/termstandard/colors
- https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences/75985833#75985833 useful table of codes
- https://terminal.sexy/
- https://it-tools.tech/color-converter
- https://iconscout.com/blog/best-color-palette-generators-for-any-design-project
- https://colorffy.com/color-scheme-generator?color=257abb
- https://github.com/clach04/themer
vim themes that only use ANSI (16) colors - https://jeffkreeftmeijer.com/vim-16-color/
- https://github.com/noahfrederick/vim-noctu
- https://github.com/jeffkreeftmeijer/vim-dim/
- https://github.com/dylanaraps/wal.vim - actually 8 colors
- https://github.com/chriskempson/base16-vim/
- NeoVim
- https://www.systutorials.com/docs/linux/man/5-dir_colors/
- https://github.com/joshjon/bliss-dircolors
- https://github.com/seebi/dircolors-solarized
- https://github.com/nordtheme/dircolors
- https://github.com/clach04?submit=Search&q=dircolors&tab=stars&type=&sort=&direction=&submit=Search
- dracula/putty#3 - Unreadable colors/colors with a=rwx permission directory and ls in color mode - default dircolors conflicts with terminal colors
- https://github.com/anonimoanemico/puttier
- Supports previewing a theme
- https://github.com/mvelikikh/putty-session-manager
- https://github.com/monolifed/scite_theme scite themes from base16 config
- https://github.com/mbadolato/iTerm2-Color-Schemes/tree/master/tools
- https://github.com/Gogh-Co/Gogh/tree/master/tools
- Base-16 and derivatives
- https://github.com/worron/ACYLS - Any Color You Like Simple icon pack
- Windows Color Pickers
- https://blog.codinghorror.com/code-colorizing-and-readability/ note, cites studies with CRTs, pre lcd.
To checkout:
- https://github.com/fikovnik/bin-scripts/blob/master/color-test.sh
- https://github.com/fikovnik/bin-scripts/blob/master/term-colors.py
- https://github.com/mvelikikh/putty-session-manager
- https://ciembor.github.io/4bit/ - could code from https://github.com/ciembor/4bit be used as a web viewer preview (compare with puttier)
Color schemes that pass eyeball test but I'd like to checkout:
- https://github.com/mattly/iterm-colors-farmhouse - light and dark
- https://github.com/mattly/iterm-colors-pencil - light and dark
- https://github.com/kepano/flexoki - light and dark
- https://github.com/mbadolato/iTerm2-Color-Schemes - preview limited
- https://github.com/Gogh-Co/Gogh - OK preview, can at least see palette block to easily compare colors
- 16 color themes that have bright/bold versions of base colors
- Aci
- Argonaut
- Azu
- Bim
- Birds Of Paradise
- Blazer
- Blue Dolphin
- ...
- 16 color themes that have bright/bold versions of base colors
- Alacritty
- https://github.com/rajasegar/alacritty-themes/ - no previews
- https://github.com/alacritty/alacritty-theme - preview limited
- citylights
- Cobalt2 - https://github.com/alacritty/alacritty-theme/blob/master/themes/Cobalt2.toml
- dark_pastels
- dark_plus
- doom_one
- dracula
- dracula_plus
- enfocado_dark
- enfocado_light
- flexoki
- github_dark_high_contrast
- github_light
- gnome_terminal
- gruvbox_dark
- gruvbox_light
- kanagawa_dragon
- kanagawa_wave
- midnight-haze
- monokai
- monokai_charcoal
- monokai_pro
- moonlight_ii_vscode
- nord
- oceanic_next
- palenight
- pencil_dark
- pencil_light
- remedy_dark
- rose-pine
- rose-pine-moon
- smoooooth
- synthwave_84
- tango_dark
- tomorrow_night_bright
- wombat
- zenburn
- https://github.com/rajasegar/alacritty-themes - no preview
- https://github.com/dylanaraps/paleta/tree/master/palettes
- https://github.com/tinted-theming/home - technically tools and themes
- Adwaita
- vim
- https://github.com/twerth/ir_black/
- https://github.com/lifepillar/vim-wwdc16-theme/blob/master/colors/wwdc16.vim - note in Putty seems to work best when
:set t_Co=16