Skip to content

Commit 051eb24

Browse files
committed
fix: resolve inline code visibility issue in light mode by adding 'codeBackground' color #460
1 parent e52cb27 commit 051eb24

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

apps/landing/devup.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"text": "#2F2F2F",
99
"background": "#FFF",
1010
"containerBackground": "#FFF",
11+
"codeBackground": "#F5F5F5",
1112
"border": "#E0E0E0",
1213
"success": "#4CAF50",
1314
"warning": "#FF9800",
@@ -53,6 +54,7 @@
5354
"text": "#EDEDED",
5455
"background": "#131313",
5556
"containerBackground": "#373639",
57+
"codeBackground": "#2E2E2E",
5658
"border": "#333",
5759
"success": "#4CAF50",
5860
"warning": "#FF9800",

apps/landing/src/components/mdx/components/CustomCodeBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function CustomCodeBlock({ children }: { children: string }) {
44
return (
55
<Box
66
as="code"
7-
bg="$containerBackground"
7+
bg="$codeBackground"
88
borderRadius="0.25rem"
99
color="$text"
1010
padding="0.25rem"

packages/components/devup.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"text": "#272727",
1212
"background": "#F5F5F5",
1313
"containerBackground": "#FFFFFF",
14+
"codeBackground": "#F5F5F5",
1415
"border": "#E4E4E4",
1516
"success": "#2CA353",
1617
"warning": "#FF9800",
@@ -74,6 +75,7 @@
7475
"text": "#F6F6F6",
7576
"background": "#202020",
7677
"containerBackground": "#1E1E1E",
78+
"codeBackground": "#2E2E2E",
7779
"border": "#434343",
7880
"success": "#4CAF50",
7981
"warning": "#FF9800",

0 commit comments

Comments
 (0)