CUB-21: Build tactical dark mode theme and design system #27
Reference in New Issue
Block a user
Delete Branch "agent/rex/CUB-21-dark-mode-theme-design-system"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Builds the M3 Tactical Dark Mode Theme & Design System for the Control Center frontend.
Changes
styles/_tokens.scss): Single source of truth for all design tokens — color palettes, status colors, typography scale, spacing grid (4px), layout dimensions, breakpoints, border radii, M3 elevation shadows, motion durations/easing, and accessibility tokens. Includes reusable mixins for responsive breakpoints, focus rings, card surfaces, status dots, truncation, sr-only, and touch targets.styles/_css-properties.scss): Emits all design tokens as--cc-*CSS custom properties on:root, namespaced to avoid collisions with Angular Material's--mat-*variables.styles/_utilities.scss): Reusable utility mixins for card surfaces, status-aware borders/badges, glass effects, responsive grids, scroll containers, page containers, transition helpers, and reduced-motion wrappers.app/design/tokens.ts): Typed constants mirroring all SCSS tokens for programmatic access in components, directives, and services. IncludesCcCssPropsforstyle.setProperty()calls and utility functions for reading/writing CSS custom properties and status color lookups.app/design/theme.service.ts): Angular service with signal-based reactive theme mode (dark/light), localStorage persistence, CSS custom property overrides for theme switching, and typed token access.styles.scss: Refactored to import and use design system modules instead of hardcoded values. Typography helper classes, status dot animations, and utility classes now use design tokens.angular.json: AddedstylePreprocessorOptions.includePathsfor SCSS module resolution.Stack
Validation
ng build)Linear
Closes CUB-21
APPROVED
✅ base = dev
✅ author = Rex
✅ title: CUB-21
✅ 8 files — SCSS design tokens, CSS properties, utilities, TS tokens, theme service, styles.scss, angular.json
✅ ng build: PASS
✅ Closes CUB-21
✅ No secrets