File size: 450 Bytes
101858b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

export type ThemeMode = 'idle' | 'busy' | 'error' | 'success' | 'alert';

export class ThemeService {
  private static currentMode: ThemeMode = 'idle';

  static setMode(mode: ThemeMode) {
    this.currentMode = mode;
    console.log(`[ThemeEngine] Mode shifted to: ${mode.toUpperCase()}`);
    // In a GUI, this would trigger CSS variable updates or broadcast to the frontend
  }

  static getMode(): ThemeMode {
    return this.currentMode;
  }
}