Files
claudeandClaude Opus 5.5 7d6eec8963 Harmony on eom.dev: Supabase + Harmony on Kubernetes, Dex sign-in, Catppuccin, LiveKit
Kubernetes port of Harmony 1.9.6's self-host compose stack (Supabase Postgres,
GoTrue, PostgREST, Realtime, storage-api, imgproxy, Kong; Harmony web,
federation server/worker, Redis, media cache, Caddy router; LiveKit) at
harmony.eom.dev, api.harmony.eom.dev and voice.harmony.eom.dev.

- Dex is the only sign-in (GoTrue custom OIDC provider custom:dex); e-mail
  login off; listed addresses become instance admins.
- Upstream bootstrap.sh runs unchanged in a Job through a docker shim.
- Catppuccin Mocha/Latte stylesheet injected into the stock web image.
- Secrets generated once and kept in Secret/harmony.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 17:31:50 -05:00

364 lines
14 KiB
CSS

/* SPDX-License-Identifier: MIT-0
* Harmony on eom.dev: Catppuccin Mocha (Dark preset) / Latte (Light preset), mauve
* accent, matching dex.eom.dev and the Funkwhale theme.
*
* Harmony (1.9.6) writes its preset colours inline on <html> from JS
* (applyPresetTheme and applySurfaceSemanticTokens in
* src/composables/useVisualTheme.ts and src/utils/colorUtils.ts), so the
* variables it writes there take !important here; a stylesheet !important
* beats an inline declaration without one. Variables Harmony only defines in
* src/assets/design-system.css are set without !important, so a user's inline
* per-variable override of those still wins.
*
* Scope: only the stock Dark and Light presets with no skin, i.e.
* html[data-theme="dark"|"light"]:not([data-skin])
* Midnight (data-theme="midnight"), every custom theme and community preset
* (data-theme="custom") and every skin (data-skin="...") are left untouched.
* Before the app sets data-theme it follows prefers-color-scheme, as Harmony's
* own signed-out default does.
*
* Nothing here touches the "Powered by Harmony" attribution
* (src/components/auth/AuthShell.vue, .powered-by); it keeps its own styles
* and takes --text-link, which stays mauve and readable in both flavours. */
/* ---- Palettes ---------------------------------------------------------- */
/* Mocha: the Dark preset, and the first paint when the OS is dark. */
:root[data-theme="dark"]:not([data-skin]),
:root:not([data-theme]) {
--eom-bg-1: #1e1e2e; /* base: chat */
--eom-bg-2: #181825; /* mantle: sidebars */
--eom-bg-3: #11111b; /* crust: server rail, deepest */
--eom-bg-4: #282839; /* raised, between base and surface0 */
--eom-bg-5: #232334;
--eom-bg-6: #0b0b12; /* overlays, picker headers */
--eom-bg-7: #07070c;
--eom-bg-1-alpha: #1e1e2eaa;
--eom-bg-2-alpha: #181825aa;
--eom-bg-3-alpha: #11111baa;
--eom-bg-6-alpha: #0b0b12c7;
--eom-floating: #181825;
--eom-text-1: #cdd6f4; /* text */
--eom-text-2: #bac2de; /* subtext1 */
--eom-text-3: #a6adc8; /* subtext0 */
--eom-text-muted: #9399b2; /* overlay2 */
--eom-text-inverse: #1e1e2e;
--eom-link: #cba6f7;
--eom-border-1: rgba(205, 214, 244, 0.08);
--eom-border-2: rgba(205, 214, 244, 0.06);
--eom-border-hover: rgba(205, 214, 244, 0.14);
--eom-border-color: #313244; /* surface0 */
--eom-icon-active: #cdd6f4;
--eom-icon-1: #9399b2;
--eom-icon-2: #6c7086;
--eom-icon-3: #45475a;
--eom-icon-muted: #f38ba8;
--eom-rail-bg: #1e1e2e;
--eom-rail-icon: #cdd6f4;
--eom-item-hover: #313244; /* surface0 */
--eom-item-selected: #45475a; /* surface1 */
--eom-mauve: #cba6f7;
--eom-mauve-rgb: 203, 166, 247;
--eom-mauve-hover: #b4befe; /* lavender, as on dex.eom.dev */
--eom-mauve-dark: #a281d8;
--eom-lavender: #b4befe;
--eom-on-mauve: #11111b; /* crust on mauve: 9.2:1 */
--eom-success: #a6e3a1;
--eom-success-hover: #8fd88a;
--eom-success-rgb: 166, 227, 161;
--eom-error: #f38ba8;
--eom-error-hover: #eb6f92;
--eom-error-rgb: 243, 139, 168;
--eom-warning: #f9e2af;
--eom-warning-rgb: 249, 226, 175;
--eom-info: #89dceb;
--eom-offline: #6c7086;
--eom-tooltip-bg: #11111b;
--eom-tooltip-text: #cdd6f4;
}
/* Latte: the Light preset, and the first paint when the OS is light. */
:root[data-theme="light"]:not([data-skin]) {
--eom-bg-1: #eff1f5; /* base */
--eom-bg-2: #e6e9ef; /* mantle */
--eom-bg-3: #dce0e8; /* crust */
--eom-bg-4: #e1e4eb;
--eom-bg-5: #d6dae3;
--eom-bg-6: #4c4f69; /* Harmony's light senary is a dark overlay */
--eom-bg-7: #41435a;
--eom-bg-1-alpha: rgba(239, 241, 245, 0.85);
--eom-bg-2-alpha: rgba(230, 233, 239, 0.85);
--eom-bg-3-alpha: rgba(220, 224, 232, 0.85);
--eom-bg-6-alpha: rgba(76, 79, 105, 0.78);
--eom-floating: #eff1f5;
--eom-text-1: #4c4f69; /* text */
--eom-text-2: #5c5f77; /* subtext1: 4.7:1 on crust */
--eom-text-3: #5c5f77;
--eom-text-muted: #5c5f77; /* subtext0 is 3.7:1 on crust, too faint */
--eom-text-inverse: #eff1f5;
--eom-link: #7527d9; /* mauve darkened to 5.2:1 on crust */
--eom-border-1: rgba(76, 79, 105, 0.14);
--eom-border-2: rgba(76, 79, 105, 0.09);
--eom-border-hover: rgba(76, 79, 105, 0.2);
--eom-border-color: #ccd0da; /* surface0 */
--eom-icon-active: #4c4f69;
--eom-icon-1: #5c5f77;
--eom-icon-2: #7c7f93;
--eom-icon-3: #9ca0b0;
--eom-icon-muted: #d20f39;
--eom-rail-bg: #ccd0da;
--eom-rail-icon: #5c5f77;
--eom-item-hover: #dce0e8;
--eom-item-selected: #ccd0da;
--eom-mauve: #8839ef;
--eom-mauve-rgb: 136, 57, 239;
--eom-mauve-hover: #7527d9;
--eom-mauve-dark: #7527d9;
--eom-lavender: #7287fd;
--eom-on-mauve: #ffffff; /* white on Latte mauve: 5.4:1 */
--eom-success: #40a02b;
--eom-success-hover: #368a24;
--eom-success-rgb: 64, 160, 43;
--eom-error: #d20f39;
--eom-error-hover: #b00d30;
--eom-error-rgb: 210, 15, 57;
/* Harmony's light-mode text-safe warning/info (design-system.css) stay. */
--eom-warning: #a16207;
--eom-warning-rgb: 223, 142, 29;
--eom-info: #0369a1;
--eom-offline: #9ca0b0;
--eom-tooltip-bg: #4c4f69;
--eom-tooltip-text: #eff1f5;
}
@media (prefers-color-scheme: light) {
/* Same Latte palette as above, for the first paint. */
:root:not([data-theme]) {
--eom-bg-1: #eff1f5; /* base */
--eom-bg-2: #e6e9ef; /* mantle */
--eom-bg-3: #dce0e8; /* crust */
--eom-bg-4: #e1e4eb;
--eom-bg-5: #d6dae3;
--eom-bg-6: #4c4f69; /* Harmony's light senary is a dark overlay */
--eom-bg-7: #41435a;
--eom-bg-1-alpha: rgba(239, 241, 245, 0.85);
--eom-bg-2-alpha: rgba(230, 233, 239, 0.85);
--eom-bg-3-alpha: rgba(220, 224, 232, 0.85);
--eom-bg-6-alpha: rgba(76, 79, 105, 0.78);
--eom-floating: #eff1f5;
--eom-text-1: #4c4f69; /* text */
--eom-text-2: #5c5f77; /* subtext1: 4.7:1 on crust */
--eom-text-3: #5c5f77;
--eom-text-muted: #5c5f77; /* subtext0 is 3.7:1 on crust, too faint */
--eom-text-inverse: #eff1f5;
--eom-link: #7527d9; /* mauve darkened to 5.2:1 on crust */
--eom-border-1: rgba(76, 79, 105, 0.14);
--eom-border-2: rgba(76, 79, 105, 0.09);
--eom-border-hover: rgba(76, 79, 105, 0.2);
--eom-border-color: #ccd0da; /* surface0 */
--eom-icon-active: #4c4f69;
--eom-icon-1: #5c5f77;
--eom-icon-2: #7c7f93;
--eom-icon-3: #9ca0b0;
--eom-icon-muted: #d20f39;
--eom-rail-bg: #ccd0da;
--eom-rail-icon: #5c5f77;
--eom-item-hover: #dce0e8;
--eom-item-selected: #ccd0da;
--eom-mauve: #8839ef;
--eom-mauve-rgb: 136, 57, 239;
--eom-mauve-hover: #7527d9;
--eom-mauve-dark: #7527d9;
--eom-lavender: #7287fd;
--eom-on-mauve: #ffffff; /* white on Latte mauve: 5.4:1 */
--eom-success: #40a02b;
--eom-success-hover: #368a24;
--eom-success-rgb: 64, 160, 43;
--eom-error: #d20f39;
--eom-error-hover: #b00d30;
--eom-error-rgb: 210, 15, 57;
/* Harmony's light-mode text-safe warning/info (design-system.css) stay. */
--eom-warning: #a16207;
--eom-warning-rgb: 223, 142, 29;
--eom-info: #0369a1;
--eom-offline: #9ca0b0;
--eom-tooltip-bg: #4c4f69;
--eom-tooltip-text: #eff1f5;
}
}
/* ---- Harmony variables ------------------------------------------------- */
:root[data-theme="dark"]:not([data-skin]),
:root[data-theme="light"]:not([data-skin]),
:root:not([data-theme]) {
/* Written inline by applyPresetTheme / applySurfaceSemanticTokens. */
--harmony-primary: var(--eom-mauve) !important;
--harmony-primary-hover: var(--eom-mauve-hover) !important;
--harmony-primary-light: rgba(var(--eom-mauve-rgb), 0.1) !important;
--harmony-primary-alpha: rgba(var(--eom-mauve-rgb), 0.15) !important;
--harmony-primary-alpha-light: rgba(var(--eom-mauve-rgb), 0.1) !important;
--harmony-primary-alpha-strong: rgba(var(--eom-mauve-rgb), 0.25) !important;
--harmony-secondary: var(--eom-lavender) !important;
--harmony-secondary-hover: var(--eom-mauve-hover) !important;
--harmony-secondary-light: rgba(var(--eom-mauve-rgb), 0.1) !important;
--harmony-secondary-alpha: rgba(var(--eom-mauve-rgb), 0.15) !important;
--harmony-secondary-alpha-light: rgba(var(--eom-mauve-rgb), 0.1) !important;
--harmony-secondary-alpha-strong: rgba(var(--eom-mauve-rgb), 0.25) !important;
--harmony-accent: var(--eom-mauve) !important;
--harmony-accent-hover: var(--eom-mauve-hover) !important;
--harmony-accent-light: rgba(var(--eom-mauve-rgb), 0.1) !important;
--harmony-accent-alpha: rgba(var(--eom-mauve-rgb), 0.15) !important;
--harmony-accent-alpha-light: rgba(var(--eom-mauve-rgb), 0.1) !important;
--harmony-accent-alpha-strong: rgba(var(--eom-mauve-rgb), 0.25) !important;
--h-primary: var(--eom-mauve) !important;
--h-primary-light: var(--eom-lavender) !important;
--h-primary-dark: var(--eom-mauve-dark) !important;
--h-brand: var(--eom-mauve) !important;
--background-primary: var(--eom-bg-1) !important;
--background-secondary: var(--eom-bg-2) !important;
--background-tertiary: var(--eom-bg-3) !important;
--background-quaternary: var(--eom-bg-4) !important;
--background-quinary: var(--eom-bg-5) !important;
--background-senary: var(--eom-bg-6) !important;
--background-primary-alpha: var(--eom-bg-1-alpha) !important;
--background-secondary-alpha: var(--eom-bg-2-alpha) !important;
--background-tertiary-alpha: var(--eom-bg-3-alpha) !important;
--background-senary-alpha: var(--eom-bg-6-alpha) !important;
--text-primary: var(--eom-text-1) !important;
--text-secondary: var(--eom-text-2) !important;
--text-tertiary: var(--eom-text-3) !important;
--text-muted: var(--eom-text-muted) !important;
--border-primary: var(--eom-border-1) !important;
--border-secondary: var(--eom-border-2) !important;
--border-hover: var(--eom-border-hover) !important;
--border-focus: var(--eom-mauve) !important;
--border-color: var(--eom-border-color) !important;
--icon-primary: var(--eom-icon-1) !important;
--icon-secondary: var(--eom-icon-2) !important;
--icon-active: var(--eom-icon-active) !important;
--nav-rail-button-bg: var(--eom-rail-bg) !important;
--nav-rail-button-icon: var(--eom-rail-icon) !important;
--channel-item-hover-bg: var(--eom-item-hover) !important;
--channel-item-selected-bg: var(--eom-item-selected) !important;
/* Stylesheet-only (design-system.css); an inline override still wins.
The fills are left alone: applyContrastFills writes them inline in
high-contrast mode, derived from the mauve above. */
--text-on-primary: var(--eom-on-mauve);
--text-inverse: var(--eom-text-inverse);
--text-link: var(--eom-link);
--background-septenary: var(--eom-bg-7);
--background-floating: var(--eom-floating);
--icon-tertiary: var(--eom-icon-3);
--icon-muted: var(--eom-icon-muted);
--success: var(--eom-success);
--success-hover: var(--eom-success-hover);
--error: var(--eom-error);
--error-hover: var(--eom-error-hover);
/* White labels sit on the error fill: Latte red, 5.4:1, in both flavours. */
--error-fill: #d20f39;
--error-fill-hover: #b00d30;
--warning: var(--eom-warning);
--info: var(--eom-info);
--status-online: var(--eom-success);
--status-away: var(--eom-warning);
--status-busy: var(--eom-error);
--status-offline: var(--eom-offline);
--color-primary-rgb: var(--eom-mauve-rgb);
--h-brand-rgb: var(--eom-mauve-rgb);
--color-success-rgb: var(--eom-success-rgb);
--color-warning-rgb: var(--eom-warning-rgb);
--color-danger-rgb: var(--eom-error-rgb);
--tooltip-bg: var(--eom-tooltip-bg);
--tooltip-text: var(--eom-tooltip-text);
--tooltip-arrow: var(--eom-tooltip-bg);
}
/* Mocha text tokens for danger/success. The Light preset keeps Harmony's
light-mode text tokens, which are tuned to 4.5:1 on its surfaces. */
:root[data-theme="dark"]:not([data-skin]) {
--text-danger: #f38ba8;
--text-success: #a6e3a1;
--mention-highlight: #f9e2af;
}
:root[data-theme="light"]:not([data-skin]) {
--mention-highlight: #df8e1d;
}
/* Glass effects off: Harmony makes the *-alpha surfaces opaque. */
:root[data-theme="dark"][data-disable-blur="true"]:not([data-skin]),
:root[data-theme="light"][data-disable-blur="true"]:not([data-skin]) {
--background-primary-alpha: var(--eom-bg-1) !important;
--background-secondary-alpha: var(--eom-bg-2) !important;
--background-tertiary-alpha: var(--eom-bg-3) !important;
--background-senary-alpha: var(--eom-bg-6) !important;
}
/* First paint, before the bundle has run. */
:root:not([data-theme]) {
background-color: var(--eom-bg-3);
}
:root[data-theme="dark"]:not([data-skin]) ::selection,
:root[data-theme="light"]:not([data-skin]) ::selection {
background-color: rgba(var(--eom-mauve-rgb), 0.3);
}
/* Sign-in / register pages (src/components/auth/AuthShell.vue): the shell
keeps its own neutral palette on .auth-wrapper. Doubled class to outrank
its scoped light-mode rule. The footer, including the "Powered by Harmony"
attribution, takes --text-muted: subtext0 on crust (Mocha, 8.4:1) and
subtext1 on crust (Latte, 4.7:1), both more legible than stock. */
:root[data-theme="dark"]:not([data-skin]) .auth-wrapper.auth-wrapper {
--page: #11111b;
--surface: #1e1e2e;
--surface-light: rgba(205, 214, 244, 0.03);
--surface-hover: rgba(205, 214, 244, 0.06);
--border: rgba(205, 214, 244, 0.1);
--text: #cdd6f4;
--text-muted: #a6adc8;
--text-dim: #7f849c;
--autofill-bg: #1e1e2e;
}
:root[data-theme="light"]:not([data-skin]) .auth-wrapper.auth-wrapper {
--page: #dce0e8;
--surface: #eff1f5;
--surface-light: rgba(76, 79, 105, 0.04);
--surface-hover: rgba(76, 79, 105, 0.08);
--border: rgba(76, 79, 105, 0.16);
--text: #4c4f69;
--text-muted: #5c5f77;
--text-dim: #6c6f85;
--autofill-bg: #eff1f5;
}