From 4eff014ae6a5bd7e0638664b87b26655aefa6aa7 Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Fri, 6 Mar 2026 10:53:23 -0800 Subject: [PATCH] Fix Aceternity gradient background in light mode BgLayer 'gradient' always rendered rgb(8,0,20) dark base regardless of mode, covering the container's light bg and making the dark gradient-text h1 invisible. Split into isDark branches: dark mode keeps the hard-light blob effect, light mode renders soft pastel blobs on rgb(248,247,255). Made-with: Cursor --- components/design-scaffolds/marketing.tsx | 30 ++++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/components/design-scaffolds/marketing.tsx b/components/design-scaffolds/marketing.tsx index d1e96ff..86db585 100644 --- a/components/design-scaffolds/marketing.tsx +++ b/components/design-scaffolds/marketing.tsx @@ -515,16 +515,28 @@ export function MarketingAceternity({ themeColor, config }: { themeColor?: Theme const border= isDark ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.1)"; const BgLayer = () => { - if (bgStyle === "gradient") return ( -
-
-
-
-
-
+ if (bgStyle === "gradient") { + if (!isDark) return ( +
+
+
+
+
+
+
-
- ); + ); + return ( +
+
+
+
+
+
+
+
+ ); + } if (bgStyle === "shader") return (