add conversion functions to catppuccin module
This commit is contained in:
parent
7f5c5b718f
commit
82a11ef821
10 changed files with 663 additions and 391 deletions
|
|
@ -3,7 +3,7 @@
|
|||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkOption types;
|
||||
inherit (lib) mkIf mkEnableOption mkOption types catppuccin;
|
||||
cfg = config.horseman.dots.kitty;
|
||||
username = config.horseman.username;
|
||||
colors = config.horseman.catppuccin.colors;
|
||||
|
|
@ -33,75 +33,75 @@ in {
|
|||
font_size ${toString cfg.fontSize}
|
||||
|
||||
# The basic colors
|
||||
foreground ${colors.text}
|
||||
background ${colors.base}
|
||||
selection_foreground ${colors.base}
|
||||
selection_background ${colors.rosewater}
|
||||
foreground ${catppuccin.toHex colors.text}
|
||||
background ${catppuccin.toHex colors.base}
|
||||
selection_foreground ${catppuccin.toHex colors.base}
|
||||
selection_background ${catppuccin.toHex colors.rosewater}
|
||||
|
||||
# Cursor colors
|
||||
cursor ${colors.rosewater}
|
||||
cursor_text_color ${colors.base}
|
||||
cursor ${catppuccin.toHex colors.rosewater}
|
||||
cursor_text_color ${catppuccin.toHex colors.base}
|
||||
|
||||
# URL underline color when hovering with mouse
|
||||
url_color ${colors.rosewater}
|
||||
url_color ${catppuccin.toHex colors.rosewater}
|
||||
|
||||
# Kitty window border colors
|
||||
active_border_color ${colors.lavender}
|
||||
inactive_border_color ${colors.overlay0}
|
||||
bell_border_color ${colors.yellow}
|
||||
active_border_color ${catppuccin.toHex colors.lavender}
|
||||
inactive_border_color ${catppuccin.toHex colors.overlay0}
|
||||
bell_border_color ${catppuccin.toHex colors.yellow}
|
||||
|
||||
# OS Window titlebar colors
|
||||
wayland_titlebar_color system
|
||||
macos_titlebar_color system
|
||||
|
||||
# Tab bar colors
|
||||
active_tab_foreground ${colors.crust}
|
||||
active_tab_background ${colors.mauve}
|
||||
inactive_tab_foreground ${colors.text}
|
||||
inactive_tab_background ${colors.mantle}
|
||||
tab_bar_background ${colors.crust}
|
||||
active_tab_foreground ${catppuccin.toHex colors.crust}
|
||||
active_tab_background ${catppuccin.toHex colors.mauve}
|
||||
inactive_tab_foreground ${catppuccin.toHex colors.text}
|
||||
inactive_tab_background ${catppuccin.toHex colors.mantle}
|
||||
tab_bar_background ${catppuccin.toHex colors.crust}
|
||||
|
||||
# Colors for marks (marked text in the terminal)
|
||||
mark1_foreground ${colors.base}
|
||||
mark1_background ${colors.lavender}
|
||||
mark2_foreground ${colors.base}
|
||||
mark2_background ${colors.mauve}
|
||||
mark3_foreground ${colors.base}
|
||||
mark3_background ${colors.sapphire}
|
||||
mark1_foreground ${catppuccin.toHex colors.base}
|
||||
mark1_background ${catppuccin.toHex colors.lavender}
|
||||
mark2_foreground ${catppuccin.toHex colors.base}
|
||||
mark2_background ${catppuccin.toHex colors.mauve}
|
||||
mark3_foreground ${catppuccin.toHex colors.base}
|
||||
mark3_background ${catppuccin.toHex colors.sapphire}
|
||||
|
||||
# The 16 terminal colors
|
||||
|
||||
# black
|
||||
color0 ${colors.surface1}
|
||||
color8 ${colors.surface2}
|
||||
color0 ${catppuccin.toHex colors.surface1}
|
||||
color8 ${catppuccin.toHex colors.surface2}
|
||||
|
||||
# red
|
||||
color1 ${colors.red}
|
||||
color9 ${colors.red}
|
||||
color1 ${catppuccin.toHex colors.red}
|
||||
color9 ${catppuccin.toHex colors.red}
|
||||
|
||||
# green
|
||||
color2 ${colors.green}
|
||||
color10 ${colors.green}
|
||||
color2 ${catppuccin.toHex colors.green}
|
||||
color10 ${catppuccin.toHex colors.green}
|
||||
|
||||
# yellow
|
||||
color3 ${colors.yellow}
|
||||
color11 ${colors.yellow}
|
||||
color3 ${catppuccin.toHex colors.yellow}
|
||||
color11 ${catppuccin.toHex colors.yellow}
|
||||
|
||||
# blue
|
||||
color4 ${colors.blue}
|
||||
color12 ${colors.blue}
|
||||
color4 ${catppuccin.toHex colors.blue}
|
||||
color12 ${catppuccin.toHex colors.blue}
|
||||
|
||||
# magenta
|
||||
color5 ${colors.mauve}
|
||||
color13 ${colors.mauve}
|
||||
color5 ${catppuccin.toHex colors.mauve}
|
||||
color13 ${catppuccin.toHex colors.mauve}
|
||||
|
||||
# cyan
|
||||
color6 ${colors.teal}
|
||||
color14 ${colors.teal}
|
||||
color6 ${catppuccin.toHex colors.teal}
|
||||
color14 ${catppuccin.toHex colors.teal}
|
||||
|
||||
# white
|
||||
color7 ${colors.subtext1}
|
||||
color15 ${colors.subtext0}
|
||||
color7 ${catppuccin.toHex colors.subtext1}
|
||||
color15 ${catppuccin.toHex colors.subtext0}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue