diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-11 17:20:50 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-11 17:20:50 +0200 |
| commit | 7b55910a786c7652ac80a576399ebd9f81a8ac72 (patch) | |
| tree | 4adaedb0f0ac5003ecc0e19093a2cb5871b18deb /palette/nord.conf | |
| parent | c7cb9dad4e782ee0ff99773c3607ec3b7792c723 (diff) | |
| download | unified-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 'palette/nord.conf')
| -rw-r--r-- | palette/nord.conf | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/palette/nord.conf b/palette/nord.conf new file mode 100644 index 0000000..a3454b7 --- /dev/null +++ b/palette/nord.conf @@ -0,0 +1,41 @@ +# Nord. +# Copyright (C) 2026 Danilo M. <danix@danix.xyz> +# Licensed under the GNU General Public License v2 only. +# +# Source: https://www.nordtheme.com/docs/colors-and-palettes +# +# Nord names its colours nord0..nord15 and nothing else, so that is what this +# file uses. The aurora and frost groupings below are Nord's own; the readable +# aliases are a convenience for roles.conf and are the same colours. + +nord0 = #2e3440 +nord1 = #3b4252 +nord2 = #434c5e +nord3 = #4c566a + +nord4 = #d8dee9 +nord5 = #e5e9f0 +nord6 = #eceff4 + +nord7 = #8fbcbb +nord8 = #88c0d0 +nord9 = #81a1c1 +nord10 = #5e81ac + +nord11 = #bf616a +nord12 = #d08770 +nord13 = #ebcb8b +nord14 = #a3be8c +nord15 = #b48ead + +# Aliases, same values. Nord has no sixteenth hue, so the darker frost blue +# stands in where a scheme with more accents would offer one. +frost_teal = #8fbcbb +frost_cyan = #88c0d0 +frost_blue = #81a1c1 +frost_deep = #5e81ac +aurora_red = #bf616a +aurora_orange = #d08770 +aurora_yellow = #ebcb8b +aurora_green = #a3be8c +aurora_purple = #b48ead |
