Skip to content

Fix dark theme inconsistencies and unrelated layout bugs - #585

Open
anshujod wants to merge 2 commits into
PatelHarsh2006:mainfrom
anshujod:feature/improve-dark-theme
Open

Fix dark theme inconsistencies and unrelated layout bugs#585
anshujod wants to merge 2 commits into
PatelHarsh2006:mainfrom
anshujod:feature/improve-dark-theme

Conversation

@anshujod

Copy link
Copy Markdown

Summary

Fixes #582 — dark theme was inconsistent across pages. While testing the fix, I also found and fixed an unrelated but serious bug in index.html where corrupted HTML was hiding most of the homepage.

Dark theme fixes (#582)

  • state.html and recommendations.html never loaded the theme toggle or main.js, so a user's saved dark-mode preference was silently ignored on both pages, with no way to switch themes there at all. Added the toggle button and the same dark-mode init/persist logic used elsewhere.
  • recommendations.html's dark mode originally used an off-palette purple/indigo color scheme. Recolored it to match the site's actual dark palette (#1e1e1e background, #2a2a2a cards, #ff5722/#ffab91 accents).
  • orders.html had main.js (and several other scripts) included twice, so the theme-toggle click handler was attached twice — every click turned dark mode on and immediately back off, making the toggle appear broken. Removed the duplicate <script> tags.

Unrelated bug found during testing

  • index.html had duplicated, unclosed <section id="hero"> and <section id="recently-viewed"> tags. Because .hero has a fixed viewport height and overflow: hidden, every section after it in the DOM (Explore by State, Explore Menu, About, Contact, Footer) was structurally trapped inside the hero box and clipped away. Fixed the malformed markup so the rest of the homepage renders again.

Test plan

  • state.html — click the theme toggle, confirm header/nav/cards switch to dark
  • recommendations.html — click the theme toggle, confirm it switches to the grey/orange dark palette (not purple) with readable contrast
  • orders.html — click the theme toggle, confirm dark mode now actually engages (previously did nothing)
  • index.html — scroll past the hero, confirm Explore Menu, Explore by State, About, Contact, and Footer are all visible
  • index.html — About Us section, confirm each team card shows one photo/name/role with no overlapping text
  • index.html — Smart Food Pairings section, confirm the "Explore Smart Combos" button no longer overlaps the paragraph above it
  • Refresh each page with dark mode already saved in localStorage and confirm it's respected on load

Screenshots

state.html

Before:
Screenshot 2026-07-27 at 4 24 43 PM

After:
Screenshot 2026-07-27 at 4 24 56 PM

Before After
(no toggle button present) (toggle button in nav, dark mode working)

recommendations.html

Before After
(no toggle; or purple dark palette) (toggle working, grey/orange palette)

orders.html

Before:
Screenshot 2026-07-27 at 4 17 58 PM
After:
Screenshot 2026-07-27 at 4 20 31 PM

Before After
(clicking toggle does nothing) (clicking toggle switches theme)

index.html — homepage below hero

Before:
Screenshot 2026-07-27 at 5 52 22 PM

After:
Screenshot 2026-07-27 at 5 52 31 PM

Screenshot 2026-07-27 at 5 52 38 PM
Before After
(Explore Menu / About / Contact / Footer clipped or missing) (all sections visible)

anshujod added 2 commits July 27, 2026 16:14
- Add theme toggle + dark mode to state.html and recommendations.html
- Recolor recommendations.html dark palette to match site (was purple)
- Fix orders.html duplicate script tags breaking the theme toggle
- Fix malformed duplicate <section> tags in index.html clipping content
  below the hero (menu, about, contact, footer were hidden)
- Fix duplicated team-member markup causing overlapping About Us cards
- Add missing .combo-preview CSS fixing button/text overlap
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 dark mode theme and ensure consistent theming across all pages

1 participant