# Omarchy User Template Example: Alacritty # # This is a sample template file demonstrating how to create custom themed # configurations. Templates use placeholder variables that get replaced with # your current theme's colors when you switch themes. # # HOW TO USE: # 1. Rename this file to: alacritty.toml.tpl (remove the .sample extension) # 2. Customize it as needed # 3. Change your theme to apply the template # # User templates in ~/.config/omarchy/themed/ take priority over the built-in # templates in the Omarchy default/themed/ directory. This lets you override # any built-in template or create templates for applications not included # by default. # # AVAILABLE VARIABLES: # {{ bg }} - Main background color (e.g., "#1a1b26") # {{ fg }} - Main foreground/text color # {{ bright_fg }} - Bright foreground / cursor color # {{ accent }} - Theme accent color # {{ selection }} - Selection highlight background # {{ selection_background }} - Selection highlight background alias # {{ selection_foreground }} - Selection highlight foreground (derived from bright_fg) # # {{ color0 }} through {{ color15 }} - Standard 16-color terminal palette # color0-7: Normal colors (black, red, green, yellow, blue, magenta, cyan, white) # color8-15: Bright variants # Semantic aliases are also available: {{ bg }}, {{ fg }}, {{ red }}, {{ green }}, # {{ yellow }}, {{ blue }}, {{ magenta }}, {{ cyan }}, {{ muted }} and the # {{ bright_* }} variants. The two forms are kept in sync by # bin/omarchy-theme-set-templates. # # VARIABLE MODIFIERS: # {{ variable_strip }} - Hex color without the # prefix (e.g., "1a1b26") # {{ variable_rgb }} - Decimal RGB values (e.g., "26,27,38") # # Example using modifiers: # background = "{{ bg }}" -> background = "#1a1b26" # background = "{{ bg_strip }}" -> background = "1a1b26" # background = "rgb({{ bg_rgb }})" -> background = "rgb(26,27,38)" # # --------------------------------------------------------------------------- [colors.primary] background = "{{ bg }}" foreground = "{{ fg }}" [colors.cursor] text = "{{ bg }}" cursor = "{{ bright_fg }}" [colors.vi_mode_cursor] text = "{{ bg }}" cursor = "{{ bright_fg }}" [colors.search.matches] foreground = "{{ bg }}" background = "{{ yellow }}" [colors.search.focused_match] foreground = "{{ bg }}" background = "{{ red }}" [colors.footer_bar] foreground = "{{ bg }}" background = "{{ fg }}" [colors.selection] text = "{{ selection_foreground }}" background = "{{ selection_background }}" [colors.normal] black = "{{ bg }}" red = "{{ red }}" green = "{{ green }}" yellow = "{{ yellow }}" blue = "{{ blue }}" magenta = "{{ magenta }}" cyan = "{{ cyan }}" white = "{{ fg }}" [colors.bright] black = "{{ muted }}" red = "{{ bright_red }}" green = "{{ bright_green }}" yellow = "{{ bright_yellow }}" blue = "{{ bright_blue }}" magenta = "{{ bright_magenta }}" cyan = "{{ bright_cyan }}" white = "{{ bright_fg }}"