feat: Implement Dark Mode support#903
feat: Implement Dark Mode support#903Snehadas2005 wants to merge 2 commits intokubeflow:notebooks-v2from
Conversation
Signed-off-by: Sneha Das <154408198+Snehadas2005@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @andyatmiami and @jenny-s51, |
There was a problem hiding this comment.
Hey @Snehadas2005, nice work on this! 🤗
There are currently a few things which are unreadable due to the new coloring such as most of the status pills:
Signed-off-by: Sneha Das <154408198+Snehadas2005@users.noreply.github.com>
|
Hi @christian-heusel,
|

Description
This PR implements Dark Mode support for the frontend application as requested in sub-issue #866 and parent issue #541. It introduces the necessary context and state management to handle theme toggling, persistence, and integration with both MUI and PatternFly.
Key Changes:
isDarkModestate and toggleDarkMode function.localStoragepersistence using the keykubeflow-dark-mode..pf-v6-theme-darkclass to the<html>element when dark mode is active (for PatternFly support).createThemeconfiguration to usepalette: { mode: 'dark' }dynamically.isDarkModeand toggleDarkMode to be consumed by components (e.g., NavBar).User Experience
localStorageand correctly restored upon page reload.Acceptance Criteria Checklist
localStorage..pf-v6-theme-dark) is applied to<html>.darkmode.