Skip to content

Commit 7010a3e

Browse files
Updated site colors
1 parent 16a6940 commit 7010a3e

2 files changed

Lines changed: 41 additions & 11 deletions

File tree

docs/assets/stylesheets/extra.css

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
/* ─── Salesforce Brand Colors (dark palette) ────────────────────────────────── */
2-
/* Primary: #0176d3 | Header: #014d86 | Tabs: #003d6e */
1+
/* ─── Salesforce Brand Colors ────────────────────────────────────────────────
2+
Header: #014d86 Tab bar: #003d6e Links/accents: #0176d3
3+
Applied to both light (default) and dark (slate) schemes.
4+
─────────────────────────────────────────────────────────────────────────── */
35

4-
:root,
6+
/* Light mode */
7+
:root {
8+
--md-primary-fg-color: #0176d3;
9+
--md-primary-fg-color--light: #2196c4;
10+
--md-primary-fg-color--dark: #014486;
11+
--md-accent-fg-color: #0176d3;
12+
--md-accent-fg-color--transparent: #0176d31a;
13+
}
14+
15+
/* Dark mode */
516
[data-md-color-scheme="slate"] {
617
--md-primary-fg-color: #0176d3;
718
--md-primary-fg-color--light: #2196c4;
@@ -10,19 +21,27 @@
1021
--md-accent-fg-color--transparent: #33b4e71a;
1122
}
1223

13-
/* ─── Navigation header ─────────────────────────────────────────────────────── */
24+
/* ─── Navigation header (both modes) ────────────────────────────────────────── */
1425
.md-header {
15-
background-color: #014d86;
26+
background-color: #014d86 !important;
1627
}
1728

1829
.md-tabs {
19-
background-color: #003d6e;
30+
background-color: #003d6e !important;
31+
}
32+
33+
/* Ensure header text/icons stay white in light mode */
34+
.md-header,
35+
.md-header .md-header__topic,
36+
.md-header .md-search__input::placeholder,
37+
.md-tabs__link {
38+
color: #ffffff;
2039
}
2140

22-
/* ─── Slightly tighten up image display ─────────────────────────────────────── */
41+
/* ─── Image display ──────────────────────────────────────────────────────────── */
2342
article img {
2443
max-width: 100%;
2544
border-radius: 4px;
26-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
45+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
2746
margin: 0.5em 0;
2847
}

mkdocs.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,20 @@ site_dir: site
1212
theme:
1313
name: material
1414
palette:
15-
scheme: slate
16-
primary: custom
17-
accent: custom
15+
# Dark mode (default)
16+
- scheme: slate
17+
primary: custom
18+
accent: custom
19+
toggle:
20+
icon: material/brightness-7
21+
name: Switch to light mode
22+
# Light mode
23+
- scheme: default
24+
primary: custom
25+
accent: custom
26+
toggle:
27+
icon: material/brightness-4
28+
name: Switch to dark mode
1829
font:
1930
text: Roboto
2031
code: Roboto Mono

0 commit comments

Comments
 (0)