Skip to content

Commit 2bce5a4

Browse files
committed
Refactor CSS styles for brand consistency and update globe rendering colors
- Updated `discipline-panel.css` and `entrance.css` to replace hardcoded colors with CSS variables for improved brand consistency. - Modified `theme.css` to redefine brand color variables, enhancing the overall design and accessibility. - Adjusted `globe.js` to update color palette for rendering, aligning with the new brand color scheme.
1 parent 2641f2a commit 2bce5a4

4 files changed

Lines changed: 26 additions & 27 deletions

File tree

frontend/assets/css/discipline-panel.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
}
158158

159159
.discipline-panel__next:hover {
160-
background: rgba(185, 28, 28, 0.2);
160+
background: var(--brand-surface);
161161
}
162162

163163
.active-discipline-badge {

frontend/assets/css/entrance.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ body.ui-landing .app .entrance-suggestion {
186186
.entrance-kernel {
187187
-webkit-background-clip: text;
188188
background-clip: text;
189-
-webkit-text-fill-color: #b91c1c;
190-
color: #b91c1c;
189+
-webkit-text-fill-color: var(--brand-primary);
190+
color: var(--brand-primary);
191191
}
192192

193193
.entrance-subtitle {
@@ -218,16 +218,16 @@ body.ui-landing .app .entrance-suggestion {
218218
}
219219

220220
.entrance-discipline-pills .cmd-pill:hover {
221-
border-color: #b91c1c;
221+
border-color: var(--brand-primary);
222222
color: #fff;
223-
background: rgba(185, 28, 28, 0.2);
223+
background: var(--brand-surface);
224224
}
225225

226226
.entrance-caret {
227227
display: none;
228228
}
229229

230-
/* -------- Cycling command suggestions (red pill, white text) -------- */
230+
/* -------- Cycling command suggestions (brand pill) -------- */
231231
.entrance-suggestion-wrap {
232232
margin-top: 22px;
233233
min-height: 2.4em; /* reserve space so the layout never jumps */
@@ -239,14 +239,14 @@ body.ui-landing .app .entrance-suggestion {
239239
max-width: 100%;
240240
padding: 8px 14px;
241241
border-radius: 12px;
242-
background: #b91c1c;
243-
color: #ffffff;
242+
background: var(--brand-primary);
243+
color: var(--brand-on-primary);
244244
font-family: var(--font-mono, 'JetBrains Mono', monospace);
245245
font-size: clamp(0.82rem, 1.6vw, 1rem);
246246
font-weight: 500;
247247
line-height: 1.3;
248248
letter-spacing: 0.01em;
249-
box-shadow: 0 8px 22px rgba(185, 28, 28, 0.35);
249+
box-shadow: 0 8px 22px rgba(176, 147, 62, 0.25);
250250
cursor: pointer; /* click to drop the suggestion into the input */
251251
pointer-events: auto; /* re-enable clicks (overlay is click-through) */
252252
}
@@ -261,7 +261,7 @@ body.ui-landing .app .entrance-suggestion {
261261
height: 1.05em;
262262
margin-left: 3px;
263263
vertical-align: -0.12em;
264-
background: #ffffff;
264+
background: var(--brand-on-primary);
265265
border-radius: 1px;
266266
animation: entrance-blink 1s steps(1) infinite;
267267
}

frontend/assets/css/theme.css

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
/* ===== Design Tokens ===== */
2+
/* Brand accent: #B0933E — use tokens, never hardcode. Error red is semantic only (--error). */
23
:root {
34
--bg: #0a0a0a;
45
--surface: #27272A;
56
--surface-2: #2F2F33;
67
--border: #3F3F46;
7-
--brand-primary: #b91c1c;
8-
--brand-primary-hover: #dc2626;
9-
--brand-surface: rgba(185, 28, 28, 0.12);
10-
--brand-muted: rgba(185, 28, 28, 0.45);
8+
--brand-primary: #B0933E;
9+
--brand-primary-hover: #C4A855;
10+
--brand-on-primary: #0a0a0a;
11+
--brand-surface: rgba(176, 147, 62, 0.12);
12+
--brand-muted: rgba(176, 147, 62, 0.45);
1113
--accent: var(--brand-primary);
12-
--color-action: var(--brand-primary);
13-
--color-brand: var(--brand-primary);
1414
--color-hint: var(--text-muted);
15-
--color-code-inline: #fca5a5;
15+
--color-code-inline: #D4BC82;
1616
--text: #E4E4E7;
1717
--text-muted: #B4B4BC;
18-
--user-bg: var(--brand-primary);
1918
--bot-bg: #27272A;
2019
--error: #F87171;
2120
--error-bg: #3E1C1C;
@@ -778,7 +777,7 @@ body.chat-active .composer-wrap {
778777
display: flex;
779778
align-items: center;
780779
justify-content: center;
781-
color: #fff;
780+
color: var(--brand-on-primary);
782781
transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
783782
}
784783

@@ -801,7 +800,7 @@ body.chat-active .composer-wrap {
801800
background: var(--btn-streaming);
802801
cursor: pointer;
803802
opacity: 1;
804-
color: #fff;
803+
color: var(--brand-on-primary);
805804
}
806805

807806
#send-button.send-button--streaming svg {
@@ -812,8 +811,8 @@ body.chat-active .composer-wrap {
812811
content: "";
813812
width: 16px;
814813
height: 16px;
815-
border: 2px solid rgba(255, 255, 255, 0.35);
816-
border-top-color: #fff;
814+
border: 2px solid rgba(10, 10, 10, 0.25);
815+
border-top-color: var(--brand-on-primary);
817816
border-radius: 50%;
818817
animation: send-spin 0.75s linear infinite;
819818
}
@@ -1008,7 +1007,7 @@ body.chat-active .composer-wrap {
10081007
}
10091008

10101009
.scope-option-cmd {
1011-
color: var(--color-red-500);
1010+
color: var(--accent);
10121011
font-family: var(--font-mono);
10131012
}
10141013

frontend/src/globe.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function createGlobe(canvas, opts = {}) {
124124
const PLATE_SCALE = isThinking ? 0.88 : 0.9;
125125

126126
const PALETTE = isThinking
127-
? { fill: [185, 28, 28], stroke: [220, 100, 100], vertex: [245, 200, 200] }
127+
? { fill: [176, 147, 62], stroke: [200, 175, 110], vertex: [225, 210, 170] }
128128
: { fill: [220, 222, 228], stroke: [235, 237, 242], vertex: [248, 249, 252] };
129129

130130
function rotate(p) {
@@ -366,9 +366,9 @@ export function createGlobe(canvas, opts = {}) {
366366
const pulse = 0.5 + 0.5 * Math.sin(t * 0.0028);
367367
const glowR = baseR * (1.18 + pulse * 0.05);
368368
const grd = ctx.createRadialGradient(cxPix, cyPix, 0, cxPix, cyPix, glowR);
369-
grd.addColorStop(0, `rgba(185, 28, 28, ${0.14 + pulse * 0.06})`);
370-
grd.addColorStop(0.6, "rgba(185, 28, 28, 0.04)");
371-
grd.addColorStop(1, "rgba(185, 28, 28, 0)");
369+
grd.addColorStop(0, `rgba(176, 147, 62, ${0.14 + pulse * 0.06})`);
370+
grd.addColorStop(0.6, "rgba(176, 147, 62, 0.04)");
371+
grd.addColorStop(1, "rgba(176, 147, 62, 0)");
372372
ctx.fillStyle = grd;
373373
ctx.beginPath();
374374
ctx.arc(cxPix, cyPix, glowR, 0, Math.PI * 2);

0 commit comments

Comments
 (0)