Browse Source

enable dark theme (#3061)

* enable dark theme

Signed-off-by: Andy Lim <limchinhuat0221@gmail.com>

* add the theme features

Signed-off-by: Andy Lim <limchinhuat0221@gmail.com>

---------

Signed-off-by: Andy Lim <limchinhuat0221@gmail.com>
Co-authored-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Andy Lim 1 year ago
parent
commit
c0930f56dd
1 changed files with 11 additions and 0 deletions
  1. 11 0
      hack/api-docs/mkdocs.yml

+ 11 - 0
hack/api-docs/mkdocs.yml

@@ -7,6 +7,17 @@ edit_uri: ./edit/main/docs/
 remote_branch: gh-pages
 theme:
   name: material
+  palette:
+    - scheme: default
+      media: "(prefers-color-scheme: light)"
+      toggle:
+        icon: material/brightness-7
+        name: Switch to dark mode
+    - scheme: slate
+      media: "(prefers-color-scheme: dark)"
+      toggle:
+        icon: material/brightness-4
+        name: Switch to light mode  
   features:
     - navigation.tabs
     - navigation.indexes