| 42 | |
| 43 | /** A loaded custom theme: its manifest fields + the raw `theme.css` to inject. */ |
| 44 | export interface CustomTheme { |
| 45 | /** Stable id from the folder name, e.g. `soft-paper`. */ |
| 46 | slug: string |
| 47 | name: string |
| 48 | author?: string |
| 49 | version?: string |
| 50 | description?: string |
| 51 | modes: CustomThemeModes |
| 52 | /** Raw `theme.css` text, injected verbatim when this theme is active. */ |
| 53 | css: string |
| 54 | preview?: { light?: string; dark?: string } |
| 55 | /** Set when the folder couldn't be used; surfaced in the UI. */ |
| 56 | error?: string |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * The semantic palette of the old TOML format. Retained only as the input to |
nothing calls this directly
no outgoing calls
no test coverage detected