Jacky Zhao
2023-06-03 4bdc17d4a11f0ba517c6d9124d296458332c536b
quartz/theme.ts
@@ -26,9 +26,8 @@
  return `https://fonts.googleapis.com/css2?family=${code}&family=${header}:wght@400;700&family=${body}:ital,wght@0,400;0,600;1,400;1,600&display=swap`
}
export function templateThemeStyles(theme: Theme, stylesheet: string) {
  return `
:root {
export function joinStyles(theme: Theme, ...stylesheet: string[]) {
  return `:root {
  --light: ${theme.colors.lightMode.light};
  --lightgray: ${theme.colors.lightMode.lightgray};
  --gray: ${theme.colors.lightMode.gray};
@@ -54,6 +53,5 @@
  --highlight: ${theme.colors.darkMode.highlight};
}
${stylesheet}
`
${stylesheet.join("\n\n")}`
}