mbadolato / iTerm2-Color-Schemes
- воскресенье, 29 декабря 2024 г. в 00:00:02
Over 325 terminal color schemes/themes for iTerm/iTerm2. Includes ports to Terminal, Konsole, PuTTY, Xresources, XRDB, Remmina, Termite, XFCE, Tilda, FreeBSD VT, Terminator, Kitty, MobaXterm, LXTerminal, Microsoft's Windows Terminal, Visual Studio, Alacritty, and many more
This is a set of color schemes for iTerm (aka iTerm2). It also includes ports to Terminal, Konsole, PuTTY, Xresources, XRDB, Remmina, Termite, XFCE, Tilda, FreeBSD VT, Terminator, Kitty, Ghostty, MobaXterm, LXTerminal, Microsoft's Windows Terminal, Visual Studio, Alacritty
Screenshots below and in the screenshots directory.
There are 3 ways to install an iTerm theme:
Direct way via keyboard shortcut:
Via iTerm preferences (go to the same configuration location as above):
Via Bash script
# Import all color schemes
tools/import-scheme.sh schemes/*
# Import all color schemes (verbose mode)
tools/import-scheme.sh -v schemes/*
# Import specific color schemes (quotations are needed for schemes with spaces in name)
tools/import-scheme.sh 'schemes/SpaceGray Eighties.itermcolors' # by file path
tools/import-scheme.sh 'SpaceGray Eighties' # by scheme name
tools/import-scheme.sh Molokai 'SpaceGray Eighties' # import multiple
pyenv install
inside project folder to install python version from .python-version
file.pip install -r requirements.txt
to install the project dependencies.Have a great iTerm theme? Send it to me via a Pull Request!
.itermcolors
file.
/schemes/
mv <your-itermcolors-file> schemes/
gen.py
script.
cd tools/ && python3 gen.py
ORcd tools/ && ./gen.py
-s
flag.
./gen.py -s Dracula
screenshotTable.sh
script and ImageMagick. For screenshot consistency, please have your font set to 13pt Monaco and no transparency on the window.
cd tools/ && ./screenshotTable.sh
- this will create a color table for your theme that you can screenshot.mogrify -resize 600x300\! <path-to-your-screenshot>
screenshots/
- mv <your-screenshot> screenshots/
README.md
and screenshots/README.md
to include your theme and screenshot. Also update CREDITS.md
to credit yourself for your contribution.Do you want to convert existing iTerm themes to themes for your favorite terminal/editor/etc?
{{ Background_Color }}
{{ Bold_Color }}
{{ Cursor_Color }}
{{ Cursor_Text_Color }}
{{ Foreground_Color }}
{{ Selected_Text_Color }}
{{ Selection_Color }}
{{ Ansi_0_Color }} // black
{{ Ansi_1_Color }} // red
{{ Ansi_2_Color }} // green
{{ Ansi_3_Color }} // yellow
{{ Ansi_4_Color }} // blue
{{ Ansi_5_Color }} // magenta
{{ Ansi_6_Color }} // cyan
{{ Ansi_7_Color }} // white
{{ Ansi_8_Color }} // bright black
{{ Ansi_9_Color }} // bright red
{{ Ansi_10_Color }} // bright green
{{ Ansi_11_Color }} // bright yellow
{{ Ansi_12_Color }} // bright blue
{{ Ansi_13_Color }} // bright magenta
{{ Ansi_14_Color }} // bright cyan
{{ Ansi_15_Color }} // bright white
Each color has these fields:
- {{ Background_Color.hex }} for hex representation
- {{ Background_Color.rgb }} for rgb representation as a "(r, g, b)" string
- {{ Backgroun_Color.guint16 }} for guint16 representation
Also you have access to this metadata fields:
- {{ Guint16_Palette }} with a string containing all ansi colors as guint16 values
- {{ Dark_Theme }} which contains a sign that the theme is dark
tools/converter.py
tool/templates
. A folder with schemas will be created based on the filename. And the file extension will remain with all generated ones. Example: editor.ext
file will generate schemas as editor/scheme_name.ext
cd tools/ && ./gen.py
. Or, if you only want to generate schemas for your template, you can use the -t
flag../gen.py -t kitty
requirements.txt
or .python-version
.Some applications assume the ANSI color code 8 is a gray color. Solarized treats this code as equal to the background. This theme is for people who prefer the former. See issues #59, #62, and #63 for more information.
If there are other color schemes you'd like to see included, drop me a line!
To install under the X Window System:
Import the .xrdb file of the scheme you'd like to use:
#include "/home/mbadolato/iTerm2-Color-Schemes/xrdb/Blazer.xrdb"
Use the #define
s provided by the imported .xrdb file:
Rxvtcolor0: Ansi_0_Color Rxvtcolor1: Ansi_1_Color Rxvtcolor2: Ansi_2_Color Rxvtcolor3: Ansi_3_Color Rxvtcolor4: Ansi_4_Color Rxvtcolor5: Ansi_5_Color Rxvtcolor6: Ansi_6_Color Rxvtcolor7: Ansi_7_Color Rxvtcolor8: Ansi_8_Color Rxvtcolor9: Ansi_9_Color Rxvtcolor10: Ansi_10_Color Rxvtcolor11: Ansi_11_Color Rxvtcolor12: Ansi_12_Color Rxvtcolor13: Ansi_13_Color Rxvtcolor14: Ansi_14_Color Rxvtcolor15: Ansi_15_Color RxvtcolorBD: Bold_Color RxvtcolorIT: Italic_Color RxvtcolorUL: Underline_Color Rxvtforeground: Foreground_Color Rxvtbackground: Background_Color RxvtcursorColor: Cursor_Color
XTermcolor0: Ansi_0_Color XTermcolor1: Ansi_1_Color XTermcolor2: Ansi_2_Color XTermcolor3: Ansi_3_Color XTermcolor4: Ansi_4_Color XTermcolor5: Ansi_5_Color XTermcolor6: Ansi_6_Color XTermcolor7: Ansi_7_Color XTermcolor8: Ansi_8_Color XTermcolor9: Ansi_9_Color XTermcolor10: Ansi_10_Color XTermcolor11: Ansi_11_Color XTermcolor12: Ansi_12_Color XTermcolor13: Ansi_13_Color XTermcolor14: Ansi_14_Color XTermcolor15: Ansi_15_Color XTermcolorBD: Bold_Color XTermcolorIT: Italic_Color XTermcolorUL: Underline_Color XTermforeground: Foreground_Color XTermbackground: Background_Color XTermcursorColor: Cursor_Color
Store the above snippets in a file and pass it in:
xrdb -merge YOUR_FILE_CONTAINING_ABOVE_SNIPPETS
Open new XTerm or Rxvt windows to see the changes.
Adapt this procedure to other terminals as needed.
Edit your Terminator configuration file (located in: $HOME/.config/terminator/config
) and add the configurations for the theme(s) you'd like to use the [profiles]
section. The terminator/
directory contains the config snippets you'll need. Just paste the configurations into the [profiles]
sections, and you're good to go!
At a minimum, this is all you need. You can customize the fonts and other aspects as well, if you wish. See the Terminator documentation for more details.
An example config file that includes the code snippet for the Symfonic theme would look like this:
[global_config]
[keybindings]
[profiles]
[[default]]
palette = "#1a1a1a:#f4005f:#98e024:#fa8419:#9d65ff:#f4005f:#58d1eb:#c4c5b5:#625e4c:#f4005f:#98e024:#e0d561:#9d65ff:#f4005f:#58d1eb:#f6f6ef"
background_image = None
use_system_font = False
cursor_color = "#f6f7ec"
foreground_color = "#c4c5b5"
font = Source Code Pro Light 11
background_color = "#1a1a1a"
[[Symfonic]]
palette = "#000000:#dc322f:#56db3a:#ff8400:#0084d4:#b729d9:#ccccff:#ffffff:#1b1d21:#dc322f:#56db3a:#ff8400:#0084d4:#b729d9:#ccccff:#ffffff"
background_color = "#000000"
cursor_color = "#dc322f"
foreground_color = "#ffffff"
background_image = None
[layouts]
[[default]]
[[[child1]]]
type = Terminal
parent = window0
[[[window0]]]
type = Window
parent = ""
[plugins]
Copy the themes from the konsole
directory to $HOME/.config/konsole
(in some versions of KDE, the theme directory may be located at $HOME/.local/share/konsole
), restart Konsole and choose your new theme from the profile preferences window.
If you want to make the themes available to all users, copy the .colorscheme files to /usr/share/konsole
.
Just double click on selected theme in terminal
directory
This method creates a new blank session with JUST colors set properly.
Download the appropriate colorscheme.reg
file and import the registry changes by right-clicking and choosing Merge. Choose "Yes" when prompted if you're sure. Color scheme will show up as a new PuTTY session with all defaults except entries at Window > Colours > Adjust the precise colours PuTTY displays
.
This method modifies an existing session and changes JUST the color settings.
Download the appropriate colorscheme.reg
file. Open the file with a text editor and change the color scheme portion (Molokai
below) to match the session you want to modify:
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Molokai]
- CHANGE TO (EXAMPLE) -
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\root@localhost]
NOTE: Some special characters will need to be changed to their Percent-encoded representation (IE, Space as %20
). To quickly find the right session name view the top-level entries at HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\
with regedit.exe
.
Window > Appearance
Font: Consolas, bold, 14-point
Font quality:
( ) Antialiased ( ) Non-Antialiased
(O) ClearType ( ) Default
Window > Colours
[X] Allow terminal to specify ANSI colours
[X] Allow terminal to use xterm 256-colour mode
Indicate bolded text by changing:
( ) The font (O) The colour ( ) Both
[ ] Attempt to use logical palettes
[ ] Use system colours
Copy the colorschemes
folder to ~/.local/share/xfce4/terminal/
and restart Terminal.
Append your favourite theme from freebsd_vt/
to /boot/loader.conf
or /boot/loader.conf.local
and reboot.
Copy the theme content from mobaxterm/
and paste the content to your MobaXterm.ini
in the corresponding place ([Colors]
).
Copy the theme content from lxterminal/
and paste the content to your lxterminal
in the corresponding place ([general]
).
Copy the theme content from vscode/
and paste the content to your UserSettings.json.
Copy the theme content from windowsterminal/
and paste the content to your profiles.json
in the corresponding place ("schemes"
). Then specify the name of your theme by "colorScheme"
in "profiles"
.
Copy the theme content from alacritty/
and paste the content to your alacritty config file, at ~/.config/alacritty/alacritty.toml
. You can also set your theme by adding the following line at your config's 1st line import = ["~/.config/alacritty/themes/mytheme.toml"]
.
If you still need a color scheme with .yml, you can get it here.
Copy the theme content from ghostty/
and paste the content in your Ghostty config file, at ~/.config/ghostty/config
.
Copy the theme file from rio/
and paste to your rio theme config directory (typically ~/.config/rio/themes/
).
Then specify the name of your theme in the theme
field in the config file.
Copy the theme content from termux/
and paste the content to ~/.termux
directory as ~/.termux/colors.properties
file and run termux-reload-settings
to apply the theme.
preview.rb is a simple script that allows you to preview the color schemes without having to import them. It parses .itermcolors files and applies the colors to the current session using iTerm's proprietary escape codes. As noted in the linked page, it doesn't run on tmux or screen.
# Apply AdventureTime scheme to the current session
tools/preview.rb schemes/AdventureTime.itermcolors
# Apply the schemes in turn.
# - Press (almost) any key to advance; hit CTRL-C or ESC to stop
# - Press the delete key to go back
tools/preview.rb schemes/*
iTerm Color Schemes | iTerm2 Color Schemes | iTerm 2 Color Schemes | iTerm Themes | iTerm2 Themes | iTerm 2 Themes