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

enh: Configurable default theme #3234

Open
alexanderahrens opened this issue Jun 17, 2024 · 2 comments
Open

enh: Configurable default theme #3234

alexanderahrens opened this issue Jun 17, 2024 · 2 comments

Comments

@alexanderahrens
Copy link

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:

document.documentElement.classList.add('dark');

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.

@justinh-rahb
Copy link
Collaborator

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.

@alexanderahrens
Copy link
Author

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

@tjbck tjbck changed the title Configurable default theme enh: Configurable default theme Jun 25, 2024
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

2 participants