Skip to content

fix(ui): show sun icon in light mode theme toggle#434

Open
KushalLukhi wants to merge 1 commit intoritz078:masterfrom
KushalLukhi:fix/423-theme-toggle-sun-icon
Open

fix(ui): show sun icon in light mode theme toggle#434
KushalLukhi wants to merge 1 commit intoritz078:masterfrom
KushalLukhi:fix/423-theme-toggle-sun-icon

Conversation

@KushalLukhi
Copy link
Copy Markdown

@KushalLukhi KushalLukhi commented Mar 20, 2026

Summary

Use a mode-specific icon in the theme toggle button:

  • moon in dark mode
  • sun in light mode

Closes #423

Why

The toggle always displayed a moon icon, which made light mode less clear visually.

Change

In pages/_app.tsx, the IconButton icon is now conditional on isDarkMode:

icon={isDarkMode ? "moon" : "sun"}

This keeps the UI consistent with the current theme state.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 20, 2026

@KushalLukhi is attempting to deploy a commit to the ritesh-oss Team on Vercel.

A member of the Team first needs to authorize 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.

Add sun icon for light mode in theme toggle button

1 participant