Skip to content

Commit

Permalink
Add dark theme support for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaxin committed Nov 7, 2024
1 parent 9b08745 commit 2e4e176
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ site_url: https://aminalaee.dev/sqladmin
theme:
name: "material"
palette:
primary: white
- media: "(prefers-color-scheme: light)"
scheme: default
primary: white
toggle:
icon: material/lightbulb
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
toggle:
icon: material/lightbulb-outline
name: Switch to light mode
features:
- content.code.copy

Expand Down

0 comments on commit 2e4e176

Please sign in to comment.