File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 36
36
}
37
37
38
38
@media (prefers-color-scheme : dark) {
39
- : not ([theme = "light" ]) .background\:black\:dark {
40
- background : black ;
39
+ html : not ([theme = "light" ]) * .background\:black\:dark {
40
+ background : red ;
41
41
}
42
- : not ([theme = "light" ]) .color\:white\:dark {
42
+ html : not ([theme = "light" ]) * .color\:white\:dark {
43
43
color : white;
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ const makeRuleForTheme = (className) => {
129
129
[ style , value , theme ] = className . split ( ':' ) ;
130
130
if ( theme == 'dark' || theme == 'light' ) {
131
131
let rule = '[theme="' + theme + '"] .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}' ;
132
- let reverseRule = ':not([theme="' + themes [ 1 - themes . indexOf ( theme ) ] + '"]) .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}' ;
132
+ let reverseRule = 'html :not([theme="' + themes [ 1 - themes . indexOf ( theme ) ] + '"]) * .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}' ;
133
133
tempStyleList . push ( rule ) ;
134
134
themeCSS [ theme ] . push ( reverseRule ) ;
135
135
return rule ;
You can’t perform that action at this time.
0 commit comments