Skip to content

Refactor theme selection system - #352

Open
isakstenstrom wants to merge 1 commit into
check-for-missing-cas-datafrom
refactor-theme-system
Open

Refactor theme selection system#352
isakstenstrom wants to merge 1 commit into
check-for-missing-cas-datafrom
refactor-theme-system

Conversation

@isakstenstrom

Copy link
Copy Markdown
Collaborator

The current implementation of light/dark theming is achieved using an inconsistent mix of CSS and Ant Design options. This commit unifies the system into a single ConfigProvider residing in a ThemeContext, which is responsible for storing and setting theme choices. It also adds the ability to choose a "System" theme, which automatically selects the appropriate theme based on the prefers-color-scheme media query; this solves the issue where after selecting a theme, it was stored in localStorage and the user had no in-UI solution for returning to a browser-determined theme. Third, it performs some refactors to the App Bar, to ensure more consistency with Ant Design development patterns and more properly support the new theme system.

@isakstenstrom
isakstenstrom force-pushed the refactor-theme-system branch 2 times, most recently from e5ca050 to c31ac57 Compare September 2, 2026 07:41
The current implementation of light/dark theming is achieved using an
inconsistent mix of CSS and Ant Design options. This commit unifies the
system into a single ConfigProvider residing in a ThemeContext, which is
responsible for storing and setting theme choices. It also adds the
ability to choose a "System" theme, which automatically selects the
appropriate theme based on the prefers-color-scheme media query; this
solves the issue where after selecting a theme, it was stored in
localStorage and the user had no in-UI solution for returning to a
browser-determined theme. Third, it performs some refactors to the App
Bar, to ensure more consistency with Ant Design development patterns and
more properly support the new theme system.
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

Successfully merging this pull request may close these issues.

2 participants