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.
Description
Added a Dark Mode toggle button to the Hasura Console UI allowing users to switch between light and dark themes.
The user’s preference is saved in localStorage and applied automatically on page load.
Changelog
Component : console
Type: feature
Product: community-edition
Short Changelog
Long Changelog
This change adds a simple toggle button to the main App component that switches the console UI between light and dark themes.
The toggle state is saved in browser localStorage so the preference persists between sessions.
Dark mode styles affect background colors, text colors, and button styles to improve usability in low-light environments.
This feature enhances user experience by supporting preferred color schemes.
Related Issues
No specific issue linked. (close # if applicable)
Solution and Design
App.tsx
to add/remove adark-mode
CSS class on the document body.localStorage
to save and load the user’s theme preference.styles.css
to apply dark theme styles.Steps to test and verify
nx serve console-ce
.Limitations, known bugs & workarounds
Server checklist
Not applicable (frontend only change).
Metadata
Not applicable.
GraphQL
Not applicable.
Breaking changes