Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
11.6 KB
Raw Blame
:root,
:root[data-theme='dark'] {
  color-scheme: dark;

  /* Brand + surfaces (neutral dark) */
  --bg: #0e0f10;
  --bg-elev: #141517;
  --bg-elev-2: #1a1c1f;
  --panel: #141518;
  --panel-strong: #1b1d21;
  --border: #303338;
  --border-soft: #434851;
  --text: #f2f2ef;
  --text-muted: #c6c8cc;
  --text-dim: #92969e;
  --brand-blue: #4377fa;
  --brand-light-blue: #c3d4fd;
  --brand-dark-blue: #02123c;
  --brand-deep-blue: #1f6c9f;
  --accent: var(--brand-blue);
  --accent-strong: #6a94ff;
  --accent-contrast: #ffffff;
  --success: #66b88f;
  --danger: #ec7c72;
  --warning: #d19452;
  --search-match-bg: #ffff00;
  --search-match-current-bg: #ff9632;
  --search-match-text: #000000;
  --unknown: #e2dfef;
  --info: #0072c0;
  --text-inverse: #ffffff;

  /* Media surfaces (full-bleed dark background for video/image previews). */
  --media-surface: #000000;

  --accent-rgb: 67, 119, 250;
  --accent-soft-rgb: 67, 119, 250;
  --edge-rgb: 94, 99, 108;
  --focus-rgb: 67, 119, 250;
  --success-rgb: 102, 184, 143;
  --danger-rgb: 236, 124, 114;
  --warning-rgb: 209, 148, 82;
  --text-dim-rgb: 146, 150, 158;
  /* `--unknown` is the text color; `--unknown-fill-rgb` is a separately tuned
     base for low-alpha rgba() overlays (border / background). They are
     intentionally not hex-expansions of each other — the overlay base is more
     saturated so rgba() at low alpha stays visible. */
  --unknown-fill-rgb: 180, 170, 225;
  --info-rgb: 0, 114, 192;
  --overlay-rgb: 6, 7, 8;
  --panel-rgb: 20, 21, 24;

  --surface-soft: rgba(var(--panel-rgb), 0.66);
  --surface-strong: rgba(var(--panel-rgb), 0.9);
  --surface-hover: rgba(var(--accent-rgb), 0.16);
  --surface-active: rgba(var(--accent-rgb), 0.24);

  /* Numbered surface ramp — flat VS Code zones mapped onto the existing five
     base surfaces: editor → sidebar → panel → widget → input. These are pure
     aliases, so they resolve per theme and need no light-block redefinition. */
  --surface-0: var(--bg); /* editor */
  --surface-1: var(--bg-elev); /* sidebar */
  --surface-2: var(--panel); /* panel */
  --surface-3: var(--bg-elev-2); /* widget */
  --surface-4: var(--panel-strong); /* input */

  --app-radial-left: radial-gradient(
    980px 520px at 16% 0%,
    rgba(67, 119, 250, 0.13) 0%,
    transparent 58%
  );
  --app-radial-right: radial-gradient(
    860px 540px at 100% 0%,
    rgba(195, 212, 253, 0.08) 0%,
    transparent 52%
  );
  /* Flat VS Code zones (crisp boundaries, no gradient). Sidebar is bumped one
     surface level above the editor/panel to raise zone contrast. */
  --glass-gradient: var(--panel);
  --topbar-gradient: var(--bg-elev);
  --sidebar-gradient: var(--bg-elev-2);
  --avatar-gradient: linear-gradient(135deg, #2f5fea 0%, #6a94ff 100%);
  --list-item-bg: rgba(var(--edge-rgb), 0.12);
  --list-item-hover-bg: rgba(var(--accent-rgb), 0.13);
  --list-item-selected-bg: rgba(var(--accent-rgb), 0.14);
  --list-item-selected-border: rgba(var(--accent-rgb), 0.4);
  --selection-bg: rgba(var(--accent-rgb), 0.45);
  --selection-text: #ffffff;

  /* Radii + spacing */
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-xs: 2px; /* micro indicators */
  --radius-control: 4px; /* buttons, inputs, selects, menu items, square chips, card tabs */
  --radius-pill: 999px; /* status Pill only — the single fully-rounded control */

  /* Single compact control height (VS Code language) */
  --control-height-sm: 24px;
  --control-height: 28px;
  --control-height-lg: 32px;
  --space-0-5: 2px;
  --space-1: 6px;
  --space-1-5: 8px;
  --space-2: 10px;
  --space-2-5: 12px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --motion-fast: 120ms ease;
  --motion-medium: 160ms ease;

  /* Typography scale */
  --font-family-base:
    Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono:
    'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --font-size-2xs: 10px; /* micro: timestamps, dot-labels */
  --font-size-xs: 11px; /* column headers, metadata */
  --font-size-sm: 12px; /* secondary body, hints */
  --font-size-md: 13px; /* default body, table cells */
  --font-size-lg: 15px; /* emphasized body, row title */
  --font-size-xl: 18px; /* card title, section title */
  --font-size-2xl: 22px; /* page subhead */
  --font-size-3xl: 28px; /* page hero */
  --font-size-4xl: 36px; /* auth hero only */

  --line-height-tight: 1.2;
  --line-height-normal: 1.45;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --letter-spacing-caps: 0.06em;

  /* Tables / data surfaces */
  --table-row-height: 56px;
  --table-row-height-comfortable: 72px;
  --table-cell-padding-y: 10px;
  --table-cell-padding-x: 12px;
  --table-header-bg: rgba(var(--edge-rgb), 0.14);
  --table-header-color: var(--text-dim);
  --table-header-font-size: var(--font-size-xs);
  --table-row-divider: rgba(var(--edge-rgb), 0.18);
  --table-row-hover-bg: rgba(var(--accent-rgb), 0.14);
  --table-row-selected-bg: rgba(var(--accent-rgb), 0.16);
  --table-frame-bg: var(--surface-soft);
  --table-frame-border: rgba(var(--edge-rgb), 0.28);
  --table-radius: var(--radius-md);

  /* Card-grid surfaces (da-grid* — clickable card-list rows) */
  --grid-card-bg: rgba(var(--panel-rgb), 0.56);
  --grid-card-border: rgba(var(--edge-rgb), 0.22);
  --grid-card-bg-hover: rgba(var(--accent-rgb), 0.36);
  --grid-card-border-hover: rgba(var(--accent-rgb), 0.34);
  --grid-card-bg-selected: rgba(var(--accent-rgb), 0.34);
  --grid-card-border-selected: rgba(var(--accent-rgb), 0.52);
  --grid-card-min-height: 84px;
  --grid-row-gap: var(--space-2);
  --grid-col-gap: var(--space-2-5);

  /* Shadows */
  --shadow-soft: 0 8px 24px rgba(5, 8, 12, 0.32);
  --shadow-hard: 0 20px 42px rgba(5, 8, 12, 0.46);

  /* Layout */
  --search-bar-min-width: 320px;
  --avatar-size: 40px;
  --window-titlebar-height: 38px;
  --window-titlebar-control-size: 28px;
  --window-titlebar-mac-control-size: 12px;
  --window-control-mac-close: rgb(255, 95, 87);
  --window-control-mac-minimize: rgb(255, 189, 46);
  --window-control-mac-expand: rgb(40, 201, 64);
  --window-control-mac-border: rgba(var(--overlay-rgb), 0.28);
  --titlebar-divider-border: rgba(var(--edge-rgb), 0.28);
  --titlebar-control-ink: #ffffff;
  --titlebar-control-border: var(--titlebar-divider-border);
  --titlebar-control-surface: rgb(var(--panel-rgb));
  /* VS Code command center: a fixed-width pill centered in the title bar. */
  --titlebar-search-width: 320px;
  /* Close-control hover is the one destructive window control — a solid red
     hover on Windows/Linux (mac keeps its own traffic-light styling). The red
     signal reads on both themes, so it lives in the shared root block. */
  --window-control-close-hover-bg: #e81123;
  --window-control-close-hover-ink: #ffffff;
  /* Flat 1px zone-separation border between structural surfaces (title bar /
     activity bar / sidebar / editor). Solid, not translucent, so the boundary
     stays crisp like VS Code instead of bleeding the zone color through. */
  --zone-border: #26282c;

  /* chat-view session tabs (Chrome-style: shrink to a floor, cap at a ceiling) */
  --chat-tab-max: 220px;
  --chat-tab-min: 96px;
  --control-bg: var(--surface-soft);
  --control-bg-strong: rgba(var(--panel-rgb), 0.78);
  /* Single control border (replaces the ad-hoc rgba(edge, 0.3..0.56) scattered
     across controls). */
  --control-border: rgba(var(--edge-rgb), 0.5);
  --control-border-hover: rgba(var(--accent-rgb), 0.5);
  --control-placeholder: var(--text-dim);
  /* Icon-circle overlay (status dots, toast icons) — needs a per-theme value;
     a white overlay is invisible in light. */
  --status-dot-bg: rgba(255, 255, 255, 0.12);
  --composer-placeholder: #8f949b;
  --agent-beige-text: #8faeff;
  --agent-reply-text: #f2f2ef;
  --message-copy-icon-color: var(--text-muted);
  --message-copy-icon-hover-color: var(--text);
  --message-artifact-panel-bg:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--panel-rgb), 0.56) 34%),
    rgba(var(--overlay-rgb), 0.2);
  --message-artifact-panel-shadow: inset 0 1px 0 rgba(var(--edge-rgb), 0.16);
  --mcp-health-shell-surface: rgba(var(--panel-rgb), 0.6);
  --mcp-health-rows-surface: rgba(var(--overlay-rgb), 0.25);

  /* Layering: keep overlays always above cards */
  --layer-content: 1;
  --layer-header: 40;
  --layer-toast: 60;
  --layer-chat-overlay: 90;
  --layer-dropdown: 120;
}

:root[data-theme='light'] {
  color-scheme: light;

  --bg: #f7f9ff;
  --bg-elev: #ffffff;
  --bg-elev-2: #eef4ff;
  --panel: #fbfdff;
  --panel-strong: #f2f6ff;
  --border: #cfdaf2;
  --border-soft: #aebfe8;
  --text: var(--brand-dark-blue);
  --text-muted: #405175;
  --text-dim: #667593;
  --accent: var(--brand-blue);
  --accent-strong: #2f5fea;
  --accent-contrast: #ffffff;
  --success: #2f8a66;
  --danger: #bf4d47;
  --warning: #a16b2b;
  --search-match-bg: #ffff00;
  --search-match-current-bg: #ff9632;
  --search-match-text: #000000;
  --unknown: #6b5f8a;
  --info: #0072c0;
  --text-inverse: #ffffff;

  /* Media surfaces (full-bleed dark background for video/image previews). */
  --media-surface: #000000;

  --accent-rgb: 67, 119, 250;
  --accent-soft-rgb: 67, 119, 250;
  --edge-rgb: 158, 174, 205;
  --focus-rgb: 67, 119, 250;
  --success-rgb: 47, 138, 102;
  --danger-rgb: 191, 77, 71;
  --warning-rgb: 161, 107, 43;
  --text-dim-rgb: 102, 117, 147;
  /* See dark-theme block for the rationale on `--unknown-fill-rgb` divergence. */
  --unknown-fill-rgb: 107, 95, 138;
  --info-rgb: 0, 114, 192;
  --overlay-rgb: 2, 18, 60;
  --panel-rgb: 251, 253, 255;

  --surface-soft: rgba(var(--panel-rgb), 0.82);
  --surface-strong: rgba(var(--panel-rgb), 0.95);
  --surface-hover: rgba(var(--accent-rgb), 0.11);
  --surface-active: rgba(var(--accent-rgb), 0.17);

  --app-radial-left: radial-gradient(
    980px 520px at 16% 0%,
    rgba(195, 212, 253, 0.88) 0%,
    transparent 58%
  );
  --app-radial-right: radial-gradient(
    860px 540px at 100% 0%,
    rgba(67, 119, 250, 0.14) 0%,
    transparent 52%
  );
  /* Flat VS Code zones (crisp boundaries, no gradient). Same surface mapping as
     dark; the aliases resolve to the light palette. */
  --glass-gradient: var(--panel);
  --topbar-gradient: var(--bg-elev);
  --sidebar-gradient: var(--bg-elev-2);
  --avatar-gradient: linear-gradient(135deg, #2f5fea 0%, #4377fa 100%);
  --list-item-bg: rgba(var(--edge-rgb), 0.12);
  --list-item-hover-bg: rgba(var(--accent-rgb), 0.1);
  --list-item-selected-bg: rgba(var(--accent-rgb), 0.14);
  --list-item-selected-border: rgba(var(--accent-rgb), 0.44);
  --selection-bg: rgba(var(--accent-rgb), 0.3);
  --selection-text: var(--brand-dark-blue);

  --shadow-soft: 0 8px 24px rgba(2, 18, 60, 0.1);
  --shadow-hard: 0 20px 44px rgba(2, 18, 60, 0.18);
  --control-bg: rgba(var(--panel-rgb), 0.92);
  --control-bg-strong: rgba(242, 246, 255, 0.94);
  --control-border: rgba(var(--edge-rgb), 0.5);
  --control-border-hover: rgba(var(--accent-rgb), 0.5);
  --status-dot-bg: rgba(var(--overlay-rgb), 0.06);
  --control-placeholder: #667593;
  --composer-placeholder: #667593;
  --agent-beige-text: #2f5fea;
  --agent-reply-text: #111827;
  --message-copy-icon-color: #667593;
  --message-copy-icon-hover-color: #405175;
  --message-artifact-panel-bg:
    linear-gradient(165deg, rgba(var(--panel-rgb), 0.98), rgba(242, 246, 255, 0.94) 68%),
    rgba(var(--panel-rgb), 0.98);
  --message-artifact-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --mcp-health-shell-surface: rgba(var(--panel-rgb), 0.96);
  --mcp-health-rows-surface: rgba(var(--panel-rgb), 0.86);
  --titlebar-control-ink: #000000;
  --titlebar-control-border: var(--titlebar-divider-border);
  --titlebar-control-surface: rgb(var(--panel-rgb));
  --zone-border: #d3ddef;
}