Skip to content

Commit

Permalink
Merge pull request #37 from fdm-monster/feat/36-set-theme-to-system-d…
Browse files Browse the repository at this point in the history
…efault

feat: system decided background color
  • Loading branch information
mkevenaar authored Jan 25, 2024
2 parents 88550d9 + 32b9d06 commit d60cb12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ const config: Config = {
copyright: `Copyright © ${new Date().getFullYear()} David Zwart. Built with Docusaurus.`
},
prism: {
colorMode: {
// Let the system decide with 'respectPrefersColorScheme' below
// defaultMode: 'dark',
respectPrefersColorScheme: true,
},
theme: prismThemes.github,
darkTheme: prismThemes.dracula
}
Expand Down

0 comments on commit d60cb12

Please sign in to comment.