openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
163 lines (138 loc) • 5.14 kB
CSS
/* Beacon palette; selected by index.html and app/theme.ts. */
/*
* Beacon targets WCAG AAA (7:1), not the AA 4.5:1 floor the other themes hold,
* for low vision, direct sunlight, projectors, and poor panels.
*
* That forces one deliberate break from the status-token convention in :root:
* elsewhere each --x-subtle is --x at 8%, but a label sitting on a tint of its
* own hue caps the achievable contrast, because the tint pulls the background
* toward the text. Beacon tints neutrally instead and lets the label carry the
* contrast, which is what buys AAA on the status pairs.
*/
:root[data-theme="beacon"],
:root[data-theme="beacon-light"] {
/* Focus is 3px and fully opaque: a translucent ring is the first thing to
disappear on a poor panel, which is exactly this theme's audience. */
--focus-ring: 0 0 0 2px var(--bg), 0 0 0 5px var(--ring);
--focus-glow: 0 0 0 2px var(--bg), 0 0 0 5px var(--ring);
--github-item-bg: color-mix(in srgb, var(--text) 4%, var(--bg));
--github-item-hover-bg: color-mix(in srgb, var(--text) 7%, var(--bg));
--overlay-border: var(--border-strong);
/* Auxiliary controls retain this palette's deliberately stronger ink. */
--text-tertiary: var(--muted);
--icon-interactive: var(--muted);
--rail-header-action-color: var(--muted);
--navigation-selected-border: var(--border-strong);
/* Atkinson Hyperlegible Next everywhere, prose included: the face is part of
the accessibility contract, not an accent (see styles fonts/atkinson-hyperlegible.css). */
--font-body:
"Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-chat: var(--font-body);
}
:root[data-theme="beacon"] {
/*
* Accent — high-visibility amber on pure black
*/
--ring: #ffc233;
--accent: #ffc233;
--accent-hover: #ffd45e;
--accent-muted: #ffc233;
--accent-subtle: rgba(255, 255, 255, 0.1);
--accent-glow: rgba(255, 194, 51, 0.3);
--primary: #ffc233;
--primary-hover: #ffd45e;
--primary-foreground: #000000;
--accent-foreground: #000000;
--focus: rgba(255, 194, 51, 0.35);
--bg-content: #000000;
--card-foreground: #ffffff;
--card-highlight: rgba(255, 255, 255, 0.06);
--popover-foreground: #ffffff;
--text: #ffffff;
--text-strong: #ffffff;
--chat-text: #ffffff;
--muted: #c9c9c9;
--muted-strong: #dcdcdc;
--muted-foreground: #c9c9c9;
/* Borders are structure here, not decoration: hairlines vanish first. */
--border: #4a4a4a;
--border-strong: #6e6e6e;
--border-hover: #9a9a9a;
--secondary-foreground: #ffffff;
--accent-2: #8ecdff;
--accent-2-muted: rgba(142, 205, 255, 0.85);
--accent-2-subtle: rgba(255, 255, 255, 0.1);
/* Neutral status tints — see the block comment above. */
--ok: #5ee88a;
--ok-muted: rgba(94, 232, 138, 0.85);
--ok-subtle: rgba(255, 255, 255, 0.1);
--destructive: #ffabab;
--destructive-hover: #ffc4c4;
--destructive-foreground: #000000;
--warn: #ffc233;
--warn-subtle: rgba(255, 255, 255, 0.1);
--danger: #ffabab;
--danger-muted: rgba(255, 171, 171, 0.85);
--danger-subtle: rgba(255, 255, 255, 0.1);
--info: #8ecdff;
--info-subtle: rgba(255, 255, 255, 0.1);
/* Diff ink is a status pair too: it sits on the same neutral tints. */
--hljs-deletion: #ffaba3;
--hljs-addition: #7ee787;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.9);
--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.95);
--grid-line: rgba(255, 255, 255, 0.08);
}
:root[data-theme="beacon-light"] {
/*
* Accent — dark amber on neutral daylight
*/
--ring: #6e4a00;
--accent: #6e4a00;
--accent-hover: #573a00;
--accent-muted: #6e4a00;
--accent-subtle: rgba(0, 0, 0, 0.07);
--accent-glow: rgba(110, 74, 0, 0.2);
--primary: #6e4a00;
--primary-hover: var(--accent-hover);
--primary-foreground: #ffffff;
--accent-foreground: #ffffff;
--focus: rgba(110, 74, 0, 0.35);
--bg-content: #f8f8f8;
--card-foreground: #000000;
--card-highlight: rgba(0, 0, 0, 0.04);
--popover-foreground: #000000;
--session-hovercard-surface: var(--card);
--text: #000000;
--text-strong: #000000;
--chat-text: #000000;
--muted: #3a3a3a;
--muted-strong: #262626;
--muted-foreground: #3a3a3a;
--border: #8a8a8a;
--border-strong: #5a5a5a;
--border-hover: #2e2e2e;
--secondary-foreground: #000000;
--accent-2: #09428d;
--accent-2-muted: rgba(9, 66, 141, 0.85);
--accent-2-subtle: rgba(0, 0, 0, 0.07);
/* Neutral status tints — see the block comment above. */
--ok: #0c5024;
--ok-muted: rgba(12, 80, 36, 0.85);
--ok-subtle: rgba(0, 0, 0, 0.07);
--destructive: #8c0f0f;
--destructive-foreground: #ffffff;
--warn: #613d00;
--warn-subtle: rgba(0, 0, 0, 0.07);
--danger: #8c0f0f;
--danger-muted: rgba(140, 15, 15, 0.85);
--danger-subtle: rgba(0, 0, 0, 0.07);
--info: #09428d;
--info-subtle: rgba(0, 0, 0, 0.07);
/* Diff ink is a status pair too: it sits on the same neutral tints. */
--hljs-deletion: #8b0c20;
--hljs-addition: #0e5021;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
--shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.3);
--grid-line: rgba(0, 0, 0, 0.12);
}