Skip to content

Commit cf92930

Browse files
committed
fix theme
1 parent 0eb28a9 commit cf92930

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
color-scheme: light;
1111
}
1212

13-
html.dark {
13+
html[data-theme="dark"] {
1414
color-scheme: dark;
1515
}
1616

@@ -24,8 +24,8 @@
2424
scrollbar-color: #778292 #e7ecf2;
2525
scrollbar-width: thin;
2626
}
27-
html.dark,
28-
html.dark .custom-scrollbar {
27+
html[data-theme="dark"],
28+
html[data-theme="dark"] .custom-scrollbar {
2929
scrollbar-color: #8a99ae #313c50;
3030
scrollbar-width: thin;
3131
}

src/styles/expressive-code.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ html .expressive-code-overrides .expressive-code .copy button div {
5050
--tmLineBrdCol: hsl(222.77deg 38.21% 51.76% / 55.57%);
5151
}
5252

53-
html.dark .expressive-code-overrides .expressive-code .ec-line.mark {
53+
html[data-them="dark"].dark
54+
.expressive-code-overrides
55+
.expressive-code
56+
.ec-line.mark {
5457
--tmLineBgCol: hsl(214deg 31% 21% / 69%);
5558
--tmLineBrdCol: hsl(209deg 61% 70% / 57%);
5659
}

0 commit comments

Comments
 (0)