From 37adca2abec51c41f39f24c811441911c1b4eb32 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 14 Oct 2026 11:56:05 +0200 Subject: [PATCH] Task/enable dark mode of Bootstrap (#8167) Enable dark mode of Bootstrap --- CHANGELOG.md | 1 + apps/client/src/app/app.component.ts | 2 ++ .../admin-settings/admin-settings.component.html | 6 +++++- apps/client/src/styles/bootstrap.scss | 1 - libs/ui/.storybook/preview.js | 14 +++++++++++++- .../membership-card/membership-card.component.html | 6 +++++- 6 files changed, 26 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0998ecb494..6d9071643c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Improved the colors of the muted texts and borders by enabling the dark mode of `bootstrap` - Reduced the size of the global stylesheet by removing the unused utilities of `bootstrap` - Upgraded `bootstrap` from version `4.6.2` to `5.3.8` diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index fba00e1c47..c9e124723d 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -350,9 +350,11 @@ export class GfAppComponent implements OnInit { if (isDarkColorScheme(userPreferredColorScheme)) { this.document.body.classList.add('theme-dark'); this.document.body.classList.remove('theme-light'); + this.document.documentElement.setAttribute('data-bs-theme', 'dark'); } else { this.document.body.classList.add('theme-light'); this.document.body.classList.remove('theme-dark'); + this.document.documentElement.setAttribute('data-bs-theme', 'light'); } this.document diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.html b/apps/client/src/app/components/admin-settings/admin-settings.component.html index 059e4177fe..bfaf2da846 100644 --- a/apps/client/src/app/components/admin-settings/admin-settings.component.html +++ b/apps/client/src/app/components/admin-settings/admin-settings.component.html @@ -3,7 +3,11 @@