Skip to content

Open source CapCut alternative.

TypeScript

style(site): keep the plans backlight to dark theme

David Le90e3e0fa8d4a
diff --git a/site/src/cut/components/PlansDialog.tsx b/site/src/cut/components/PlansDialog.tsx
index 7df2f595..686b511f 100644
--- a/site/src/cut/components/PlansDialog.tsx
+++ b/site/src/cut/components/PlansDialog.tsx
@@ -23,9 +23,10 @@ import { planRank, RECOMMENDED_PLAN, type PaidPlan } from "@/lib/billing/plans";
import { cn } from "@/lib/utils";
import { useIntroOffer, useProSubscription, type IntroOffer } from "@/queries/billing";
-// A glow of the accent around the card, so it stands off the editor behind it.
+// A glow of the accent around the card, so it stands off the dark editor
+// behind it. The light theme keeps the dialog's own shadow.
const BACKLIGHT =
- "shadow-[0_0_18px_4px_rgba(0,90,230,0.41),0_0_85px_22px_rgba(0,60,200,0.35)]";
+ "dark:shadow-[0_0_18px_4px_rgba(0,90,230,0.41),0_0_85px_22px_rgba(0,60,200,0.35)]";
export type PlansSource = "credits" | "projects" | "storage" | "plans" | "onboarding";