From 489dfd5e977ff1e4e489db3635c24640da2cf785 Mon Sep 17 00:00:00 2001 From: Rami Bitar Date: Sat, 1 Aug 2026 17:33:31 -0400 Subject: [PATCH] Drop hardcoded white backgrounds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Product and collection card images, gallery slides, the zoom overlay image, and the products section were pinned to bg-white while every other section uses bg-background. They are transparent now and inherit the page. Skeleton fills and image-placeholder tiles keep their zinc backgrounds — those are load-state and empty-state affordances, not theming. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_016jWbNNJLksC1QG8z8845FX --- components/shopify/collection-card.tsx | 2 +- components/shopify/product-card.tsx | 2 +- components/shopify/product-detail/product-detail-gallery.tsx | 4 ++-- components/shopify/products.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/shopify/collection-card.tsx b/components/shopify/collection-card.tsx index 4ffa1bf..8c07c65 100644 --- a/components/shopify/collection-card.tsx +++ b/components/shopify/collection-card.tsx @@ -25,7 +25,7 @@ const CollectionCard: React.FC = ({ collection }) => { className="group block h-full" > {/* Collection Image */} -
+
{collection.image ? ( = ({ product }) => { className="group block h-full" > {/* Product Image */} -
+
{firstImage ? ( = ({ key={index} onClick={() => setZoomedIndex(index)} aria-label={`Zoom ${image.altText || 'product image'}`} - className={`relative aspect-square w-full shrink-0 snap-center overflow-hidden bg-white pointer-events-none sm:pointer-events-auto sm:shrink sm:cursor-zoom-in ${ + className={`relative aspect-square w-full shrink-0 snap-center overflow-hidden pointer-events-none sm:pointer-events-auto sm:shrink sm:cursor-zoom-in ${ isSingle ? 'sm:col-span-2' : '' }`} > @@ -177,7 +177,7 @@ const ProductDetailGallery: React.FC = ({ src={zoomedImage.url} alt={zoomedImage.altText || 'Product image'} onClick={(event) => event.stopPropagation()} - className="max-h-full max-w-full object-contain bg-white" + className="max-h-full max-w-full object-contain" />