Skip to content

Commit faf4877

Browse files
authored
docs: fix code black background colors (#10141)
### Description Fixes background colors for code blocks. ### Testing Instructions Before: ![CleanShot 2025-03-10 at 15 45 42](https://github.com/user-attachments/assets/dd2021da-1c4b-4bc8-8839-800ba77c8754) After: ![CleanShot 2025-03-10 at 15 45 56](https://github.com/user-attachments/assets/d619c48d-e0c3-466a-ac95-09cd481e2ac8)
1 parent a71cb02 commit faf4877

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/site/app/global.css

+8-6
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ code {
148148
--shiki-token-link: var(--ds-green-900);
149149
--shiki-token-inserted: var(--ds-green-900);
150150
--shiki-token-deleted: var(--ds-red-900);
151-
152-
background: black;
153151
}
154152
}
155153

@@ -271,10 +269,6 @@ code {
271269

272270
--ds-background-100: hsla(var(--ds-background-100-value), 1);
273271
--ds-background-200: hsla(var(--ds-background-200-value), 1);
274-
275-
pre {
276-
background: white;
277-
}
278272
}
279273

280274
.dark,
@@ -1204,3 +1198,11 @@ thead th:empty {
12041198
#nd-home-layout {
12051199
padding-top: 0;
12061200
}
1201+
1202+
pre {
1203+
background: white;
1204+
}
1205+
1206+
.dark pre {
1207+
background: black;
1208+
}

0 commit comments

Comments
 (0)