From 8913393d1adda086630d694ff2ecdcf064a5498e Mon Sep 17 00:00:00 2001 From: Moshe Vayner Date: Mon, 18 Nov 2024 23:19:54 -0500 Subject: [PATCH] feat(docs): add toggle for light/dark mode support --- mkdocs.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 46eeca8513119..bb831005e1c18 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -21,8 +21,19 @@ theme: logo: 'material/cloud-outline' favicon: 'img/logo-notext.svg' palette: - primary: 'teal' - accent: 'green' + # Palette toggle for light mode + - scheme: default + primary: 'teal' + accent: 'green' + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + # Palette toggle for dark mode + - scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to light mode plugins: - search - macros: