Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: replace aislop tailwind constant with css class

dev_wandryba8badbe6389
diff --git a/app/(home)/components/fade-up.tsx b/app/(home)/components/fade-up.tsx
index 6fbd681d..626911c8 100644
--- a/app/(home)/components/fade-up.tsx
+++ b/app/(home)/components/fade-up.tsx
@@ -2,7 +2,7 @@
import { motion, useInView, useReducedMotion } from "motion/react";
import { type ReactNode, useRef } from "react";
-import { SPRING_BOUNCE } from "@/config/landing";
+import { SPRING_BOUNCE } from "@/config/site";
export function FadeUp({
children,
diff --git a/app/(home)/components/github-button.tsx b/app/(home)/components/github-button.tsx
index ba25c7b2..3eb95908 100644
--- a/app/(home)/components/github-button.tsx
+++ b/app/(home)/components/github-button.tsx
@@ -1,4 +1,4 @@
-import { githubUrl } from "@/config/site";
+import { GITHUB_URL } from "@/config/site";
import { formatStars, getGitHubStars } from "@/lib/github";
import { Star } from "lucide-react";
import Link from "next/link";
@@ -7,12 +7,12 @@ export async function GithubButton() {
const stars = await getGitHubStars();
return (
<Link
- href={githubUrl}
+ href={GITHUB_URL}
target="_blank"
rel="noreferrer"
data-track="cta_clicked"
data-cta="github_header"
- data-destination={githubUrl}
+ data-destination={GITHUB_URL}
className="inline-flex h-9 items-center gap-2 rounded-full border border-border px-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
>
<GitHubIcon className="size-4" />
diff --git a/app/(home)/components/header-nav.tsx b/app/(home)/components/header-nav.tsx
index 0b3ec75d..46d0ae71 100644
--- a/app/(home)/components/header-nav.tsx
+++ b/app/(home)/components/header-nav.tsx
@@ -4,7 +4,7 @@ import Link from "next/link";
import { useRef, useState } from "react";
import { SlidingHighlight } from "@/components/sliding-highlight";
import { SheetClose } from "@/components/ui/sheet";
-import type { NavLink } from "@/config/landing";
+import type { NavLink } from "@/config/site";
import { cn } from "@/lib/utils";
/**
diff --git a/app/(home)/components/header-parts.tsx b/app/(home)/components/header-parts.tsx
index 7eee8a2c..f3453ac0 100644
--- a/app/(home)/components/header-parts.tsx
+++ b/app/(home)/components/header-parts.tsx
@@ -10,7 +10,7 @@ import {
SheetTitle,
SheetTrigger,
} from "@/components/ui/sheet";
-import { NAV_LINKS } from "@/config/landing";
+import { NAV_LINKS } from "@/config/site";
import { cn } from "@/lib/utils";
import { NavMobile } from "./header-nav";
import { ThemeToggle } from "./theme-toggle";
diff --git a/app/(home)/components/sections/bento-registry.tsx b/app/(home)/components/sections/bento-registry.tsx
index 943bd4cf..0967a468 100644
--- a/app/(home)/components/sections/bento-registry.tsx
+++ b/app/(home)/components/sections/bento-registry.tsx
@@ -6,7 +6,7 @@ import { motion } from "motion/react";
import Link from "next/link";
import { useState } from "react";
import { Button } from "@/components/ui/button";
-import { SECTION, SPRING_SOFT } from "@/config/landing";
+import { SPRING_SOFT } from "@/config/site";
import { useTrackEvent } from "@/lib/analytics";
import { cn } from "@/lib/utils";
import registry from "@/registry/__index__";
@@ -149,7 +149,7 @@ export function BentoRegistry() {
return (
<section id="components" className="relative py-20 sm:py-20">
- <div className={SECTION}>
+ <div className="section">
<SectionHeading
eyebrow="The registry"
title="A registry of motion"
diff --git a/app/(home)/components/sections/final-cta.tsx b/app/(home)/components/sections/final-cta.tsx
index d9a48f98..c82cfc32 100644
--- a/app/(home)/components/sections/final-cta.tsx
+++ b/app/(home)/components/sections/final-cta.tsx
@@ -10,9 +10,8 @@ import {
LAVENDER,
MINT,
PEACH,
- SECTION,
SPRING_BOUNCE,
-} from "@/config/landing";
+} from "@/config/site";
import { useTrackEvent } from "@/lib/analytics";
import { FadeUp } from "../fade-up";
@@ -24,7 +23,7 @@ export function FinalCTA() {
return (
<section className="relative py-20 sm:py-28">
- <div className={SECTION}>
+ <div className="section">
<div className="surface-card relative overflow-hidden rounded-3xl px-6 py-16 text-center sm:px-12 sm:py-20">
{/* Restrained accent wash — low opacity so it reads in both themes. */}
<div
@@ -38,7 +37,9 @@ export function FinalCTA() {
<motion.h2
ref={ref}
className="mx-auto max-w-2xl text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-4xl md:text-5xl"
- initial={reduced ? false : { opacity: 0, y: 24, filter: "blur(10px)" }}
+ initial={
+ reduced ? false : { opacity: 0, y: 24, filter: "blur(10px)" }
+ }
animate={
inView
? { opacity: 1, y: 0, filter: "blur(0px)" }
diff --git a/app/(home)/components/sections/get-started.tsx b/app/(home)/components/sections/get-started.tsx
index 2145a865..39de94b1 100644
--- a/app/(home)/components/sections/get-started.tsx
+++ b/app/(home)/components/sections/get-started.tsx
@@ -1,7 +1,6 @@
import { ArrowRight } from "lucide-react";
import Link from "next/link";
import { CodeBlockCommand } from "@/components/docs/code-block-command";
-import { SECTION } from "@/config/landing";
import { convertNpmCommand } from "@/lib/convert-npm-command";
import {
ADD,
@@ -106,7 +105,7 @@ function FeaturedStep({ step, delay }: { step: Step; delay: number }) {
export function GetStarted() {
return (
<section id="get-started" className="relative py-20 sm:py-20">
- <div className={SECTION}>
+ <div className="section">
<SectionHeading
eyebrow="Get started"
title="Ship your first frame in minutes"
diff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsx
index 83926a48..5754df36 100644
--- a/app/(home)/components/sections/hero.tsx
+++ b/app/(home)/components/sections/hero.tsx
@@ -6,7 +6,7 @@ import { motion } from "motion/react";
import Link from "next/link";
import { useCallback, useRef, useState } from "react";
import { Button } from "@/components/ui/button";
-import { INSTALL_COMMAND, SECTION, SPRING_BOUNCE } from "@/config/landing";
+import { INSTALL_COMMAND, SPRING_BOUNCE } from "@/config/site";
import { useTrackEvent } from "@/lib/analytics";
import { HERO_CODE } from "@/lib/config/snippets";
import registry from "@/registry/__index__";
@@ -52,7 +52,7 @@ export function Hero() {
<div className="absolute inset-x-0 top-0 h-[420px] bg-[radial-gradient(60%_100%_at_50%_0%,var(--color-muted),transparent_70%)] opacity-70" />
</div>
- <div className={SECTION}>
+ <div className="section">
<div className="flex flex-col items-center text-center">
<FadeUp delay={0.06}>
<h1 className="max-w-3xl text-balance text-3xl font-semibold leading-[1.1] tracking-tight text-foreground sm:text-4xl md:text-5xl">
@@ -94,7 +94,7 @@ export function Hero() {
</div>
</div>
- <div className={SECTION}>
+ <div className="section">
<FadeUp delay={0.24} className="relative mt-10 w-full sm:mt-12">
<motion.div
className="relative"
diff --git a/app/(home)/components/sections/interactive-code.tsx b/app/(home)/components/sections/interactive-code.tsx
index 7e0ba945..d255dcfa 100644
--- a/app/(home)/components/sections/interactive-code.tsx
+++ b/app/(home)/components/sections/interactive-code.tsx
@@ -10,7 +10,7 @@ import {
useRef,
useState,
} from "react";
-import { SECTION, SPRING_SOFT } from "@/config/landing";
+import { SPRING_SOFT } from "@/config/site";
import { useTrackEvent } from "@/lib/analytics";
import { TYPEWRITER_DEFAULTS } from "@/lib/config/snippets";
import registry from "@/registry/__index__";
@@ -295,7 +295,7 @@ export function InteractiveCode() {
return (
<section id="showcase" className="relative py-20 sm:py-20">
- <div className={SECTION}>
+ <div className="section">
<SectionHeading
eyebrow="It's just props"
title="Tweak it live"
diff --git a/app/(home)/components/sections/landing-partners.tsx b/app/(home)/components/sections/landing-partners.tsx
index 78479658..920eccec 100644
--- a/app/(home)/components/sections/landing-partners.tsx
+++ b/app/(home)/components/sections/landing-partners.tsx
@@ -1,6 +1,5 @@
import { ArrowRight } from "lucide-react";
import Link from "next/link";
-import { SECTION } from "@/config/landing";
import { type Sponsor, sponsors } from "@/config/sponsors";
import { cn } from "@/lib/utils";
import { FadeUp } from "../fade-up";
@@ -35,7 +34,7 @@ export function LandingPartners() {
return (
<section id="partners" className="relative py-20 sm:py-20">
- <div className={SECTION}>
+ <div className="section">
<SectionHeading
align="center"
eyebrow="Sponsors"
diff --git a/app/(home)/components/site-footer.tsx b/app/(home)/components/site-footer.tsx
index 1d6573ac..0805ed08 100644
--- a/app/(home)/components/site-footer.tsx
+++ b/app/(home)/components/site-footer.tsx
@@ -1,9 +1,9 @@
-import { FOOTER_NAV, SECTION } from "@/config/landing";
+import { FOOTER_NAV } from "@/config/site";
import { NavFooter } from "./header-nav";
export function SiteFooter() {
return (
- <div className={SECTION}>
+ <div className="section">
<footer className="flex flex-col items-start justify-between gap-4 border-t border-border pt-8 pb-12 text-sm text-muted-foreground md:flex-row md:items-center">
<span suppressHydrationWarning>
© {new Date().getFullYear()} remocn — MIT licensed
diff --git a/app/(home)/components/site-header.tsx b/app/(home)/components/site-header.tsx
index 7271cba5..4c68f067 100644
--- a/app/(home)/components/site-header.tsx
+++ b/app/(home)/components/site-header.tsx
@@ -1,4 +1,4 @@
-import { NAV_LINKS } from "@/config/landing";
+import { NAV_LINKS } from "@/config/site";
import { NavDesktop } from "./header-nav";
import { HeaderActions, HeaderLogo } from "./header-parts";
import { StickyHeaderShell } from "./sticky-header-shell";
diff --git a/app/(home)/sponsors/components/sections/hero.tsx b/app/(home)/sponsors/components/sections/hero.tsx
index 54c07e94..0d1f6850 100644
--- a/app/(home)/sponsors/components/sections/hero.tsx
+++ b/app/(home)/sponsors/components/sections/hero.tsx
@@ -1,4 +1,4 @@
-import { LAVENDER, MINT, PEACH, SECTION } from "@/config/landing";
+import { LAVENDER, MINT, PEACH } from "@/config/site";
import { FadeUp } from "../../../components/fade-up";
export function Hero() {
@@ -11,7 +11,7 @@ export function Hero() {
background: `radial-gradient(60% 50% at 50% 20%, ${LAVENDER}22, transparent 70%), radial-gradient(40% 40% at 20% 80%, ${PEACH}18, transparent 60%), radial-gradient(40% 40% at 80% 20%, ${MINT}18, transparent 60%)`,
}}
/>
- <div className={SECTION}>
+ <div className="section">
<div className="flex flex-col items-center text-center">
<FadeUp delay={0.06}>
<p className="mb-3 font-mono text-xs font-medium text-muted-foreground">
diff --git a/app/(home)/sponsors/components/sections/tiers.tsx b/app/(home)/sponsors/components/sections/tiers.tsx
index 03f3e0f1..e87bd02f 100644
--- a/app/(home)/sponsors/components/sections/tiers.tsx
+++ b/app/(home)/sponsors/components/sections/tiers.tsx
@@ -7,7 +7,7 @@ import { useState } from "react";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
-import { SECTION, SPRING_BOUNCE, SPRING_SOFT } from "@/config/landing";
+import { SPRING_BOUNCE, SPRING_SOFT } from "@/config/site";
import { type BillingMode, type Tier, tiers } from "@/config/sponsors";
import { cn } from "@/lib/utils";
import { SpotlightSurface } from "@/components/spotlight-surface";
@@ -151,7 +151,7 @@ export function Tiers() {
return (
<section id="tiers" className="relative py-20 sm:py-24">
- <div className={SECTION}>
+ <div className="section">
<FadeUp>
<div className="mb-10 flex justify-center">
<BillingToggle value={billingMode} onChange={setBillingMode} />
diff --git a/app/(home)/sponsors/components/sections/wall-of-love.tsx b/app/(home)/sponsors/components/sections/wall-of-love.tsx
index 2847529f..b84098ef 100644
--- a/app/(home)/sponsors/components/sections/wall-of-love.tsx
+++ b/app/(home)/sponsors/components/sections/wall-of-love.tsx
@@ -1,7 +1,6 @@
import { ArrowRight } from "lucide-react";
import Link from "next/link";
import { Button } from "@/components/ui/button";
-import { SECTION } from "@/config/landing";
import { type Sponsor, sponsors } from "@/config/sponsors";
import { cn } from "@/lib/utils";
import { FadeUp } from "../../../components/fade-up";
@@ -75,7 +74,7 @@ export function WallOfLove() {
return (
<section id="wall-of-love" className="relative py-20 sm:py-28">
- <div className={SECTION}>
+ <div className="section">
<SectionHeading
eyebrow="Wall of love"
title="The people keeping remocn alive"
diff --git a/app/globals.css b/app/globals.css
index 6c64e88c..aea53c34 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -142,10 +142,17 @@
Theme-aware surfaces and decorative backgrounds for app/(home).
Everything derives from design tokens so light/dark stay unified.
- NOTE: page width is handled by plain utilities in `config/landing.ts`
- (SECTION) — NOT by overriding the `.container` class. Overriding the
- configured `.container` utility from an unlayered rule was fragile and
- left-shifted the whole landing when the cascade flipped. */
+ NOTE: page width is the `.section` class below — NOT an override of the
+ `.container` utility. Overriding the configured `.container` from an
+ unlayered rule was fragile and left-shifted the whole landing when the
+ cascade flipped. */
+
+/* Page content width wrapper — single source of truth for the landing/sponsors
+ content column: centered, max-w-6xl, responsive padding. Applied as
+ `className="section"`. */
+.section {
+ @apply mx-auto w-full max-w-6xl px-4 sm:px-6;
+}
/* Subtle dotted grid — fades toward the edges. Used behind the hero. */
.bg-grid-fade {
diff --git a/components/docs/callout.tsx b/components/docs/callout.tsx
index fb8243d0..b8447dfd 100644
--- a/components/docs/callout.tsx
+++ b/components/docs/callout.tsx
@@ -1,6 +1,6 @@
import { AlertTriangleIcon, InfoIcon } from "lucide-react";
import type { ReactNode } from "react";
-import { MINT, PEACH } from "@/config/landing";
+import { MINT, PEACH } from "@/config/site";
import { cn } from "@/lib/utils";
function CalloutBase({
@@ -35,7 +35,9 @@ function CalloutBase({
className="mt-0.5 shrink-0 text-muted-foreground"
style={
accent
- ? { color: `color-mix(in oklab, ${accent} 72%, var(--color-foreground))` }
+ ? {
+ color: `color-mix(in oklab, ${accent} 72%, var(--color-foreground))`,
+ }
: undefined
}
>
@@ -57,7 +59,11 @@ export function Note({
children: ReactNode;
}) {
return (
- <CalloutBase icon={<InfoIcon className="size-4" />} title={title} accent={MINT}>
+ <CalloutBase
+ icon={<InfoIcon className="size-4" />}
+ title={title}
+ accent={MINT}
+ >
{children}
</CalloutBase>
);
diff --git a/components/docs/docs-header.tsx b/components/docs/docs-header.tsx
index b4cd065a..8dad7198 100644
--- a/components/docs/docs-header.tsx
+++ b/components/docs/docs-header.tsx
@@ -3,7 +3,7 @@ import {
HeaderLogo,
} from "@/app/(home)/components/header-parts";
import { NavDesktop } from "@/app/(home)/components/header-nav";
-import { NAV_LINKS } from "@/config/landing";
+import { NAV_LINKS } from "@/config/site";
/**
* Static, content-aligned header for the docs. Unlike `SiteHeader` it never
diff --git a/config/landing.ts b/config/landing.ts
deleted file mode 100644
index f34beedb..00000000
--- a/config/landing.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// Pastel accent palette — peach / lavender / mint.
-// Used sparingly as low-opacity decorative glows; the base system is neutral.
-export const PEACH = "#FFB38E";
-export const LAVENDER = "#D4B3FF";
-export const MINT = "#A1EEBD";
-
-// Page width wrapper — single source of truth for the landing/sponsors content
-// width. Plain Tailwind utilities (not the `container` class) so it can't be
-// overridden by the configured `.container` utility, which has wider max-widths
-// and no centering/padding (that collision left-shifted the whole page).
-// Equivalent to: max-w-6xl (72rem), centered, px-4 / sm:px-6.
-export const SECTION = "mx-auto w-full max-w-6xl px-4 sm:px-6";
-
-export const GITHUB_URL = "https://github.com/kapishdima/remocn";
-
-/** Canonical example install command shown on the landing page. */
-export const INSTALL_COMMAND = "npx shadcn@latest add remocn/blur-reveal";
-
-export const SPRING_BOUNCE = {
- type: "spring" as const,
- stiffness: 120,
- damping: 14,
-};
-export const SPRING_SOFT = {
- type: "spring" as const,
- stiffness: 180,
- damping: 22,
-};
-
-export type NavLink = {
- href: string;
- label: string;
- /** Hidden on mobile (matches the existing `hidden sm:inline` pattern). */
- smOnly?: boolean;
-};
-
-// Единый источник топ-навигации для landing / sponsors / docs.
-export const NAV_LINKS: NavLink[] = [
- { href: "/docs/typography", label: "Components" },
- { href: "/sponsors", label: "Sponsors" },
- { href: "/docs/getting-started/introduction", label: "Docs" },
-];
-
-export const FOOTER_NAV: NavLink[] = [
- { href: "/docs/getting-started/introduction", label: "Docs" },
- { href: GITHUB_URL, label: "GitHub" },
- { href: "/sponsors", label: "Sponsors" },
-];
diff --git a/config/site.ts b/config/site.ts
index d6754754..b6a6deb8 100644
--- a/config/site.ts
+++ b/config/site.ts
@@ -1 +1,41 @@
-export const githubUrl = "https://github.com/kapishdima/remocn";
\ No newline at end of file
+// Pastel accent palette — peach / lavender / mint.
+// Used sparingly as low-opacity decorative glows; the base system is neutral.
+export const PEACH = "#FFB38E";
+export const LAVENDER = "#D4B3FF";
+export const MINT = "#A1EEBD";
+
+export const GITHUB_URL = "https://github.com/kapishdima/remocn";
+
+/** Canonical example install command shown on the landing page. */
+export const INSTALL_COMMAND = "npx shadcn@latest add remocn/blur-reveal";
+
+export const SPRING_BOUNCE = {
+ type: "spring" as const,
+ stiffness: 120,
+ damping: 14,
+};
+export const SPRING_SOFT = {
+ type: "spring" as const,
+ stiffness: 180,
+ damping: 22,
+};
+
+export type NavLink = {
+ href: string;
+ label: string;
+ /** Hidden on mobile (matches the existing `hidden sm:inline` pattern). */
+ smOnly?: boolean;
+};
+
+// Единый источник топ-навигации для landing / sponsors / docs.
+export const NAV_LINKS: NavLink[] = [
+ { href: "/docs/typography", label: "Components" },
+ { href: "/sponsors", label: "Sponsors" },
+ { href: "/docs/getting-started/introduction", label: "Docs" },
+];
+
+export const FOOTER_NAV: NavLink[] = [
+ { href: "/docs/getting-started/introduction", label: "Docs" },
+ { href: GITHUB_URL, label: "GitHub" },
+ { href: "/sponsors", label: "Sponsors" },
+];
diff --git a/config/sponsors.ts b/config/sponsors.ts
index f53a3b5f..a725441b 100644
--- a/config/sponsors.ts
+++ b/config/sponsors.ts
@@ -1,4 +1,4 @@
-import { LAVENDER, MINT, PEACH } from "@/config/landing";
+import { LAVENDER, MINT, PEACH } from "@/config/site";
export type SponsorTier = "partner" | "builder" | "supporter";
diff --git a/lib/config/snippets.ts b/lib/config/snippets.ts
index 168da7b5..9a7e09ad 100644
--- a/lib/config/snippets.ts
+++ b/lib/config/snippets.ts
@@ -1,4 +1,4 @@
-import { LAVENDER, MINT, PEACH } from "@/config/landing";
+import { LAVENDER, MINT, PEACH } from "@/config/site";
// ---------------------------------------------------------------------------
// Hero code block