allow changing the font-family
This commit is contained in:
parent
86597aabca
commit
e083856801
2 changed files with 11 additions and 0 deletions
|
@ -60,6 +60,15 @@ function setCustomThemeVars(customTheme) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (customTheme.fonts) {
|
||||
const {fonts} = customTheme;
|
||||
if (fonts.general) {
|
||||
style.setProperty("--font-family", fonts.general);
|
||||
}
|
||||
if (fonts.monospace) {
|
||||
style.setProperty("--font-family-monospace", fonts.monospace);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function getCustomTheme(themeName) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue