-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
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
Force light theme on specific component #2814
Comments
Hi @benbaessler you can add a custom light class like this: Update the @layer base {
:root, .light {
/* rest of css file */ And then you can use it in your components: <div className="light">
Forced light mode
</div> |
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you. |
This did not work for me |
same here! |
Nice clean solution? |
I'd like to always apply the light theme to a specific Dialog component in my project, even if the selected theme is dark mode. Is this somehow possible?
The text was updated successfully, but these errors were encountered: