Skip to content

fix(docs): theme-responsive landing hero background - #108

Merged
jonathanschultzNU merged 1 commit into
mainfrom
cursor/docs-landing-theme-12c1
Aug 30, 2026
Merged

fix(docs): theme-responsive landing hero background#108
jonathanschultzNU merged 1 commit into
mainfrom
cursor/docs-landing-theme-12c1

Conversation

@jonathanschultzNU

Copy link
Copy Markdown
Collaborator

Problem

The docs home landing hero always rendered a dark gradient (#0f172a#0c1928), while the sections below use Material's --md-default-bg-color (white in light mode). That produced a visible hard line at the hero boundary when viewing in light mode.

Fix

docs/stylesheets/landing.css now defines theme-aware CSS custom properties on .quantui-landing:

  • Light (default): soft indigo/teal wash fading into --md-default-bg-color; dark hero text; light-mode pills and outline button
  • Dark (slate): preserves the existing deep gradient aesthetic, also fading into --md-default-bg-color for a smooth handoff

Also sets explicit backgrounds on .quantui-landing and .quickstart, and uses theme bg for gallery iframe/image wells.

Verify

Toggle light/dark on the GitHub Pages home after deploy, or locally:

mkdocs serve
Open in Web Open in Cursor 

The hero used a fixed dark gradient while MkDocs Material sections
follow --md-default-bg-color, leaving a hard seam in light mode. Theme
tokens now drive the hero background (fading into the page bg), text,
pills, and outline button in both default and slate palettes.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@jonathanschultzNU
jonathanschultzNU marked this pull request as ready for review August 30, 2026 22:03
@jonathanschultzNU
jonathanschultzNU merged commit fe37856 into main Aug 30, 2026
5 checks passed
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