Skip to content

Commit fe9b1a6

Browse files
authored
fix: punctuation symbols not visible in dark mode syntax highlighting (#576)
Add explicit color styling for `.highlight .p` (punctuation tokens) in both light and dark modes using Shibuya theme's `--gray-12` variable. This ensures brackets, parentheses, commas, and other punctuation symbols are properly visible when viewing code examples in dark mode.
1 parent c74ea7c commit fe9b1a6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/_static/syntax-highlighting.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ html.light .highlight .sx { /* String.Other */
112112
color: #d73a49 !important;
113113
}
114114

115+
html.light .highlight .p { /* Punctuation */
116+
color: var(--gray-12) !important;
117+
}
118+
115119
/* =====================================================
116120
* Dark Mode Syntax Highlighting
117121
* ===================================================== */
@@ -208,6 +212,10 @@ html.dark .highlight .sx { /* String.Other */
208212
color: #a5d6ff !important;
209213
}
210214

215+
html.dark .highlight .p { /* Punctuation */
216+
color: var(--gray-12) !important;
217+
}
218+
211219
/* =====================================================
212220
* Common Styles (Both Themes)
213221
* ===================================================== */

0 commit comments

Comments
 (0)