Skip to content

Commit 66acf86

Browse files
committed
refactor(console): change accent from green to yellow (ClickHouse-like)
- Update CSS vars --emerald/* from #10b981 to #eab308 - Add --accent/* vars for semantic naming - Fix hardcoded #10b981/#059669 in logo gradients, DAG colors, favicon - All JS inline var(--emerald) refs work automatically via CSS var
1 parent 6033634 commit 66acf86

5 files changed

Lines changed: 21 additions & 18 deletions

File tree

‎console/css/style.css‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
--text-primary: #e8eaed;
1212
--text-secondary: #9aa0a8;
1313
--text-tertiary: #5c626e;
14-
--emerald: #10b981;
15-
--emerald-dim: rgba(16,185,129,0.12);
16-
--emerald-glow: rgba(16,185,129,0.08);
14+
--emerald: #eab308;
15+
--emerald-dim: rgba(234,179,8,0.12);
16+
--emerald-glow: rgba(234,179,8,0.08);
17+
--accent: #eab308;
18+
--accent-dim: rgba(234,179,8,0.12);
19+
--accent-glow: rgba(234,179,8,0.08);
1720
--blue: #3b82f6;
1821
--blue-dim: rgba(59,130,246,0.12);
1922
--amber: #f59e0b;
@@ -94,7 +97,7 @@ a:hover { opacity: 0.85; }
9497
.sidebar-logo .logo-icon {
9598
width: 28px;
9699
height: 28px;
97-
background: linear-gradient(135deg, #10b981, #059669);
100+
background: linear-gradient(135deg, #eab308, #ca8a04);
98101
border-radius: 8px;
99102
display: flex;
100103
align-items: center;
@@ -391,7 +394,7 @@ a:hover { opacity: 0.85; }
391394
}
392395

393396
.btn-primary:hover {
394-
background: #059669;
397+
background: #ca8a04;
395398
box-shadow: 0 0 20px var(--emerald-glow);
396399
}
397400

@@ -568,7 +571,7 @@ table tr:last-child td:last-child { border-radius: 0 0 var(--radius) 0; }
568571
display: inline-block;
569572
}
570573

571-
.status .dot.green { background: var(--emerald); box-shadow: 0 0 6px rgba(16,185,129,0.4); }
574+
.status .dot.green { background: var(--emerald); box-shadow: 0 0 6px rgba(234,179,8,0.4); }
572575
.status .dot.amber { background: var(--amber); box-shadow: 0 0 6px rgba(245,158,11,0.4); }
573576
.status .dot.red { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,0.4); }
574577
.status .dot.gray { background: var(--text-tertiary); }
@@ -799,9 +802,9 @@ table tr:last-child td:last-child { border-radius: 0 0 var(--radius) 0; }
799802
}
800803

801804
.pipeline-flow .pf-node.pipeline-center {
802-
background: rgba(16,185,129,0.15);
805+
background: rgba(234,179,8,0.15);
803806
color: var(--emerald);
804-
border: 1px solid rgba(16,185,129,0.2);
807+
border: 1px solid rgba(234,179,8,0.2);
805808
font-weight: 600;
806809
}
807810

@@ -1191,12 +1194,12 @@ table tr:last-child td:last-child { border-radius: 0 0 var(--radius) 0; }
11911194
top: 50%; left: 50%;
11921195
transform: translate(-50%, -50%);
11931196
width: 70px; height: 70px;
1194-
background: linear-gradient(135deg, #10b981, #059669);
1197+
background: linear-gradient(135deg, #eab308, #ca8a04);
11951198
border-radius: 20px;
11961199
display: flex; align-items: center; justify-content: center;
11971200
font-size: 28px;
11981201
color: #fff;
1199-
box-shadow: 0 0 40px rgba(16,185,129,0.3);
1202+
box-shadow: 0 0 40px rgba(234,179,8,0.3);
12001203
}
12011204

12021205
.login-right .graphic .flow-line {

‎console/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Arus — Data Pipeline Platform</title>
7-
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='8' fill='%2310b981'/><text x='16' y='23' text-anchor='middle' fill='white' font-size='20' font-weight='bold'>A</text></svg>">
7+
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='8' fill='%23eab308'/><text x='16' y='23' text-anchor='middle' fill='white' font-size='20' font-weight='bold'>A</text></svg>">
88
<link rel="stylesheet" href="/css/style.css">
99
<link rel="stylesheet" href="/css/mobile.css">
1010
<link rel="preconnect" href="https://fonts.googleapis.com">

‎console/js/components/sidebar.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function renderSidebar(user) {
5353
return `
5454
<aside class="sidebar" id="sidebar">
5555
<div class="sidebar-logo">
56-
<span class="logo-icon" style="width:28px;height:28px;background:linear-gradient(135deg,#10b981,#059669);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;color:#fff;flex-shrink:0;">Ar</span>
56+
<span class="logo-icon" style="width:28px;height:28px;background:linear-gradient(135deg,#eab308,#ca8a04);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;color:#fff;flex-shrink:0;">Ar</span>
5757
<span>Ar<em>us</em></span>
5858
</div>
5959
<nav class="sidebar-nav">${navHtml}</nav>

‎console/js/pages/dag.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
let dagState = { panX: 0, panY: 0, zoom: 1 };
33
const DAG_LAYERS = ['source', 'raw', 'target'];
44
const DAG_LABELS = { source: 'SOURCE LAYER', raw: 'RAW LAYER', target: 'TARGET LAYER' };
5-
const LAYER_COLORS = { source: '#3b82f6', raw: '#f59e0b', target: '#10b981' };
5+
const LAYER_COLORS = { source: '#3b82f6', raw: '#f59e0b', target: '#eab308' };
66

77
async function renderDagPage(container) {
88
container.innerHTML = `<div class="loading"><div class="spinner"></div><p>Loading pipelines...</p></div>`;
@@ -31,7 +31,7 @@ async function renderDagPage(container) {
3131
</div>
3232
3333
<div class="dag-legend" id="dag-legend" style="display:none">
34-
<span class="legend-item"><span class="legend-dot" style="background:#10b981"></span> Success</span>
34+
<span class="legend-item"><span class="legend-dot" style="background:#eab308"></span> Success</span>
3535
<span class="legend-item"><span class="legend-dot" style="background:#3b82f6"></span> Running</span>
3636
<span class="legend-item"><span class="legend-dot" style="background:#f59e0b"></span> Stale</span>
3737
<span class="legend-item"><span class="legend-dot" style="background:#ef4444"></span> Failed</span>
@@ -171,15 +171,15 @@ function renderDagGraph(pipelines) {
171171
});
172172

173173
const statusColors = {
174-
success: '#10b981', failed: '#ef4444', running: '#3b82f6',
174+
success: '#eab308', failed: '#ef4444', running: '#3b82f6',
175175
stale: '#f59e0b', not_started: '#6b7280', paused: '#f59e0b',
176-
active: '#10b981', inactive: '#6b7280',
176+
active: '#eab308', inactive: '#6b7280',
177177
};
178178

179179
const layerLabels = {
180180
source: { x: layerX.source, label: 'SOURCE LAYER', color: '#3b82f6' },
181181
raw: { x: layerX.raw, label: 'RAW LAYER', color: '#f59e0b' },
182-
target: { x: layerX.target, label: 'TARGET LAYER', color: '#10b981' },
182+
target: { x: layerX.target, label: 'TARGET LAYER', color: '#eab308' },
183183
};
184184

185185
const g = dagState;

‎console/js/pages/login.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function renderLogin() {
55
<div class="login-left">
66
<div class="login-logo">
77
<span style="display:inline-flex;align-items:center;gap:10px;margin-bottom:20px;">
8-
<span style="width:36px;height:36px;background:linear-gradient(135deg,#10b981,#059669);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;color:#fff;">Ar</span>
8+
<span style="width:36px;height:36px;background:linear-gradient(135deg,#eab308,#ca8a04);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;color:#fff;">Ar</span>
99
<span style="font-size:24px;">Ar<em>us</em></span>
1010
</span>
1111
</div>

0 commit comments

Comments
 (0)