Skip to content

Commit 3d0ff6f

Browse files
style: a bit less christmassy code blocks
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 8ba8cf2 commit 3d0ff6f

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

docusaurus.config.ts

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,39 @@ import { join } from "node:path";
44

55
const { themes } = require("prism-react-renderer");
66
const codeTheme = themes.oneDark;
7+
78
codeTheme.plain.backgroundColor = "black";
9+
codeTheme.plain.color = "white";
10+
811
codeTheme.styles = [
912
...codeTheme.styles,
1013
{
11-
types: ["property", "tag", "symbol", "deleted", "important"],
12-
style: { color: "#00fff5" }
14+
types: ["comment"],
15+
style: { color: "#707070", fontStyle: "italic" }
1316
},
14-
{ types: ["keyword"], style: { color: "rgb(163, 174, 255)" } },
1517
{
16-
types: [
17-
"selector",
18-
"string",
19-
"char",
20-
"builtin",
21-
"inserted",
22-
"regex",
23-
"attr-value"
24-
],
25-
style: { color: "#ff5df9" }
18+
types: ["keyword", "atrule"],
19+
style: { color: "#b0baff" }
2620
},
2721
{
28-
types: ["variable", "operator", "function"],
22+
types: ["function", "builtin"],
2923
style: { color: "#ff5df9" }
3024
},
3125
{
32-
types: [
33-
"attr-name",
34-
"class-name",
35-
"maybe-class-name",
36-
"boolean",
37-
"constant",
38-
"number",
39-
"atrule"
40-
],
41-
style: { color: "#F7AF9D" }
26+
types: ["string", "inserted", "attr-value"],
27+
style: { color: "#b0baff" }
28+
},
29+
{
30+
types: ["constant", "boolean", "number"],
31+
style: { color: "white" }
32+
},
33+
{
34+
types: ["class-name", "maybe-class-name", "tag"],
35+
style: { color: "#b0baff" }
36+
},
37+
{
38+
types: ["property", "variable", "operator", "symbol"],
39+
style: { color: "white" }
4240
}
4341
];
4442

src/css/fonts.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:root {
22
font-family: "JetBrains Mono", monospace;
33
--ifm-font-family-base: "JetBrains Mono", monospace;
4-
--ifm-code-font-size: 14px;
4+
--ifm-font-family-monospace: "JetBrains Mono", monospace;
5+
--ifm-code-font-size: 13px;
56
--ifm-font-size-base: 100%;
67
}

0 commit comments

Comments
 (0)