Skip to content

Add dark mode - #7

Closed
GodPuffin wants to merge 1 commit into
mainfrom
cursor/add-dark-mode-6931
Closed

Add dark mode#7
GodPuffin wants to merge 1 commit into
mainfrom
cursor/add-dark-mode-6931

Conversation

@GodPuffin

Copy link
Copy Markdown
Owner

Summary

Adds a site-wide dark mode with a toggle in the header. The theme preference is saved in localStorage and respects the system color scheme on first visit.

Changes

  • Theme toggle in the layout header (sun/moon icon button)
  • Anti-flash script applies the saved or preferred theme before the page paints
  • Dark mode CSS in style.css overrides common Tailwind utility classes so all pages (including plan details) pick up dark styling without editing every template

How it works

  1. On load, a blocking script checks localStorage for a saved theme, or falls back to prefers-color-scheme: dark
  2. Clicking the toggle switches between light and dark and persists the choice
  3. Dark styles target existing classes like bg-white, text-gray-800, border-gray-200, form inputs, tables, badges, and modals

Testing

  • go test ./... passes
Open in Web Open in Cursor 

Introduce a header toggle that switches between light and dark themes,
respects the system color-scheme preference on first visit, and saves
the choice in localStorage. Dark styles are applied via CSS overrides
so all existing templates are covered without per-page edits.

Co-authored-by: Marcus Lee <GodPuffin@users.noreply.github.com>
@GodPuffin
GodPuffin marked this pull request as ready for review June 12, 2026 19:50
@haunt-sh

haunt-sh Bot commented Jun 13, 2026

Copy link
Copy Markdown

Haunt — planning

👻 Haunt is building your demo…

  • 🔄 Planning the run
  • ⬜ Exploring the app
  • ⬜ Recording
  • ⬜ Directing the walkthrough
  • ⬜ Composing the video

👻 Updates live as it runs → · e78a70f

@GodPuffin GodPuffin closed this Jun 17, 2026
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.

2 participants