From 7776de03a2a29c59251bb136debdb7fc6e34b88e Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 17 Dec 2024 18:29:14 +0000 Subject: [PATCH 1/2] fix(docs): disable dark mode, override theme better color contrast/accessibility --- docs/styles/theme.css | 5 +++++ mkdocs.yml | 16 ++-------------- 2 files changed, 7 insertions(+), 14 deletions(-) create mode 100644 docs/styles/theme.css diff --git a/docs/styles/theme.css b/docs/styles/theme.css new file mode 100644 index 0000000..0668cc4 --- /dev/null +++ b/docs/styles/theme.css @@ -0,0 +1,5 @@ +[data-md-color-scheme="default"] { + --md-primary-fg-color: #045b86; + --md-accent-fg-color: #044869; + --md-mermaid-label-fg-color: #000000; +} diff --git a/mkdocs.yml b/mkdocs.yml index 7bc1a5f..15897eb 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -10,20 +10,7 @@ theme: - navigation.tabs - toc.integrate palette: - - media: "(prefers-color-scheme: light)" - scheme: default - primary: blue - accent: green - toggle: - icon: material/toggle-switch-off-outline - name: Switch to dark mode - - media: "(prefers-color-scheme: dark)" - scheme: slate - primary: blue - accent: green - toggle: - icon: material/toggle-switch - name: Switch to light mode + scheme: default extra: analytics: @@ -38,6 +25,7 @@ plugins: extra_css: - https://use.fontawesome.com/releases/v6.1.2/css/all.css + - styles/theme.css markdown_extensions: - admonition From 04bf6c429ff514dd8c9d0da4f5c039ca35799deb Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 17 Dec 2024 18:29:40 +0000 Subject: [PATCH 2/2] fix(docs): update roadmap colors --- docs/README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/README.md b/docs/README.md index 2c2f9b0..6fca06d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -52,13 +52,10 @@ timeline 'logLevel': 'debug', 'theme': 'default' , 'themeVariables': { - 'cScale0': '#ffa500', 'cScaleLabel0': '#000000', - 'cScale1': '#ffff00', 'cScaleLabel1': '#000000', - 'cScale2': '#ffff00', 'cScaleLabel2': '#000000', - 'cScale3': '#008000', 'cScaleLabel3': '#ffffff', - 'cScale4': '#0000ff', 'cScaleLabel4': '#ffffff', - 'cScale5': '#4b0082', 'cScaleLabel5': '#ffffff', - 'cScale6': '#000000', 'cScaleLabel6': '#ffffff' + 'cScale0': 'orange', + 'cScaleLabel0': 'black', + 'cScale1': 'yellow', + 'cScaleLabel1': 'black' } } }%%