@@ -9,13 +9,13 @@ $_lightText: '[lwthemetextcolor="bright"]';
99$_darkText : " :not(#{$_lightText } )" ;
1010
1111$_sysDark : " [lwt-default-theme-in-dark-mode]" ;
12- $_lightStyle : ' [style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"]' ;
13- $_darkStyle : ' [style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"]' ;
12+ $builtInLightStyle : ' :is( [style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"], [builtintheme][devtoolstheme="light"]) ' ;
13+ $builtInDarkStyle : ' :is( [style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"], [builtintheme][devtoolstheme="dark"]) ' ;
1414
1515// == Mixin =====================================================================
1616@function built-in-default-theme () {
1717 $oldDefault : selector .append (" :root" , $_lightdark );
18- $newDefault : selector .append (" :root" , " :is(#{$_lightStyle } , #{$_darkStyle } )" );
18+ $newDefault : selector .append (" :root" , " :is(#{$builtInLightStyle } , #{$builtInDarkStyle } )" );
1919
2020 @return " #{$oldDefault } , #{$newDefault } " ;
2121}
@@ -29,14 +29,14 @@ $_darkStyle: '[style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rg
2929
3030@function built-in-light-theme () {
3131 $oldLight : selector .append (" :root" , $_lightdark , $_darkText );
32- $newLight : selector .append (" :root" , $_lightStyle );
32+ $newLight : selector .append (" :root" , $builtInLightStyle );
3333
3434 @return " #{$oldLight } , #{$newLight } " ;
3535}
3636
3737@function built-in-dark-theme () {
3838 $oldDark : selector .append (" :root" , $_lightdark , $_lightText );
39- $newDark : selector .append (" :root" , $_darkStyle );
39+ $newDark : selector .append (" :root" , $builtInDarkStyle );
4040
4141 @return " #{$oldDark } , #{$newDark } " ;
4242}
0 commit comments