Skip to content

feat: dark mode #4394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open

feat: dark mode #4394

wants to merge 31 commits into from

Conversation

eth2353
Copy link

@eth2353 eth2353 commented May 8, 2025

This PR is not ready for review. I won't have time to work on this in the coming weeks so creating this draft PR. Perhaps someone can finish it up, otherwise I'll try to do so myself as soon as I can.

Adds a dark mode to the alertmanager UI:

Light Dark
image image

The setting can be toggled in the Settings:

image

To do all this, I used the newly introduced dark color theme (introduced in Bootstrap 5.3). I refactored the DateTimePicker a bit (removing some custom CSS) since it required changes due to the Boostrap bump anyway.

We've been using this dark mode on one of our alertmanager instances for the last few months without issues.

The only issue I'm aware of at the moment relates to the responsiveness of the DateTimePicker - the hour/minute do not show on my phone (iPhone 12 mini) in portrait:

@eth2353 eth2353 force-pushed the bootstrap-dark-mode branch from d866700 to c7f9c3f Compare May 8, 2025 10:05
@eth2353 eth2353 mentioned this pull request May 8, 2025
@eth2353 eth2353 force-pushed the bootstrap-dark-mode branch from c371966 to 3750a4c Compare May 8, 2025 10:54
eth2353 added 27 commits May 8, 2025 13:02
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
Signed-off-by: eth2353 <[email protected]>
@eth2353 eth2353 force-pushed the bootstrap-dark-mode branch from 3750a4c to 48bfb55 Compare May 8, 2025 11:02
@gotjosh gotjosh marked this pull request as ready for review May 8, 2025 12:31
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.

1 participant