Open source CapCut alternative.
TypeScript
fix(site): keep cream cards and mock pills in light
David Lef3cfd818c809
diff --git a/site/src/app/_components/landing/TopNav.tsx b/site/src/app/_components/landing/TopNav.tsxindex 05e8f555..c0290dce 100644--- a/site/src/app/_components/landing/TopNav.tsx+++ b/site/src/app/_components/landing/TopNav.tsx@@ -54,7 +54,7 @@ export function TopNav({className={cn("mx-auto flex w-full max-w-[1400px] items-center justify-between rounded-[24px] px-4 py-2 transition-all duration-300 md:px-12 md:py-2.5",scrolled- ? "border border-foreground/10 bg-card/95 shadow-[0_18px_50px_rgba(15,14,13,0.10)] backdrop-blur-md"+ ? "border border-foreground/10 bg-cream/95 dark:bg-card/95 shadow-[0_18px_50px_rgba(15,14,13,0.10)] backdrop-blur-md": "border border-transparent bg-transparent shadow-none",)}>diff --git a/site/src/app/cut/blog/[slug]/page.tsx b/site/src/app/cut/blog/[slug]/page.tsxindex df1a59a7..d68891b9 100644--- a/site/src/app/cut/blog/[slug]/page.tsx+++ b/site/src/app/cut/blog/[slug]/page.tsx@@ -180,7 +180,7 @@ async function Post({ params }: Params) {function PostSkeleton() {return (<div aria-hidden className="animate-pulse" {...{ [BLOG_SKELETON_ATTR]: "" }}>- <div className="mb-8 h-60 rounded-2xl border-2 border-foreground/10 bg-card" />+ <div className="mb-8 h-60 rounded-2xl border-2 border-foreground/10 bg-cream dark:bg-card" /><div className="max-w-[72ch] space-y-4"><div className="h-10 w-3/4 rounded-lg bg-foreground/10" /><div className="h-4 w-1/3 rounded bg-foreground/10" />diff --git a/site/src/app/cut/blog/_components/BlogCta.tsx b/site/src/app/cut/blog/_components/BlogCta.tsxindex f25a0cd7..54cc20dc 100644--- a/site/src/app/cut/blog/_components/BlogCta.tsx+++ b/site/src/app/cut/blog/_components/BlogCta.tsx@@ -27,7 +27,7 @@ export function BlogCTA({}: BlogCtaProps) {if (variant === "banner") {return (- <div className="not-prose my-10 rounded-2xl border-2 border-foreground bg-card p-8 text-center md:p-10">+ <div className="not-prose my-10 rounded-2xl border-2 border-foreground bg-cream dark:bg-card p-8 text-center md:p-10"><h2 className="mb-3 text-2xl font-semibold text-foreground md:text-3xl">{title}</h2><p className="mx-auto mb-6 max-w-2xl text-base leading-relaxed text-foreground/70 md:text-lg">{description}</p><PillButton href={buttonHref} size="lg">@@ -37,7 +37,7 @@ export function BlogCTA({);}return (- <div className="not-prose my-8 rounded-2xl border-2 border-foreground bg-card p-6 md:p-8">+ <div className="not-prose my-8 rounded-2xl border-2 border-foreground bg-cream dark:bg-card p-6 md:p-8"><h3 className="mb-2 text-lg font-semibold text-foreground">{title}</h3><p className="mb-4 text-base leading-relaxed text-foreground/70">{description}</p><PillButton href={buttonHref}>{buttonText}</PillButton>diff --git a/site/src/app/cut/blog/_components/BlogGrid.tsx b/site/src/app/cut/blog/_components/BlogGrid.tsxindex 4677405e..86ae9360 100644--- a/site/src/app/cut/blog/_components/BlogGrid.tsx+++ b/site/src/app/cut/blog/_components/BlogGrid.tsx@@ -23,7 +23,7 @@ function TagPills({ tags }: { tags: string[] }) {function FeaturedCard({ post }: { post: BlogPostCard }) {return (<Link href={blogPath(post.slug)} className="group grid gap-6 no-underline lg:grid-cols-2 lg:gap-8">- <div className="relative aspect-[2/1] overflow-hidden rounded-2xl border-2 border-foreground bg-card">+ <div className="relative aspect-[2/1] overflow-hidden rounded-2xl border-2 border-foreground bg-cream dark:bg-card">{post.thumbnailUrl ? (// eslint-disable-next-line @next/next/no-img-element -- pre-encoded AVIF from the media host, not Next-optimizable<img@@ -53,7 +53,7 @@ function PostCard({ post }: { post: BlogPostCard }) {return (<Linkhref={blogPath(post.slug)}- className="group flex flex-col overflow-hidden rounded-2xl border-2 border-foreground bg-card no-underline transition-transform duration-300 hover:-translate-y-1"+ className="group flex flex-col overflow-hidden rounded-2xl border-2 border-foreground bg-cream dark:bg-card no-underline transition-transform duration-300 hover:-translate-y-1"><div className="relative aspect-[16/10] overflow-hidden border-b-2 border-foreground bg-card">{post.thumbnailUrl ? (@@ -109,7 +109,7 @@ export function BlogGridSkeleton() {return (<div className="grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-y-8 lg:grid-cols-3" aria-hidden {...{ [BLOG_SKELETON_ATTR]: "" }}>{Array.from({ length: 6 }, (_, i) => (- <div key={i} className="aspect-[4/5] animate-pulse rounded-2xl border-2 border-foreground/10 bg-card" />+ <div key={i} className="aspect-[4/5] animate-pulse rounded-2xl border-2 border-foreground/10 bg-cream dark:bg-card" />))}</div>);diff --git a/site/src/app/cut/blog/_components/BlogHeaderImage.tsx b/site/src/app/cut/blog/_components/BlogHeaderImage.tsxindex 8d8c2f59..b14613ce 100644--- a/site/src/app/cut/blog/_components/BlogHeaderImage.tsx+++ b/site/src/app/cut/blog/_components/BlogHeaderImage.tsx@@ -2,7 +2,7 @@// focus the CMS set so the subject stays in frame on every width.export function BlogHeaderImage({ src, alt, focus }: { src: string; alt: string; focus: string | null }) {return (- <div className="relative mb-6 h-60 w-full overflow-hidden rounded-2xl border-2 border-foreground bg-card md:mb-8">+ <div className="relative mb-6 h-60 w-full overflow-hidden rounded-2xl border-2 border-foreground bg-cream dark:bg-card md:mb-8">{/* eslint-disable-next-line @next/next/no-img-element -- pre-encoded AVIF from the media host, not Next-optimizable */}<imgsrc={src}diff --git a/site/src/app/darkModeContrast.test.tsx b/site/src/app/darkModeContrast.test.tsxindex 360842a2..40de37bd 100644--- a/site/src/app/darkModeContrast.test.tsx+++ b/site/src/app/darkModeContrast.test.tsx@@ -17,7 +17,7 @@ css.walkAtRules("theme", (rule) => {rule.walkDecls((decl) => { colors.set(decl.prop.replace("--color-", ""), decl.value); });});css.walkRules((rule) => {- const theme = rule.selector === ":root" ? "light" : rule.selector === ".dark" ? "dark" : null;+ const theme = rule.selectors.includes(":root") ? "light" : rule.selector === ".dark" ? "dark" : null;if (theme) { rule.walkDecls((decl) => { tokens[theme].set(decl.prop, decl.value); }); }});diff --git a/site/src/cut/components/editor-mock/EditorMock.tsx b/site/src/cut/components/editor-mock/EditorMock.tsxindex a3f577ab..83230bab 100644--- a/site/src/cut/components/editor-mock/EditorMock.tsx+++ b/site/src/cut/components/editor-mock/EditorMock.tsx@@ -173,7 +173,7 @@ export function EditorMock({onClick={() => setActive(i)}aria-pressed={i === active}className={cn(- "flex items-center gap-1.5 rounded-full border border-border px-2.5 py-3 text-xs font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground",+ "flex items-center gap-1.5 rounded-full border border-foreground dark:border-border px-2.5 py-3 text-xs font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground",i === active ? "bg-primary text-primary-foreground" : "bg-card text-card-foreground hover:bg-accent hover:text-accent-foreground",)}>diff --git a/site/src/cut/components/editor-mock/MockAiPanel.tsx b/site/src/cut/components/editor-mock/MockAiPanel.tsxindex 18b9e5ea..dbe4a17c 100644--- a/site/src/cut/components/editor-mock/MockAiPanel.tsx+++ b/site/src/cut/components/editor-mock/MockAiPanel.tsx@@ -52,7 +52,7 @@ export function MockAiPanel({ project }: { project: MockProject }) {{/* The real composer is bg-background, which the app surface paintswhite; on the cream landing that token stays cream, so the mockpins white directly. */}- <div className="rounded-xl border border-input bg-background">+ <div className="rounded-xl border border-input bg-card"><div className="min-h-9 px-3 pt-2 text-[12.5px] leading-relaxed text-muted-foreground/70">Ask about your video, or tell me what to change… @ references media</div>