mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 21:47:01 +02:00
fix(v2): refactor color mode system (#3012)
* refactor color mode system to enable all possibilities * fix destructuring bug * colorMode validation + deprecation + minor name changes + doc * rename method noFlashColorMode * fix doc wording * docs wording * docs wording * re-enable theme config merging/normalization + colorMode fixes * document theme normalization * code review changes
This commit is contained in:
parent
cf97662eef
commit
c2bb03ab00
8 changed files with 127 additions and 71 deletions
|
@ -81,6 +81,11 @@ module.exports = {
|
|||
],
|
||||
],
|
||||
themeConfig: {
|
||||
colorMode: {
|
||||
defaultMode: 'light',
|
||||
disableSwitch: false,
|
||||
respectPrefersColorScheme: true,
|
||||
},
|
||||
announcementBar: {
|
||||
id: 'supportus',
|
||||
content:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue