|
6 | 6 |
|
7 | 7 | use ratatui::style::{Color, Modifier, Style}; |
8 | 8 |
|
9 | | -// ── Core Palette (from landing page globals.css) ──────────────────────────── |
| 9 | +// ── Core Palette (dark mode for terminal) ─────────────────────────────────── |
10 | 10 |
|
11 | 11 | pub const ACCENT: Color = Color::Rgb(255, 92, 0); // #FF5C00 — OpenFang orange |
12 | 12 | pub const ACCENT_DIM: Color = Color::Rgb(224, 82, 0); // #E05200 |
13 | 13 |
|
14 | | -pub const BG_PRIMARY: Color = Color::Rgb(237, 236, 235); // #EDECEB — light mode |
15 | | -pub const BG_CARD: Color = Color::Rgb(255, 255, 255); // #FFFFFF — white surface |
16 | | -pub const BG_HOVER: Color = Color::Rgb(240, 238, 236); // #F0EEEC |
17 | | -pub const BG_CODE: Color = Color::Rgb(232, 230, 227); // #E8E6E3 |
| 14 | +pub const BG_PRIMARY: Color = Color::Rgb(15, 14, 14); // #0F0E0E — dark background |
| 15 | +pub const BG_CARD: Color = Color::Rgb(31, 29, 28); // #1F1D1C — dark surface |
| 16 | +pub const BG_HOVER: Color = Color::Rgb(42, 39, 37); // #2A2725 — dark hover |
| 17 | +pub const BG_CODE: Color = Color::Rgb(24, 22, 21); // #181615 — dark code block |
18 | 18 |
|
19 | | -pub const TEXT_PRIMARY: Color = Color::Rgb(26, 24, 23); // #1A1817 — dark text on light bg |
20 | | -pub const TEXT_SECONDARY: Color = Color::Rgb(61, 57, 53); // #3D3935 — WCAG AA pass |
21 | | -pub const TEXT_TERTIARY: Color = Color::Rgb(107, 101, 96); // #6B6560 — WCAG AA pass |
| 19 | +pub const TEXT_PRIMARY: Color = Color::Rgb(240, 239, 238); // #F0EFEE — light text on dark bg |
| 20 | +pub const TEXT_SECONDARY: Color = Color::Rgb(168, 162, 158); // #A8A29E — muted text |
| 21 | +pub const TEXT_TERTIARY: Color = Color::Rgb(120, 113, 108); // #78716C — dim text |
22 | 22 |
|
23 | | -pub const BORDER: Color = Color::Rgb(213, 210, 207); // #D5D2CF — light border |
| 23 | +pub const BORDER: Color = Color::Rgb(63, 59, 56); // #3F3B38 — dark border |
24 | 24 |
|
25 | | -// ── Semantic Colors (darker variants for light background contrast) ───────── |
| 25 | +// ── Semantic Colors (brighter variants for dark background contrast) ──────── |
26 | 26 |
|
27 | | -pub const GREEN: Color = Color::Rgb(22, 163, 74); // #16A34A — success |
28 | | -pub const BLUE: Color = Color::Rgb(37, 99, 235); // #2563EB — info |
29 | | -pub const YELLOW: Color = Color::Rgb(217, 119, 6); // #D97706 — warning |
30 | | -pub const RED: Color = Color::Rgb(220, 38, 38); // #DC2626 — error |
31 | | -pub const PURPLE: Color = Color::Rgb(147, 51, 234); // #9333EA — decorators |
| 27 | +pub const GREEN: Color = Color::Rgb(34, 197, 94); // #22C55E — success |
| 28 | +pub const BLUE: Color = Color::Rgb(59, 130, 246); // #3B82F6 — info |
| 29 | +pub const YELLOW: Color = Color::Rgb(234, 179, 8); // #EAB308 — warning |
| 30 | +pub const RED: Color = Color::Rgb(239, 68, 68); // #EF4444 — error |
| 31 | +pub const PURPLE: Color = Color::Rgb(168, 85, 247); // #A855F7 — decorators |
32 | 32 |
|
33 | 33 | // ── Backward-compat aliases ───────────────────────────────────────────────── |
34 | 34 |
|
|
0 commit comments