Skip to content

feat: smoother theme transition for dark mode switch#322

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
Jagadeeshftw:issue-291
Jun 29, 2026
Merged

feat: smoother theme transition for dark mode switch#322
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
Jagadeeshftw:issue-291

Conversation

@Jagadeeshftw

Copy link
Copy Markdown
Contributor

Closes #291.

Adds a new theme-transition.css that animates the color tokens (background, text, border, fill, stroke) so light <-> dark switches fade smoothly instead of snapping. ThemeContext imports the stylesheet and adds a theme-transitions-ready class on <html> after the first paint, so the initial theme still applies instantly with no flash. A prefers-reduced-motion guard disables the animation for users who request it.

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.

Polish theme transition timing for smoother dark mode switch

2 participants