Skip to content

Commit f688716

Browse files
committed
make shiki support custom theme class
1 parent e74a0b0 commit f688716

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

app/styles/app.css

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -441,16 +441,12 @@ pre .logger.log-log svg {
441441
margin-right: 9px;
442442
}
443443

444-
@media (prefers-color-scheme: light) {
445-
.shiki.tokyo-night {
446-
display: none;
447-
}
444+
html:not(.dark) .shiki.tokyo-night {
445+
display: none;
448446
}
449447

450-
@media (prefers-color-scheme: dark) {
451-
.shiki.github-light {
452-
display: none;
453-
}
448+
html.dark .shiki.github-light {
449+
display: none;
454450
}
455451

456452
/* TanStack Router Devtools */

0 commit comments

Comments
 (0)