mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 02:02:33 +00:00
11 lines
482 B
TypeScript
11 lines
482 B
TypeScript
/**
|
|
* Theme identity — portable core. No browser APIs, no React.
|
|
*
|
|
* `UiTheme` is the app-wide theme token. It lives in `src/core/` (not in a
|
|
* store) because pure core logic needs it too: the Vega chart-config mapping
|
|
* (`chartConfigFor`, see docs/architecture/05) keys off the same union, and core
|
|
* must never import from `src/app/`. The store and the document `data-theme`
|
|
* mirror this value; this is its single definition.
|
|
*/
|
|
export type UiTheme = 'light' | 'dark';
|