Skip to content

Comments

Fix homepage hero orange background color mismatch#664

Open
RisingOrange wants to merge 5 commits intoPauseAI:mainfrom
RisingOrange:fix/hero-css-blend
Open

Fix homepage hero orange background color mismatch#664
RisingOrange wants to merge 5 commits intoPauseAI:mainfrom
RisingOrange:fix/hero-css-blend

Conversation

@RisingOrange
Copy link
Contributor

@RisingOrange RisingOrange commented Feb 21, 2026

Closes #666

Summary

Fixes visual artifacts on the home page hero section where the orange background color appeared inconsistent — visible as a two-tone seam in Firefox and when using the Dark Reader extension.

  • Replaces the pre-faded hero JPEGs with background-removed PNGs and recreates the orange tint using mix-blend-mode: soft-light over the existing background-color: #ff9416 — matching the original Figma design
  • Fixes the Dark Reader two-tone artifact: both the letterbox area and the image area now go through the same rendering pipeline
  • Fixes the Firefox color mismatch between CSS background color and JPEG image color profiles
  • Left/right fade-out recreated with mask-image gradient (previously baked into the JPEG)
  • Adds isolation: isolate to .hero to contain the blend context

Dark Reader (Chrome)

Before After
Before - Dark Reader After - Dark Reader

Firefox

Before After
Before - Firefox After - Firefox

Note: The orange shade looks slightly different between Chrome and Firefox screenshots — this is expected. Browsers apply different color management to CSS colors vs. image pixels, so the exact rendered hue varies. The fix ensures the letterbox area and the image area are consistent within each browser, which is what matters.

Test plan

  • Visually compare hero on Chrome and Firefox — orange should look consistent across letterbox and image areas
  • Test with Dark Reader enabled — no visible two-tone seam
  • Check mobile layout still looks correct
  • Check desktop at various viewport sizes/aspect ratios

@netlify
Copy link

netlify bot commented Feb 21, 2026

👷 Deploy request for pauseai pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ff4eec8

…mages

Replace the pre-faded hero images with background-removed PNGs and
recreate the orange tint effect using CSS mix-blend-mode: soft-light
over the existing #ff9416 background. This matches the original Figma
design (orange background + image group with soft-light blend).

Benefits:
- Fixes Dark Reader two-tone artifact: both letterbox and image areas
  now go through the same rendering pipeline
- Fixes Firefox color mismatch: no more CSS vs JPEG color profile split
- Left/right fade-out recreated with mask-image gradient
- isolation: isolate added to hero to contain the blend context
@RisingOrange RisingOrange marked this pull request as draft February 21, 2026 20:06
@RisingOrange RisingOrange marked this pull request as ready for review February 21, 2026 20:43
@RisingOrange RisingOrange changed the title Fix hero orange seam: use CSS soft-light blend instead of pre-baked images Fix homepage hero orange background color mismatch Feb 21, 2026
@Pato-desu
Copy link
Collaborator

Pato-desu commented Feb 23, 2026

Hi, thanks a lot for working on this !
Can you make the images faded like they are in the live version? I used paint.net.
It's fine if you can't, I can probably do it this week.

I see there's fading logic that applies in the borders of the viewport, but they should be in the borders of the images themselves

The mask-image gradient was applied relative to the img element's box
(100vw×100vh with object-fit: contain), not the rendered image content.
On ultra-wide viewports the image could be narrower than the element,
so the fade happened at viewport edges instead of image edges.

- Switch to position:absolute; width:min(100%, calc(max(100vh, var(--hero-min-height)) * var(--hero-img-ar))); height:auto
  so the element always matches the rendered image dimensions
- Center with left:50%/translateX(-50%) for ultra-wide viewports
- Update desktop landscape transform to translateX(-50%) scale(0.95)
- Add -webkit-mask-image for older Safari/WebKit
- Extract image AR into --hero-img-ar (2880/1600) for maintainability
Avoids repeating translateX(-50%) in the desktop media query override
by introducing a --hero-scale custom property. Also inlines the 1.8
aspect ratio directly instead of keeping a named --hero-img-ar variable.
@RisingOrange
Copy link
Contributor Author

@Pato-desu Good point! Now the fading applies correctly to the image.

I also added -webkit-mask-image for compatibility with older Safari/WebKit

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.

Homepage hero section: orange background shows visible seam in Firefox and with Dark Reader

2 participants