aboutsummaryrefslogtreecommitdiffstats
path: root/templates/terminal
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-11 17:20:50 +0200
committerDanilo M. <danix@danix.xyz>2026-09-11 17:20:50 +0200
commit7b55910a786c7652ac80a576399ebd9f81a8ac72 (patch)
tree4adaedb0f0ac5003ecc0e19093a2cb5871b18deb /templates/terminal
parentc7cb9dad4e782ee0ff99773c3607ec3b7792c723 (diff)
downloadunified-desktop-theme-7b55910a786c7652ac80a576399ebd9f81a8ac72.tar.gz
unified-desktop-theme-7b55910a786c7652ac80a576399ebd9f81a8ac72.zip
feat(palette): generate every themed config from one scheme
Colours were written down five times: rofi's palette.rasi, the waybar theme, the kitty theme, the conky and dunst templates, and a MACCHIATO dict inside udt-accent. Changing scheme meant finding all five, and they had already drifted: the active waybar theme was Macchiato while theme.css next to it was Mocha, and nothing imported the latter. Now a scheme is two files. palette/<scheme>.conf holds the colours under the scheme's own names, and palette/roles-<scheme>.conf says what each is for. palette/roles.conf is one `scheme =` line selecting the pair. bin/udt-palette renders that into each consumer's syntax and install.sh runs it first. The role map is per-scheme rather than shared because the palettes are genuinely different shapes: Nord has no `base`, Dracula no `surface0`, and forcing Catppuccin's names onto them would have meant either renaming their colours or inventing values. A role names a palette colour with two optional modifiers, `name/75` for alpha and `name*50` for brightness. The second exists because GTK's shade() has no palette name to point at. Ships macchiato, tokyo-night, nord and dracula. --selftest resolves every role in every scheme and asserts they define the same set, so a scheme that cannot satisfy a consumer fails at install rather than when someone switches to it. Verified against the live configs: all 46 waybar colours resolve identically to the previously active theme including its alpha() and shade() derivations, the kitty theme is colour-for-colour identical, and the rofi palette has the same 26 values. Generated files are gitignored; switching scheme and switching back reproduces the originals. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015gbjA2bmswN8jyPDKzrvqe
Diffstat (limited to 'templates/terminal')
-rw-r--r--templates/terminal/kitty-macchiato.conf84
1 files changed, 0 insertions, 84 deletions
diff --git a/templates/terminal/kitty-macchiato.conf b/templates/terminal/kitty-macchiato.conf
deleted file mode 100644
index 92fa1c0..0000000
--- a/templates/terminal/kitty-macchiato.conf
+++ /dev/null
@@ -1,84 +0,0 @@
-# vim:ft=kitty
-
-## name: Catppuccin Kitty Macchiato
-## author: Catppuccin Org
-## license: MIT
-## upstream: https://github.com/catppuccin/kitty/blob/main/themes/macchiato.conf
-## blurb: Soothing pastel theme for the high-spirited!
-
-
-
-# The basic colors
-foreground #cad3f5
-background #24273a
-selection_foreground #24273a
-selection_background #f4dbd6
-
-# Cursor colors
-cursor #f4dbd6
-cursor_text_color #24273a
-
-# Scrollbar colors
-scrollbar_handle_color #939ab7
-scrollbar_track_color #494d64
-
-# URL color when hovering with mouse
-url_color #f4dbd6
-
-# Kitty window border colors
-active_border_color #b7bdf8
-inactive_border_color #6e738d
-bell_border_color #eed49f
-
-# OS Window titlebar colors
-wayland_titlebar_color system
-macos_titlebar_color system
-
-# Tab bar colors
-active_tab_foreground #181926
-active_tab_background #c6a0f6
-inactive_tab_foreground #cad3f5
-inactive_tab_background #1e2030
-tab_bar_background #181926
-
-# Colors for marks (marked text in the terminal)
-mark1_foreground #24273a
-mark1_background #b7bdf8
-mark2_foreground #24273a
-mark2_background #c6a0f6
-mark3_foreground #24273a
-mark3_background #7dc4e4
-
-# The 16 terminal colors
-
-# black
-color0 #494d64
-color8 #5b6078
-
-# red
-color1 #ed8796
-color9 #ed8796
-
-# green
-color2 #a6da95
-color10 #a6da95
-
-# yellow
-color3 #eed49f
-color11 #eed49f
-
-# blue
-color4 #8aadf4
-color12 #8aadf4
-
-# magenta
-color5 #f5bde6
-color13 #f5bde6
-
-# cyan
-color6 #8bd5ca
-color14 #8bd5ca
-
-# white
-color7 #b8c0e0
-color15 #a5adcb