215 lines
9.5 KiB
CSS
215 lines
9.5 KiB
CSS
/* ═══════════════════════════════════════════════════════════════════════════
|
|
* Waggle Theme — Hive Design System aliases
|
|
*
|
|
* Ported from app/src/styles/waggle-theme.css (desktop Tauri app)
|
|
*
|
|
* SOURCE OF TRUTH: index.css @layer base (shadcn CSS variables + Hive palette)
|
|
*
|
|
* This file defines EXTRA variables used by components:
|
|
* --bg, --surface, --text, --text-muted, --brand, --step-*, --kg-*, etc.
|
|
*
|
|
* DO NOT redefine --border, --primary, --accent here — those are owned by
|
|
* index.css and used directly by shadcn/Tailwind (bg-primary, text-foreground, etc.)
|
|
* ═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
@layer base {
|
|
:root {
|
|
/* ── Surface aliases ──────────────────────────────────────────── */
|
|
--bg: hsl(var(--background));
|
|
--bg-elevated: hsl(var(--card));
|
|
--surface: hsl(var(--card));
|
|
--surface-2: hsl(var(--secondary));
|
|
--surface-3: hsl(var(--muted));
|
|
|
|
/* ── Text aliases ─────────────────────────────────────────────── */
|
|
--text: hsl(var(--foreground));
|
|
--text-bright: var(--hive-50);
|
|
--text-muted: hsl(var(--muted-foreground));
|
|
--text-dim: var(--hive-500);
|
|
|
|
/* ── Brand extensions (shadcn owns --primary, we add variants) ── */
|
|
--primary-hover: var(--honey-400);
|
|
--primary-muted: var(--honey-pulse);
|
|
--primary-glow: var(--honey-glow);
|
|
--accent-color: hsl(var(--accent));
|
|
--accent-muted: hsl(var(--accent) / 0.1);
|
|
--brand: var(--honey-500);
|
|
--brand-muted: var(--honey-glow);
|
|
|
|
/* ── Border extensions ────────────────────────────────────────── */
|
|
--border-subtle: hsl(var(--border) / 0.5);
|
|
--border-active: var(--honey-500);
|
|
|
|
/* ── Semantic colors ──────────────────────────────────────────── */
|
|
--error: var(--status-error);
|
|
--warning: var(--status-warning);
|
|
--success: var(--status-healthy);
|
|
|
|
/* ── Chat bubbles ─────────────────────────────────────────────── */
|
|
--user-bubble: var(--hive-800);
|
|
--assistant-bubble: var(--hive-850);
|
|
|
|
/* ── Step / event stream colors ─────────────────────────────── */
|
|
--step-running: var(--status-info);
|
|
--step-success: var(--status-healthy);
|
|
--step-pending: var(--honey-500);
|
|
--step-error: var(--status-error);
|
|
--step-skipped: var(--hive-500);
|
|
--step-thinking: var(--status-info);
|
|
--step-search: var(--status-ai);
|
|
--step-web: #06b6d4;
|
|
--step-tool: var(--status-healthy);
|
|
--step-writing: var(--honey-500);
|
|
|
|
/* ── Knowledge graph node colors ──────────────────────────────── */
|
|
--kg-person: #4A90D9;
|
|
--kg-project: #50C878;
|
|
--kg-concept: #9B59B6;
|
|
--kg-org: #E67E22;
|
|
--kg-default: #95A5A6;
|
|
|
|
/* ── Legacy component tokens ──────────────────────────────────── */
|
|
--waggle-bg: var(--bg);
|
|
--waggle-surface: var(--surface);
|
|
--waggle-sidebar-bg: var(--hive-800);
|
|
--waggle-tabs-bg: var(--surface);
|
|
--waggle-statusbar-bg: var(--hive-950);
|
|
--waggle-text: var(--text);
|
|
--waggle-text-muted: var(--text-muted);
|
|
--waggle-border: hsl(var(--border));
|
|
|
|
/* ── Font stacks (warm-Hive: Hanken Grotesk display+body, JetBrains mono) ── */
|
|
--font-sans: 'Hanken Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
--font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
|
|
}
|
|
}
|
|
|
|
/* ── Direction D utility classes ──────────────────────────────────────── */
|
|
.direction-d-card {
|
|
background: var(--surface-card);
|
|
border: 1px solid var(--hive-700);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
.direction-d-card:hover {
|
|
border-color: var(--honey-500);
|
|
box-shadow: var(--shadow-honey);
|
|
}
|
|
|
|
/* ── Micro-interaction utilities ──────────────────────────────────────── */
|
|
.waggle-interactive {
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
|
|
}
|
|
.waggle-interactive:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
.waggle-interactive:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Card hover lift for dashboards and lists */
|
|
.waggle-card-lift {
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
|
|
}
|
|
.waggle-card-lift:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-elevated);
|
|
border-color: var(--honey-500);
|
|
}
|
|
|
|
/* Nav item hover for sidebar */
|
|
.waggle-nav-hover {
|
|
transition: background-color 0.15s ease, color 0.15s ease;
|
|
}
|
|
.waggle-nav-hover:hover {
|
|
background-color: var(--honey-pulse);
|
|
}
|
|
|
|
/* Button press feedback */
|
|
.waggle-press:active {
|
|
transform: scale(0.97);
|
|
transition: transform 0.08s ease;
|
|
}
|
|
|
|
/* ── hive-interactive — the shared hover tier: "honey responds to touch" ──────
|
|
* Pillar 1.2 (path-to-9). ONE felt lift+bloom, adopted by workspace/agent cards,
|
|
* marketplace rows and MCP/provider tiles (and demoed on /motion-spec). Rest →
|
|
* hover / focus-visible (self-focusable cards) or focus-within (rows whose
|
|
* focusable trigger is a child): a 4px lift, honey-warm border, and a soft honey
|
|
* glow bloom (--shadow-honey-bloom). Press settles toward the surface. Motion
|
|
* tokens only (--mo-fast / --mo-ease). Reduced-motion keeps colour + shadow and
|
|
* drops the translate (REDUCED.hover = 'color-shadow-only-no-transform').
|
|
* .hive-interactive — self-focusable cards (button / role=button)
|
|
* .hive-interactive-row — containers whose focusable trigger is a CHILD
|
|
* `--hive-inset` is a composable slot so a row can layer an inset hairline (e.g.
|
|
* a connected connector's left honey rule) UNDER the bloom in a single shadow. */
|
|
.hive-interactive,
|
|
.hive-interactive-row {
|
|
--hive-inset: 0 0 #0000;
|
|
transition:
|
|
transform var(--mo-fast) var(--mo-ease),
|
|
box-shadow var(--mo-fast) var(--mo-ease),
|
|
border-color var(--mo-fast) var(--mo-ease);
|
|
}
|
|
.hive-interactive:hover,
|
|
.hive-interactive:focus-visible,
|
|
.hive-interactive-row:hover,
|
|
.hive-interactive-row:focus-within {
|
|
transform: translateY(-4px);
|
|
border-color: var(--honey-line);
|
|
box-shadow: var(--hive-inset), var(--shadow-honey-bloom);
|
|
}
|
|
.hive-interactive:active,
|
|
.hive-interactive-row:active {
|
|
transform: translateY(-1px);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.hive-interactive,
|
|
.hive-interactive-row {
|
|
transition:
|
|
box-shadow var(--mo-fast) var(--mo-ease),
|
|
border-color var(--mo-fast) var(--mo-ease);
|
|
}
|
|
.hive-interactive:hover,
|
|
.hive-interactive:focus-visible,
|
|
.hive-interactive:active,
|
|
.hive-interactive-row:hover,
|
|
.hive-interactive-row:focus-within,
|
|
.hive-interactive-row:active {
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
* Warm-Hive shared atoms (ported from design-files/styles/waggle.css)
|
|
* ═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
/* Hexagon clip — brandmark, agent/workspace avatars, icon tiles */
|
|
.hex { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
|
|
|
|
/* Honeycomb texture — very subtle, decorative only */
|
|
.comb {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 18.5l26 15v30l-26 15-26-15v-30z M28 53.5l26 15v30l-26 15-26-15v-30z' fill='none' stroke='%23e9a52c' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
|
|
}
|
|
:root[data-theme="light"] .comb {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 18.5l26 15v30l-26 15-26-15v-30z M28 53.5l26 15v30l-26 15-26-15v-30z' fill='none' stroke='%23b57d12' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
/* Pill — small status / filter chip */
|
|
.pill {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 4px 10px; border-radius: 999px;
|
|
font-size: 12px; font-weight: 500; letter-spacing: 0.01em;
|
|
border: 1px solid var(--line); color: var(--text-2);
|
|
background: hsl(var(--card));
|
|
}
|
|
|
|
/* Kbd — keyboard hint chip */
|
|
.kbd {
|
|
font-family: var(--font-mono); font-size: 11px;
|
|
padding: 2px 7px; border-radius: 6px;
|
|
border: 1px solid var(--line-strong); background: hsl(var(--secondary));
|
|
color: var(--text-2); box-shadow: 0 1px 0 var(--line);
|
|
}
|