Skip to content

Commit 4fa2806

Browse files
authored
Merge pull request #279 from rivet-dev/NicholasKissel/docs-dark-theme
fix(docs): restore dark theme styling
2 parents cb42971 + 32713ff commit 4fa2806

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

docs/docs.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"colors": {
1010
"primary": "#ff4f00",
11-
"light": "#ff4f00",
12-
"dark": "#ff4f00"
11+
"light": "#ff6a2a",
12+
"dark": "#cc3f00"
1313
},
1414
"favicon": "/favicon.svg",
1515
"logo": {
@@ -36,6 +36,7 @@
3636
"href": "https://discord.gg/auCecybynK"
3737
},
3838
{
39+
"label": "GitHub",
3940
"type": "github",
4041
"href": "https://github.com/rivet-dev/sandbox-agent"
4142
}
@@ -127,5 +128,6 @@
127128
]
128129
}
129130
]
130-
}
131+
},
132+
"styles": ["/theme.css"]
131133
}

docs/theme.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ body {
2020
color: var(--sa-text);
2121
}
2222

23-
/*
2423
a {
2524
color: var(--sa-primary);
2625
}
@@ -41,6 +40,13 @@ select {
4140
color: var(--sa-text);
4241
}
4342

43+
code,
44+
pre {
45+
background-color: var(--sa-card);
46+
border: 1px solid var(--sa-border);
47+
color: var(--sa-text);
48+
}
49+
4450
.card,
4551
.mintlify-card,
4652
.docs-card {
@@ -64,4 +70,3 @@ select {
6470
.alert-danger {
6571
border-color: var(--sa-danger);
6672
}
67-
*/

0 commit comments

Comments
 (0)