[GH-ISSUE #3234] enh: Configurable default theme #83922

Closed
opened 2026-05-15 08:58:26 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @alexanderahrens on GitHub (Jun 17, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3234

Is your feature request related to a problem? Please describe.
I am embedding Open UI as iframe into my own web application, preconfigured with a RAG containing context related information. Optically it fits best when the Open WebUI is themed with light theme.

When a user has configured its system or browser to light mode, everything fits well.

But if the user has configured its system or browser to dark mode or the mode could not be detected, the the 'dark' is applied as default or callback:

https://github.com/open-webui/open-webui/blob/9e4dd4b86f77653b59dc1fa97fe3f72e8252b359/src/app.html#L39

Describe the solution you'd like
Make the default theme configurable so I can change the default theme from dark to light mode for all users.

Describe alternatives you've considered
An alternative or even better solution could be to have the theme configurable as a fixed theme for all users and in case this setting is configured, users cannot configure the theme for themselves.

Originally created by @alexanderahrens on GitHub (Jun 17, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/3234 **Is your feature request related to a problem? Please describe.** I am embedding Open UI as iframe into my own web application, preconfigured with a RAG containing context related information. Optically it fits best when the Open WebUI is themed with light theme. When a user has configured its system or browser to light mode, everything fits well. But if the user has configured its system or browser to dark mode or the mode could not be detected, the the 'dark' is applied as default or callback: https://github.com/open-webui/open-webui/blob/9e4dd4b86f77653b59dc1fa97fe3f72e8252b359/src/app.html#L39 **Describe the solution you'd like** Make the default theme configurable so I can change the default theme from dark to light mode for all users. **Describe alternatives you've considered** An alternative or even better solution could be to have the theme configurable as a fixed theme for all users and in case this setting is configured, users cannot configure the theme for themselves.
Author
Owner

@justinh-rahb commented on GitHub (Jun 17, 2024):

AFAIK there's already an effort in the plans for making an embeddable javascript widget, perhaps this may solve your requirement better than an iFrame would anyway. This should be fully themeable.

<!-- gh-comment-id:2173560128 --> @justinh-rahb commented on GitHub (Jun 17, 2024): AFAIK there's already an effort in the plans for making an embeddable javascript widget, perhaps this may solve your requirement better than an iFrame would anyway. This should be fully themeable.
Author
Owner

@alexanderahrens commented on GitHub (Jun 18, 2024):

Hello @justinh-rahb, that sounds promising. I'd be happy to test the javascript widget once available!

<!-- gh-comment-id:2176086426 --> @alexanderahrens commented on GitHub (Jun 18, 2024): Hello @justinh-rahb, that sounds promising. I'd be happy to test the javascript widget once available!
Author
Owner

@Genai-labs commented on GitHub (Sep 13, 2024):

Hello, this feature seems interesting, do you have any update about it ?

<!-- gh-comment-id:2348557289 --> @Genai-labs commented on GitHub (Sep 13, 2024): Hello, this feature seems interesting, do you have any update about it ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#83922