From 2690dca9687d25c8b536aebfee0ccb8dd4c42808 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Tue, 14 May 2024 21:39:47 -0400 Subject: [PATCH] build: use whiskers --- justfile | 5 +++ spotify-player.tera | 34 +++++++++++++++ src/theme.toml | 98 ------------------------------------------- theme.toml | 100 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 139 insertions(+), 98 deletions(-) create mode 100644 justfile create mode 100644 spotify-player.tera delete mode 100644 src/theme.toml create mode 100644 theme.toml diff --git a/justfile b/justfile new file mode 100644 index 0000000..4f1ea55 --- /dev/null +++ b/justfile @@ -0,0 +1,5 @@ +_default: + @just --list + +build: + whiskers spotify-player.tera > theme.toml diff --git a/spotify-player.tera b/spotify-player.tera new file mode 100644 index 0000000..c3abbd0 --- /dev/null +++ b/spotify-player.tera @@ -0,0 +1,34 @@ +--- +whiskers: + version: 2.1.0 +--- + +{%- for _, flavor in flavors -%} +{%- set palette = flavor.colors -%} + +[[themes]] +name = "Catppuccin-{{ flavor.identifier }}" +[themes.palette] +background = "#{{ palette.base.hex }}" +foreground = "#{{ palette.text.hex }}" +black = "#{{ palette.base.hex }}" +blue = "#{{ palette.blue.hex }}" +cyan = "#{{ palette.sky.hex }}" +green = "#{{ palette.green.hex }}" +magenta = "#{{ palette.mauve.hex }}" +red = "#{{ palette.red.hex }}" +white = "#{{ palette.text.hex }}" +yellow = "#{{ palette.yellow.hex }}" +bright_black = "#{{ palette.base.hex }}" +bright_blue = "#{{ palette.blue.hex }}" +bright_cyan = "#{{ palette.sky.hex }}" +bright_green = "#{{ palette.green.hex }}" +bright_magenta = "#{{ palette.mauve.hex }}" +bright_red = "#{{ palette.red.hex }}" +bright_white = "#{{ palette.text.hex }}" +bright_yellow = "#{{ palette.yellow.hex }}" + +[themes.component_style] +selection = { bg = "#{{ palette.surface0.hex }}", modifiers = ["Bold"] } + +{% endfor -%} diff --git a/src/theme.toml b/src/theme.toml deleted file mode 100644 index 2054873..0000000 --- a/src/theme.toml +++ /dev/null @@ -1,98 +0,0 @@ -# Catppuccin themes for Spotify-player - -[[themes]] -name = "Catppuccin-mocha" -[themes.palette] -background = "#1E1E2E" -foreground = "#CDD6F4" -black = "#1E1E2E" -blue = "#89B4FA" -cyan = "#89DCEB" -green = "#A6E3A1" -magenta = "#CBA6F7" -red = "#F38BA8" -white = "#CDD6F4" -yellow = "#F9E2AF" -bright_black = "#1E1E2E" -bright_blue = "#89B4FA" -bright_cyan = "#89DCEB" -bright_green = "#A6E3A1" -bright_magenta = "#CBA6F7" -bright_red = "#F38BA8" -bright_white = "#CDD6F4" -bright_yellow = "#F9E2AF" - -[themes.component_style] -selection = { bg = "#313244", modifiers = ["Bold"] } - -[[themes]] -name = "Catppuccin-latte" -[themes.palette] -background = "#EFF1F5" -foreground = "#4C4F69" -black = "#EFF1F5" -blue = "#1E66F5" -cyan = "#04A5E5" -green = "#40A02B" -magenta = "#8839EF" -red = "#D20F39" -white = "#4C4F69" -yellow = "#DF8E1D" -bright_black = "#EFF1F5" -bright_blue = "#1E66F5" -bright_cyan = "#04A5E5" -bright_green = "#40A02B" -bright_magenta = "#8839EF" -bright_red = "#D20F39" -bright_white = "#4C4F69" -bright_yellow = "#DF8E1D" -[themes.component_style] -selection = { bg = "#CCD0DA", modifiers = ["Bold"] } - -[[themes]] -name = "Catppuccin-frappe" -[themes.palette] -background = "#303446" -foreground = "#C6D0F5" -black = "#303446" -blue = "#8CAAEE" -cyan = "#89DCEB" -green = "#A6D189" -magenta = "#CA9EE6" -red = "#E78284" -white = "#C6D0F5" -yellow = "#E5C890" -bright_black = "#303446" -bright_blue = "#8CAAEE" -bright_cyan = "#89DCEB" -bright_green = "#A6D189" -bright_magenta = "#CA9EE6" -bright_red = "#E78284" -bright_white = "#C6D0F5" -bright_yellow = "#E5C890" -[themes.component_style] -selection = { bg = "#414559", modifiers = ["Bold"] } - -[[themes]] -name = "Catppuccin-macchiato" -[themes.palette] -background = "#24273A" -foreground = "#CAD3F5" -black = "#24273A" -blue = "#8AADF4" -cyan = "#91D7E3" -green = "#A6DA95" -magenta = "#C6A0F6" -red = "#ED8796" -white = "#CAD3F5" -yellow = "#EED49F" -bright_black = "#24273A" -bright_blue = "#8AADF4" -bright_cyan = "#91D7E3" -bright_green = "#A6DA95" -bright_magenta = "#C6A0F6" -bright_red = "#ED8796" -bright_white = "#CAD3F5" -bright_yellow = "#EED49F" -[themes.component_style] -selection = { bg = "#363A4F", modifiers = ["Bold"] } diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..1ac9351 --- /dev/null +++ b/theme.toml @@ -0,0 +1,100 @@ +[[themes]] +name = "Catppuccin-latte" +[themes.palette] +background = "#eff1f5" +foreground = "#4c4f69" +black = "#eff1f5" +blue = "#1e66f5" +cyan = "#04a5e5" +green = "#40a02b" +magenta = "#8839ef" +red = "#d20f39" +white = "#4c4f69" +yellow = "#df8e1d" +bright_black = "#eff1f5" +bright_blue = "#1e66f5" +bright_cyan = "#04a5e5" +bright_green = "#40a02b" +bright_magenta = "#8839ef" +bright_red = "#d20f39" +bright_white = "#4c4f69" +bright_yellow = "#df8e1d" + +[themes.component_style] +selection = { bg = "#ccd0da", modifiers = ["Bold"] } + +[[themes]] +name = "Catppuccin-frappe" +[themes.palette] +background = "#303446" +foreground = "#c6d0f5" +black = "#303446" +blue = "#8caaee" +cyan = "#99d1db" +green = "#a6d189" +magenta = "#ca9ee6" +red = "#e78284" +white = "#c6d0f5" +yellow = "#e5c890" +bright_black = "#303446" +bright_blue = "#8caaee" +bright_cyan = "#99d1db" +bright_green = "#a6d189" +bright_magenta = "#ca9ee6" +bright_red = "#e78284" +bright_white = "#c6d0f5" +bright_yellow = "#e5c890" + +[themes.component_style] +selection = { bg = "#414559", modifiers = ["Bold"] } + +[[themes]] +name = "Catppuccin-macchiato" +[themes.palette] +background = "#24273a" +foreground = "#cad3f5" +black = "#24273a" +blue = "#8aadf4" +cyan = "#91d7e3" +green = "#a6da95" +magenta = "#c6a0f6" +red = "#ed8796" +white = "#cad3f5" +yellow = "#eed49f" +bright_black = "#24273a" +bright_blue = "#8aadf4" +bright_cyan = "#91d7e3" +bright_green = "#a6da95" +bright_magenta = "#c6a0f6" +bright_red = "#ed8796" +bright_white = "#cad3f5" +bright_yellow = "#eed49f" + +[themes.component_style] +selection = { bg = "#363a4f", modifiers = ["Bold"] } + +[[themes]] +name = "Catppuccin-mocha" +[themes.palette] +background = "#1e1e2e" +foreground = "#cdd6f4" +black = "#1e1e2e" +blue = "#89b4fa" +cyan = "#89dceb" +green = "#a6e3a1" +magenta = "#cba6f7" +red = "#f38ba8" +white = "#cdd6f4" +yellow = "#f9e2af" +bright_black = "#1e1e2e" +bright_blue = "#89b4fa" +bright_cyan = "#89dceb" +bright_green = "#a6e3a1" +bright_magenta = "#cba6f7" +bright_red = "#f38ba8" +bright_white = "#cdd6f4" +bright_yellow = "#f9e2af" + +[themes.component_style] +selection = { bg = "#313244", modifiers = ["Bold"] } +