Skip to content
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

webui is unusable with browser set to light mode #314

Open
nyxkrage opened this issue Nov 21, 2023 · 2 comments
Open

webui is unusable with browser set to light mode #314

nyxkrage opened this issue Nov 21, 2023 · 2 comments

Comments

@nyxkrage
Copy link

Here's how it looks with the browser set to light mode
image
and here it how it looks when enabling dark color scheme simulation in the Firefox devtools
image

@robballantyne
Copy link

Delete webui.css and it works ok - temporary workaround.

@dmarkowicz
Copy link

You can add the URL parameter http://127.0.0.1:7860/?__theme=dark
The webui.css file relies on the presence of the .dark class to function properly. However, Gradio only adds the .dark class to body in dark mode.
Here is how it works https://github.com/gradio-app/gradio/blob/main/js/app/src/Index.svelte#L180-L223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants