Skip to content

Feat/dark mode#34

Open
rajnavakoti wants to merge 10 commits intomainfrom
feat/dark-mode
Open

Feat/dark mode#34
rajnavakoti wants to merge 10 commits intomainfrom
feat/dark-mode

Conversation

@rajnavakoti
Copy link
Contributor

No description provided.

rajnavakoti and others added 10 commits February 22, 2026 22:14
Add [data-theme="dark"] selector block with complete set of dark mode
CSS variable values. Covers page, header, sidebar, content, input,
card, badge, and shadow variables.

Co-Authored-By: Claude <noreply@anthropic.com>
Add toggleTheme() function that switches data-theme attribute between
'light' and 'dark' on the html element. Exposed globally for the
toggle button to call.

Co-Authored-By: Claude <noreply@anthropic.com>
Add dark mode toggle button at bottom of icon bar with moon (light)
and sun (dark) SVG icons. Calls toggleTheme() on click.

Co-Authored-By: Claude <noreply@anthropic.com>
Save selected theme to localStorage and restore on page load.
Toggle icon (moon/sun) updates to match the active theme.

Co-Authored-By: Claude <noreply@anthropic.com>
Fall back to prefers-color-scheme when no theme is saved in
localStorage. Listen for OS-level theme changes and auto-switch
when the user hasn't made an explicit choice.

Co-Authored-By: Claude <noreply@anthropic.com>
Override badge CSS variable colors for dark mode with darker
backgrounds and lighter text. Covers domain, service, event,
command, query, and default badge variants.

Co-Authored-By: Claude <noreply@anthropic.com>
Type badges (capability, component, system, data, api, process), status
badges (active, new, planned, deprecated, retired), sourcing badges
(in-house, vendor, hybrid) and maturity badges (excellent, good,
developing) all used hardcoded RGB values. Added [data-theme="dark"]
overrides with dark-friendly background/text color pairs.

Co-Authored-By: Claude <noreply@anthropic.com>
Card hover border-color was hardcoded light gray (203 213 225) — added
dark override with slate-600 (71 85 105). Code block pre background
gets deeper slate-900 with subtle border to distinguish from page bg.

Co-Authored-By: Claude <noreply@anthropic.com>
Relationship group icons and column dots used hardcoded blue/purple hex
colors optimized for light backgrounds. Added dark overrides with
lighter variants (#60a5fa, #a78bfa) and slightly higher-opacity
backgrounds for better visibility on dark surfaces.

Co-Authored-By: Claude <noreply@anthropic.com>
Added inline script in <head> to apply saved theme before first paint,
preventing flash of wrong theme on page load. Theme toggle now adds a
temporary .theme-transition class that enables smooth 300ms transitions
on background-color, color, border-color, and box-shadow — removed
after animation completes to avoid interfering with normal interactions.

Co-Authored-By: Claude <noreply@anthropic.com>
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