Better theme export

This commit is contained in:
Gregory Schier
2024-05-24 18:54:30 -07:00
parent f3024a259e
commit 4f736b4656
3 changed files with 24 additions and 29 deletions

View File

@@ -220,7 +220,7 @@ export function getThemeCSS(theme: YaakTheme): string {
console.error(err);
}
return [`/* ${theme.name} */`, `[data-theme="${theme.id}"] {`, themeCSS, '}'].join('\n');
return [`/* ${theme.name} */`, `[data-theme="${theme.id}"] {`, indent(themeCSS), '}'].join('\n');
}
export function addThemeStylesToDocument(theme: YaakTheme) {