Skip to content

Light mode: surface definition + drop washed-out hero glow#11

Merged
btravers merged 2 commits into
mainfrom
fix/light-surface-contrast
Jun 28, 2026
Merged

Light mode: surface definition + drop washed-out hero glow#11
btravers merged 2 commits into
mainfrom
fix/light-surface-contrast

Conversation

@btravers

Copy link
Copy Markdown
Contributor

Follow-up to the light-mode review. The text-token fix (#10) made everything AA, but the page still read washed out — because the surfaces had no contrast: white cards on a near-white bg with a ~10% hairline and no rest shadow looked flat.

Fixed the structural contrast (not the text), keeping the bg light so the accent labels stay AA:

  • tokens.css light: --border 0.10 → 0.16, --border-2 0.17 → 0.24, --card-soft#F0E6EC (stronger edges/dividers — also sharpens the docs chrome).
  • Landing.vue light: project + principle cards get a soft rest shadow so they lift off the background.

Now the cards and sections clearly separate. Verified on the build (screenshots): cards have visible edges + lift; text contrast unchanged (still AA); no overflow/errors.

The light page read flat/washed because white cards sat on a near-white bg
with only a ~10% hairline and no rest shadow — measured-AA text, but no
structural contrast. Without darkening the bg (which would drop the accent
labels below AA), add definition:
- tokens.css light: --border 0.10 -> 0.16, --border-2 0.17 -> 0.24,
  --card-soft -> #F0E6EC (stronger dividers/edges; also lifts docs chrome).
- Landing.vue light: give project + principle cards a soft rest shadow so
  they separate from the background.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 28, 2026 17:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines the light-mode surface contrast for the shared theme and the website landing page so cards/dividers read less “washed out” while keeping text contrast unchanged.

Changes:

  • Adjusts light-mode surface tokens (--card-soft, --border, --border-2) to strengthen dividers and section separation.
  • Adds a light-mode rest shadow to landing-page project/principle cards to visually lift them off the near-white background.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/theme/src/tokens.css Strengthens light-mode surface/divider tokens to improve structural contrast.
apps/website/.vitepress/theme/Landing.vue Adds light-mode card rest shadow for better visual separation (but needs a hover-specificity fix).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +253 to +258
/* On near-white, the hairline alone leaves cards looking flat — give them a
soft rest shadow in light mode so they lift off the background. */
:global(html:not(.dark)) .btv-pcard,
:global(html:not(.dark)) .btv-prin-card {
box-shadow: 0 1px 2px rgba(26, 12, 20, 0.05), 0 16px 32px -24px rgba(26, 12, 20, 0.22);
}
The light rest-shadow selector outspecifies .pcard:hover, so the hover
box-shadow stopped applying on project cards. Add a matching-specificity
light hover override that restores var(--shadow-card). [Copilot]

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@btravers
btravers merged commit d1b8756 into main Jun 28, 2026
@btravers
btravers deleted the fix/light-surface-contrast branch June 28, 2026 18:08
@btravers btravers changed the title Light mode: add surface definition (stronger borders + card lift) Light mode: surface definition + drop washed-out hero glow Jun 28, 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