Skip to content

Commit

Permalink
chore: minor style tweaks (#953)
Browse files Browse the repository at this point in the history
* use same colors as openfeature.dev
* use switch theme toggle
* improve searchability of troubleshooting topic

---------

Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert authored Oct 5, 2023
1 parent faa24a6 commit 9b97c7e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
20 changes: 20 additions & 0 deletions docs/assets/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* same trim colors as openfeature.dev */
:root {
--md-primary-fg-color: #5d5dff;
--md-primary-fg-color--light: #5d5dff;
--md-primary-fg-color--dark: #5d5dff;
--md-accent-fg-color: #8d8dff;
--md-accent-fg-color--transparent:rgba(141,141,255,0.1);
}

/* override slate (dark) to match openfeature.dev */
[data-md-color-scheme="slate"] {
--md-default-fg-color: hsla(240, 15%, 90%, 0.82);
--md-default-fg-color--light: hsla(240, 15%, 90%, 0.56);
--md-default-fg-color--lighter: hsla(240, 15%, 90%, 0.32);
--md-default-fg-color--lightest: hsla(240, 15%, 90%, 0.12);
--md-default-bg-color: hsla(240, 4%, 11%);
--md-default-bg-color--light: hsla(240, 4%, 11%, 0.54);
--md-default-bg-color--lighter: hsla(240, 4%, 11%, 0.26);
--md-default-bg-color--lightest: hsla(240, 4%, 11%, 0.07);
}
2 changes: 1 addition & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Result:

---

## Extra/Duplicate Events in File Syncs
## Extra (Duplicate) Events in File Syncs

When using the file sync, you may notice more events than you'd expect.
This is attributable to nuances in text editors and the OS/filesystem.
Expand Down
10 changes: 8 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ theme:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
accent: custom
toggle:
icon: material/brightness-7
icon: material/toggle-switch-outline
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
accent: custom
toggle:
icon: material/brightness-4
icon: material/toggle-switch-off
name: Switch to light mode
logo: assets/logo-white.svg
favicon: assets/logo-white.svg
Expand All @@ -27,6 +31,8 @@ theme:
- search.suggest
- search.highlight
- search.share
extra_css:
- assets/extra.css

docs_dir: docs
repo_url: https://github.com/open-feature/flagd
Expand Down

0 comments on commit 9b97c7e

Please sign in to comment.