Repository navigation
Add Light, Dark, and System theme choices to the console - #676
Merged
cursor[bot] merged 1 commit intoOct 31, 2026
Conversation
The workspace keeps one saved preference and still paints with the existing light or dark body class, including when System follows the OS scheme. Co-authored-by: harsh <harshhsahu@users.noreply.github.com>
Collaborator
Author
|
Requested by Natwar Rathor ·
Added automatically by the AI middleware. |
prakharlowanshi11
approved these changes
Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The console can now be Light, Dark, or System. System follows the OS color scheme and updates if that scheme changes. The choice is saved in the existing
ui-settingsrecord for 30 days, and older records that only storedlight-themeordark-themestill load.Light, Dark, and System buttons are in the workspace top bar, the account menu, and the widget-preview sidebar. They all use the same control and the same saved preference. The page still paints with
body.light-themeorbody.dark-theme, so charts, Material, and Tailwind dark styles keep working. A small script inindex.htmlapplies the saved choice before Angular boots.Left as they were
config.theme). That is separate from the console theme.lightordarkvalue, not the wordsystem.Verification
node --test tools/tests/*.test.cjs(35 passing, including theme preference, legacy records, expiry, and the boot script)git diff --checknx build 36-blocks --configuration=developmentnx build 36-blocks --configuration=review/app/dashboard: Light, Dark, and System are visible without opening a menu. Dark setsdark-themeand savesthemePreference: "dark". Light setslight-theme. System followsprefers-color-scheme(light in the default browser, dark when that media query is emulated) and the choice survives reload. The same three buttons still work at a 390px width.theme: "dark-theme"record with no preference still selects Dark and keepssideNavOpen.dark-themeandwebsite-activeonbody, the marketing shell and page background stay light (#f8f9f3) andcolor-schemestayslight./widget-preview/demoshows a Console theme control separate from the widget preview theme buttons. Console Dark setsdark-themeonbody.