Skip to content

feat(dashboard): discoverable theme toggle + system default#4471

Open
avirajkhare00 wants to merge 3 commits into
hatchet-dev:mainfrom
avirajkhare00:feat/theme-toggle-discoverability
Open

feat(dashboard): discoverable theme toggle + system default#4471
avirajkhare00 wants to merge 3 commits into
hatchet-dev:mainfrom
avirajkhare00:feat/theme-toggle-discoverability

Conversation

@avirajkhare00

Copy link
Copy Markdown
Contributor

Summary

  • Add a shared ThemeToggle (Light / Dark / System) on the login/register layout and in the top nav, so light mode is easy to find.
  • Default theme preference is system (prefers-color-scheme), with a pre-paint script to avoid FOUC and live updates when the OS theme changes.
  • Remove the nested theme submenu from the account menu (toggle is the single control after login).

Test plan

  • Run dashboard against local Hatchet Lite (VITE_API_PROXY_TARGET=http://127.0.0.1:8888 pnpm dev)
  • Login page shows theme control top-right; Light / Dark / System work
  • After login, top-nav theme control works; account menu has no Theme entry
  • With no localStorage (or vite-ui-theme=system), UI follows OS light/dark
  • Switching OS preference while on System updates the UI

Add a visible theme toggle on auth pages and the top nav (Light/Dark/System),
default to the OS preference, apply theme before paint, and remove the
duplicate theme submenu from the account dropdown.
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

@avirajkhare00 is attempting to deploy a commit to the Hatchet Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the dashboard Related to the Hatchet dashboard label Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard Related to the Hatchet dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant