Feat: Refactor Theming for Improved Flexibility and Maintainability #15704
andifined-de
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'd like to propose an improvement to the theming system in Open WebUI.
The Current Situation
The existing theming implementation has several limitations that make it difficult to manage and extend:
Proposed Solution
My proposal is to move towards a theming system based on semantic CSS variables.
This approach would allow developers to easily create a new theme by defining a set of core variables in a single CSS file and (if required) add some small changes to selectors.
Advantages
Proposed Implementation Plan
Backwards Compatibility
The current approach of overriding specific selectors in theme files could remain possible as a fallback. The new variable-based system would be the primary, recommended method, but this change wouldn't break existing, more simplistic theme overrides.
Future Enhancement
This new structure could easily be extended with tooling that automatically discovers theme files in the designated folder and makes them available in the UI, further simplifying the user experience.
I believe this change would make theming in Open WebUI significantly more powerful and developer-friendly. What are your thoughts on this proposal? Do you have preferences for variable names?
Beta Was this translation helpful? Give feedback.
All reactions