Introduce CSS custom properties for consistent theming #7

Closed
opened 2026-02-15 04:56:31 -08:00 by kyle · 0 comments
Owner

Problem: 100+ hardcoded color values scattered across CSS files made theming inconsistent and maintenance difficult. Dark mode overrides were duplicated between files.

Solution: Added block with ~25 CSS custom properties for colors, radii, shadows, and gradients. Replaced ~93 hardcoded color values in components.css and updated main.css to use variables throughout.

Files changed:

    • Added :root variables, replaced hardcoded colors
    • Replaced ~93 hardcoded colors with variable references
**Problem:** 100+ hardcoded color values scattered across CSS files made theming inconsistent and maintenance difficult. Dark mode overrides were duplicated between files. **Solution:** Added block with ~25 CSS custom properties for colors, radii, shadows, and gradients. Replaced ~93 hardcoded color values in components.css and updated main.css to use variables throughout. **Files changed:** - - Added :root variables, replaced hardcoded colors - - Replaced ~93 hardcoded colors with variable references
kyle closed this issue 2026-02-15 05:05:26 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kyle/SignageHTML#7