# Description of Changes Move frontend code into `core` folder and add infrastructure for `proprietary` folder to include premium, non-OSS features
9 lines
264 B
TypeScript
9 lines
264 B
TypeScript
// Theme constants and utilities
|
|
|
|
export type ThemeMode = 'light' | 'dark' | 'rainbow';
|
|
|
|
// Detect OS theme preference
|
|
export function getSystemTheme(): 'light' | 'dark' {
|
|
return window?.matchMedia?.('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
}
|