feat(storybook): add comprehensive dark mode support#5
Merged
Conversation
- Add preview.css with dark mode styles for Storybook docs pages - Style docs wrapper, content areas, and story previews - Theme args table (property/description tables) with dark backgrounds - Style control inputs, buttons, and code blocks - Add custom scrollbar styling for dark mode - Update manager.ts with dark mode theming for manager UI - Add dark mode color variants to all brand themes - Create dynamic theme switching via createBrandTheme(brand, isDark) - Inject dark mode CSS overrides for sidebar, toolbar, and panels - Listen for theme global changes to update manager theme in real-time - Update preview.tsx to apply theme colors to document body - Set body background and text colors based on theme - Ensures entire content area respects dark mode selection
…backgrounds The story wrapper div was using CSS variable references (var(--mieweb-background)) in inline styles, but these were being cached and not updating when switching between brands. This caused all brands to show the same black background in dark mode instead of their brand-specific dark colors. Changes: - Extract semanticColors from brand config based on isDark state - Apply actual hex color values directly to wrapper div inline styles - Apply actual color values to document.body for consistent backgrounds - Build font family string directly instead of using CSS variable This ensures each brand displays its unique dark mode background: - BlueHive: Blue-tinted dark (#0c1929) - Enterprise Health: Purple-tinted dark (#0f172a) - WebChart: Warm amber-tinted dark - MIE Web: Green-tinted dark - Default: Slate blue dark (#0f172a)
Deploying ui with
|
| Latest commit: |
8f4f917
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://63c76ffc.ui-6d0.pages.dev |
| Branch Preview URL: | https://updates-darkmode-support.ui-6d0.pages.dev |
wreiske
approved these changes
Jan 22, 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.
Add preview.css with dark mode styles for Storybook docs pages
Update manager.ts with dark mode theming for manager UI
Update preview.tsx to apply theme colors to document body
Preview mode
darkmode.mov