From c2833bc8cae5ce33b13626d3b4076f485bc4d460 Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Thu, 4 May 2023 10:13:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=8D=20/=20=F0=9F=96=A4=20-=20light=20m?= =?UTF-8?q?ode=20/=20datk=20mode=20switch=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/stylesheets/extra.css | 4 ++++ mkdocs.yml | 21 ++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 docs/stylesheets/extra.css diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 00000000..81d3860e --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,4 @@ +:root { + --md-primary-fg-color: #8315F9; + --md-accent-fg-color: #00FFCE; +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 7dda7486..ed0a3a35 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -21,6 +21,9 @@ extra: provider: google property: G-P7ZG0Y19G5 +extra_css: + - stylesheets/extra.css + nav: - Home: index.md - API reference: @@ -36,7 +39,8 @@ nav: - Utils: draw/utils.md - Notebook: - Utils: notebook/utils.md - - Video: video.md + - Video: + - Utils: video.md - Changelog: changelog.md theme: @@ -44,8 +48,19 @@ theme: logo: https://media.roboflow.com/open-source/supervision/supervision-lenny.png favicon: https://media.roboflow.com/open-source/supervision/supervision-lenny.png palette: - primary: 'deep purple' - accent: 'teal' + # Palette for light mode + - scheme: default + primary: 'custom' + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + # Palette toggle for dark mode + - scheme: slate + primary: 'custom' + toggle: + icon: material/brightness-4 + name: Switch to light mode font: text: Roboto code: Roboto Mono