Skip to content

Commit

Permalink
refactor(theme): use whiskers (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbe authored May 11, 2024
1 parent 804f060 commit 2292669
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 6 deletions.
2 changes: 1 addition & 1 deletion catppuccin.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ main() {
# '$key' stores the key.
# '$val' stores the value.
eval "local $key"="$val"
done <"${PLUGIN_DIR}/catppuccin-${theme}.tmuxtheme"
done <"${PLUGIN_DIR}/themes/catppuccin_${theme}.tmuxtheme"

# status general
local status_default status_justify status_background message_background
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions catppuccin-latte.tmuxtheme → themes/catppuccin_latte.tmuxtheme
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# WARNING: hex colors can't contain capital letters

# --> Catppuccin (Latte)
thm_bg="#dce0e8"
thm_bg="#eff1f5"
thm_fg="#4c4f69"
thm_cyan="#179299"
thm_cyan="#04a5e5"
thm_black="#e6e9ef"
thm_gray="#bcc0cc"
thm_magenta="#ea76cb"
thm_pink="#8839ef"
thm_gray="#ccd0da"
thm_magenta="#8839ef"
thm_pink="#ea76cb"
thm_red="#d20f39"
thm_green="#40a02b"
thm_yellow="#df8e1d"
Expand Down
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions tmux.tera
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
whiskers:
version: "2.1.0"
matrix:
- flavor
filename: "themes/catppuccin_{{flavor.identifier}}.tmuxtheme"
---
{%- set palette = flavor.colors -%}
# NOTE: you can use vars with $<var> and ${<var>} as long as the str is double quoted: ""
# WARNING: hex colors can't contain capital letters

# --> Catppuccin ({{ flavor.identifier | capitalize }})
thm_bg="#{{ palette.base.hex | lower }}"
thm_fg="#{{ palette.text.hex | lower }}"
thm_cyan="#{{ palette.sky.hex| lower }}"
thm_black="#{{ palette.mantle.hex | lower }}"
thm_gray="#{{ palette.surface0.hex | lower }}"
thm_magenta="#{{ palette.mauve.hex | lower }}"
thm_pink="#{{ palette.pink.hex | lower }}"
thm_red="#{{ palette.red.hex | lower }}"
thm_green="#{{ palette.green.hex | lower }}"
thm_yellow="#{{ palette.yellow.hex | lower }}"
thm_blue="#{{ palette.blue.hex | lower }}"
thm_orange="#{{ palette.peach.hex | lower }}"
thm_black4="#{{ palette.surface2.hex | lower }}"
{% raw %}{% endraw %}{# Needs to end with a newline #}

0 comments on commit 2292669

Please sign in to comment.