Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit dc0209f

Browse files
committed
custom color scheme! improved dark mode!
1 parent 39aa208 commit dc0209f

File tree

2 files changed

+37
-23
lines changed

2 files changed

+37
-23
lines changed

docs/stylesheets/extra.css

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,64 @@
11
.request-h {
2-
font-size: 1em;
3-
font-weight: normal;
2+
font-size: 1em;
3+
font-weight: normal;
44
}
55

66
.request {
7-
margin-right: 10px;
8-
font-weight: bold;
7+
margin-right: 10px;
8+
font-weight: bold;
99
}
1010

1111
.request-get {
12-
color: #4ece4e;
12+
color: #4ece4e;
1313
}
1414

1515
.request-post {
16-
color: #4ee2c9;
16+
color: #4ee2c9;
1717
}
1818

1919
.request-put {
20-
color: #4999e9;
20+
color: #4999e9;
2121
}
2222

2323
.request-patch {
24-
color: #c857e4;
24+
color: #c857e4;
2525
}
2626

2727
.request-delete {
28-
color: #e2544a;
28+
color: #e2544a;
2929
}
3030

3131
.request-options {
32-
color: #e2c64a;
32+
color: #e2c64a;
3333
}
3434

35-
3635
.group-h {
37-
font-weight: bold;
36+
font-weight: bold;
3837
}
3938

40-
h1, h2 {
41-
font-weight: 500 !important;
39+
h1,
40+
h2 {
41+
font-weight: 500 !important;
4242
}
4343

4444
hr {
45-
padding-top: 2em;
45+
padding-top: 2em;
4646
}
4747

4848
h3 {
49-
padding-top: 1em;
50-
}
49+
padding-top: 1em;
50+
}
51+
52+
[data-md-color-scheme="slate"] {
53+
background-color: #050505;
54+
--md-default-bg-color: #050505;
55+
--md-code-bg-color: #130c1d;
56+
}
57+
58+
:root {
59+
--md-primary-fg-color: #9971ff;
60+
--md-primary-fg-color--light: #b294ff;
61+
--md-primary-fg-color--dark: #7842ff;
62+
--md-accent-fg-color: #f29bfd;
63+
--md-accent-fg-color--transparent: #f29bfd1a;
64+
}

mkdocs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ theme:
2626
palette:
2727
# Palette toggle for automatic mode
2828
- media: "(prefers-color-scheme)"
29-
primary: deep purple
30-
accent: indigo
29+
primary: custom
30+
accent: custom
3131
toggle:
3232
icon: material/brightness-auto
3333
name: Switch to light mode
3434
# Palette toggle for light mode
3535
- media: "(prefers-color-scheme: light)"
36-
primary: deep purple
37-
accent: indigo
36+
primary: custom
37+
accent: custom
3838
scheme: default
3939
toggle:
4040
icon: material/brightness-7
4141
name: Switch to dark mode
4242
# Palette toggle for dark mode
4343
- media: "(prefers-color-scheme: dark)"
44-
primary: deep purple
45-
accent: indigo
44+
primary: custom
45+
accent: custom
4646
scheme: slate
4747
toggle:
4848
icon: material/brightness-4

0 commit comments

Comments
 (0)