Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

feat(monitor/frontend): ethos design tokens (colors, type, density)

CarterPerez-deva34a175f1453
diff --git a/PROJECTS/advanced/monitor-the-situation-dashboard/frontend/src/lib/ethos-tokens.ts b/PROJECTS/advanced/monitor-the-situation-dashboard/frontend/src/lib/ethos-tokens.ts
new file mode 100644
index 00000000..789a2df9
--- /dev/null
+++ b/PROJECTS/advanced/monitor-the-situation-dashboard/frontend/src/lib/ethos-tokens.ts
@@ -0,0 +1,28 @@
+// ©AngelaMos | 2026
+// ethos-tokens.ts
+
+export const colors = {
+ bg: '#0a0a0a',
+ bgPanel: '#0f0f0f',
+ bgRowHover: '#141414',
+ fg1: '#e5e5e5',
+ fg2: '#a3a3a3',
+ fg3: '#6b7280',
+ fg4: '#404040',
+ ok: '#4ade80',
+ amber: '#f59e0b',
+} as const;
+
+export const density = {
+ rowPy: 4,
+ rowPx: 8,
+ lineHeightTight: 1.25,
+ letterSpacingLabel: '0.08em',
+} as const;
+
+export const typeSizes = {
+ body: 13,
+ label: 11,
+ numL: 20,
+ numXL: 28,
+} as const;
diff --git a/PROJECTS/advanced/monitor-the-situation-dashboard/frontend/src/styles/_tokens.scss b/PROJECTS/advanced/monitor-the-situation-dashboard/frontend/src/styles/_tokens.scss
index be1f6dd6..2bfdcd91 100644
--- a/PROJECTS/advanced/monitor-the-situation-dashboard/frontend/src/styles/_tokens.scss
+++ b/PROJECTS/advanced/monitor-the-situation-dashboard/frontend/src/styles/_tokens.scss
@@ -166,3 +166,46 @@ $container-lg: 32rem;
$container-xl: 36rem;
$container-2xl: 42rem;
$container-full: 100%;
+
+// ============================================================================
+// ETHOS TOKENS — operator-grade dashboard surface
+//
+// Per docs/design/ethos-reference.md (also mirrored in _ethos.scss).
+// Used by /pages/dashboard/, /pages/globe/, /pages/panels/. NOT used by
+// auth pages — those keep the template's SCSS variables above.
+// ============================================================================
+
+@import 'ethos';
+
+:root {
+ // Background tiers
+ --bg: #0a0a0a; // very dark neutral, NOT pure black
+ --bg-panel: #0f0f0f; // panel surface, one tier lighter
+ --bg-row-hover: #141414; // table-row hover, subtle (no interactive theatre)
+
+ // Text tiers (3 + 1 muted/border)
+ --fg-1: #e5e5e5; // primary
+ --fg-2: #a3a3a3; // secondary (labels, axes, headers)
+ --fg-3: #6b7280; // muted (timestamps, footnotes)
+ --fg-4: #404040; // borders / lines
+
+ // Accents — ONE green, ONE amber. That is all.
+ --ok: #4ade80; // live / healthy / busy
+ --amber: #f59e0b; // stale / breached / anomaly. NEVER for decoration.
+
+ // Type
+ --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
+ --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", monospace;
+
+ // Density (matches the spec — small padding, tight line-height)
+ --row-py: 4px;
+ --row-px: 8px;
+ --line-height-tight: 1.25;
+ --letter-spacing-label: 0.08em;
+
+ // Sizes — intentionally smaller than SaaS defaults for operator density
+ --type-body: 13px;
+ --type-label: 11px; // UPPERCASE labels
+ --type-num-l: 20px; // KPI numbers
+ --type-num-xl: 28px; // hero KPI numbers (rare; only top-of-panel)
+}