Skip to content

Commit 9b97c7e

Browse files
authored
chore: minor style tweaks (#953)
* use same colors as openfeature.dev * use switch theme toggle * improve searchability of troubleshooting topic --------- Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent faa24a6 commit 9b97c7e

3 files changed

Lines changed: 29 additions & 3 deletions

File tree

docs/assets/extra.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* same trim colors as openfeature.dev */
2+
:root {
3+
--md-primary-fg-color: #5d5dff;
4+
--md-primary-fg-color--light: #5d5dff;
5+
--md-primary-fg-color--dark: #5d5dff;
6+
--md-accent-fg-color: #8d8dff;
7+
--md-accent-fg-color--transparent:rgba(141,141,255,0.1);
8+
}
9+
10+
/* override slate (dark) to match openfeature.dev */
11+
[data-md-color-scheme="slate"] {
12+
--md-default-fg-color: hsla(240, 15%, 90%, 0.82);
13+
--md-default-fg-color--light: hsla(240, 15%, 90%, 0.56);
14+
--md-default-fg-color--lighter: hsla(240, 15%, 90%, 0.32);
15+
--md-default-fg-color--lightest: hsla(240, 15%, 90%, 0.12);
16+
--md-default-bg-color: hsla(240, 4%, 11%);
17+
--md-default-bg-color--light: hsla(240, 4%, 11%, 0.54);
18+
--md-default-bg-color--lighter: hsla(240, 4%, 11%, 0.26);
19+
--md-default-bg-color--lightest: hsla(240, 4%, 11%, 0.07);
20+
}

docs/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Result:
4747

4848
---
4949

50-
## Extra/Duplicate Events in File Syncs
50+
## Extra (Duplicate) Events in File Syncs
5151

5252
When using the file sync, you may notice more events than you'd expect.
5353
This is attributable to nuances in text editors and the OS/filesystem.

mkdocs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ theme:
66
# Palette toggle for light mode
77
- media: "(prefers-color-scheme: light)"
88
scheme: default
9+
primary: custom
10+
accent: custom
911
toggle:
10-
icon: material/brightness-7
12+
icon: material/toggle-switch-outline
1113
name: Switch to dark mode
1214

1315
# Palette toggle for dark mode
1416
- media: "(prefers-color-scheme: dark)"
1517
scheme: slate
18+
primary: custom
19+
accent: custom
1620
toggle:
17-
icon: material/brightness-4
21+
icon: material/toggle-switch-off
1822
name: Switch to light mode
1923
logo: assets/logo-white.svg
2024
favicon: assets/logo-white.svg
@@ -27,6 +31,8 @@ theme:
2731
- search.suggest
2832
- search.highlight
2933
- search.share
34+
extra_css:
35+
- assets/extra.css
3036

3137
docs_dir: docs
3238
repo_url: https://github.com/open-feature/flagd

0 commit comments

Comments
 (0)