0f05f47eef
Mirrors the web frontend's design-system foundation pass (shipped on web 2026-04-27 in 7a9a8b7) for the Flutter app. Single-file change to lib/core/theme.dart — most widgets read colorScheme.primary so the palette flip alone covers a large surface. Palette swap - dark: cool grey #0F0F14 / #16161F → Obsidian #14171A / Iron #1E2228 with Slate #2C313A and Pewter #3F4651 borders; Parchment #E8E4D8 primary text, Vellum #C2BFB4 secondary - light: white-and-cool-blue → warm parchment #F5F1E8 page / #FBF8F0 cards / #EFEAE0 inset; deep ink #14171A text; warm pewter #D9D6CE borders - primary (both modes): indigo #7C3AED → dusty violet #5B4A8A - error: indigo-red pair → terracotta #C04A1F (semantic Error per the doc; distinct from destructive Oxblood used for delete buttons) Action token ThemeExtension - New ActionColors extension exposes Moss / Bronze / Oxblood / Pewter outside the ColorScheme so widgets can read them via Theme.of(context).extension<ActionColors>()!.primary etc. - Hybrid rule: ColorScheme.primary stays the dusty-violet brand accent (Send buttons, empty-state CTAs); action buttons (Save / Cancel / Delete / ghost) use the ActionColors palette. No widget refactors in this commit — extension is defined for surface-phase work to consume. Typography - Inter loaded for body / labels / titleMedium-and-below (was system default) - Fraunces still loaded for display / headline / titleLarge — only at ≥18px per the doc rule - JetBrains Mono available for code at call sites via GoogleFonts.jetBrainsMono() (Flutter has no mono TextTheme slot) GradientButton - Brand-moment CTA equivalent of the web's --gradient-cta. Colors swapped from indigo gradient to dusty-violet (#5B4A8A → #3F3560); glow shadow rgba updated to match. Out of scope (deferred to later surface-phase work) - Per-screen button reclassification (Save → Moss FilledButton, Delete → Oxblood, etc.) — the ActionColors extension exists, no widgets reach for it yet - Lucide icon migration — separate task, requires picking a flutter_lucide / lucide_icons package - Input border radius (currently 24 / pill, doc says 8) — leave for surface phase - Voice/tone copy touchups - Chat bubble Illuminated Transcript pattern (assistant left-edge accent + glow) — not yet ported to ChatMessageBubble Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>