We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input:
/* no theme */ :root { --bgColor: red; } /* light theme */ @media (prefers-color-scheme: light) { :root { --bgColor: yellow; } } /* dark theme */ @media (prefers-color-scheme: dark) { :root { --bgColor: blue; } }
expect output:
/* no theme */ :root { --bgColor: red; } /* light theme */ :root[data-theme="light"] { --bgColor: yellow; } /* dark theme */ :root[data-theme="light"] { --bgColor: yellow; }
real output:
/* no theme */ :root { --bgColor: red; } /* light theme */ @media (prefers-color-scheme: light) { :root { --bgColor: yellow; } } /* dark theme */ @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bgColor: blue; } } :root[data-theme="dark"] { --bgColor: blue; }
The text was updated successfully, but these errors were encountered:
Good idea! Can you send a pull request to save your name in the project history?
Sorry, something went wrong.
preferred-color-scheme: light
No branches or pull requests
input:
expect output:
real output:
The text was updated successfully, but these errors were encountered: