fix(component): revert theme flickering (#5238) (#5256)

This reverts commit e8cfc807ea.
This commit is contained in:
Peng Xiao 2023-12-11 06:05:16 +00:00
parent e8cfc807ea
commit cfd200528f
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED
2 changed files with 2 additions and 7 deletions

View File

@ -11,12 +11,8 @@ globalStyle('html', {
vars: lightCssVariables,
});
globalStyle('html', {
'@media': {
'(prefers-color-scheme: dark)': {
vars: darkCssVariables,
},
},
globalStyle('html[data-theme="dark"]', {
vars: darkCssVariables,
});
if (process.env.NODE_ENV === 'development') {

View File

@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="color-scheme" content="light dark" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"