Skip to content

Commit e0939b9

Browse files
committed
style(prism): update code block styling for better visibility
Add background color to non-highlighted code blocks and set default text color to white for better contrast and readability
1 parent 816c841 commit e0939b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/designs/styles/prism.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ pre::-webkit-scrollbar-thumb {
5757
border-radius: 0 0 0.5em 0.5em;
5858
}
5959

60+
code:not(.code-highlight) {
61+
@apply bg-base-300;
62+
}
63+
6064
/* Selection */
6165

6266
pre,
@@ -474,4 +478,5 @@ pre[class*='language-'] {
474478

475479
.code-line {
476480
display: block;
481+
color: white;
477482
}

0 commit comments

Comments
 (0)