Blame · Line-by-line history
theme.ts
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| c53cf00 | 1 | import { colors } from '../theme/colors'; |
| 2 | ||
| 3 | export type ThemeMode = 'dark' | 'light'; | |
| 4 | ||
| 5 | // Currently only dark mode is supported — matches Gluecron's design. | |
| 6 | // Light mode scaffolding is here for future expansion. | |
| 7 | let _mode: ThemeMode = 'dark'; | |
| 8 | ||
| 9 | export function getThemeMode(): ThemeMode { | |
| 10 | return _mode; | |
| 11 | } | |
| 12 | ||
| 13 | export function setThemeMode(mode: ThemeMode): void { | |
| 14 | _mode = mode; | |
| 15 | } | |
| 16 | ||
| 17 | export function getColors() { | |
| 18 | return colors; | |
| 19 | } |