feat(webui): swap the violet palette for the Graphite theme
Neutral warm greys with one swappable sage accent replace the violet canvas, washes and brand gradient. IBM Plex Sans/Mono replace Geist. The light theme keeps the same rules with a darker sage. No layout changes.
This commit is contained in:
1 parent
464ccf83fa
commit
6d8fe247a7
39 files changed
+121
-135
No files matched your search
@@ -29,7 +29,7 @@ function glyph(visible: boolean): string {
|
||||
<template>
|
||||
<button
|
||||
type="button"
|
||||
class="relative z-10 grid size-14 cursor-pointer place-items-center rounded-full bg-linear-to-br from-primary to-[var(--brand-alt)] text-primary-foreground shadow-[var(--shadow-md)] transition-[transform,box-shadow] duration-[140ms] hover:-translate-y-px hover:shadow-[0_12px_34px_var(--primary-soft)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary active:translate-y-0"
|
||||
class="relative z-10 grid size-14 cursor-pointer place-items-center rounded-full border border-border-strong bg-secondary text-primary shadow-[var(--shadow-md)] transition-transform duration-[140ms] hover:-translate-y-px focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary active:translate-y-0"
|
||||
:aria-label="open ? 'Close chat' : 'Chat with Archie'"
|
||||
:title="open ? 'Close chat' : 'Chat with Archie'"
|
||||
:aria-expanded="open"
|
||||
|
||||
+100
-125
@@ -1,4 +1,6 @@
|
||||
@import "@fontsource-variable/geist";
|
||||
@import "@fontsource-variable/ibm-plex-sans";
|
||||
@import "@fontsource/ibm-plex-mono/400.css";
|
||||
@import "@fontsource/ibm-plex-mono/500.css";
|
||||
|
||||
@import "tailwindcss";
|
||||
@import "tw-animate-css";
|
||||
@@ -37,16 +39,15 @@
|
||||
* does not define (status colours, the subtle foreground, the glass surfaces)
|
||||
* are ours.
|
||||
*
|
||||
* The dark theme is a saturated violet on a near-black canvas with a violet
|
||||
* cast; the light theme is the ink and cream set inverted. Every foreground is
|
||||
* The dark theme is Graphite (docs/design/ui-redesign/tokens/tokens.css):
|
||||
* neutral warm greys and one low-chroma accent. Every foreground is
|
||||
* checked against every surface it lands on, hover states included, at AA
|
||||
* (4.5:1), and the ratios in the comments are the measured ones.
|
||||
*/
|
||||
@theme inline {
|
||||
--font-sans: "Geist Variable", sans-serif;
|
||||
--font-sans: "IBM Plex Sans Variable", system-ui, sans-serif;
|
||||
--font-heading: var(--font-sans);
|
||||
--font-mono:
|
||||
ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
|
||||
--font-mono: "IBM Plex Mono", ui-monospace, monospace;
|
||||
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
@@ -102,147 +103,130 @@
|
||||
[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
|
||||
/* Near-black carrying a violet cast, so the accent reads as light coming
|
||||
out of the canvas rather than a swatch laid on top of grey. */
|
||||
--background: #0f0a16;
|
||||
--card: #191026;
|
||||
--card-foreground: #f0eaf7;
|
||||
--popover: #1f1430;
|
||||
--popover-foreground: #f0eaf7;
|
||||
--foreground: #f0eaf7;
|
||||
/* Graphite: warm neutral greys with no hue cast. Hierarchy comes from
|
||||
surface steps and borders, never from tinted backgrounds. */
|
||||
--background: #121314;
|
||||
--card: #16171a;
|
||||
--card-foreground: #e8e6e1;
|
||||
--popover: #17181a;
|
||||
--popover-foreground: #e8e6e1;
|
||||
--foreground: #e8e6e1;
|
||||
|
||||
/* The primary surface is a deep violet so its label can be white: the
|
||||
earlier bright violet with canvas-dark ink passed the ratio on paper and
|
||||
failed in the hand -- black on bright purple vibrates at small sizes.
|
||||
White on #7E56E6 is 4.81:1. Link text on the canvas is a separate token:
|
||||
one violet cannot be both a dark-enough surface and a light-enough text
|
||||
colour, so --link carries the light tint (#B691F7, 7.78:1 on canvas). */
|
||||
--primary: #7e56e6;
|
||||
--primary-foreground: #ffffff;
|
||||
--primary-soft: rgba(126, 86, 230, 0.16);
|
||||
--link: #b691f7;
|
||||
/* The one accent. Everything that marks "active", "focused", "on" or the
|
||||
primary action derives from --primary, so swapping this line (steel
|
||||
#8aa4c2, sand #d4a373, muted violet #a397c9) retints the whole app.
|
||||
Ink #101412 on sage is 8.1:1. */
|
||||
--primary: #86b5a0;
|
||||
--primary-foreground: #101412;
|
||||
--primary-soft: rgba(134, 181, 160, 0.12);
|
||||
--link: var(--primary);
|
||||
|
||||
/* shadcn's `accent` is the hover surface, not the brand colour. */
|
||||
--secondary: #271838;
|
||||
--secondary-foreground: #f0eaf7;
|
||||
--muted: #271838;
|
||||
--muted-foreground: #b9aecb;
|
||||
--accent: #271838;
|
||||
--accent-foreground: #f0eaf7;
|
||||
--secondary: #1e2023;
|
||||
--secondary-foreground: #e8e6e1;
|
||||
--muted: #1e2023;
|
||||
--muted-foreground: #a6a39b;
|
||||
--accent: #1e2023;
|
||||
--accent-foreground: #e8e6e1;
|
||||
|
||||
--destructive: #f87a88;
|
||||
--destructive-foreground: #0f0a16;
|
||||
--destructive-soft: rgba(248, 122, 136, 0.16);
|
||||
--destructive: #d9776b;
|
||||
--destructive-foreground: #121314;
|
||||
--destructive-soft: rgba(217, 119, 107, 0.08);
|
||||
|
||||
--border: #3a2a52;
|
||||
--border-strong: #503a6b;
|
||||
--input: #3a2a52;
|
||||
--ring: #a76bf5;
|
||||
--border: #2a2c30;
|
||||
--border-strong: #34373c;
|
||||
--input: #2e3034;
|
||||
--ring: var(--primary);
|
||||
|
||||
--fg-muted: #b9aecb;
|
||||
--fg-subtle: #a99dbd;
|
||||
--fg-muted: #a6a39b;
|
||||
/* The dimmest text allowed: 5.3:1 on the card, 4.9:1 on hover surfaces; hints and captions only. */
|
||||
--fg-subtle: #8f8c85;
|
||||
|
||||
--ok: #4fd08c;
|
||||
--ok-soft: rgba(79, 208, 140, 0.16);
|
||||
--warn: #f0b65c;
|
||||
--warn-soft: rgba(240, 182, 92, 0.16);
|
||||
--danger: #f87a88;
|
||||
--danger-soft: rgba(248, 122, 136, 0.16);
|
||||
/* #B08BF8, not the ring's #A76BF5: info doubles as badge text on
|
||||
info-soft and as the log-level label, and #A76BF5 on info-soft over a
|
||||
card is 4.29:1 -- under AA. On every surface it lands on (canvas, card,
|
||||
glass, both softs) #B08BF8 clears 5.5:1. */
|
||||
--info: #b08bf8;
|
||||
--info-soft: rgba(167, 107, 245, 0.16);
|
||||
--idle: #a79bb8;
|
||||
--idle-soft: rgba(167, 155, 184, 0.16);
|
||||
--ok: var(--primary);
|
||||
--ok-soft: var(--primary-soft);
|
||||
--warn: #d9a45b;
|
||||
--warn-soft: rgba(217, 164, 91, 0.08);
|
||||
--danger: #d9776b;
|
||||
--danger-soft: rgba(217, 119, 107, 0.08);
|
||||
/* Info is the "working" agent-state swatch, the only hue besides the
|
||||
accent, amber and red. */
|
||||
--info: #8aa4c2;
|
||||
--info-soft: rgba(138, 164, 194, 0.1);
|
||||
--idle: #8f8c85;
|
||||
--idle-soft: rgba(143, 140, 133, 0.1);
|
||||
|
||||
/* The brand's second hue: the magenta the petals turn at their tips, so the
|
||||
canvas wash runs violet into magenta instead of one flat colour. */
|
||||
--brand-alt: #c061e8;
|
||||
--bg-blur: rgba(15, 10, 22, 0.6);
|
||||
/* Panels are translucent so the canvas wash shows through and the whole
|
||||
workspace reads as one lit surface rather than opaque cards on a picture. */
|
||||
--surface-glass: rgba(25, 16, 38, 0.62);
|
||||
--surface-glass-strong: rgba(15, 10, 22, 0.8);
|
||||
--workspace: rgba(12, 8, 18, 0.55);
|
||||
--hairline: rgba(240, 234, 247, 0.07);
|
||||
--wash-a: rgba(167, 107, 245, 0.14);
|
||||
--wash-b: rgba(192, 97, 232, 0.12);
|
||||
--wash-c: rgba(246, 239, 234, 0.04);
|
||||
--bg-blur: rgba(18, 19, 20, 0.6);
|
||||
--surface-glass: var(--card);
|
||||
--surface-glass-strong: var(--popover);
|
||||
--workspace: var(--background);
|
||||
--hairline: #202225;
|
||||
|
||||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
--shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
|
||||
--shadow-workspace: 0 24px 70px rgba(0, 0, 0, 0.6);
|
||||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
|
||||
--shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
|
||||
--shadow-workspace: none;
|
||||
|
||||
--transition: 140ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--radius-pill: 999px;
|
||||
}
|
||||
|
||||
/* ── Light ──────────────────────────────────────────────────────────────── */
|
||||
/* Not part of the Graphite handoff: the same neutral rules on paper, with a
|
||||
darker sage so white labels and accent text clear AA. */
|
||||
[data-theme="light"] {
|
||||
color-scheme: light;
|
||||
|
||||
--background: #f6efea;
|
||||
--background: #f5f4f1;
|
||||
--card: #ffffff;
|
||||
--card-foreground: #2e2a35;
|
||||
--card-foreground: #1f1f1d;
|
||||
--popover: #ffffff;
|
||||
--popover-foreground: #2e2a35;
|
||||
--foreground: #2e2a35;
|
||||
--popover-foreground: #1f1f1d;
|
||||
--foreground: #1f1f1d;
|
||||
|
||||
--primary: #8b5fbf;
|
||||
/* White on #3f6f5a is 5.8:1; as text on the canvas, 5.3:1. */
|
||||
--primary: #3f6f5a;
|
||||
--primary-foreground: #ffffff;
|
||||
--primary-soft: rgba(139, 95, 191, 0.12);
|
||||
--link: #7a4fb3;
|
||||
--primary-soft: rgba(63, 111, 90, 0.1);
|
||||
--link: var(--primary);
|
||||
|
||||
--secondary: #e9d7f7;
|
||||
--secondary-foreground: #2e2a35;
|
||||
--muted: #e9d7f7;
|
||||
--muted-foreground: #635b6b;
|
||||
--accent: #e9d7f7;
|
||||
--accent-foreground: #2e2a35;
|
||||
--secondary: #ecebe7;
|
||||
--secondary-foreground: #1f1f1d;
|
||||
--muted: #ecebe7;
|
||||
--muted-foreground: #5c5a55;
|
||||
--accent: #ecebe7;
|
||||
--accent-foreground: #1f1f1d;
|
||||
|
||||
--destructive: #be2c43;
|
||||
--destructive: #b3413a;
|
||||
--destructive-foreground: #ffffff;
|
||||
--destructive-soft: rgba(190, 44, 67, 0.1);
|
||||
--destructive-soft: rgba(179, 65, 58, 0.08);
|
||||
|
||||
--border: #ddcfc2;
|
||||
--border-strong: #c4b3a4;
|
||||
--input: #ddcfc2;
|
||||
--ring: #8b5fbf;
|
||||
--border: #dcdad4;
|
||||
--border-strong: #c7c4bd;
|
||||
--input: #d4d1ca;
|
||||
--ring: var(--primary);
|
||||
|
||||
--fg-muted: #635b6b;
|
||||
/* #675E6F, not #6E6577: subtle text also lands on the wash-composited
|
||||
canvas, where #6E6577 is 4.44:1. */
|
||||
--fg-subtle: #675e6f;
|
||||
--fg-muted: #5c5a55;
|
||||
--fg-subtle: #66635d;
|
||||
|
||||
--ok: #0c7548;
|
||||
--ok-soft: rgba(12, 117, 72, 0.1);
|
||||
--ok: var(--primary);
|
||||
--ok-soft: var(--primary-soft);
|
||||
--warn: #8a5a12;
|
||||
--warn-soft: rgba(138, 90, 18, 0.1);
|
||||
--danger: #be2c43;
|
||||
--danger-soft: rgba(190, 44, 67, 0.1);
|
||||
/* #6F47A6, not the ring's #8B5FBF: on the cream canvas #8B5FBF is
|
||||
4.11:1 and 3.58:1 on info-soft. #6F47A6 clears 5.1:1 on every surface
|
||||
info text lands on, light theme included. */
|
||||
--info: #6f47a6;
|
||||
--info-soft: rgba(139, 95, 191, 0.12);
|
||||
--idle: #5a6270;
|
||||
--idle-soft: rgba(90, 98, 112, 0.1);
|
||||
--danger: #b3413a;
|
||||
--danger-soft: rgba(179, 65, 58, 0.08);
|
||||
--info: #3d5f86;
|
||||
--info-soft: rgba(61, 95, 134, 0.1);
|
||||
--idle: #5f5d58;
|
||||
--idle-soft: rgba(95, 93, 88, 0.1);
|
||||
|
||||
--brand-alt: #c9a3e6;
|
||||
--bg-blur: rgba(246, 239, 234, 0.6);
|
||||
--surface-glass: rgba(255, 255, 255, 0.72);
|
||||
--surface-glass-strong: rgba(255, 255, 255, 0.88);
|
||||
--workspace: rgba(255, 255, 255, 0.55);
|
||||
--hairline: rgba(46, 42, 53, 0.06);
|
||||
--wash-a: rgba(139, 95, 191, 0.1);
|
||||
--wash-b: rgba(201, 163, 230, 0.16);
|
||||
--wash-c: rgba(12, 117, 72, 0.05);
|
||||
--bg-blur: rgba(245, 244, 241, 0.6);
|
||||
--surface-glass: var(--card);
|
||||
--surface-glass-strong: var(--popover);
|
||||
--workspace: var(--background);
|
||||
--hairline: #e6e4df;
|
||||
|
||||
--shadow-sm: 0 1px 2px rgba(46, 42, 53, 0.06);
|
||||
--shadow-md: 0 8px 28px rgba(46, 42, 53, 0.1);
|
||||
--shadow-workspace: 0 24px 70px rgba(46, 42, 53, 0.14);
|
||||
--shadow-sm: 0 1px 2px rgba(31, 31, 29, 0.06);
|
||||
--shadow-md: 0 8px 28px rgba(31, 31, 29, 0.1);
|
||||
--shadow-workspace: none;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
@@ -252,16 +236,7 @@
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
@apply font-sans;
|
||||
/* The luminous canvas the shell floats on. Large, off-axis and
|
||||
low-frequency, so it lights the workspace rather than competing with
|
||||
it, and fixed so the surface above reads as glass rather than a
|
||||
scrolling image. The padding is the margin the frame sits inside. */
|
||||
background:
|
||||
radial-gradient(70rem 40rem at 8% -10%, var(--wash-a), transparent 62%),
|
||||
radial-gradient(56rem 34rem at 92% 4%, var(--wash-b), transparent 58%),
|
||||
radial-gradient(48rem 30rem at 50% 108%, var(--wash-c), transparent 60%),
|
||||
var(--background);
|
||||
background-attachment: fixed;
|
||||
background: var(--background);
|
||||
padding: 1rem;
|
||||
}
|
||||
/* The focus floor. A component may style its own focus state; this
|
||||
|
||||
Reference in new issue
Block a user