chore(type): export attribute for theme key (#933)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
parent
d6e79d1ea6
commit
6b90d03ca6
@ -9,6 +9,11 @@ export interface ColorScheme {
|
|||||||
highlight: string
|
highlight: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Colors {
|
||||||
|
lightMode: ColorScheme
|
||||||
|
darkMode: ColorScheme
|
||||||
|
}
|
||||||
|
|
||||||
export interface Theme {
|
export interface Theme {
|
||||||
typography: {
|
typography: {
|
||||||
header: string
|
header: string
|
||||||
@ -16,12 +21,11 @@ export interface Theme {
|
|||||||
code: string
|
code: string
|
||||||
}
|
}
|
||||||
cdnCaching: boolean
|
cdnCaching: boolean
|
||||||
colors: {
|
colors: Colors
|
||||||
lightMode: ColorScheme
|
|
||||||
darkMode: ColorScheme
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ThemeKey = keyof Colors
|
||||||
|
|
||||||
const DEFAULT_SANS_SERIF =
|
const DEFAULT_SANS_SERIF =
|
||||||
'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif'
|
'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif'
|
||||||
const DEFAULT_MONO = "ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace"
|
const DEFAULT_MONO = "ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace"
|
||||||
|
Loading…
Reference in New Issue
Block a user