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

Theme stuck in dark mode #10628

Open
1 task done
shivam13297 opened this issue Feb 19, 2025 · 1 comment
Open
1 task done

Theme stuck in dark mode #10628

shivam13297 opened this issue Feb 19, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@shivam13297
Copy link

Describe the bug

I created a gradio app, but no matter what I do it is stuck in dark mode, I changed my browser from settings from dark mode to light mode, I tried changing themes but nothing worked unless I really force it and use ?_theme=light

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr
theme=gr.themes.Default(
        primary_hue=gr.themes.colors.red,
        secondary_hue=gr.themes.colors.gray,
        neutral_hue="slate",
        text_size="md",
        radius_size="md",
        font=gr.themes.GoogleFont("Inter")
    )

Screenshot

No response

Logs

System Info

gradio = 5.16.0

Severity

I can work around it

@shivam13297 shivam13297 added the bug Something isn't working label Feb 19, 2025
@sancelot
Copy link

with gr.Blocks(theme=theme, mode="light") as demo:
# your components here
pass

demo.launch()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants