From 69eb3b989cb37731cc3345cec9b1a3bcdd6a6bdd Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Fri, 6 Mar 2026 11:17:13 -0800 Subject: [PATCH] Fix BgLayer SVG gradient reference causing dark rectangle in light mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - beams: replaced SVG gradient with a CSS radial-gradient div — browser SVG gradient reference fallback is solid black which produced the dark rectangle. Also adapt line colors and opacity for light mode. - meteors: switch tail gradient from white-tip to dark-tip in light mode so meteors are visible on a light background. - wavy: remove SVG linearGradient id references (same black-fill risk); use inline hex alpha on fill instead. Made-with: Cursor --- components/design-scaffolds/marketing.tsx | 32 +++++++++-------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/components/design-scaffolds/marketing.tsx b/components/design-scaffolds/marketing.tsx index 86db585..1c98b03 100644 --- a/components/design-scaffolds/marketing.tsx +++ b/components/design-scaffolds/marketing.tsx @@ -546,21 +546,19 @@ export function MarketingAceternity({ themeColor, config }: { themeColor?: Theme ); if (bgStyle === "beams") return (
+ {/* CSS radial glow — no SVG gradient ID reference (avoids black-fill fallback) */} +
- - - - - - - {Array.from({ length: 14 }).map((_, i) => { const x = 200 + (i - 7) * 32; + const lineColor = isDark + ? (i % 3 === 0 ? p : i % 3 === 1 ? "#3b82f6" : "#06b6d4") + : (i % 3 === 0 ? p : i % 3 === 1 ? "#6366f1" : "#0891b2"); return ( ); @@ -570,14 +568,16 @@ export function MarketingAceternity({ themeColor, config }: { themeColor?: Theme ); if (bgStyle === "meteors") return (
-
+
{Array.from({ length: 12 }).map((_, i) => (
- - - - - - - - + +
);