openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
150 lines (128 loc) • 5.82 kB
CSS
/* Absolutely palette; selected by index.html and app/theme.ts. */
:root[data-theme="absolutely"],
:root[data-theme="absolutely-light"] {
--accent-foreground: #ffffff;
--chat-send-foreground: var(--accent-foreground);
--sidebar-rail-action-stroke-width: 2.15px;
--sidebar-rail-surface: color-mix(in srgb, var(--text) 4%, var(--bg-content));
--bg: color-mix(in srgb, var(--text) 2%, var(--bg-content));
--bg-muted: color-mix(in srgb, var(--text) 4%, var(--bg-content));
--inline-code-bg: color-mix(in srgb, var(--text) 5%, var(--bg-content));
--card: var(--bg-elevated);
--popover: var(--bg-elevated);
--panel-strong: var(--bg-content);
--input: var(--border);
--overlay-border: var(--border);
--secondary: var(--bg-accent);
/* Components draw their own contour; elevation adds only the two soft shadows. */
--shadow-md: 0 3px 7.5px rgba(0, 0, 0, 0.04), 0 0 20px rgba(0, 0, 0, 0.05);
--overlay-shadow: var(--shadow-md);
/* Typography is this theme's signature: a grotesque for chrome, a reading
serif for chat prose (styles/fonts.css self-hosts both). The stacks keep
system fallbacks so a failed font load degrades instead of blanking text. */
--font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-chat: "Lora", Georgia, "Times New Roman", serif;
}
:root[data-theme="absolutely"] {
--shell-divider-size: calc(var(--resize-handle-line-size) / 2);
/* Terracotta stays the accent; neutral graphite keeps nested surfaces clear. */
--ring: #d97757;
--accent: #d97757;
--accent-hover: #e68b6b;
--accent-muted: #d97757;
--accent-subtle: rgba(217, 119, 87, 0.14);
--accent-glow: rgba(217, 119, 87, 0.22);
--primary: #d97757;
--primary-hover: #e68b6b;
--primary-foreground: #241f1b;
/* White action glyphs keep their contrast when hover and press step the fill. */
--chat-send-hover-bg: color-mix(in srgb, var(--primary) 86%, var(--primary-foreground));
--sidebar-rail-action-hover-bg: var(--chat-send-hover-bg);
--sidebar-rail-action-active-bg: color-mix(
in srgb,
var(--sidebar-rail-action-hover-bg) 90%,
var(--primary-foreground)
);
--selection-bg: #5b7694;
/* Deepen only the text-bearing destructive fill; keep danger accents vivid. */
--destructive: #d32f2f;
--destructive-hover: #bc2a2a;
/* Focus — clay ring */
--focus: rgba(217, 119, 87, 0.2);
--focus-ring: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--ring) 75%, transparent);
/* Keep reading deep; floating panels lift, and the composer lifts further. */
--bg-content: #1b1b1a;
--bg-accent: color-mix(in srgb, var(--text) 4%, var(--bg-content));
--bg-elevated: color-mix(in srgb, var(--text) 8%, var(--bg-content));
--bg-hover: color-mix(in srgb, var(--text) 10%, var(--bg-content));
--chat-composer-surface: color-mix(in srgb, var(--text) 14%, var(--bg-content));
--chat-user-surface: color-mix(in srgb, var(--accent) 14%, var(--bg-content));
--card-foreground: #e8e8e2;
--card-highlight: rgba(255, 255, 248, 0.04);
--popover-foreground: #e8e8e2;
--panel: var(--bg-content);
--panel-hover: color-mix(in srgb, var(--text) 14%, var(--bg-content));
--chrome: rgba(31, 31, 30, 0.96);
--chrome-strong: rgba(31, 31, 30, 0.98);
--text: #ddddd7;
--text-strong: #f3f3ee;
--chat-text: #ddddd7;
--muted: #a09f98;
--muted-strong: #bebdb6;
--muted-foreground: #a09f98;
--border: color-mix(in srgb, var(--text) 12%, var(--bg-content));
--border-strong: rgba(249, 249, 247, 0.143);
--border-hover: color-mix(in srgb, var(--text) 26%, var(--bg-content));
--secondary-foreground: #e8e8e2;
--accent-2: #b8926a;
--accent-2-muted: rgba(184, 146, 106, 0.7);
--accent-2-subtle: rgba(184, 146, 106, 0.12);
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
--grid-line: rgba(255, 255, 248, 0.03);
}
:root[data-theme="absolutely-light"] {
--shell-divider-size: calc(var(--resize-handle-line-size) / 2);
/* Keep the soft accent; primary fills are deeper so white labels stay readable. */
--ring: #cc7d5d;
--accent: #cc7d5d;
--accent-hover: #c37353;
--accent-muted: #cc7d5d;
--accent-subtle: rgba(204, 125, 93, 0.1);
--accent-glow: rgba(204, 125, 93, 0.14);
--primary: #a5654b;
--primary-hover: #995d45;
--primary-foreground: #ffffff;
--link: color-mix(in srgb, var(--accent) 50%, var(--text));
/* Navigation recedes; the reading canvas and elevated controls stay distinct. */
--bg-accent: var(--bg);
--bg-elevated: color-mix(in srgb, var(--bg-content) 50%, white);
--bg-hover: color-mix(in srgb, var(--text) 5%, var(--bg-content));
--bg-content: #f7f6f5;
--chat-user-surface: color-mix(in srgb, var(--accent) 12%, var(--bg-content));
--card-foreground: #20201e;
--card-highlight: rgba(30, 30, 24, 0.02);
--popover-foreground: #20201e;
--panel: var(--bg);
--panel-hover: color-mix(in srgb, var(--text) 8%, var(--bg-content));
--chrome: rgba(243, 242, 241, 0.96);
--chrome-strong: rgba(243, 242, 241, 0.98);
--text: #353531;
--text-strong: #20201e;
--chat-text: #353531;
--muted: #5e5e58;
--muted-strong: #52524c;
--muted-foreground: #5e5e58;
--resize-handle-rest-color: color-mix(in srgb, var(--text) 10%, transparent);
--border: color-mix(in srgb, var(--text) 7%, var(--bg-content));
--border-strong: rgba(45, 45, 43, 0.111);
--inline-code-border: rgba(45, 45, 43, 0.13);
--border-hover: color-mix(in srgb, var(--text) 18%, var(--bg-content));
--secondary-foreground: #353531;
--accent-2: #8a6a44;
--accent-2-muted: rgba(138, 106, 68, 0.75);
--accent-2-subtle: rgba(138, 106, 68, 0.1);
--shadow-sm: 0 1px 2px rgba(30, 30, 24, 0.05);
--shadow-lg: 0 12px 28px rgba(30, 30, 24, 0.09);
--grid-line: rgba(30, 30, 24, 0.04);
}