diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-11 18:23:41 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-11 18:23:41 +0200 |
| commit | 1f37c129ac0b72fd2e177618ae6aed5f4233873d (patch) | |
| tree | d0a6bc9698474207b8ded528f5830c57cde5267f /templates | |
| parent | 90d92490f83156a4a90c44b3837f1037cec80132 (diff) | |
| download | unified-desktop-theme-1f37c129ac0b72fd2e177618ae6aed5f4233873d.tar.gz unified-desktop-theme-1f37c129ac0b72fd2e177618ae6aed5f4233873d.zip | |
feat(palette): generate the homepage stylesheet and stage it on install
The dashboard's custom.css was written by hand against Macchiato, so it would
have drifted the moment the desktop changed scheme. It is now generated from
the same roles as everything else and staged on the host by install.sh.
Adds four intermediate grey roles to every scheme. homepage wants a full
ten-step ramp where the other consumers want three depths, and without them
several steps collapsed onto the same colour, flattening the mid-tones.
The scp is deliberately soft: five second timeout, BatchMode, a warning rather
than a failure when the host is unreachable, so a laptop away from that network
still installs the local theme. It stages to ~/hp-stage only, because
/opt/homepage/config is root-owned; install.sh prints the sudo copy to finish.
Verified: the generated Macchiato stylesheet reproduces the deployed one
colour-for-colour, switching to tokyo-night propagates through to the staged
file, and a failing scp leaves install.sh exiting 0.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gbjA2bmswN8jyPDKzrvqe
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/homepage/custom.css | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/homepage/custom.css b/templates/homepage/custom.css new file mode 100644 index 0000000..5256358 --- /dev/null +++ b/templates/homepage/custom.css @@ -0,0 +1,42 @@ +/* Generated by udt-palette from palette/tokyo-night.conf. Do not edit. + * + * Catppuccin-independent: every colour here comes from palette/roles-tokyo-night + * .conf, so this file follows the desktop rather than restating a palette. + */ + +.theme-gray { + --color-50: 192 202 245; + --color-100: 169 177 214; + --color-200: 169 177 214; + --color-300: 86 95 137; + --color-400: 65 72 104; + --color-500: 86 95 137; + --color-600: 40 52 87; + --color-700: 40 52 87; + --color-800: 41 46 66; + --color-900: 26 27 38; + + --color-logo-start: 122 162 247; + --color-logo-stop: 125 207 255; +} + +/* Card backgrounds, which the ramp does not reach. See the note above. */ +.theme-gray .bg-theme-100\/20:not([class^="backdrop-blur"]), +.theme-gray .dark\:bg-white\/5:not([class^="backdrop-blur"]) { + background-color: rgb(41 46 66 / 55%); +} + +.theme-gray .bg-theme-100\/20:hover:not([class^="backdrop-blur"]), +.theme-gray .dark\:bg-white\/5:hover:not([class^="backdrop-blur"]) { + background-color: rgb(40 52 87 / 70%); +} + +.theme-gray .bg-theme-900\/50:not([class^="backdrop-blur"]) { + background-color: rgb(26 27 38 / 50%); +} + +/* Accent on secondary labels. Fixed, not wallpaper-tracking: this runs on a + * server with no wallpaper to read. */ +.theme-gray .text-theme-500 { + color: #7aa2f7; +} |
