From c5c72a0c7c4b2c2f3718470b892dfd0c0dac020c Mon Sep 17 00:00:00 2001 From: NandaniThakur Date: Wed, 29 May 2024 16:31:58 +0530 Subject: [PATCH] adding dark mode to documenttion #23 --- mkdocs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/mkdocs.yml b/mkdocs.yml index a12e8e7..8c96aaf 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,6 +8,27 @@ repo_name: cli-surf theme: name: material + palette: + + # Palette toggle for automatic mode + - media: "(prefers-color-scheme)" + toggle: + icon: material/brightness-auto + name: Switch to light mode + + # Palette toggle for light mode + - media: "(prefers-color-scheme: light)" + scheme: default + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + # Palette toggle for dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to system preference nav: - index.md @@ -20,3 +41,7 @@ nav: - Styling: styling.md - Tests: tests.md - Structure: structure.md + + + + \ No newline at end of file