Skip to content

Commit cb00e55

Browse files
NAOR YUVALNAOR YUVAL
authored andcommitted
docs: add extra.css to match spec dark theme
Made-with: Cursor
1 parent fb84699 commit cb00e55

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

docs/stylesheets/extra.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/* Match landing page dark theme #0f1419, #1a2332, #2d3a4d */
2+
[data-md-color-scheme="slate"] {
3+
--md-default-bg-color: #0f1419;
4+
--md-default-bg-color--light: #0f1419e8;
5+
--md-default-bg-color--lighter: #0f1419bf;
6+
--md-default-bg-color--lightest: #0f141980;
7+
--md-code-bg-color: #1a2332;
8+
--md-code-bg-color--light: #1a2332e6;
9+
--md-code-bg-color--lighter: #1a2332bf;
10+
--md-footer-bg-color: #0f1419de;
11+
--md-footer-bg-color--dark: #0a0e12;
12+
}
13+
14+
/* Header, tabs, search - darker surface */
15+
[data-md-color-scheme="slate"] .md-header,
16+
[data-md-color-scheme="slate"] .md-tabs,
17+
[data-md-color-scheme="slate"] .md-nav__source {
18+
background-color: #0f1419 !important;
19+
border-bottom-color: #2d3a4d !important;
20+
}
21+
22+
[data-md-color-scheme="slate"] .md-search__form {
23+
background-color: #1a2332 !important;
24+
}
25+
26+
[data-md-color-scheme="slate"] .md-search__form:hover {
27+
background-color: #2d3a4d !important;
28+
}
29+
30+
[data-md-color-scheme="slate"] .md-search__input {
31+
color: #e6edf3;
32+
}
33+
34+
[data-md-color-scheme="slate"] .md-search__input::placeholder {
35+
color: #8b9cb7;
36+
}
37+
38+
[data-md-color-scheme="slate"] .md-search__icon {
39+
color: #8b9cb7 !important;
40+
}
41+
42+
/* Sidebar */
43+
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__title {
44+
background-color: #0f1419 !important;
45+
}
46+
47+
@media screen and (min-width: 76.25em) {
48+
[data-md-color-scheme="slate"] .md-sidebar--primary {
49+
background-color: #0f1419;
50+
}
51+
}

mkdocs.unified.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ extra:
1515
protocol_version: "MPCP 1.0"
1616
spec_repo: "https://github.com/mpcp-protocol/mpcp-spec"
1717

18+
extra_css:
19+
- stylesheets/extra.css
20+
1821
theme:
1922
name: material
2023
logo: assets/logo.svg

0 commit comments

Comments
 (0)