Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat(theme): rebase dark theme from Solarized teal to neutral slate
trohitgca02615f30d0
diff --git a/CLAUDE.md b/CLAUDE.mdindex 9c4112c1..2523fe8b 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -709,14 +709,14 @@ The project uses WebSocket as the primary communication method between frontend### AI Chat Models (9 nodes)- **openaiChatModel**: OpenAI GPT models with response format options. O-series models (o1, o3, o4) support reasoning effort parameter.-- **anthropicChatModel**: Claude models with extended thinking support (budget_tokens for claude-3-5-sonnet, claude-3-opus)+- **anthropicChatModel**: Claude models (Fable 5, Opus 4.8/4.7, Sonnet 4.6, Haiku 4.5) with extended thinking support- **geminiChatModel**: Google Gemini models with multimodal capabilities, safety settings, and thinking support for 2.5/Flash Thinking models- **openrouterChatModel**: OpenRouter unified API - access 200+ models from OpenAI, Anthropic, Google, Meta, Mistral, and more through a single API. Features free/paid model grouping in dropdown.- **groqChatModel**: Groq ultra-fast inference with Llama, Qwen3, and GPT-OSS models. Qwen3-32b supports reasoning_format.- **cerebrasChatModel**: Cerebras ultra-fast inference on custom AI hardware with Llama and Qwen models-- **deepseekChatModel**: DeepSeek V3 models (deepseek-chat, deepseek-reasoner). Reasoner has always-on Chain-of-Thought with reasoning_content in response. 128K context, up to 64K output.-- **kimiChatModel**: Kimi K2 models by Moonshot AI (kimi-k2.5, kimi-k2-thinking). 256K context, 96K output. Thinking on by default for k2.5 (explicitly disabled for tool-calling agent compatibility). Fixed temperature: 0.6 (instant) / 1.0 (thinking).-- **mistralChatModel**: Mistral AI models (mistral-large-latest, mistral-small-latest, codestral-latest). Up to 256K context. No thinking support. Temperature 0-1.5.+- **deepseekChatModel**: DeepSeek V4 models (deepseek-v4-flash, deepseek-v4-pro); `deepseek-chat` / `deepseek-reasoner` remain as legacy aliases (deprecate 2026-07-24). Up to 1M context (V4), up to 64K output.+- **kimiChatModel**: Kimi models by Moonshot AI (kimi-k2.6, kimi-k2.5, kimi-k2.7-code). 256K context, 96K output. Thinking on by default (explicitly disabled for tool-calling agent compatibility). Fixed temperature 0.6.+- **mistralChatModel**: Mistral AI models (mistral-large-latest, mistral-medium-latest, mistral-small-latest, codestral-latest). Up to 256K context. No thinking support. Temperature 0-1.5.### AI Agents & Memory (3 nodes)- **aiAgent**: Advanced AI agent with tool calling, memory input handle, and iterative reasoning. Uses the plain-async `_run_agent_loop` for structured execution. Parameters: Provider, Model, Prompt, System Message, Options.@@ -1800,7 +1800,7 @@ See **[Scripts Reference](./docs-internal/SCRIPTS.md)** for full documentation.✅ **Continuous Scheduling Execution**: Temporal/Conductor pattern using `asyncio.wait(FIRST_COMPLETED)` for true parallel pipelines where dependent nodes start immediately when their specific dependency completes✅ **Event-Driven Deployment**: n8n-style architecture where each trigger event spawns an independent, concurrent execution run (no iteration loop)✅ **HTTP/Webhook Nodes**: HTTP Request for external APIs, Webhook Trigger for incoming requests, Webhook Response for custom responses-✅ **Theme System**: Solarized + Dracula dual-palette theming with dark mode support, vibrant action buttons, and themed React Flow edges+✅ **Theme System**: Neutral-slate (dark) + grey-blue paper (light) surfaces with Dracula accent palette, dark mode support, vibrant action buttons, and themed React Flow edges✅ **Modular Backend Architecture**: workflow.py refactored from 2068 to 460 lines using facade pattern with NodeExecutor, ParameterResolver, and DeploymentManager modules✅ **Node Rename System**: n8n-style node renaming via F2 keyboard shortcut, double-click on label, or right-click context menu with inline editing✅ **UI State Persistence**: localStorage persistence for sidebar visibility, component palette visibility, dev mode, and collapsed sections@@ -2170,20 +2170,21 @@ deploy_workflow() -> Sets up triggers, returns immediately| Provider | Key Models | Context | Max Output | Thinking | Temp Range ||----------|-----------|---------|-----------|----------|------------|-| **OpenAI** | GPT-5.2/5.1/5/5-mini/5-nano | 400K | 128K | effort (hybrid) | 0-2 |+| **OpenAI** | GPT-5.5/5.4/5.2 | 400K–1.05M | 128K | effort (hybrid) | 0-2 || **OpenAI** | GPT-4.1/4.1-mini/4.1-nano | 1M | 32K | none | 0-2 |-| **OpenAI** | o1, o3, o3-mini, o4-mini | 200K | 100K | effort (reasoning) | fixed 1.0 |+| **OpenAI** | o3, o4-mini | 200K | 100K | effort (reasoning) | fixed 1.0 || **OpenAI** | GPT-4o/4o-mini | 128K | 16K | none | 0-2 |-| **Anthropic** | Claude Opus 4.6 | 200K (1M beta) | 128K | budget | 0-1 |-| **Anthropic** | Claude Sonnet 4.6/4.5/4, Opus 4.5, Haiku 4.5 | 200K (1M beta) | 64K | budget | 0-1 |-| **Anthropic** | Claude Opus 4.1/4 | 200K | 32K | budget | 0-1 |-| **Google** | Gemini 3-pro/flash, 2.5-pro/flash/flash-lite | 1M | 65K | budget | 0-2 |-| **DeepSeek** | deepseek-chat (V3), deepseek-reasoner (CoT) | 128K | 8-64K | always-on (reasoner) | 0-2 |-| **Kimi** | kimi-k2.5, kimi-k2-thinking | 256K | 96K | on by default (disabled for agents) | fixed 0.6/1.0 |-| **Mistral** | mistral-large, mistral-small, codestral | 256K | 131K | none | 0-1.5 |-| **Groq** | Llama 4 Scout, Llama 3.x, Qwen3-32b, GPT-OSS | 131K | 8-131K | format (Qwen3) | 0-2 |+| **Anthropic** | Claude Fable 5 | 1M | 128K | budget | 0-1 |+| **Anthropic** | Claude Opus 4.8/4.7 | 1M | 128K | budget | 0-1 |+| **Anthropic** | Claude Sonnet 4.6 | 1M | 64K | budget | 0-1 |+| **Anthropic** | Claude Haiku 4.5 | 200K | 64K | budget | 0-1 |+| **Google** | Gemini 3.5-flash, 3.1-pro/flash-lite, 3-flash, 2.5-pro/flash/flash-lite | 1M | 64K | budget | 0-2 |+| **DeepSeek** | deepseek-v4-flash, deepseek-v4-pro (deepseek-chat/reasoner legacy) | 1M | 64K | thinking modes | 0-2 |+| **Kimi** | kimi-k2.6, kimi-k2.5, kimi-k2.7-code | 256K | 96K | on by default (disabled for agents) | fixed 0.6 |+| **Mistral** | mistral-large/medium/small-latest, codestral-latest | 256K | 131K | none | 0-1.5 |+| **Groq** | Llama 3.3-70b, Llama 3.1-8b, GPT-OSS-120b/20b, Qwen3-32b | 131K | 8-131K | format (Qwen3) | 0-2 || **OpenRouter** | 200+ models from multiple providers | varies | varies | varies | 0-2 |-| **Cerebras** | Llama 3.1-8b, GPT-OSS-120b, Qwen-3-235b | 32-131K | 8K | format (Qwen) | 0-1.5 |+| **Cerebras** | GPT-OSS-120b, Qwen-3-235b, GLM-4.7 | 131K | 65K | budget (Qwen) | 0-1.5 || **Ollama** | Whatever the user has pulled (qwen2.5, llama3.x, phi-3, deepseek-r1, ...) | per-loaded-model (typed via `ps()`) | ctx ÷ 4 (capped 4096) | none (per-model) | 0-2 || **LM Studio** | Whatever the user has loaded in the LM Studio UI | per-loaded-model (typed via `LlmInstanceInfo.context_length`) | ctx ÷ 4 (capped 4096) | none (per-model) | 0-2 |@@ -3787,7 +3788,7 @@ pricing_info = pricing.get_pricing("anthropic", "claude-3-5-sonnet-20241022")| OpenAI | gpt-5, gpt-4o, o3 | 1.25-15.00 | 10.00-60.00 || Anthropic | claude-opus-4.6, claude-sonnet-4 | 3.00-5.00 | 15.00-25.00 || Gemini | gemini-2.5-pro, gemini-2.0-flash | 0.10-1.25 | 0.40-10.00 |-| Groq | llama-4-scout, qwen3-32b | 0.05-0.59 | 0.08-0.79 |+| Groq | llama-3.3-70b, gpt-oss-120b | 0.05-0.59 | 0.08-0.79 || Cerebras | llama-3.1-70b | 0.10-0.60 | 0.10-0.60 || OpenRouter | Pass-through | Varies | Varies |@@ -3811,7 +3812,7 @@ AGENT_RECURSION_LIMIT=200 # Agent loop hard step cap (>=1)}```-Effective threshold = `providers.<provider>.context_length.<model>` × `compaction_ratio` (e.g. claude-sonnet-4-6 → 200K × 0.8 = 160K input tokens). When model/provider are unknown, `model_registry.get_context_length` falls through to the provider's `_default` entry in the same JSON.+Effective threshold = `providers.<provider>.context_length.<model>` × `compaction_ratio` (e.g. claude-sonnet-4-6 → 1M × 0.8 ≈ 838K input tokens). When model/provider are unknown, `model_registry.get_context_length` falls through to the provider's `_default` entry in the same JSON.**Threshold priority** (highest → lowest):1. Per-session `SessionTokenState.custom_threshold` (WebSocket override).@@ -3903,7 +3904,7 @@ compaction_svc.set_ai_service(container.ai_service())- **5-Section Summary**: Follows Claude Code's structured summary format for continuity- **Automatic Triggering**: Compaction triggered in `_track_token_usage()` when threshold exceeded- **Per-Session State**: Each memory session has independent token tracking and thresholds-- **Model-Aware Threshold**: `compaction_ratio` × model's context window. Default ratio 0.8 (env `COMPACTION_RATIO`, was 0.5 pre-2026.06). E.g. 800K for Claude Opus 4.6 with 1M context, 320K for GPT-5.2 with 400K context. Falls back to JSON `llm_defaults.json:agent.compaction.ratio` when Settings can't load. Per-session `custom_threshold` > per-user `UserSettings.compaction_ratio` > env Settings.+- **Model-Aware Threshold**: `compaction_ratio` × model's context window. Default ratio 0.8 (env `COMPACTION_RATIO`, was 0.5 pre-2026.06). E.g. 800K for Claude Opus 4.8 with 1M context, 320K for GPT-5.2 with 400K context. Falls back to JSON `llm_defaults.json:agent.compaction.ratio` when Settings can't load. Per-session `custom_threshold` > per-user `UserSettings.compaction_ratio` > env Settings.- **Singleton Pattern**: Service accessible via `get_compaction_service()`## API Cost Trackingdiff --git a/client/src/styles/theme.ts b/client/src/styles/theme.tsindex 82cb8755..51bfd7a3 100644--- a/client/src/styles/theme.ts+++ b/client/src/styles/theme.ts@@ -148,46 +148,46 @@ export const lightColors = {} as const;// ============================================================================-// DARK THEME COLORS (Dracula text for better contrast)+// DARK THEME COLORS (neutral slate surfaces + Dracula accents)// ============================================================================export const darkColors = {- // Backgrounds - Solarized dark- background: solarized.base03,- backgroundAlt: solarized.base02,- backgroundPanel: solarized.base02,- backgroundElevated: '#0d1f2d',- backgroundHover: 'rgba(255,255,255,0.04)',+ // Backgrounds - neutral slate+ background: '#0d0f13', // neutral near-black slate+ backgroundAlt: '#15171c',+ backgroundPanel: '#15171c',+ backgroundElevated: '#1b1e25',+ backgroundHover: 'rgba(255,255,255,0.05)',backgroundActive: 'rgba(255,255,255,0.08)',- backgroundCanvas: solarized.base03,- // Text - Dracula for better contrast- text: dracula.foreground, // #f8f8f2 - bright white text- textSecondary: '#bfbfbf', // Lighter secondary text- textMuted: dracula.comment, // #6272a4 - muted/comments+ backgroundCanvas: '#0d0f13',+ // Text - neutral near-white over slate+ text: '#e8eaed', // near-white neutral+ textSecondary: '#c0c6cf', // lighter secondary text+ textMuted: '#9aa1ac', // neutral slate grey// Borders- border: solarized.base01 + '60',- borderHover: solarized.base01,- borderFocus: solarized.blue,- borderNode: solarized.base01,+ border: '#2b2f37',+ borderHover: '#3c424c',+ borderFocus: '#3b82f6',+ borderNode: '#3c424c',// Shadowsshadow: 'rgba(0,0,0,0.4)',shadowLight: 'rgba(0,0,0,0.25)',shadowHeavy: 'rgba(0,0,0,0.5)',shadowNode: '0 2px 12px rgba(0,0,0,0.3)',// Focus- focus: solarized.blue,- focusRing: 'rgba(38, 139, 210, 0.3)',+ focus: '#3b82f6',+ focusRing: 'rgba(59, 130, 246, 0.3)',// Semantic- primary: solarized.blue,- success: solarized.green,- warning: solarized.yellow,- error: solarized.red,- info: solarized.cyan,+ primary: '#3b82f6',+ success: '#22c55e',+ warning: '#f59e0b',+ error: '#ef4444',+ info: '#38bdf8',// Special- templateVariable: solarized.cyan,+ templateVariable: '#8b5cf6',// Node-specific- nodeBackground: solarized.base02,- nodeBorder: solarized.base01,- nodeHeaderBg: solarized.base03,+ nodeBackground: '#1b1e25',+ nodeBorder: '#3c424c',+ nodeHeaderBg: '#15171c',// Action colors (Dracula - optimized for dark backgrounds)actionRun: dracula.green, // #50fa7b - bright greenactionDeploy: dracula.purple, // #bd93f9 - purplediff --git a/client/src/themes/dark.css b/client/src/themes/dark.cssindex 98c7851d..8c033742 100644--- a/client/src/themes/dark.css+++ b/client/src/themes/dark.css@@ -5,39 +5,43 @@* legacy `<html class="dark">` toggle continue to work) AND* `:root[data-theme="dark"]` (the explicit theme name).*- * Mirrors the existing `.dark` block in index.css for shadcn HSL-triplet- * tokens; this file only adds the new full-colour contract.+ * Source palette: neutral slate dark — the light grey-blue "paper" family+ * inverted (NOT Solarized teal) + Dracula vibrant accents kept as the+ * personality layer. Matches the MachinaOS Design System+ * (tokens/colors.css `.dark`) and the `darkColors` base pack in+ * client/src/styles/theme.ts.*- * Source palette: Solarized dark + Dracula accents (matches existing- * dark theme in client/src/styles/theme.ts).+ * Only surfaces / foreground / borders / shadcn semantic tokens are set+ * here; the Dracula raw accents and node / action role tokens are+ * inherited unchanged from light.css :root (identical in dark).* ============================================================================ */.dark,:root[data-theme="dark"] {- /* Surfaces — Solarized dark base + Dracula highlights */- --bg-app: #002b36; /* base03 */- --bg-panel: #073642; /* base02 */- --bg-canvas: #002b36;- --bg-elevated: #0d1f2d;- --bg-input: #073642;- --bg-hover: rgba(248, 248, 242, 0.06);- --bg-active: rgba(189, 147, 249, 0.18);+ /* Surfaces — neutral slate */+ --bg-app: #0d0f13; /* neutral near-black slate */+ --bg-panel: #15171c; /* one step up — toolbar/sidebar/palette */+ --bg-canvas: #0d0f13;+ --bg-elevated: #1b1e25; /* cards, inputs-on-panel */+ --bg-input: #15171c;+ --bg-hover: rgba(255, 255, 255, 0.05);+ --bg-active: rgba(255, 255, 255, 0.08);--bg-overlay: rgba(0, 0, 0, 0.7);/* Borders */- --border-default: #586e75; /* base01 */- --border-strong: #93a1a1;- --border-focus: #268bd2; /* solarized blue */+ --border-default: #2b2f37; /* neutral hairline */+ --border-strong: #3c424c;+ --border-focus: #3b82f6; /* standard blue */--ornament-frame: none;- /* Foreground — Dracula light foreground for readability over Solarized dark */- --fg-default: #f8f8f2;- --fg-muted: #6272a4; /* dracula comment */- --fg-faint: #586e75;- --fg-on-accent: #002b36;- --fg-on-success: #002b36;- --fg-on-danger: #f8f8f2;- --fg-on-warning: #002b36;+ /* Foreground — near-white neutral over slate */+ --fg-default: #e8eaed;+ --fg-muted: #9aa1ac; /* neutral slate grey */+ --fg-faint: #6b7280;+ --fg-on-accent: #ffffff;+ --fg-on-success: #0d0f13;+ --fg-on-danger: #ffffff;+ --fg-on-warning: #0d0f13;/* Type — same as light (system stack) */--font-display: 'Geist Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;@@ -65,35 +69,35 @@/* Cursor + scrollbar */--cursor-default: auto;--cursor-pointer: pointer;- --scrollbar-track: #073642;- --scrollbar-thumb: #586e75;+ --scrollbar-track: #15171c;+ --scrollbar-thumb: #3c424c;- /* ── shadcn semantic tokens (dark) — Solarized dark surfaces. Overrides+ /* ── shadcn semantic tokens (dark) — neutral slate surfaces. Overrides* the light defaults from light.css :root. Dracula + node + action role* tokens are inherited unchanged from light.css (identical in dark). ── */- --background: #002b36; /* base03 */- --foreground: #f8f8f2; /* dracula fg */- --card: #073642; /* base02 */- --card-foreground: #f8f8f2;- --popover: #0d1f2d;- --popover-foreground: #f8f8f2;- --surface-card: #073642;- --primary: #268bd2; /* solarized blue */- --primary-foreground: #f8f8f2;- --secondary: #073642;- --secondary-foreground: #f8f8f2;- --muted: #073642;- --muted-foreground: #6272a4; /* dracula comment */- --accent: #8be9fd; /* dracula cyan */- --accent-foreground: #002b36;- --destructive: #dc322f;- --destructive-foreground: #f8f8f2;- --success: #859900;- --warning: #b58900;- --info: #2aa198;- --border: #586e75; /* base01 */- --input: #586e75;- --ring: #268bd2;+ --background: #0d0f13; /* bg-app */+ --foreground: #e8eaed; /* fg-default */+ --card: #1b1e25; /* elevated surface */+ --card-foreground: #e8eaed;+ --popover: #1b1e25;+ --popover-foreground: #e8eaed;+ --surface-card: #1b1e25;+ --primary: #3b82f6; /* standard blue */+ --primary-foreground: #ffffff;+ --secondary: #1b1e25;+ --secondary-foreground: #e8eaed;+ --muted: #1b1e25;+ --muted-foreground: #9aa1ac;+ --accent: #8b5cf6; /* standard violet */+ --accent-foreground: #ffffff;+ --destructive: #ef4444;+ --destructive-foreground: #ffffff;+ --success: #22c55e;+ --warning: #f59e0b;+ --info: #38bdf8;+ --border: #2b2f37;+ --input: #2b2f37;+ --ring: #3b82f6;/* In dark mode the Dracula hues are bright enough to be the text colour* directly — ink aliases resolve to the raw accents. */@@ -108,4 +112,6 @@--shadow-card: 0 4px 12px rgb(0 0 0 / 0.3);--shadow-card-hover: 0 6px 18px rgb(0 0 0 / 0.4);--shadow-modal: 0 16px 48px rgb(0 0 0 / 0.55);++ color-scheme: dark;}diff --git a/docs-internal/design-system/IMPLEMENTATION.md b/docs-internal/design-system/IMPLEMENTATION.mdindex edf56370..2b86ec3b 100644--- a/docs-internal/design-system/IMPLEMENTATION.md+++ b/docs-internal/design-system/IMPLEMENTATION.md@@ -41,23 +41,23 @@ All tokens are CSS custom properties under `:root` (light) and `.dark` / `[data-### Surfaces| Token | Light | Dark | Use ||---|---|---|---|-| `--bg-app` | `#f5f7fa` | `#002b36` | app/window background |-| `--bg-panel` | `#fafbfc` | `#073642` | toolbar, sidebar, palette, status bar |-| `--bg-canvas` | `#ffffff` | `#002b36` | node canvas |-| `--bg-elevated` | `#ffffff` | `#0d1f2d` | cards, section heads, inputs-on-panel |-| `--bg-input` | `#ffffff` | `#073642` | form fields |-| `--surface-card` | `#ffffff` | `#073642` | node/data card fill |-| `--bg-hover` | `rgba(0,0,0,.04)` | `rgba(248,248,242,.06)` | hover wash |-| `--bg-active` | `rgba(0,0,0,.06)` | `rgba(189,147,249,.18)` | selected/pressed wash |+| `--bg-app` | `#f5f7fa` | `#0d0f13` | app/window background |+| `--bg-panel` | `#fafbfc` | `#15171c` | toolbar, sidebar, palette, status bar |+| `--bg-canvas` | `#ffffff` | `#0d0f13` | node canvas |+| `--bg-elevated` | `#ffffff` | `#1b1e25` | cards, section heads, inputs-on-panel |+| `--bg-input` | `#ffffff` | `#15171c` | form fields |+| `--surface-card` | `#ffffff` | `#1b1e25` | node/data card fill |+| `--bg-hover` | `rgba(0,0,0,.04)` | `rgba(255,255,255,.05)` | hover wash |+| `--bg-active` | `rgba(0,0,0,.06)` | `rgba(255,255,255,.08)` | selected/pressed wash || `--bg-overlay` | `rgba(0,0,0,.45)` | `rgba(0,0,0,.7)` | modal scrim |### Foreground & borders-`--fg-default` (#1a1d21 / #f8f8f2) · `--fg-muted` (#4b5563 / #94a8d6) · `--fg-faint` (#9ca3af / #6272a4) · `--fg-on-accent`.-`--border-default` (#d1d5db / #586e75) · `--border-strong` · `--border-focus` (#3b82f6 / #268bd2).+`--fg-default` (#1a1d21 / #e8eaed) · `--fg-muted` (#4b5563 / #9aa1ac) · `--fg-faint` (#9ca3af / #6b7280) · `--fg-on-accent`.+`--border-default` (#d1d5db / #2b2f37) · `--border-strong` · `--border-focus` (#3b82f6 / #3b82f6).### Brand & status-`--primary` #2563eb / #268bd2 · `--accent` #7c3aed / #8be9fd.-`--success` #059669 / #859900 · `--warning` #d97706 / #b58900 · `--destructive` #dc2626 / #dc322f · `--info` #0891b2 / #2aa198.+`--primary` #2563eb / #3b82f6 · `--accent` #7c3aed / #8b5cf6.+`--success` #059669 / #22c55e · `--warning` #d97706 / #f59e0b · `--destructive` #dc2626 / #ef4444 · `--info` #0891b2 / #38bdf8.### Dracula accents (identical in both themes — the personality layer)`--dracula-green #50fa7b` · `--dracula-cyan #8be9fd` · `--dracula-purple #bd93f9` · `--dracula-pink #ff79c6` · `--dracula-orange #ffb86c` · `--dracula-yellow #f1fa8c` · `--dracula-red #ff5555`.diff --git a/docs-internal/design-system/SKILL.md b/docs-internal/design-system/SKILL.mdindex db373f20..53905222 100644--- a/docs-internal/design-system/SKILL.md+++ b/docs-internal/design-system/SKILL.md@@ -10,7 +10,7 @@ If the user invokes this skill without any other guidance, ask them what they waKey facts:- MachinaOS is zeenie.ai's local-first AI workflow OS — a visual node canvas where users wire AI agents to email, WhatsApp, Android phones, browsers, and 50+ services.-- Link `styles.css` for all tokens; add `class="dark"` on `<html>` for the signature Solarized-dark + Dracula-neon look (the default for product UI).+- Link `styles.css` for all tokens; add `class="dark"` on `<html>` for the signature neutral-slate-dark + Dracula-neon look (the default for product UI).- Color is semantic: action intents (run=green, stop=pink, save=cyan, config=orange, secret=yellow, tools=purple) and node roles (agent=purple, model=cyan, tool=green, trigger=pink, workflow=orange) — always as soft tints (8–15% fill, 30–60% border, full-strength text), never solid neon fills.- Type: Geist (Google Fonts), 14px base, sentence case, terse copy; JetBrains Mono for counts/state/timestamps.- Icons: Lucide only (stroke 2, currentColor); product node icons are colorful emoji-style glyphs.diff --git a/docs-internal/design-system/guidelines/THEMES.md b/docs-internal/design-system/guidelines/THEMES.mdindex 899c1e27..294395d5 100644--- a/docs-internal/design-system/guidelines/THEMES.md+++ b/docs-internal/design-system/guidelines/THEMES.md@@ -22,7 +22,7 @@ Beyond color: **typeface trio, base font size (13–15px), letter case, tracking| Theme | World | Surfaces | Signature accents | Display / body / mono | Case·track | Radii | Motion (style) | Sound | Pulse ||---|---|---|---|---|---|---|---|---|---|| **Light** | quiet workspace | grey-blue paper | Dracula tints + blue | Geist ×2 / sys mono | none·0 | 4/6/8 | 90/180/320 smooth | parchment | info blue |-| **Dark** | signature look | Solarized teal | Dracula neon | Geist ×2 / sys mono | none·0 | 4/6/8 | 90/180/320 smooth | terminal | info teal |+| **Dark** | signature look | neutral slate | Dracula neon | Geist ×2 / sys mono | none·0 | 4/6/8 | 90/180/320 smooth | terminal | info sky || **Renaissance** | illuminated codex | vellum cream | gold #d4a030 · crimson #8a1410 · lapis #2548c8 | Cinzel / Cormorant Garamond / IM Fell English | UPPER·.10em | 2/3/4 (pill 12) | 140/280/520 organic | parchment | lapis (Marian halo) || **Greek** | marble agora | sun-bleached marble | lapis #284b82 · oxblood #7a1a18 · gold #c8a040 · olive | Cinzel / Cormorant / Courier Prime | UPPER·.18em | 0/0/2 | 120/240/460 smooth | marble | lapis || **Edo** | washi + sumi-e | rice paper | vermillion #b41e1e · sumi ink · bamboo · sakura | Shippori Mincho ×2 / JetBrains | none·.06em | all 0 | 90/220/520 organic | ink | vermillion |diff --git a/docs-internal/design-system/readme.md b/docs-internal/design-system/readme.mdindex 6247009b..b001fdec 100644--- a/docs-internal/design-system/readme.md+++ b/docs-internal/design-system/readme.md@@ -30,9 +30,9 @@ The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk## VISUAL FOUNDATIONS-**Core idea: a quiet professional workspace wearing neon jewelry.** Surfaces are muted (grey-blue paper in light; Solarized dark teal in dark); all personality comes from the Dracula accent palette applied as *soft tints* — 8–15% alpha fills, 30–60% alpha borders, full-strength text/icons.+**Core idea: a quiet professional workspace wearing neon jewelry.** Surfaces are muted (grey-blue paper in light; neutral slate in dark); all personality comes from the Dracula accent palette applied as *soft tints* — 8–15% alpha fills, 30–60% alpha borders, full-strength text/icons.-- **Color:** Two-layer system. (1) Calm structural tokens: `--bg-app/panel/elevated`, `--fg-default/muted/faint`, `--border-default`. (2) Vibrant Dracula accents (green `#50fa7b`, purple `#bd93f9`, pink `#ff79c6`, cyan `#8be9fd`, orange `#ffb86c`, yellow `#f1fa8c`) assigned to *semantic roles*, never used raw as backgrounds: action intents (run/stop/save/config/secret/tools) and node roles (agent/model/tool/trigger/workflow). Solarized colors handle status (success `#859900` dark / `#059669` light, etc.).+- **Color:** Two-layer system. (1) Calm structural tokens: `--bg-app/panel/elevated`, `--fg-default/muted/faint`, `--border-default`. (2) Vibrant Dracula accents (green `#50fa7b`, purple `#bd93f9`, pink `#ff79c6`, cyan `#8be9fd`, orange `#ffb86c`, yellow `#f1fa8c`) assigned to *semantic roles*, never used raw as backgrounds: action intents (run/stop/save/config/secret/tools) and node roles (agent/model/tool/trigger/workflow). Standard status colors (success `#22c55e` dark / `#059669` light, etc.).- **The "soft tinted button" is THE signature component pattern:** `background: color-mix(accent 15%)`, `border: color-mix(accent 60%)`, text in the accent color, hover deepens fill to 25%. Never solid neon fills.- **Type:** Geist everywhere (display = body), 14px base, 600 weight for headings/buttons, 500 for UI labels. Mono (JetBrains Mono / system) for metadata, counts, timestamps, status bar — mono is the "machine voice". Uppercase only in the status bar and micro-labels with 0.04em tracking.- **Backgrounds:** flat colors, no gradients in light/dark chrome. The canvas is the darkest surface (dark) or white (light) with a fine dot grid at 30% opacity. Node cards get a *subtle* 135° gradient from accent-tint(14–18%) to card color — the only gradient in the system.@@ -43,7 +43,7 @@ The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk- **Motion:** fast and smooth — 90/180/320ms, ease `cubic-bezier(0.2,0.7,0.3,1)`. Loops only for live processes (executing pulse 1.4s, status pip blink). Respects `prefers-reduced-motion`.- **Layout:** fixed chrome — 48px toolbar, 24px status bar, 280px sidebar, 320px palette; canvas fills the rest. Density is high; controls are 32px tall, text 13–14px.- **Transparency/blur:** overlays use flat rgba scrims (45%/70%), no backdrop blur in light/dark.-- **Imagery:** real product screen-recordings/screenshots on dark theme — cool, saturated neon-on-teal. No stock photography, no illustration system; diagrams (`assets/diagrams/`) are flat SVG node-graphs in brand colors.+- **Imagery:** real product screen-recordings/screenshots on dark theme — cool, saturated neon-on-slate. No stock photography, no illustration system; diagrams (`assets/diagrams/`) are flat SVG node-graphs in brand colors.## ICONOGRAPHYdiff --git a/docs-internal/design-system/reference/themes/dark.css b/docs-internal/design-system/reference/themes/dark.cssindex 499da327..095d65c4 100644--- a/docs-internal/design-system/reference/themes/dark.css+++ b/docs-internal/design-system/reference/themes/dark.css@@ -8,36 +8,36 @@* Mirrors the existing `.dark` block in index.css for shadcn HSL-triplet* tokens; this file only adds the new full-colour contract.*- * Source palette: Solarized dark + Dracula accents (matches existing- * dark theme in client/src/styles/theme.ts).+ * Source palette: neutral slate dark — the light grey-blue "paper" family+ * inverted (NOT Solarized teal) + Dracula vibrant accents.* ============================================================================ */.dark,:root[data-theme="dark"] {- /* Surfaces — Solarized dark base + Dracula highlights */- --bg-app: #002b36; /* base03 */- --bg-panel: #073642; /* base02 */- --bg-canvas: #002b36;- --bg-elevated: #0d1f2d;- --bg-input: #073642;- --bg-hover: rgba(248, 248, 242, 0.06);- --bg-active: rgba(189, 147, 249, 0.18);+ /* Surfaces — neutral slate */+ --bg-app: #0d0f13; /* neutral near-black slate */+ --bg-panel: #15171c; /* one step up — toolbar/sidebar/palette */+ --bg-canvas: #0d0f13;+ --bg-elevated: #1b1e25;+ --bg-input: #15171c;+ --bg-hover: rgba(255, 255, 255, 0.05);+ --bg-active: rgba(255, 255, 255, 0.08);--bg-overlay: rgba(0, 0, 0, 0.7);/* Borders */- --border-default: #586e75; /* base01 */- --border-strong: #93a1a1;- --border-focus: #268bd2; /* solarized blue */+ --border-default: #2b2f37;+ --border-strong: #3c424c;+ --border-focus: #3b82f6; /* standard blue */--ornament-frame: none;- /* Foreground — Dracula light foreground for readability over Solarized dark */- --fg-default: #f8f8f2;- --fg-muted: #6272a4; /* dracula comment */- --fg-faint: #586e75;- --fg-on-accent: #002b36;- --fg-on-success: #002b36;- --fg-on-danger: #f8f8f2;- --fg-on-warning: #002b36;+ /* Foreground — near-white neutral for readability over slate */+ --fg-default: #e8eaed;+ --fg-muted: #9aa1ac;+ --fg-faint: #6b7280;+ --fg-on-accent: #ffffff;+ --fg-on-success: #0d0f13;+ --fg-on-danger: #ffffff;+ --fg-on-warning: #0d0f13;/* Type — same as light (system stack) */--font-display: 'Geist Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;@@ -65,6 +65,6 @@/* Cursor + scrollbar */--cursor-default: auto;--cursor-pointer: pointer;- --scrollbar-track: #073642;- --scrollbar-thumb: #586e75;+ --scrollbar-track: #15171c;+ --scrollbar-thumb: #3c424c;}diff --git a/docs-internal/design-system/tokens/colors.css b/docs-internal/design-system/tokens/colors.cssindex b69d533b..bf86c3cf 100644--- a/docs-internal/design-system/tokens/colors.css+++ b/docs-internal/design-system/tokens/colors.css@@ -1,8 +1,8 @@/* ============================================================================* MachinaOS — color tokens* Source: zeenie-ai/MachinaOS client/src/index.css + client/src/themes/{light,dark}.css- * Light = grey-blue "paper" workspace. Dark = Solarized dark surfaces with- * Dracula vibrant accents (the brand's signature look).+ * Light = grey-blue "paper" workspace. Dark = neutral slate dark (the same+ * family inverted, NOT Solarized teal) with Dracula vibrant accents.* Toggle dark mode with class="dark" or data-theme="dark" on <html>.* ========================================================================== */@@ -127,40 +127,40 @@}/* ============================================================================- * Dark theme — Solarized dark surfaces + Dracula foreground/accents.- * This is MachinaOS's signature look (canvas screenshots, demo videos).+ * Dark theme — neutral slate dark (the light grey-blue paper family+ * inverted, NOT Solarized teal). Dracula accents are the personality layer.* ========================================================================== */.dark,[data-theme="dark"] {- --bg-app: #002b36; /* solarized base03 */- --bg-panel: #073642; /* solarized base02 */- --bg-canvas: #002b36;- --bg-elevated: #0d1f2d;- --bg-input: #073642;- --bg-hover: rgba(248, 248, 242, 0.06);- --bg-active: rgba(189, 147, 249, 0.18);+ --bg-app: #0d0f13; /* neutral near-black slate */+ --bg-panel: #15171c; /* one step up — toolbar/sidebar/palette */+ --bg-canvas: #0d0f13;+ --bg-elevated: #1b1e25;+ --bg-input: #15171c;+ --bg-hover: rgba(255, 255, 255, 0.05);+ --bg-active: rgba(255, 255, 255, 0.08);--bg-overlay: rgba(0, 0, 0, 0.7);- --surface-card: #073642;+ --surface-card: #1b1e25;- --fg-default: #f8f8f2; /* dracula foreground */- --fg-muted: #94a8d6; /* lightened dracula comment for contrast */- --fg-faint: #6272a4;- --fg-on-accent: #002b36;+ --fg-default: #e8eaed; /* near-white neutral */+ --fg-muted: #9aa1ac; /* neutral slate grey */+ --fg-faint: #6b7280;+ --fg-on-accent: #ffffff;- --border-default: #586e75; /* solarized base01 */- --border-strong: #93a1a1;- --border-focus: #268bd2;+ --border-default: #2b2f37; /* neutral hairline */+ --border-strong: #3c424c;+ --border-focus: #3b82f6;- --primary: #268bd2; /* solarized blue */- --primary-foreground: #f8f8f2;- --accent: #8be9fd; /* dracula cyan */- --accent-foreground: #002b36;+ --primary: #3b82f6; /* standard blue */+ --primary-foreground: #ffffff;+ --accent: #8b5cf6; /* standard violet */+ --accent-foreground: #ffffff;- --destructive: #dc322f; /* solarized red */- --destructive-foreground: #f8f8f2;- --success: #859900; /* solarized green */- --warning: #b58900;- --info: #2aa198;+ --destructive: #ef4444;+ --destructive-foreground: #ffffff;+ --success: #22c55e;+ --warning: #f59e0b;+ --info: #38bdf8;/* In dark mode, the Dracula hues are bright enough to be the text color* directly — ink aliases resolve to the raw accents. */@@ -171,8 +171,8 @@--action-secret-ink: var(--dracula-yellow);--action-tools-ink: var(--dracula-purple);- --scrollbar-track: #073642;- --scrollbar-thumb: #586e75;+ --scrollbar-track: #15171c;+ --scrollbar-thumb: #3c424c;color-scheme: dark;}diff --git a/docs-internal/frontend_architecture.md b/docs-internal/frontend_architecture.mdindex eec5c9b5..2f5ea29a 100644--- a/docs-internal/frontend_architecture.md+++ b/docs-internal/frontend_architecture.md@@ -138,7 +138,7 @@ client/src/│ └── WebSocketContext.tsx # Single source of truth for WS state + handlers│├── hooks/-│ ├── useAppTheme.ts # Bridges ThemeContext + Solarized/Dracula palettes+│ ├── useAppTheme.ts # Bridges ThemeContext + light/dark base packs + per-theme overlays│ ├── useCatalogueQuery.ts # TanStack Query + idb-keyval warm-start (exemplar)│ ├── useWorkflowsQuery.ts # Workflow list + save/delete mutations (Query)│ ├── useNodeParamsQuery.ts # Per-node parameter Query + save mutation@@ -221,9 +221,9 @@ The bridge ([src/index.css](../client/src/index.css)) maps each Tailwind colour}[data-theme="dark"] { /* client/src/themes/dark.css — colour-hex overrides */- --background: #002b36; /* Solarized base03 */- --foreground: #f8f8f2; /* Dracula fg */- --primary: #268bd2; /* Solarized blue */+ --background: #0d0f13; /* neutral slate */+ --foreground: #e8eaed; /* near-white neutral */+ --primary: #3b82f6; /* standard blue *//* …etc; node/action tokens inherit light.css's :root (identical in dark) + -ink overrides */}diff --git a/docs-internal/theme_system.md b/docs-internal/theme_system.mdindex fb22ba7b..9a1c3f04 100644--- a/docs-internal/theme_system.md+++ b/docs-internal/theme_system.md@@ -445,7 +445,7 @@ cd client && pnpm dev```1. `<html data-theme="light">` — clean default, near-white surfaces-2. `<html data-theme="dark">` — Solarized + Dracula+2. `<html data-theme="dark">` — neutral slate + Dracula3. `<html data-theme="renaissance">` — parchment, gold accents, Cinzel headings4. `<html data-theme="cyber">` — neon over void, JetBrains Mono everywherediff --git a/docs-internal/ui_migration_plan.md b/docs-internal/ui_migration_plan.mdindex 32b19187..289d94a2 100644--- a/docs-internal/ui_migration_plan.md+++ b/docs-internal/ui_migration_plan.md@@ -345,7 +345,7 @@ The MachinaOs frontend was coupled to Ant Design (40 files, 187-line theme file,2. **No owned layout wrappers.** Tailwind utility classes are the API. `<div className="flex flex-col gap-3">` is the answer, not `<Stack gap="3">`.3. **No facade layers.** `import { toast } from 'sonner'` directly at call sites. No `lib/toast.ts` wrapper preserving antd's call shape.4. **Library defaults beat invented abstractions.** Use shadcn's `Form` composition with `react-hook-form` + `zod` exactly as the docs show. Use `@jsonforms/react`'s built-in renderer registry, don't invent another.-5. **Tokens are owned.** CSS vars are the one thing shadcn doesn't ship — they're our palette (Solarized + Dracula), defined per-theme in `client/src/themes/*.css` as hex + `color-mix()`. The `@theme inline` bridge maps `--color-X: var(--X)` (no `hsl()` wrapper); Tailwind v4 composes `/opacity` via `color-mix`. (W1 shipped these as HSL triplets; a later wave migrated the whole system to hex + color-mix — see [theme_system.md](./theme_system.md).)+5. **Tokens are owned.** CSS vars are the one thing shadcn doesn't ship — they're our palette (neutral-slate + grey-blue + Dracula), defined per-theme in `client/src/themes/*.css` as hex + `color-mix()`. The `@theme inline` bridge maps `--color-X: var(--X)` (no `hsl()` wrapper); Tailwind v4 composes `/opacity` via `color-mix`. (W1 shipped these as HSL triplets; a later wave migrated the whole system to hex + color-mix — see [theme_system.md](./theme_system.md).)6. **Each phase ships independently.** App stays green; antd coexists until Phase 7.## Codebase facts (from audit, 2026-04-13)