Skip to content

Commit 8649773

Browse files
icons and logos added
added light and dark logos, favicon, and css to swap logos automatically
1 parent ad60773 commit 8649773

File tree

5 files changed

+65
-5
lines changed

5 files changed

+65
-5
lines changed

docs/assets/extra.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* Default (light) */
2+
:root > body {
3+
--pm-logo: url("logo-light.svg");
4+
}
5+
6+
/* Dark (Material's slate scheme) */
7+
[data-md-color-scheme="slate"] {
8+
--pm-logo: url("logo-dark.svg");
9+
}
10+
11+
/* Apply to the header logo image */
12+
.md-header__button.md-logo img,
13+
.md-header__button.md-logo svg {
14+
content: var(--pm-logo);
15+
}

docs/assets/favicon.png

3.53 KB
Loading

docs/assets/logo-dark.svg

Lines changed: 20 additions & 0 deletions
Loading

docs/assets/logo-light.svg

Lines changed: 20 additions & 0 deletions
Loading

mkdocs.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,29 @@ site_description: Official documentation for Pirate MIDI products and tools
33
site_url: https://docs.piratemidi.com
44

55
theme:
6+
favicon: assets/favicon.png
67
name: material
78
features:
89
- navigation.tabs
910
- navigation.sections
1011
- content.code.copy
1112
- search.suggest
1213
- search.highlight
14+
logo: assets/logo-light.svg
1315
palette:
14-
# Light mode (auto-applies if user prefers light)
16+
# Light mode
1517
- media: "(prefers-color-scheme: light)"
1618
scheme: default
1719
primary: indigo
18-
accent: indigo
20+
accent: deep orange
1921
toggle:
2022
icon: material/weather-night
2123
name: Switch to dark mode
22-
# Dark mode (auto-applies if user prefers dark)
24+
# Dark mode
2325
- media: "(prefers-color-scheme: dark)"
2426
scheme: slate
25-
primary: indigo
26-
accent: indigo
27+
primary: teal
28+
accent: lime
2729
toggle:
2830
icon: material/weather-sunny
2931
name: Switch to light mode
@@ -53,3 +55,6 @@ nav:
5355
- Device API:
5456
- Getting Started: device-api/index.md
5557
- Support: support/index.md
58+
59+
extra_css:
60+
- assets/extra.css

0 commit comments

Comments
 (0)