Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
import newDocs from "@/config/new-docs.json";
import type { CtaId } from "@/lib/analytics";
import remocnRegistry from "@/registry/remocn/registry.json";
import remocnIconsRegistry from "@/registry/remocn-icons/registry.json";
import remocnUiRegistry from "@/registry/remocn-ui/registry.json";
// 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/Remocn/remocn";
export const X_URL = "https://x.com/_remocn";
export const THREADS_URL = "https://www.threads.com/@_remocn";
export const STUDIO_URL = "https://remocn.studio";
export const SUPPORT_EMAIL = "[email protected]";
export const INSTALL_ALL_NAMES: string[] = [
...remocnRegistry.items,
...remocnUiRegistry.items,
].map((item) => item.name);
export const INSTALL_ALL_COMMAND = `npx shadcn@latest add ${INSTALL_ALL_NAMES.map(
(name) => `@remocn/${name}`,
).join(" ")}`;
export const COMPONENT_COUNT =
remocnRegistry.items.length +
remocnUiRegistry.items.length +
remocnIconsRegistry.items.length;
/**
* The site's meta description; the home page's JSON-LD reuses it. It opens
* with the "shadcn/ui for video" answer in the words people search with.
*/
export const SITE_DESCRIPTION = `Remocn is shadcn/ui for video: a shadcn registry of ${COMPONENT_COUNT} MIT-licensed Remotion components. Your AI agent turns them into a product demo video.`;
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;
external?: boolean;
/** Small pink tag after the label (e.g. "New" on Studio). */
badge?: string;
/**
* Path prefix that marks this link as the current page. Defaults to `href`;
* `null` never marks it (deep links into a section another link owns).
*/
current?: string | null;
};
export function externalLinkProps(link: NavLink, cta: CtaId) {
if (!link.external) return {};
return {
target: "_blank",
rel: "noreferrer",
"data-track": "cta_clicked",
"data-cta": cta,
"data-destination": link.href,
};
}
// Единый источник топ-навигации для landing / sponsors / docs.
export const NAV_LINKS: NavLink[] = [
// Every docs page highlights Docs, Components and Templates included.
{
href: "/docs/getting-started/introduction",
label: "Docs",
current: "/docs",
},
{ href: "/docs/typography", label: "Components", current: null },
{ href: "/docs/templates", label: "Templates", current: null },
{ href: "/showcases", label: "Showcases" },
{ href: "/sponsors", label: "Sponsors" },
{ href: STUDIO_URL, label: "Studio", external: true, badge: "New" },
];
/**
* Docs whose sidebar menu item should carry the animated "NEW" badge. Keyed by
* the page's docs URL (the Fumadocs page-tree `item.url`). The list lives in
* `config/new-docs.json`: add or remove a path there to tag a menu item.
*/
export const NEW_BADGE_PATHS = new Set<string>(newDocs);
// Flat footer row: site pages first, then the external profiles.
export const FOOTER_LINKS: NavLink[] = [
{ href: "/docs/getting-started/introduction", label: "Docs" },
{ href: "/changelog", label: "Changelog" },
{ href: "/blog", label: "Blog" },
{ href: STUDIO_URL, label: "Studio", external: true },
{ href: "/sponsors", label: "Sponsors" },
{ href: "/inspired-by", label: "Inspired by" },
{ href: "/legal", label: "Legal" },
{ href: GITHUB_URL, label: "GitHub", external: true },
{ href: X_URL, label: "X", external: true },
];