Templates are application configuration files with color placeholders.
Template Syntax
foreground {foreground}
background {background}
cursor {cursor}
Example: Kitty Terminal
cursor {cursor}
cursor_text_color {background}
foreground {foreground}
background {background}
selection_foreground {on_surface}
selection_background {surface}
url_color {accent}
color0 {base00}
color1 {base01}
color2 {base02}
color3 {base03}
color4 {base04}
color5 {base05}
color6 {base06}
color7 {base07}
color8 {base08}
color9 {base09}
color10 {base0A}
color11 {base0B}
color12 {base0C}
color13 {base0D}
color14 {base0E}
color15 {base0F}
Color Format Specifiers
Access different color representations using format specifiers.
HEX Formats
| Placeholder |
Format |
Description |
{color} |
#RRGGBB |
Default hex |
{color.hex} |
#RRGGBB |
Full hex with # |
{color.hex_stripped} |
RRGGBB |
Hex without # |
{color.hexa} |
#RRGGBBAA |
Hex with alpha |
{color.hexa_stripped} |
RRGGBBAA |
Hex + alpha, no # |
RGB Formats
| Placeholder |
Format |
Description |
{color.rgb} |
rgb(r, g, b) |
RGB function |
{color.r} |
0-255 |
Red component |
{color.g} |
0-255 |
Green component |
{color.b} |
0-255 |
Blue component |
RGBA Formats
| Placeholder |
Format |
Description |
{color.rgba} |
rgba(r, g, b, a) |
RGBA function |
{color.a} |
0.0-1.0 |
Alpha component |
HSL Formats
| Placeholder |
Format |
Description |
{color.hsl} |
hsl(h, s, l) |
HSL function |
{color.h} |
0-360 |
Hue |
{color.s} |
0.0-1.0 |
Saturation |
{color.l} |
0.0-1.0 |
Lightness |
HSLA Formats
| Placeholder |
Format |
Description |
{color.hsla} |
hsla(h, s, l, a) |
HSLA function |
{color.a} |
0.0-1.0 |
Alpha component |