mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
- Refactor Preferences into decoupled General, Structure, and Other tabs with unified settings schema, factory reset, and trajectory cache rebuild endpoints - Extract standalone widget, metric, and step-table column registries to customize topbar/composer slots, hover popup modules, live overview layout, and step detail columns - Add bilingual zh-CN/en-US i18n dictionaries, theme accent presets, and font scale controls across Shadow DOM overlay and sidebar views - Support per-model host-advertised context window rules across App and IDE transports - Preserve CLEARED step generation timings, memoize per-poll model resolution, optimize LOESS sorted-x fitting, and update bilingual READMEs and test suites
118 lines
4.3 KiB
CSS
118 lines
4.3 KiB
CSS
/*
|
|
* Semantic Design Tokens for Antigravity Usage & Speed Monitor.
|
|
* All visual tokens derive from host CSS variables and perceptual color-mix(),
|
|
* eliminating hardcoded hex colors across components and views.
|
|
*/
|
|
|
|
:root,
|
|
:host {
|
|
/* Architectural Geometry: Only Top Nav uses --radius-pill */
|
|
--radius-pill: 999px;
|
|
--radius-sm: 4px;
|
|
--radius-xs: 2px;
|
|
|
|
/* Host-Bridged Surfaces (Antigravity 2.0 + Antigravity IDE --vscode-* + safe fallback) */
|
|
--surface-bg: var(--background, var(--vscode-sideBar-background, var(--vscode-editor-background, hsl(0 0% 100%))));
|
|
--surface-panel: var(
|
|
--card,
|
|
var(
|
|
--background,
|
|
var(--vscode-editorWidget-background, var(--vscode-sideBar-background, var(--vscode-editor-background, hsl(0 0% 100%))))
|
|
)
|
|
);
|
|
--surface-subtle: color-mix(in srgb, var(--surface-panel) 97%, var(--text-primary) 3%);
|
|
--surface-track: color-mix(in srgb, var(--border-hairline) 42%, var(--surface-panel));
|
|
--surface-hover: color-mix(in srgb, var(--accent-primary) 6%, var(--surface-panel));
|
|
--surface-active: color-mix(in srgb, var(--accent-primary) 12%, var(--surface-panel));
|
|
|
|
/* Crisp 1px Hairline Borders */
|
|
--border-hairline: color-mix(
|
|
in srgb,
|
|
var(
|
|
--border,
|
|
var(
|
|
--vscode-widget-border,
|
|
var(
|
|
--vscode-panel-border,
|
|
var(--vscode-contrastBorder, color-mix(in srgb, var(--text-primary) 18%, var(--surface-panel)))
|
|
)
|
|
)
|
|
) 82%,
|
|
var(--surface-panel)
|
|
);
|
|
--border-strong: color-mix(in srgb, var(--border-hairline) 72%, var(--text-primary) 28%);
|
|
|
|
/* Typography Hierarchy & Scalable Font Tokens */
|
|
--ui-font-scale: 1;
|
|
--fs-2xs: calc(9.5px * var(--ui-font-scale, 1));
|
|
--fs-xs: calc(10px * var(--ui-font-scale, 1));
|
|
--fs-sm: calc(10.5px * var(--ui-font-scale, 1));
|
|
--fs-md: calc(11px * var(--ui-font-scale, 1));
|
|
--fs-base-sm: calc(11.5px * var(--ui-font-scale, 1));
|
|
--fs-base: calc(12px * var(--ui-font-scale, 1));
|
|
--fs-body: calc(12.5px * var(--ui-font-scale, 1));
|
|
--fs-lg: calc(14.5px * var(--ui-font-scale, 1));
|
|
--fs-hero: calc(17px * var(--ui-font-scale, 1));
|
|
|
|
--text-primary: var(--foreground, var(--vscode-foreground, var(--vscode-editor-foreground, hsl(215 22% 15%))));
|
|
--text-secondary: var(--muted-foreground, var(--vscode-descriptionForeground, hsl(215 12% 44%)));
|
|
--text-muted: color-mix(in srgb, var(--text-secondary) 74%, var(--surface-panel) 26%);
|
|
--text-inverse: var(--user-accent-contrast, var(--surface-panel));
|
|
|
|
/* Semantic Telemetry Accents */
|
|
--accent-primary: var(
|
|
--user-accent-primary,
|
|
var(
|
|
--primary,
|
|
var(--vscode-textLink-foreground, var(--vscode-button-background, hsl(217 82% 51%)))
|
|
)
|
|
);
|
|
--accent-primary-soft: color-mix(in srgb, var(--accent-primary) 13%, transparent);
|
|
--accent-primary-border: color-mix(in srgb, var(--accent-primary) 38%, var(--border-hairline));
|
|
|
|
--metric-speed: hsl(14 76% 52%);
|
|
--metric-speed-soft: color-mix(in srgb, var(--metric-speed) 14%, transparent);
|
|
|
|
--metric-ok: hsl(145 64% 38%);
|
|
--metric-ok-soft: color-mix(in srgb, var(--metric-ok) 14%, transparent);
|
|
|
|
--metric-warn: hsl(34 86% 44%);
|
|
--metric-warn-soft: color-mix(in srgb, var(--metric-warn) 15%, transparent);
|
|
|
|
--metric-danger: var(--destructive, var(--vscode-errorForeground, hsl(0 74% 50%)));
|
|
|
|
/* Context Window 10-Channel Palette */
|
|
--ctx-assistant: hsl(217 82% 54%);
|
|
--ctx-tool-results: hsl(192 82% 43%);
|
|
--ctx-user-input: hsl(245 72% 62%);
|
|
--ctx-subagent-msg: hsl(280 70% 58%);
|
|
--ctx-checkpoint: hsl(38 90% 50%);
|
|
--ctx-system-tools: hsl(22 86% 50%);
|
|
--ctx-mcp-tools: hsl(316 72% 54%);
|
|
--ctx-skills: hsl(145 64% 38%);
|
|
--ctx-system-prompt: hsl(168 72% 40%);
|
|
--ctx-user-rules: hsl(346 78% 54%);
|
|
|
|
/* Legacy 4-Channel Palette (retained for compatibility) */
|
|
--ctx-cached: hsl(217 82% 51%);
|
|
--ctx-input: hsl(22 86% 50%);
|
|
--ctx-thinking: hsl(145 64% 38%);
|
|
--ctx-output: hsl(190 80% 38%);
|
|
|
|
/* Elevation & Shadows */
|
|
--shadow-popover: 0 4px 12px rgb(0 0 0 / 0.22);
|
|
--shadow-overlay: 0 16px 38px rgb(0 0 0 / 0.38), 0 3px 10px rgb(0 0 0 / 0.22);
|
|
|
|
/* Fast Hardware-Accelerated Motion Tokens */
|
|
--ease-fast: cubic-bezier(0.22, 1, 0.36, 1);
|
|
--dur-instant: 90ms;
|
|
--dur-fast: 140ms;
|
|
--dur-normal: 180ms;
|
|
|
|
/* Spacing & Density */
|
|
--space-2: 6px;
|
|
--space-3: 8px;
|
|
--space-4: 10px;
|
|
--space-5: 12px;
|
|
}
|