feat: light/dark mode toggle and mobile responsiveness#19
Merged
helliott20 merged 6 commits intomainfrom Apr 7, 2026
Merged
Conversation
- CSS variable-based surface palette that inverts between modes - ThemeContext with react-theme-switch-animation blur circle transition - Sun/Moon toggle in sidebar icon row and mobile header - FOUC prevention via inline script in index.html - Theme-aware accent text color (amber-700 light / amber-400 dark) - Fixed text-white on accent backgrounds to text-amber-950 - Softened shadows for light mode across cards, modals, toasts - Respects system preference, persists to localStorage
- SmartRuleBuilder: stack preview below form on mobile, scrollable tabs - ConditionEditor: reduce min-widths for mobile, hide hint text - Queue: restructure rows to stack on mobile, wrap header buttons - MediaTable: add mobile card layout alongside desktop table - History: add mobile card layout, responsive header - ActivityLog: add mobile card layout, responsive filters/pagination
The 50% opacity sidebar was see-through in light mode, making nav text hard to read against page content bleeding through.
- Swipe right anywhere on screen to pull sidebar out - Sidebar follows the finger in real-time during drag - Velocity-based snap: fast swipe opens/closes regardless of position - Swipe left on open sidebar to close it - Backdrop opacity tracks sidebar position smoothly - Hamburger button still works as fallback - Desktop sidebar unaffected (lg: breakpoint)
- Add touchcancel handler to prevent sidebar getting stuck mid-drag - Fix backdrop display:none cutting fade animation on Escape/route close - Fix backdrop opacity inconsistency (0.5 vs 0.6) — now consistently 0.6 - Add aria-label to sidebar theme toggle for screen readers - Increase footer icon touch targets from p-1.5 to p-2.5 (36px hit area)
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.
Summary
Changes
Light/Dark Mode
ThemeContextwithreact-theme-switch-animationblur circle transitionaccent-textcolor (amber-700 light / amber-400 dark) for WCAG contrasttext-whiteon accent backgrounds →text-amber-950Mobile Responsiveness
smTest plan