|
| 1 | +/* CRT palette; selected by index.html and app/theme.ts. */ |
| 2 | + |
| 3 | +/* Terminal shape: the whole console is near-square. Radius tokens flatten the |
| 4 | + var(--radius-*) chain and the scale factor flattens the fixed px * scale |
| 5 | + corner rules; --radius-full is untouched so avatars and pills stay round. |
| 6 | + The attribute selector outscores the :root capability flip to 1.25. */ |
| 7 | +:root[data-theme="crt"], |
| 8 | +:root[data-theme="crt-light"] { |
| 9 | + --radius-sm: 2px; |
| 10 | + --radius-md: 3px; |
| 11 | + --radius-lg: 4px; |
| 12 | + --radius-xl: 6px; |
| 13 | + --radius: 3px; |
| 14 | + --openclaw-corner-radius-scale: 0.25; |
| 15 | +} |
| 16 | + |
| 17 | +:root[data-theme="crt"] { |
| 18 | + /* |
| 19 | + * Accent — bright phosphor green on neutral tube black; white-cast body text. |
| 20 | + * Phosphor (green-on-green glass) stays the tinted sibling; CRT is the |
| 21 | + * neutral white/green console. |
| 22 | + * |
| 23 | + * WCAG 2.1 AA audit (bg = #090a09, relative luminance ≈ 0.0030): |
| 24 | + * --accent #3aff7d contrast ≈ 14.9:1 AAA ✓ |
| 25 | + * --primary-foreground #052b12 on #3aff7d button: 11.6:1 ✓ |
| 26 | + * --destructive-foreground (base #fafafa) on #d0342d button: 4.7:1 AA ✓ |
| 27 | + * body text --text #c2cac3: 11.8:1 ✓ |
| 28 | + * worst text pairing --muted on --bg-muted: 6.5:1 ✓ |
| 29 | + */ |
| 30 | + --ring: #3aff7d; |
| 31 | + --accent: #3aff7d; |
| 32 | + --accent-hover: #71ffa5; |
| 33 | + --accent-muted: #3aff7d; |
| 34 | + --accent-subtle: rgba(58, 255, 125, 0.12); |
| 35 | + --accent-glow: rgba(58, 255, 125, 0.2); |
| 36 | + --primary: #3aff7d; |
| 37 | + --primary-hover: #71ffa5; |
| 38 | + --primary-foreground: #052b12; |
| 39 | + |
| 40 | + --destructive: #d0342d; |
| 41 | + --destructive-hover: #b92d27; |
| 42 | + |
| 43 | + --focus: rgba(58, 255, 125, 0.18); |
| 44 | + --focus-ring: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--ring) 75%, transparent); |
| 45 | + --focus-glow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ring), 0 0 16px var(--accent-glow); |
| 46 | + |
| 47 | + --bg: #090a09; |
| 48 | + --bg-accent: #0d0f0d; |
| 49 | + --bg-elevated: #111412; |
| 50 | + --bg-hover: #171b18; |
| 51 | + --bg-muted: #151915; |
| 52 | + |
| 53 | + --card: #0d0f0d; |
| 54 | + --card-foreground: #e9eee9; |
| 55 | + --card-highlight: rgba(220, 245, 225, 0.04); |
| 56 | + --popover: #111412; |
| 57 | + --popover-foreground: #e9eee9; |
| 58 | + |
| 59 | + --panel: #090a09; |
| 60 | + --panel-strong: #111412; |
| 61 | + --panel-hover: #171b18; |
| 62 | + --chrome: rgba(9, 10, 9, 0.96); |
| 63 | + --chrome-strong: rgba(9, 10, 9, 0.98); |
| 64 | + |
| 65 | + --text: #c2cac3; |
| 66 | + --text-strong: #e9eee9; |
| 67 | + --chat-text: #c2cac3; |
| 68 | + --muted: #90a094; |
| 69 | + --muted-strong: #a3b2a7; |
| 70 | + --muted-foreground: #90a094; |
| 71 | + |
| 72 | + --border: #202521; |
| 73 | + --border-strong: #303833; |
| 74 | + --border-hover: #45524a; |
| 75 | + --input: #202521; |
| 76 | + |
| 77 | + --secondary: #0d0f0d; |
| 78 | + --secondary-foreground: #e9eee9; |
| 79 | + --accent-2: #ffcf5c; |
| 80 | + --accent-2-muted: rgba(255, 207, 92, 0.7); |
| 81 | + --accent-2-subtle: rgba(255, 207, 92, 0.12); |
| 82 | + |
| 83 | + --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45); |
| 84 | + --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55); |
| 85 | + --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65); |
| 86 | + --overlay-shadow: var(--shadow-md); |
| 87 | + |
| 88 | + --grid-line: rgba(220, 245, 225, 0.04); |
| 89 | + |
| 90 | + /* One face for the whole console, prose included — same opt-in character |
| 91 | + decision as Phosphor; the mono choice is why this theme is not a default. */ |
| 92 | + --mono: |
| 93 | + "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace; |
| 94 | + --font-body: var(--mono); |
| 95 | + --font-chat: var(--mono); |
| 96 | +} |
| 97 | + |
| 98 | +:root[data-theme="crt-light"] { |
| 99 | + /* |
| 100 | + * Accent — deep console green on neutral paper. |
| 101 | + * |
| 102 | + * WCAG 2.1 AA audit (bg = #f5f5f4, relative luminance ≈ 0.911): |
| 103 | + * --accent #0a612b contrast ≈ 6.9:1 AA ✓ |
| 104 | + * --primary-foreground #ffffff on #0a612b button: 7.6:1 ✓ |
| 105 | + * body text --text #343a34: 10.7:1 ✓ |
| 106 | + * worst text pairing --muted on --bg-muted: 5.1:1 ✓ |
| 107 | + */ |
| 108 | + --ring: #0a612b; |
| 109 | + --accent: #0a612b; |
| 110 | + --accent-hover: #084d22; |
| 111 | + --accent-muted: #0a612b; |
| 112 | + --accent-subtle: rgba(10, 97, 43, 0.1); |
| 113 | + --accent-glow: rgba(10, 97, 43, 0.14); |
| 114 | + --primary: #0a612b; |
| 115 | + --primary-foreground: #ffffff; |
| 116 | + |
| 117 | + --bg: #f5f5f4; |
| 118 | + --bg-accent: #ececea; |
| 119 | + --bg-elevated: #ffffff; |
| 120 | + --bg-hover: #e3e4e1; |
| 121 | + --bg-muted: #e9eae8; |
| 122 | + --bg-content: #efefee; |
| 123 | + |
| 124 | + --card: #ffffff; |
| 125 | + --card-foreground: #191e19; |
| 126 | + --card-highlight: rgba(20, 40, 25, 0.02); |
| 127 | + --popover: #ffffff; |
| 128 | + --popover-foreground: #191e19; |
| 129 | + --session-hovercard-surface: var(--card); |
| 130 | + --session-hovercard-progress-surface: color-mix( |
| 131 | + in srgb, |
| 132 | + var(--card) 52%, |
| 133 | + var(--panel-strong) 48% |
| 134 | + ); |
| 135 | + |
| 136 | + --panel: #f5f5f4; |
| 137 | + --panel-strong: #ececea; |
| 138 | + --panel-hover: #dddedb; |
| 139 | + --chrome: rgba(245, 245, 244, 0.96); |
| 140 | + --chrome-strong: rgba(245, 245, 244, 0.98); |
| 141 | + |
| 142 | + --text: #343a34; |
| 143 | + --text-strong: #191e19; |
| 144 | + --chat-text: #343a34; |
| 145 | + --muted: #5b655c; |
| 146 | + --muted-strong: #49544a; |
| 147 | + --muted-foreground: #5b655c; |
| 148 | + |
| 149 | + --border: #dcdedb; |
| 150 | + --border-strong: #c0c5bf; |
| 151 | + --border-hover: #97a399; |
| 152 | + --input: #dcdedb; |
| 153 | + |
| 154 | + --secondary: #ececea; |
| 155 | + --secondary-foreground: #343a34; |
| 156 | + --accent-2: #7a5d10; |
| 157 | + --accent-2-muted: rgba(122, 93, 16, 0.75); |
| 158 | + --accent-2-subtle: rgba(122, 93, 16, 0.08); |
| 159 | + |
| 160 | + --shadow-sm: 0 1px 2px rgba(15, 25, 18, 0.05); |
| 161 | + --shadow-md: 0 4px 12px rgba(15, 25, 18, 0.07); |
| 162 | + --shadow-lg: 0 12px 28px rgba(15, 25, 18, 0.09); |
| 163 | + --overlay-shadow: var(--shadow-md); |
| 164 | + |
| 165 | + --grid-line: rgba(20, 40, 25, 0.04); |
| 166 | + |
| 167 | + --mono: |
| 168 | + "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace; |
| 169 | + --font-body: var(--mono); |
| 170 | + --font-chat: var(--mono); |
| 171 | +} |
0 commit comments