···6363 category: string
6464 categoryId: string
65656666+ // Url to folder with custom themes
6767+ // defaults to 'https://${cfg.baseUrl}/static/giscus'
6868+ themeUrl?: string
6969+7070+ // filename for light theme .css file
7171+ // defaults to 'light'
7272+ lightTheme?: string
7373+7474+ // filename for dark theme .css file
7575+ // defaults to 'dark'
7676+ darkTheme?: string
7777+6678 // how to map pages -> discussions
6779 // defaults to 'url'
6880 mapping?: "url" | "title" | "og:title" | "specific" | "number" | "pathname"
···8193 }
8294}
8395```
9696+9797+#### Custom CSS theme
9898+9999+Quartz supports custom theme for Giscus. To use a custom CSS theme, place the `.css` file inside the `quartz/static` folder and set the configuration values.
100100+101101+For example, if you have a light theme `light-theme.css`, a dark theme `dark-theme.css`, and your Quartz site is hosted at `https://example.com/`:
102102+103103+```ts
104104+afterBody: [
105105+ Component.Comments({
106106+ provider: 'giscus',
107107+ options: {
108108+ // Other options
109109+110110+ themeUrl: "https://example.com/static/giscus", // corresponds to quartz/static/giscus/
111111+ lightTheme: "light-theme", // corresponds to light-theme.css in quartz/static/giscus/
112112+ darkTheme: "dark-theme", // corresponds to dark-theme.css quartz/static/giscus/
113113+ }
114114+ }),
115115+],
116116+```