refactor(decnet_web/css): promote hardcoded matrix/warn/crit colours to tokens
37 bare rgba(0, 255, 65, ...) literals across 10 component CSS files were forcing matrix-green to bleed into light mode no matter what data-theme=light overrode in :root. They're now mapped onto existing tokens by alpha bucket (0.025-0.05 -> --matrix-tint-5, 0.08-0.10 -> --matrix-tint-10, 0.18-0.30 -> --matrix-tint-30, 0.4 -> --fg-4, 0.5-0.6 -> --fg-3, 0.7-0.8 -> --fg-2). Adds --warn (#e0a040), --amber (alias of --warn), --crit (#e74c3c), and their tint-10 variants to :root, with ink-friendly light-mode overrides. Sweeps bare #ffaa00 / #e0a040 / #f59e0b / #ff4d4d / #e74c3c usages in the same files onto the new tokens. Files with var(--token, #fallback) patterns left alone — those were already token-driven and the fallbacks just provide safety. Login.css and inline TSX hex left for the per-page sweep.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
color: rgba(0, 255, 65, 0.6);
|
||||
color: var(--fg-3);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.fleet-filter-btn:last-child { border-right: none; }
|
||||
@@ -108,7 +108,7 @@
|
||||
.decky-ip {
|
||||
font-size: 0.7rem;
|
||||
opacity: 0.6;
|
||||
background: rgba(0, 255, 65, 0.08);
|
||||
background: var(--matrix-tint-10);
|
||||
padding: 2px 7px;
|
||||
}
|
||||
.decky-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; }
|
||||
@@ -314,7 +314,7 @@
|
||||
max-height: 90vh;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--matrix);
|
||||
box-shadow: 0 0 30px rgba(0, 255, 65, 0.25);
|
||||
box-shadow: 0 0 30px var(--matrix-tint-30);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
@@ -370,7 +370,7 @@
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-right: 1px solid var(--border);
|
||||
color: rgba(0, 255, 65, 0.6);
|
||||
color: var(--fg-3);
|
||||
font-family: inherit;
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 1.5px;
|
||||
@@ -433,9 +433,9 @@
|
||||
font-family: var(--font-mono);
|
||||
min-height: 80px;
|
||||
}
|
||||
.code-block .comment { color: rgba(0, 255, 65, 0.4); }
|
||||
.code-block .comment { color: var(--fg-4); }
|
||||
.code-block .str { color: var(--violet); }
|
||||
.code-block .key { color: rgba(0, 255, 65, 0.7); }
|
||||
.code-block .key { color: var(--fg-2); }
|
||||
.replay-cursor {
|
||||
display: inline-block;
|
||||
width: 7px;
|
||||
|
||||
Reference in New Issue
Block a user