Skip to main content

Series: Gestalt Color System - Core and Flow


Theme Switching as Field Reconfiguration

Physical Metaphor for Theme Changes

Each theme defines a “Core gravity field” with a specific Hue center. When you switch themes, you are reconfiguring the entire gravity field.

ThemeManager Class Architecture

File Structure Overview

Class Structure


Theme Configuration Structure

ThemeConfig Interface

Built-in Theme Registry


Theme Initialization Flow

The init() Method


Theme Application Process

applyTheme() Method - Activate New Gravity Field


Monaco Editor Integration

CSS Variable to Editor Color Mapping

Monaco Syntax Colors


Theme Change Event System

Event Propagation - Gravity Wave Broadcast


Mode Switching

Dark/Light Mode Toggle - Gravity Field Polarity Inversion


Custom and Hybrid Themes

Theme Type Architecture


THE CENTER

How ThemeManager Enables Consistent Information Flow

The ThemeManager is the central orchestrator that ensures color-coded information flows consistently through theme changes:
When a user switches themes, the information hierarchy remains intact. File types are still identifiable by color. Status badges still communicate success/warning/danger. The “string soup” problem is avoided because the semantic color system persists across theme changes.

Integration Flow Summary


Decision Flow

When to use Core vs Flow: The five decision rules