Skip to content

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

feat: rebuild registry

dev_wandry125c3fe05918
diff --git a/public/r/caret.json b/public/r/caret.json
new file mode 100644
index 00000000..4ff1f77f
--- /dev/null
+++ b/public/r/caret.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "caret",
+ "title": "UI Caret",
+ "description": "A blinking text caret — a controlled vertical bar, or a pure motion atom that blinks deterministically from useCurrentFrame.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [],
+ "files": [
+ {
+ "path": "registry/remocn-ui/caret/index.tsx",
+ "content": "\"use client\";\n\nimport type { CSSProperties } from \"react\";\nimport { useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface CaretProps {\n color?: string;\n width?: number;\n height?: number;\n radius?: number;\n opacity?: number;\n blink?: boolean;\n blinkPerSecond?: number;\n speed?: number;\n marginLeft?: number;\n className?: string;\n style?: CSSProperties;\n}\n\nexport function caretBlinkOpacity(\n frame: number,\n opts: { fps: number; blinkPerSecond: number; speed: number },\n): number {\n const cycles = opts.blinkPerSecond <= 0 ? 1 : opts.blinkPerSecond;\n const halfPeriod = opts.fps / cycles / 2;\n if (halfPeriod <= 0) return 1;\n return Math.floor((frame * opts.speed) / halfPeriod) % 2 === 0 ? 1 : 0;\n}\n\nexport function Caret({\n color = \"currentColor\",\n width = 2,\n height = 18,\n radius = 1,\n opacity,\n blink = false,\n blinkPerSecond = 1,\n speed = 1,\n marginLeft = 0,\n className,\n style,\n}: CaretProps) {\n const frame = useCurrentFrame();\n const { fps } = useVideoConfig();\n\n const resolvedOpacity =\n opacity !== undefined\n ? opacity\n : blink\n ? caretBlinkOpacity(frame, { fps, blinkPerSecond, speed })\n : 1;\n\n return (\n <span\n className={className}\n style={{\n display: \"inline-block\",\n flexShrink: 0,\n width,\n height,\n borderRadius: radius,\n background: color,\n opacity: resolvedOpacity,\n marginLeft,\n ...style,\n }}\n />\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/caret.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/chat-gpt.json b/public/r/chat-gpt.json
new file mode 100644
index 00000000..8d3c4094
--- /dev/null
+++ b/public/r/chat-gpt.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "chat-gpt",
+ "title": "ChatGPT",
+ "description": "Animated ChatGPT composer — types a prompt into the pill input, the blue voice button morphs into a send button, and the suggestion chips fade out. Light/dark themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/chat-gpt/index.tsx",
+ "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Inter\";\nimport {\n AbsoluteFill,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { Caret } from \"@/components/remocn/caret\";\nimport { useTypewriter } from \"@/lib/remocn-ui\";\n\nconst { fontFamily: SANS_FAMILY } = loadFont();\n\nexport interface ChatGptProps {\n greeting?: string;\n placeholder?: string;\n prompt?: string;\n accentColor?: string;\n theme?: \"light\" | \"dark\";\n background?: \"surface\" | \"transparent\";\n speed?: number;\n}\n\ninterface Theme {\n page: string;\n inputBg: string;\n inputBorder: string;\n fg: string;\n fgMuted: string;\n chipBorder: string;\n chipFg: string;\n sendBg: string;\n sendArrow: string;\n iconColor: string;\n}\n\nexport const THEMES: Record<\"light\" | \"dark\", Theme> = {\n light: {\n page: \"#FFFFFF\",\n inputBg: \"#FFFFFF\",\n inputBorder: \"#E3E3E3\",\n fg: \"#0D0D0D\",\n fgMuted: \"#9B9B9B\",\n chipBorder: \"#E3E3E3\",\n chipFg: \"#5D5D5D\",\n sendBg: \"#0D0D0D\",\n sendArrow: \"#FFFFFF\",\n iconColor: \"#5D5D5D\",\n },\n dark: {\n page: \"#212121\",\n inputBg: \"#303030\",\n inputBorder: \"#454545\",\n fg: \"#ECECEC\",\n fgMuted: \"#9B9B9B\",\n chipBorder: \"#454545\",\n chipFg: \"#C5C5C5\",\n sendBg: \"#FFFFFF\",\n sendArrow: \"#0D0D0D\",\n iconColor: \"#C5C5C5\",\n },\n};\n\nexport const TYPING_START_FRAME = 42;\n\nexport const TYPING_CPS = 22;\n\nexport function morphProgressAt(\n frame: number,\n opts: { startFrame?: number; fps: number; speed: number },\n): number {\n const startFrame = opts.startFrame ?? TYPING_START_FRAME;\n const value = spring({\n fps: opts.fps,\n frame: frame * opts.speed - startFrame,\n config: { damping: 14, stiffness: 200, mass: 0.6 },\n });\n return Math.max(0, Math.min(value, 1));\n}\n\nfunction introBounceIn(\n frame: number,\n fps: number,\n): { translateY: number; scale: number } {\n const s = spring({\n fps,\n frame,\n config: { damping: 14, stiffness: 110, mass: 0.7 },\n });\n const translateY = interpolate(s, [0, 1], [28, 0]);\n const scale = interpolate(s, [0, 1], [0.97, 1]);\n return { translateY, scale };\n}\n\nfunction fadeUpAt(\n frame: number,\n range: [number, number],\n): { opacity: number; translateY: number } {\n const opts = {\n extrapolateLeft: \"clamp\" as const,\n extrapolateRight: \"clamp\" as const,\n };\n return {\n opacity: interpolate(frame, range, [0, 1], opts),\n translateY: interpolate(frame, range, [12, 0], opts),\n };\n}\n\nfunction PlusIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Add</title>\n <path\n d=\"M12 5v14M5 12h14\"\n stroke={color}\n strokeWidth={2}\n strokeLinecap=\"round\"\n />\n </svg>\n );\n}\n\nfunction MicIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Voice input</title>\n <rect\n x={9}\n y={3}\n width={6}\n height={11}\n rx={3}\n stroke={color}\n strokeWidth={1.8}\n />\n <path\n d=\"M5.5 11a6.5 6.5 0 0013 0M12 17.5V21M9 21h6\"\n stroke={color}\n strokeWidth={1.8}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction WaveformIcon({ size, color }: { size: number; color: string }) {\n const bars = [\n { x: 4, h: 8 },\n { x: 9, h: 16 },\n { x: 14, h: 12 },\n { x: 19, h: 20 },\n ];\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Voice</title>\n {bars.map((bar) => (\n <rect\n key={bar.x}\n x={bar.x - 1}\n y={(24 - bar.h) / 2}\n width={2.4}\n height={bar.h}\n rx={1.2}\n fill={color}\n />\n ))}\n </svg>\n );\n}\n\nfunction ArrowUpIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Send</title>\n <path\n d=\"M12 19V6M12 6l-6 6M12 6l6 6\"\n stroke={color}\n strokeWidth={2.2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction ImageIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Create an image</title>\n <rect\n x={3}\n y={4}\n width={18}\n height={16}\n rx={3}\n stroke={color}\n strokeWidth={1.7}\n />\n <circle cx={8.5} cy={9} r={1.6} stroke={color} strokeWidth={1.7} />\n <path\n d=\"M5 18l5-5 4 4 2-2 3 3\"\n stroke={color}\n strokeWidth={1.7}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction PencilIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Write or edit</title>\n <path\n d=\"M4 20h4L19 9a2.1 2.1 0 00-3-3L5 17v3z\"\n stroke={color}\n strokeWidth={1.7}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M14 7l3 3\"\n stroke={color}\n strokeWidth={1.7}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction GlobeIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Look something up</title>\n <circle cx={12} cy={12} r={9} stroke={color} strokeWidth={1.7} />\n <path\n d=\"M3 12h18M12 3c2.5 2.5 2.5 15 0 18M12 3c-2.5 2.5-2.5 15 0 18\"\n stroke={color}\n strokeWidth={1.7}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction SuggestionChip({\n label,\n border,\n color,\n icon,\n}: {\n label: string;\n border: string;\n color: string;\n icon: React.ReactNode;\n}) {\n return (\n <div\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: 8,\n padding: \"10px 16px\",\n borderRadius: 20,\n border: `1px solid ${border}`,\n color,\n fontFamily: SANS_FAMILY,\n fontSize: 15,\n }}\n >\n {icon}\n <span>{label}</span>\n </div>\n );\n}\n\nexport function ChatGpt({\n greeting = \"What's on your mind today?\",\n placeholder = \"Ask anything\",\n prompt = \"Make a sunset over a calm ocean\",\n accentColor = \"#2F6FED\",\n theme = \"light\",\n background = \"surface\",\n speed = 1,\n}: ChatGptProps) {\n const frame = useCurrentFrame();\n const { width, height, fps } = useVideoConfig();\n const t = THEMES[theme] ?? THEMES.light;\n\n const refW = 1280;\n const refH = 720;\n const stageScale = Math.min(width / refW, height / refH);\n\n const tw = useTypewriter(prompt, {\n cps: TYPING_CPS,\n speed,\n startFrame: TYPING_START_FRAME,\n });\n const visibleText = tw.text;\n const showText = tw.count > 0;\n const morph = morphProgressAt(frame, { fps, speed });\n\n const intro = introBounceIn(frame * speed, fps);\n const headingFade = fadeUpAt(frame * speed, [4, 20]);\n const pillFade = fadeUpAt(frame * speed, [10, 26]);\n const chipsFade = fadeUpAt(frame * speed, [16, 32]);\n\n const pageBg = background === \"transparent\" ? \"transparent\" : t.page;\n\n const pillWidth = 820;\n const pillLeft = (refW - pillWidth) / 2;\n const pillTop = 300;\n const pillHeight = 64;\n const morphSize = 44;\n\n const chipsOpacity = chipsFade.opacity * (1 - morph);\n const chipsShift = chipsFade.translateY + 8 * morph;\n\n return (\n <AbsoluteFill style={{ background: pageBg }}>\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: refW,\n height: refH,\n transform: `translate(-50%, -50%) scale(${stageScale})`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 196,\n width: refW,\n textAlign: \"center\",\n fontFamily: SANS_FAMILY,\n fontSize: 40,\n fontWeight: 700,\n color: t.fg,\n opacity: headingFade.opacity,\n transform: `translateY(${headingFade.translateY + intro.translateY * 0.4}px)`,\n }}\n >\n {greeting}\n </div>\n\n <div\n style={{\n position: \"absolute\",\n left: pillLeft,\n top: pillTop,\n width: pillWidth,\n height: pillHeight,\n background: t.inputBg,\n border: `1px solid ${t.inputBorder}`,\n borderRadius: 32,\n boxShadow:\n theme === \"light\"\n ? \"0 8px 30px -14px rgba(13,13,13,0.14)\"\n : \"0 8px 30px -14px rgba(0,0,0,0.5)\",\n opacity: pillFade.opacity,\n transform: `translateY(${pillFade.translateY + intro.translateY * 0.6}px) scale(${intro.scale})`,\n transformOrigin: \"center top\",\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: 20,\n paddingRight: 12,\n boxSizing: \"border-box\",\n }}\n >\n <PlusIcon size={24} color={t.fg} />\n\n <div\n style={{\n flex: 1,\n display: \"flex\",\n alignItems: \"center\",\n marginLeft: 14,\n fontFamily: SANS_FAMILY,\n fontSize: 19,\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n }}\n >\n {showText ? (\n <span\n style={{\n color: t.fg,\n display: \"inline-flex\",\n alignItems: \"center\",\n }}\n >\n {visibleText}\n <Caret\n color={t.fg}\n blink={!tw.typing}\n speed={speed}\n height={22}\n marginLeft={2}\n />\n </span>\n ) : (\n <span\n style={{\n color: t.fgMuted,\n display: \"inline-flex\",\n alignItems: \"center\",\n }}\n >\n <Caret color={t.fg} blink={!tw.typing} speed={speed} height={22} />\n <span style={{ marginLeft: 6 }}>{placeholder}</span>\n </span>\n )}\n </div>\n\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n flexShrink: 0,\n }}\n >\n <div\n style={{\n width: 40,\n height: 40,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <MicIcon size={22} color={t.iconColor} />\n </div>\n\n <div\n style={{\n position: \"relative\",\n width: morphSize,\n height: morphSize,\n flexShrink: 0,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderRadius: \"100%\",\n background: accentColor,\n opacity: 1 - morph,\n transform: `scale(${1 - 0.1 * morph})`,\n }}\n >\n <WaveformIcon size={22} color=\"#FFFFFF\" />\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderRadius: \"100%\",\n background: t.sendBg,\n opacity: morph,\n transform: `scale(${0.8 + 0.2 * morph})`,\n }}\n >\n <ArrowUpIcon size={22} color={t.sendArrow} />\n </div>\n </div>\n </div>\n </div>\n\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: pillTop + pillHeight + 24,\n width: refW,\n display: \"flex\",\n justifyContent: \"center\",\n gap: 12,\n opacity: chipsOpacity,\n transform: `translateY(${chipsShift}px)`,\n }}\n >\n <SuggestionChip\n label=\"Create an image\"\n border={t.chipBorder}\n color={t.chipFg}\n icon={<ImageIcon size={18} color={t.chipFg} />}\n />\n <SuggestionChip\n label=\"Write or edit\"\n border={t.chipBorder}\n color={t.chipFg}\n icon={<PencilIcon size={18} color={t.chipFg} />}\n />\n <SuggestionChip\n label=\"Look something up\"\n border={t.chipBorder}\n color={t.chipFg}\n icon={<GlobeIcon size={18} color={t.chipFg} />}\n />\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/chat-gpt.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/claude-chat.json b/public/r/claude-chat.json
new file mode 100644
index 00000000..7f7a5289
--- /dev/null
+++ b/public/r/claude-chat.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "claude-chat",
+ "title": "Claude Chat",
+ "description": "Animated Claude chat input — types a prompt character-by-character and the waveform button morphs into a terracotta send button the moment text appears. Warm light/dark themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/claude-chat/index.tsx",
+ "content": "\"use client\";\n\nimport { loadFont as loadHeadingFont } from \"@remotion/google-fonts/Fraunces\";\nimport { loadFont as loadBodyFont } from \"@remotion/google-fonts/Inter\";\nimport {\n AbsoluteFill,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { Caret } from \"@/components/remocn/caret\";\nimport { useTypewriter } from \"@/lib/remocn-ui\";\n\nconst { fontFamily: SANS_FAMILY } = loadBodyFont();\n\nexport interface ClaudeChatProps {\n greeting?: string;\n placeholder?: string;\n prompt?: string;\n modelName?: string;\n modelTier?: string;\n accentColor?: string;\n theme?: \"light\" | \"dark\";\n background?: \"surface\" | \"transparent\";\n speed?: number;\n}\n\ninterface Theme {\n page: string;\n cardBg: string;\n cardBorder: string;\n fg: string;\n fgMuted: string;\n placeholder: string;\n iconBtnBorder: string;\n}\n\nexport const THEMES: Record<\"light\" | \"dark\", Theme> = {\n light: {\n page: \"#F5F4EF\",\n cardBg: \"#FFFFFF\",\n cardBorder: \"#E8E5DD\",\n fg: \"#1F1E1D\",\n fgMuted: \"#73726C\",\n placeholder: \"#A3A097\",\n iconBtnBorder: \"#E0DDD4\",\n },\n dark: {\n page: \"#262624\",\n cardBg: \"#1F1E1D\",\n cardBorder: \"#3A3936\",\n fg: \"#F0EEE6\",\n fgMuted: \"#9B9892\",\n placeholder: \"#73726C\",\n iconBtnBorder: \"#3A3936\",\n },\n};\n\nexport const TYPING_START_FRAME = 42;\n\nexport const TYPING_CPS = 22;\n\nexport function morphProgressAt(\n frame: number,\n opts: { startFrame?: number; fps: number; speed: number },\n): number {\n const startFrame = opts.startFrame ?? TYPING_START_FRAME;\n const value = spring({\n fps: opts.fps,\n frame: frame * opts.speed - startFrame,\n config: { damping: 14, stiffness: 200, mass: 0.6 },\n });\n return Math.max(0, Math.min(value, 1));\n}\n\nexport function introBounceIn(\n frame: number,\n fps: number,\n): { translateY: number; scale: number } {\n const s = spring({\n fps,\n frame,\n config: { damping: 14, stiffness: 110, mass: 0.7 },\n });\n const translateY = interpolate(s, [0, 1], [28, 0]);\n const scale = interpolate(s, [0, 1], [0.97, 1]);\n return { translateY, scale };\n}\n\nexport function fadeUpAt(\n frame: number,\n range: [number, number],\n): { opacity: number; translateY: number } {\n const opts = {\n extrapolateLeft: \"clamp\" as const,\n extrapolateRight: \"clamp\" as const,\n };\n return {\n opacity: interpolate(frame, range, [0, 1], opts),\n translateY: interpolate(frame, range, [12, 0], opts),\n };\n}\n\nfunction ChevronDown({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Expand</title>\n <path\n d=\"M6 9l6 6 6-6\"\n stroke={color}\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction PlusIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Add</title>\n <path\n d=\"M12 5v14M5 12h14\"\n stroke={color}\n strokeWidth={2}\n strokeLinecap=\"round\"\n />\n </svg>\n );\n}\n\nfunction MicIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Voice input</title>\n <rect\n x={9}\n y={3}\n width={6}\n height={11}\n rx={3}\n stroke={color}\n strokeWidth={1.8}\n />\n <path\n d=\"M5.5 11a6.5 6.5 0 0013 0M12 17.5V21M9 21h6\"\n stroke={color}\n strokeWidth={1.8}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction WaveformIcon({ size, color }: { size: number; color: string }) {\n const bars = [\n { x: 4, h: 8 },\n { x: 9, h: 16 },\n { x: 14, h: 12 },\n { x: 19, h: 20 },\n ];\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Voice</title>\n {bars.map((bar) => (\n <rect\n key={bar.x}\n x={bar.x - 1}\n y={(24 - bar.h) / 2}\n width={2.4}\n height={bar.h}\n rx={1.2}\n fill={color}\n />\n ))}\n </svg>\n );\n}\n\nfunction SendIcon({ size }: { size: number }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Send</title>\n <path\n d=\"M12 19V5M12 5l-6 6M12 5l6 6\"\n stroke=\"#FFFFFF\"\n strokeWidth={2.2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction IconButton({\n size,\n border,\n children,\n}: {\n size: number;\n border: string;\n children: React.ReactNode;\n}) {\n return (\n <div\n style={{\n width: size,\n height: size,\n borderRadius: \"100%\",\n border: `1px solid ${border}`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0,\n }}\n >\n {children}\n </div>\n );\n}\n\nexport function ClaudeChat({\n placeholder = \"Try: draft an email · summarize a doc · plan your week\",\n prompt = \"Draft a launch tweet for our new release\",\n modelName = \"Opus 4.8\",\n modelTier = \"Max\",\n accentColor = \"#D97757\",\n theme = \"light\",\n background = \"surface\",\n speed = 1,\n}: ClaudeChatProps) {\n const frame = useCurrentFrame();\n const { width, height, fps } = useVideoConfig();\n const t = THEMES[theme] ?? THEMES.light;\n\n const refW = 1280;\n const refH = 720;\n const stageScale = Math.min(width / refW, height / refH);\n\n const tw = useTypewriter(prompt, {\n cps: TYPING_CPS,\n speed,\n startFrame: TYPING_START_FRAME,\n });\n const visibleText = tw.text;\n const showText = tw.count > 0;\n const morph = morphProgressAt(frame, { fps, speed });\n\n const intro = introBounceIn(frame * speed, fps);\n const cardFade = fadeUpAt(frame * speed, [6, 22]);\n\n const pageBg = background === \"transparent\" ? \"transparent\" : t.page;\n\n const cardWidth = 860;\n const cardLeft = (refW - cardWidth) / 2;\n const iconBtnSize = 36;\n const morphSize = 40;\n\n return (\n <AbsoluteFill style={{ background: pageBg }}>\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: refW,\n height: refH,\n transform: `translate(-50%, -50%) scale(${stageScale})`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: cardLeft,\n top: 300,\n width: cardWidth,\n background: t.cardBg,\n border: `1px solid ${t.cardBorder}`,\n borderRadius: 24,\n boxShadow:\n theme === \"light\"\n ? \"0 8px 30px -12px rgba(31,30,29,0.12)\"\n : \"0 8px 30px -12px rgba(0,0,0,0.5)\",\n opacity: cardFade.opacity,\n transform: `translateY(${cardFade.translateY + intro.translateY}px) scale(${intro.scale})`,\n transformOrigin: \"center top\",\n }}\n >\n <div\n style={{\n padding: \"26px 28px\",\n minHeight: 58,\n fontFamily: SANS_FAMILY,\n fontSize: 21,\n lineHeight: 1.3,\n display: \"flex\",\n alignItems: \"center\",\n }}\n >\n {showText ? (\n <span style={{ color: t.fg }}>\n {visibleText}\n <Caret\n color={t.fg}\n blink={!tw.typing}\n speed={speed}\n height={24}\n radius={0}\n marginLeft={1}\n style={{\n verticalAlign: \"text-bottom\",\n transform: \"translateY(3px)\",\n }}\n />\n </span>\n ) : (\n <span\n style={{\n color: t.placeholder,\n display: \"inline-flex\",\n alignItems: \"center\",\n }}\n >\n <Caret\n color={t.fg}\n blink={!tw.typing}\n speed={speed}\n height={24}\n radius={0}\n marginLeft={1}\n style={{\n verticalAlign: \"text-bottom\",\n transform: \"translateY(3px)\",\n }}\n />\n <span style={{ marginLeft: 2 }}>{placeholder}</span>\n </span>\n )}\n </div>\n\n <div\n style={{\n padding: \"14px 18px\",\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n >\n <IconButton size={iconBtnSize} border={t.iconBtnBorder}>\n <PlusIcon size={20} color={t.fg} />\n </IconButton>\n\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 14,\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 7,\n }}\n >\n <span\n style={{\n fontFamily: SANS_FAMILY,\n fontSize: 18,\n fontWeight: 500,\n color: t.fg,\n }}\n >\n {modelName}\n </span>\n <span\n style={{\n fontFamily: SANS_FAMILY,\n fontSize: 18,\n fontWeight: 400,\n color: t.fgMuted,\n }}\n >\n {modelTier}\n </span>\n <ChevronDown size={16} color={t.fgMuted} />\n </div>\n\n <IconButton size={iconBtnSize} border={t.iconBtnBorder}>\n <MicIcon size={20} color={t.fg} />\n </IconButton>\n\n <div\n style={{\n position: \"relative\",\n width: morphSize,\n height: morphSize,\n flexShrink: 0,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderRadius: \"100%\",\n border: `1px solid ${t.iconBtnBorder}`,\n opacity: 1 - morph,\n transform: `scale(${1 - 0.1 * morph})`,\n }}\n >\n <WaveformIcon size={22} color={t.fg} />\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderRadius: 10,\n background: accentColor,\n opacity: morph,\n transform: `scale(${0.8 + 0.2 * morph})`,\n }}\n >\n <SendIcon size={22} />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/claude-chat.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/claude-code.json b/public/r/claude-code.json
new file mode 100644
index 00000000..f71000e4
--- /dev/null
+++ b/public/r/claude-code.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "claude-code",
+ "title": "Claude Code",
+ "description": "Animated Claude Code CLI welcome screen — terminal window with a dashed welcome box, recent activity and what's new panels, and a prompt line that types a command with a block cursor. Dark/light themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/claude-code/index.tsx",
+ "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/JetBrainsMono\";\nimport {\n AbsoluteFill,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { Caret } from \"@/components/remocn/caret\";\nimport { useTypewriter } from \"@/lib/remocn-ui\";\n\nconst { fontFamily: MONO_FAMILY } = loadFont();\n\nexport interface ClaudeCodeProps {\n title?: string;\n userName?: string;\n model?: string;\n cwd?: string;\n placeholder?: string;\n prompt?: string;\n accentColor?: string;\n theme?: \"light\" | \"dark\";\n background?: \"surface\" | \"transparent\";\n speed?: number;\n}\n\ninterface Theme {\n page: string;\n windowBar: string;\n windowBody: string;\n fg: string;\n fgMuted: string;\n fgDim: string;\n boxBorder: string;\n}\n\nexport const THEMES: Record<\"light\" | \"dark\", Theme> = {\n light: {\n page: \"#E8E5DD\",\n windowBar: \"#D8D3CA\",\n windowBody: \"#FBFAF7\",\n fg: \"#1F1E1D\",\n fgMuted: \"#73726C\",\n fgDim: \"#A3A097\",\n boxBorder: \"#D97757\",\n },\n dark: {\n page: \"#2B2A28\",\n windowBar: \"#3A3633\",\n windowBody: \"#1B1A18\",\n fg: \"#E8E5DD\",\n fgMuted: \"#8A857C\",\n fgDim: \"#6B6660\",\n boxBorder: \"#D97757\",\n },\n};\n\nexport const TYPING_START_FRAME = 48;\n\nexport const TYPING_CPS = 18;\n\nexport const WHATS_NEW: string[] = [\n \"/agents to create subagents\",\n \"/security-review for review agent\",\n \"ctrl+b to background bashes\",\n];\n\nfunction introBounceIn(\n frame: number,\n fps: number,\n): { translateY: number; scale: number } {\n const s = spring({\n fps,\n frame,\n config: { damping: 14, stiffness: 110, mass: 0.7 },\n });\n const translateY = interpolate(s, [0, 1], [28, 0]);\n const scale = interpolate(s, [0, 1], [0.97, 1]);\n return { translateY, scale };\n}\n\nfunction fadeUpAt(\n frame: number,\n range: [number, number],\n): { opacity: number; translateY: number } {\n const opts = {\n extrapolateLeft: \"clamp\" as const,\n extrapolateRight: \"clamp\" as const,\n };\n return {\n opacity: interpolate(frame, range, [0, 1], opts),\n translateY: interpolate(frame, range, [12, 0], opts),\n };\n}\n\nfunction Mascot({ accent, size = 96 }: { accent: string; size?: number }) {\n return (\n <svg\n height={size}\n viewBox=\"0 0 24 24\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>Claude Code</title>\n <path\n clipRule=\"evenodd\"\n d=\"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z\"\n fill={accent}\n fillRule=\"evenodd\"\n />\n </svg>\n );\n}\n\nexport function ClaudeCode({\n title = \"Claude Code v2.0.0\",\n userName = \"Meaghan\",\n model = \"Opus 4.8 • Max 20x\",\n cwd = \"/users/meaghan/code/apps\",\n placeholder = 'Try \"edit <filepath> to ...\"',\n prompt = \"edit src/theme.ts to add a dark mode toggle\",\n accentColor = \"#D97757\",\n theme = \"dark\",\n background = \"surface\",\n speed = 1,\n}: ClaudeCodeProps) {\n const frame = useCurrentFrame();\n const { width, height, fps } = useVideoConfig();\n const t = THEMES[theme] ?? THEMES.dark;\n\n const refW = 1280;\n const refH = 720;\n const stageScale = Math.min(width / refW, height / refH);\n\n const tw = useTypewriter(prompt, {\n cps: TYPING_CPS,\n speed,\n startFrame: TYPING_START_FRAME,\n });\n const showText = tw.count > 0;\n\n const intro = introBounceIn(frame * speed, fps);\n const leftFade = fadeUpAt(frame * speed, [6, 22]);\n const rightFade = fadeUpAt(frame * speed, [12, 30]);\n const promptFade = fadeUpAt(frame * speed, [18, 36]);\n\n const pageBg = background === \"transparent\" ? \"transparent\" : t.page;\n const border = accentColor;\n\n const winLeft = 90;\n const winTop = 40;\n const winWidth = 1100;\n const winHeight = 620;\n const barHeight = 40;\n\n return (\n <AbsoluteFill style={{ background: pageBg }}>\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: refW,\n height: refH,\n transform: `translate(-50%, -50%) scale(${stageScale})`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: winLeft,\n top: winTop,\n width: winWidth,\n height: winHeight,\n background: t.windowBody,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow:\n theme === \"light\"\n ? \"0 24px 60px -20px rgba(31,30,29,0.28)\"\n : \"0 24px 60px -20px rgba(0,0,0,0.6)\",\n opacity: intro.scale,\n transform: `translateY(${intro.translateY}px) scale(${intro.scale})`,\n transformOrigin: \"center top\",\n display: \"flex\",\n flexDirection: \"column\",\n boxSizing: \"border-box\",\n }}\n >\n <div\n style={{\n height: barHeight,\n background: t.windowBar,\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n paddingLeft: 16,\n flexShrink: 0,\n }}\n >\n <div\n style={{\n width: 12,\n height: 12,\n borderRadius: \"50%\",\n background: \"#FF5F57\",\n }}\n />\n <div\n style={{\n width: 12,\n height: 12,\n borderRadius: \"50%\",\n background: \"#FEBC2E\",\n }}\n />\n <div\n style={{\n width: 12,\n height: 12,\n borderRadius: \"50%\",\n background: \"#28C840\",\n }}\n />\n </div>\n\n <div\n style={{\n flex: 1,\n position: \"relative\",\n padding: 28,\n boxSizing: \"border-box\",\n display: \"flex\",\n flexDirection: \"column\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n border: `1px dashed ${border}`,\n borderRadius: 6,\n padding: \"28px 24px 24px\",\n opacity: leftFade.opacity,\n transform: `translateY(${leftFade.translateY}px)`,\n }}\n >\n <span\n style={{\n position: \"absolute\",\n top: -11,\n left: 22,\n padding: \"0 10px\",\n background: t.windowBody,\n color: accentColor,\n fontFamily: MONO_FAMILY,\n fontSize: 16,\n fontWeight: 700,\n }}\n >\n {title}\n </span>\n\n <div style={{ display: \"flex\", flexDirection: \"row\" }}>\n <div\n style={{\n width: \"42%\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n gap: 16,\n paddingRight: 24,\n boxSizing: \"border-box\",\n }}\n >\n <div\n style={{\n fontFamily: MONO_FAMILY,\n fontSize: 20,\n color: t.fg,\n }}\n >\n Welcome back {userName}!\n </div>\n <div style={{ alignSelf: \"center\" }}>\n <Mascot accent={accentColor} />\n </div>\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 4,\n }}\n >\n <div\n style={{\n fontFamily: MONO_FAMILY,\n fontSize: 15,\n color: t.fgMuted,\n }}\n >\n {model}\n </div>\n <div\n style={{\n fontFamily: MONO_FAMILY,\n fontSize: 15,\n color: t.fgMuted,\n }}\n >\n {cwd}\n </div>\n </div>\n </div>\n\n <div\n style={{\n width: \"58%\",\n borderLeft: `1px dashed ${border}`,\n paddingLeft: 24,\n boxSizing: \"border-box\",\n display: \"flex\",\n flexDirection: \"column\",\n opacity: rightFade.opacity,\n transform: `translateY(${rightFade.translateY}px)`,\n }}\n >\n <div>\n <div\n style={{\n fontFamily: MONO_FAMILY,\n fontSize: 15,\n fontWeight: 700,\n color: accentColor,\n marginBottom: 10,\n }}\n >\n What's new\n </div>\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 6,\n }}\n >\n {WHATS_NEW.map((line) => (\n <div\n key={line}\n style={{\n fontFamily: MONO_FAMILY,\n fontSize: 14,\n color: t.fg,\n }}\n >\n {line}\n </div>\n ))}\n <div\n style={{\n fontFamily: MONO_FAMILY,\n fontSize: 14,\n color: t.fgDim,\n }}\n >\n ... /help for more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div style={{ height: 32 }} />\n\n <div\n style={{\n opacity: promptFade.opacity,\n transform: `translateY(${promptFade.translateY}px)`,\n }}\n >\n <div\n style={{\n height: 1,\n background: t.fgDim,\n opacity: 0.4,\n marginBottom: 16,\n }}\n />\n <div\n style={{\n display: \"flex\",\n flexDirection: \"row\",\n alignItems: \"center\",\n fontFamily: MONO_FAMILY,\n fontSize: 17,\n whiteSpace: \"pre\",\n }}\n >\n <span style={{ color: t.fgMuted }}>{\"> \"}</span>\n {showText ? (\n <span\n style={{\n position: \"relative\",\n color: t.fg,\n display: \"inline-flex\",\n alignItems: \"center\",\n }}\n >\n {tw.text}\n <span style={{ opacity: 0.55, display: \"inline-flex\" }}>\n <Caret\n width={11}\n height={22}\n color={t.fg}\n blink={!tw.typing}\n speed={speed}\n marginLeft={2}\n />\n </span>\n </span>\n ) : (\n <span\n style={{\n position: \"relative\",\n color: t.fgMuted,\n display: \"inline-flex\",\n alignItems: \"center\",\n }}\n >\n <span style={{ opacity: 0.55, display: \"inline-flex\" }}>\n <Caret\n width={11}\n height={22}\n color={t.fg}\n blink={!tw.typing}\n speed={speed}\n />\n </span>\n <span style={{ marginLeft: 6 }}>{placeholder}</span>\n </span>\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/claude-code.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/combobox.json b/public/r/combobox.json
index 1deb6c93..32c070dd 100644
--- a/public/r/combobox.json
+++ b/public/r/combobox.json
@@ -14,7 +14,7 @@
"files": [
{
"path": "registry/remocn-ui/combobox/index.tsx",
- "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport {\n inputStyle,\n inputStyleContext,\n type InputStyle,\n type InputStyleContext,\n} from \"@/components/remocn/input\";\nimport {\n SelectItemRow,\n selectItemStyle,\n selectItemStyleContext,\n type SelectItemState,\n type SelectItemStyle,\n type SelectItemStyleContext,\n} from \"@/components/remocn/select-item\";\n\nexport type ComboboxState = \"opened\" | \"closed\";\n\nexport interface ComboboxProps {\n state?: ComboboxState;\n style?: ComboboxStyle;\n query?: string;\n revealCount?: number;\n placeholder?: string;\n items?: string[];\n selectedIndex?: number;\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (SelectItemStyle | undefined)[];\n inputStyle?: InputStyle;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst WIDTH = 280;\n\nexport function filterComboboxItems(\n items: string[],\n query: string,\n revealCount?: number,\n): string[] {\n const visible = (\n revealCount === undefined ? query : query.slice(0, revealCount)\n )\n .trim()\n .toLowerCase();\n if (visible === \"\") return items;\n return items.filter((item) => item.toLowerCase().includes(visible));\n}\n\nexport interface ComboboxStyle {\n panelOpacity: number;\n panelScale: number;\n panelTranslateY: number;\n}\n\nexport interface ComboboxStyleContext {\n triggerCtx: InputStyleContext;\n panelBg: string;\n panelBorder: string;\n mutedFg: string;\n radius: number;\n itemCtx: SelectItemStyleContext;\n}\n\nexport function comboboxStyleContext(theme: RemocnTheme): ComboboxStyleContext {\n return {\n triggerCtx: inputStyleContext(theme),\n panelBg: theme.popover,\n panelBorder: theme.border,\n mutedFg: theme.mutedForeground,\n radius: theme.radius,\n itemCtx: selectItemStyleContext(theme),\n };\n}\n\nexport function comboboxStyle(\n state: ComboboxState,\n _ctx: ComboboxStyleContext,\n): ComboboxStyle {\n switch (state) {\n case \"opened\":\n return { panelOpacity: 1, panelScale: 1, panelTranslateY: 0 };\n default:\n return { panelOpacity: 0, panelScale: 0.96, panelTranslateY: -4 };\n }\n}\n\nfunction rowState(\n i: number,\n selectedIndex: number,\n highlightedIndex: number,\n pressedIndex: number,\n): SelectItemState {\n if (i === pressedIndex) return \"press\";\n if (i === selectedIndex) return \"selected\";\n if (i === highlightedIndex) return \"hover\";\n return \"idle\";\n}\n\nexport function Combobox({\n state = \"closed\",\n style,\n query = \"\",\n revealCount,\n placeholder = \"Select a fruit…\",\n items = [\"Apple\", \"Banana\", \"Orange\", \"Grape\"],\n selectedIndex = -1,\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n inputStyle: inputStyleOverride,\n theme: themeOverride,\n mode,\n className,\n}: ComboboxProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = comboboxStyleContext(theme);\n const v = style ?? comboboxStyle(state, ctx);\n\n const visibleQuery =\n revealCount === undefined ? query : query.slice(0, revealCount);\n const filtered = filterComboboxItems(items, query, revealCount);\n\n const trigger: InputStyle =\n inputStyleOverride ??\n inputStyle(visibleQuery ? \"typing\" : \"idle\", ctx.triggerCtx);\n\n const valueWidth = visibleQuery.length * 8;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div style={{ position: \"relative\", width: WIDTH }}>\n {}\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n width: WIDTH,\n boxSizing: \"border-box\",\n height: 40,\n padding: \"0 14px\",\n fontSize: 15,\n letterSpacing: \"-0.01em\",\n background: trigger.background,\n border: `1px solid ${trigger.borderColor}`,\n borderRadius: theme.radius,\n boxShadow: `0 0 0 ${trigger.ringWidth}px ${trigger.ringColor}`,\n }}\n >\n {}\n <span\n style={{\n position: \"absolute\",\n left: 14,\n color: ctx.triggerCtx.mutedForeground,\n opacity: trigger.valueReveal > 0 ? 0 : trigger.placeholderOpacity,\n pointerEvents: \"none\",\n whiteSpace: \"nowrap\",\n }}\n >\n {placeholder}\n </span>\n {}\n <div style={{ display: \"flex\", alignItems: \"center\", minWidth: 0 }}>\n <span\n style={{\n display: \"inline-block\",\n width: valueWidth * trigger.valueReveal,\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n color: ctx.triggerCtx.foreground,\n }}\n >\n {visibleQuery}\n </span>\n <span\n style={{\n flexShrink: 0,\n width: 2,\n height: 17,\n borderRadius: 1,\n background: ctx.triggerCtx.foreground,\n opacity: trigger.caretOpacity,\n }}\n />\n </div>\n </div>\n {}\n <div\n style={{\n position: \"absolute\",\n top: \"calc(100% + 6px)\",\n left: 0,\n width: WIDTH,\n boxSizing: \"border-box\",\n transformOrigin: \"top\",\n transform: `translateY(${v.panelTranslateY}px) scale(${v.panelScale})`,\n opacity: v.panelOpacity,\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius,\n padding: 4,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n boxShadow: \"0 16px 32px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {filtered.length === 0 ? (\n <div\n style={{\n padding: \"12px\",\n textAlign: \"center\",\n fontSize: 14,\n color: ctx.mutedFg,\n }}\n >\n No results found.\n </div>\n ) : (\n filtered.map((item, i) => {\n const override = itemStyles?.[i];\n return (\n <SelectItemRow\n key={item}\n style={\n override ??\n selectItemStyle(\n rowState(i, selectedIndex, highlightedIndex, pressedIndex),\n ctx.itemCtx,\n )\n }\n ctx={ctx.itemCtx}\n label={item}\n width={WIDTH - 8}\n radius={theme.radius}\n check={ctx.itemCtx.check}\n />\n );\n })\n )}\n </div>\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, revealedText, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport {\n inputStyle,\n inputStyleContext,\n type InputStyle,\n type InputStyleContext,\n} from \"@/components/remocn/input\";\nimport {\n SelectItemRow,\n selectItemStyle,\n selectItemStyleContext,\n type SelectItemState,\n type SelectItemStyle,\n type SelectItemStyleContext,\n} from \"@/components/remocn/select-item\";\n\nexport type ComboboxState = \"opened\" | \"closed\";\n\nexport interface ComboboxProps {\n state?: ComboboxState;\n style?: ComboboxStyle;\n query?: string;\n revealCount?: number;\n placeholder?: string;\n items?: string[];\n selectedIndex?: number;\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (SelectItemStyle | undefined)[];\n inputStyle?: InputStyle;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst WIDTH = 280;\n\nexport function filterComboboxItems(\n items: string[],\n query: string,\n revealCount?: number,\n): string[] {\n const visible = (\n revealCount === undefined ? query : revealedText(query, revealCount)\n )\n .trim()\n .toLowerCase();\n if (visible === \"\") return items;\n return items.filter((item) => item.toLowerCase().includes(visible));\n}\n\nexport interface ComboboxStyle {\n panelOpacity: number;\n panelScale: number;\n panelTranslateY: number;\n}\n\nexport interface ComboboxStyleContext {\n triggerCtx: InputStyleContext;\n panelBg: string;\n panelBorder: string;\n mutedFg: string;\n radius: number;\n itemCtx: SelectItemStyleContext;\n}\n\nexport function comboboxStyleContext(theme: RemocnTheme): ComboboxStyleContext {\n return {\n triggerCtx: inputStyleContext(theme),\n panelBg: theme.popover,\n panelBorder: theme.border,\n mutedFg: theme.mutedForeground,\n radius: theme.radius,\n itemCtx: selectItemStyleContext(theme),\n };\n}\n\nexport function comboboxStyle(\n state: ComboboxState,\n _ctx: ComboboxStyleContext,\n): ComboboxStyle {\n switch (state) {\n case \"opened\":\n return { panelOpacity: 1, panelScale: 1, panelTranslateY: 0 };\n default:\n return { panelOpacity: 0, panelScale: 0.96, panelTranslateY: -4 };\n }\n}\n\nfunction rowState(\n i: number,\n selectedIndex: number,\n highlightedIndex: number,\n pressedIndex: number,\n): SelectItemState {\n if (i === pressedIndex) return \"press\";\n if (i === selectedIndex) return \"selected\";\n if (i === highlightedIndex) return \"hover\";\n return \"idle\";\n}\n\nexport function Combobox({\n state = \"closed\",\n style,\n query = \"\",\n revealCount,\n placeholder = \"Select a fruit…\",\n items = [\"Apple\", \"Banana\", \"Orange\", \"Grape\"],\n selectedIndex = -1,\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n inputStyle: inputStyleOverride,\n theme: themeOverride,\n mode,\n className,\n}: ComboboxProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = comboboxStyleContext(theme);\n const v = style ?? comboboxStyle(state, ctx);\n\n const visibleQuery =\n revealCount === undefined ? query : revealedText(query, revealCount);\n const filtered = filterComboboxItems(items, query, revealCount);\n\n const trigger: InputStyle =\n inputStyleOverride ??\n inputStyle(visibleQuery ? \"typing\" : \"idle\", ctx.triggerCtx);\n\n const valueWidth = visibleQuery.length * 8;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div style={{ position: \"relative\", width: WIDTH }}>\n {}\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n width: WIDTH,\n boxSizing: \"border-box\",\n height: 40,\n padding: \"0 14px\",\n fontSize: 15,\n letterSpacing: \"-0.01em\",\n background: trigger.background,\n border: `1px solid ${trigger.borderColor}`,\n borderRadius: theme.radius,\n boxShadow: `0 0 0 ${trigger.ringWidth}px ${trigger.ringColor}`,\n }}\n >\n {}\n <span\n style={{\n position: \"absolute\",\n left: 14,\n color: ctx.triggerCtx.mutedForeground,\n opacity: trigger.valueReveal > 0 ? 0 : trigger.placeholderOpacity,\n pointerEvents: \"none\",\n whiteSpace: \"nowrap\",\n }}\n >\n {placeholder}\n </span>\n {}\n <div style={{ display: \"flex\", alignItems: \"center\", minWidth: 0 }}>\n <span\n style={{\n display: \"inline-block\",\n width: valueWidth * trigger.valueReveal,\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n color: ctx.triggerCtx.foreground,\n }}\n >\n {visibleQuery}\n </span>\n <span\n style={{\n flexShrink: 0,\n width: 2,\n height: 17,\n borderRadius: 1,\n background: ctx.triggerCtx.foreground,\n opacity: trigger.caretOpacity,\n }}\n />\n </div>\n </div>\n {}\n <div\n style={{\n position: \"absolute\",\n top: \"calc(100% + 6px)\",\n left: 0,\n width: WIDTH,\n boxSizing: \"border-box\",\n transformOrigin: \"top\",\n transform: `translateY(${v.panelTranslateY}px) scale(${v.panelScale})`,\n opacity: v.panelOpacity,\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius,\n padding: 4,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n boxShadow: \"0 16px 32px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {filtered.length === 0 ? (\n <div\n style={{\n padding: \"12px\",\n textAlign: \"center\",\n fontSize: 14,\n color: ctx.mutedFg,\n }}\n >\n No results found.\n </div>\n ) : (\n filtered.map((item, i) => {\n const override = itemStyles?.[i];\n return (\n <SelectItemRow\n key={item}\n style={\n override ??\n selectItemStyle(\n rowState(i, selectedIndex, highlightedIndex, pressedIndex),\n ctx.itemCtx,\n )\n }\n ctx={ctx.itemCtx}\n label={item}\n width={WIDTH - 8}\n radius={theme.radius}\n check={ctx.itemCtx.check}\n />\n );\n })\n )}\n </div>\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/combobox.tsx"
},
diff --git a/public/r/command-menu.json b/public/r/command-menu.json
index e1e804d6..86347e6f 100644
--- a/public/r/command-menu.json
+++ b/public/r/command-menu.json
@@ -13,7 +13,7 @@
"files": [
{
"path": "registry/remocn-ui/command-menu/index.tsx",
- "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport {\n CommandMenuItemRow,\n commandMenuItemStyle,\n commandMenuItemStyleContext,\n type CommandMenuIcon,\n type CommandMenuItemState,\n type CommandMenuItemStyle,\n type CommandMenuItemStyleContext,\n} from \"@/components/remocn/command-menu-item\";\n\nexport type CommandMenuState = \"opened\" | \"closed\";\n\nexport interface CommandMenuEntry {\n icon?: CommandMenuIcon;\n label: string;\n shortcut?: string;\n}\n\nexport interface CommandMenuProps {\n state?: CommandMenuState;\n style?: CommandMenuStyle;\n query?: string;\n revealCount?: number;\n items?: CommandMenuEntry[];\n selectedIndex?: number;\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (CommandMenuItemStyle | undefined)[];\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst PANEL_WIDTH = 440;\nconst CONTENT_WIDTH = PANEL_WIDTH - 16;\nconst MAX_OVERLAY_ALPHA = 0.5;\n\nexport function filterCommandItems(\n items: CommandMenuEntry[],\n query: string,\n revealCount?: number,\n): CommandMenuEntry[] {\n const visible = (\n revealCount === undefined ? query : query.slice(0, revealCount)\n )\n .trim()\n .toLowerCase();\n if (visible === \"\") return items;\n return items.filter((item) => item.label.toLowerCase().includes(visible));\n}\n\nexport interface CommandMenuStyle {\n backdropOpacity: number;\n panelOpacity: number;\n panelScale: number;\n panelTranslateY: number;\n}\n\nexport interface CommandMenuStyleContext {\n panelBg: string;\n panelBorder: string;\n inputFg: string;\n placeholderFg: string;\n mutedFg: string;\n divider: string;\n caret: string;\n radius: number;\n itemCtx: CommandMenuItemStyleContext;\n}\n\nexport function commandMenuStyleContext(\n theme: RemocnTheme,\n): CommandMenuStyleContext {\n return {\n panelBg: theme.popover,\n panelBorder: theme.border,\n inputFg: theme.popoverForeground,\n placeholderFg: theme.mutedForeground,\n mutedFg: theme.mutedForeground,\n divider: theme.border,\n caret: theme.foreground,\n radius: theme.radius,\n itemCtx: commandMenuItemStyleContext(theme),\n };\n}\n\nexport function commandMenuStyle(\n state: CommandMenuState,\n _ctx: CommandMenuStyleContext,\n): CommandMenuStyle {\n switch (state) {\n case \"opened\":\n return {\n backdropOpacity: 1,\n panelOpacity: 1,\n panelScale: 1,\n panelTranslateY: 0,\n };\n default:\n return {\n backdropOpacity: 0,\n panelOpacity: 0,\n panelScale: 0.96,\n panelTranslateY: 8,\n };\n }\n}\n\nfunction rowState(\n i: number,\n selectedIndex: number,\n highlightedIndex: number,\n pressedIndex: number,\n): CommandMenuItemState {\n if (i === pressedIndex) return \"press\";\n if (i === selectedIndex) return \"selected\";\n if (i === highlightedIndex) return \"hover\";\n return \"idle\";\n}\n\nexport function CommandMenu({\n state = \"closed\",\n style,\n query = \"\",\n revealCount,\n items = [\n { icon: \"user\", label: \"Profile\", shortcut: \"⌘ P\" },\n { icon: \"settings\", label: \"Settings\", shortcut: \"⌘ S\" },\n { icon: \"file\", label: \"New File\", shortcut: \"⌘ N\" },\n { icon: \"search\", label: \"Search docs\" },\n ],\n selectedIndex = -1,\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n theme: themeOverride,\n mode,\n className,\n}: CommandMenuProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = commandMenuStyleContext(theme);\n const v = style ?? commandMenuStyle(state, ctx);\n\n const visibleQuery =\n revealCount === undefined ? query : query.slice(0, revealCount);\n const filtered = filterCommandItems(items, query, revealCount);\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n paddingTop: \"18%\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${MAX_OVERLAY_ALPHA * v.backdropOpacity})`,\n }}\n />\n <div\n className={className}\n style={{\n position: \"relative\",\n width: PANEL_WIDTH,\n boxSizing: \"border-box\",\n transformOrigin: \"top\",\n transform: `translateY(${v.panelTranslateY}px) scale(${v.panelScale})`,\n opacity: v.panelOpacity,\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius + 6,\n padding: 8,\n display: \"flex\",\n flexDirection: \"column\",\n boxShadow: \"0 24px 48px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {}\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n padding: \"8px 10px\",\n }}\n >\n <svg width={18} height={18} viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM20 20l-3.5-3.5\"\n stroke={ctx.mutedFg}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n <span\n style={{\n display: \"flex\",\n alignItems: \"center\",\n fontSize: 15,\n letterSpacing: \"-0.01em\",\n color: visibleQuery ? ctx.inputFg : ctx.placeholderFg,\n }}\n >\n {visibleQuery || \"Type a command or search…\"}\n {}\n <span\n style={{\n display: \"inline-block\",\n width: 1.5,\n height: 18,\n marginLeft: 1,\n background: ctx.caret,\n }}\n />\n </span>\n </div>\n {}\n <div\n style={{\n height: 1,\n background: ctx.divider,\n margin: \"4px 0\",\n }}\n />\n {}\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n padding: \"4px 0\",\n }}\n >\n {filtered.length === 0 ? (\n <div\n style={{\n padding: \"20px 12px\",\n textAlign: \"center\",\n fontSize: 14,\n color: ctx.mutedFg,\n }}\n >\n No results found.\n </div>\n ) : (\n filtered.map((item, i) => {\n const override = itemStyles?.[i];\n return (\n <CommandMenuItemRow\n key={item.label}\n style={\n override ??\n commandMenuItemStyle(\n rowState(\n i,\n selectedIndex,\n highlightedIndex,\n pressedIndex,\n ),\n ctx.itemCtx,\n )\n }\n ctx={ctx.itemCtx}\n label={item.label}\n icon={item.icon}\n shortcut={item.shortcut}\n width={CONTENT_WIDTH}\n radius={theme.radius}\n />\n );\n })\n )}\n </div>\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, revealedText, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport {\n CommandMenuItemRow,\n commandMenuItemStyle,\n commandMenuItemStyleContext,\n type CommandMenuIcon,\n type CommandMenuItemState,\n type CommandMenuItemStyle,\n type CommandMenuItemStyleContext,\n} from \"@/components/remocn/command-menu-item\";\n\nexport type CommandMenuState = \"opened\" | \"closed\";\n\nexport interface CommandMenuEntry {\n icon?: CommandMenuIcon;\n label: string;\n shortcut?: string;\n}\n\nexport interface CommandMenuProps {\n state?: CommandMenuState;\n style?: CommandMenuStyle;\n query?: string;\n revealCount?: number;\n items?: CommandMenuEntry[];\n selectedIndex?: number;\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (CommandMenuItemStyle | undefined)[];\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst PANEL_WIDTH = 440;\nconst CONTENT_WIDTH = PANEL_WIDTH - 16;\nconst MAX_OVERLAY_ALPHA = 0.5;\n\nexport function filterCommandItems(\n items: CommandMenuEntry[],\n query: string,\n revealCount?: number,\n): CommandMenuEntry[] {\n const visible = (\n revealCount === undefined ? query : revealedText(query, revealCount)\n )\n .trim()\n .toLowerCase();\n if (visible === \"\") return items;\n return items.filter((item) => item.label.toLowerCase().includes(visible));\n}\n\nexport interface CommandMenuStyle {\n backdropOpacity: number;\n panelOpacity: number;\n panelScale: number;\n panelTranslateY: number;\n}\n\nexport interface CommandMenuStyleContext {\n panelBg: string;\n panelBorder: string;\n inputFg: string;\n placeholderFg: string;\n mutedFg: string;\n divider: string;\n caret: string;\n radius: number;\n itemCtx: CommandMenuItemStyleContext;\n}\n\nexport function commandMenuStyleContext(\n theme: RemocnTheme,\n): CommandMenuStyleContext {\n return {\n panelBg: theme.popover,\n panelBorder: theme.border,\n inputFg: theme.popoverForeground,\n placeholderFg: theme.mutedForeground,\n mutedFg: theme.mutedForeground,\n divider: theme.border,\n caret: theme.foreground,\n radius: theme.radius,\n itemCtx: commandMenuItemStyleContext(theme),\n };\n}\n\nexport function commandMenuStyle(\n state: CommandMenuState,\n _ctx: CommandMenuStyleContext,\n): CommandMenuStyle {\n switch (state) {\n case \"opened\":\n return {\n backdropOpacity: 1,\n panelOpacity: 1,\n panelScale: 1,\n panelTranslateY: 0,\n };\n default:\n return {\n backdropOpacity: 0,\n panelOpacity: 0,\n panelScale: 0.96,\n panelTranslateY: 8,\n };\n }\n}\n\nfunction rowState(\n i: number,\n selectedIndex: number,\n highlightedIndex: number,\n pressedIndex: number,\n): CommandMenuItemState {\n if (i === pressedIndex) return \"press\";\n if (i === selectedIndex) return \"selected\";\n if (i === highlightedIndex) return \"hover\";\n return \"idle\";\n}\n\nexport function CommandMenu({\n state = \"closed\",\n style,\n query = \"\",\n revealCount,\n items = [\n { icon: \"user\", label: \"Profile\", shortcut: \"⌘ P\" },\n { icon: \"settings\", label: \"Settings\", shortcut: \"⌘ S\" },\n { icon: \"file\", label: \"New File\", shortcut: \"⌘ N\" },\n { icon: \"search\", label: \"Search docs\" },\n ],\n selectedIndex = -1,\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n theme: themeOverride,\n mode,\n className,\n}: CommandMenuProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = commandMenuStyleContext(theme);\n const v = style ?? commandMenuStyle(state, ctx);\n\n const visibleQuery =\n revealCount === undefined ? query : revealedText(query, revealCount);\n const filtered = filterCommandItems(items, query, revealCount);\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n paddingTop: \"18%\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${MAX_OVERLAY_ALPHA * v.backdropOpacity})`,\n }}\n />\n <div\n className={className}\n style={{\n position: \"relative\",\n width: PANEL_WIDTH,\n boxSizing: \"border-box\",\n transformOrigin: \"top\",\n transform: `translateY(${v.panelTranslateY}px) scale(${v.panelScale})`,\n opacity: v.panelOpacity,\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius + 6,\n padding: 8,\n display: \"flex\",\n flexDirection: \"column\",\n boxShadow: \"0 24px 48px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {}\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n padding: \"8px 10px\",\n }}\n >\n <svg width={18} height={18} viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM20 20l-3.5-3.5\"\n stroke={ctx.mutedFg}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n <span\n style={{\n display: \"flex\",\n alignItems: \"center\",\n fontSize: 15,\n letterSpacing: \"-0.01em\",\n color: visibleQuery ? ctx.inputFg : ctx.placeholderFg,\n }}\n >\n {visibleQuery || \"Type a command or search…\"}\n {}\n <span\n style={{\n display: \"inline-block\",\n width: 1.5,\n height: 18,\n marginLeft: 1,\n background: ctx.caret,\n }}\n />\n </span>\n </div>\n {}\n <div\n style={{\n height: 1,\n background: ctx.divider,\n margin: \"4px 0\",\n }}\n />\n {}\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n padding: \"4px 0\",\n }}\n >\n {filtered.length === 0 ? (\n <div\n style={{\n padding: \"20px 12px\",\n textAlign: \"center\",\n fontSize: 14,\n color: ctx.mutedFg,\n }}\n >\n No results found.\n </div>\n ) : (\n filtered.map((item, i) => {\n const override = itemStyles?.[i];\n return (\n <CommandMenuItemRow\n key={item.label}\n style={\n override ??\n commandMenuItemStyle(\n rowState(\n i,\n selectedIndex,\n highlightedIndex,\n pressedIndex,\n ),\n ctx.itemCtx,\n )\n }\n ctx={ctx.itemCtx}\n label={item.label}\n icon={item.icon}\n shortcut={item.shortcut}\n width={CONTENT_WIDTH}\n radius={theme.radius}\n />\n );\n })\n )}\n </div>\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/command-menu.tsx"
},
diff --git a/public/r/confetti.json b/public/r/confetti.json
new file mode 100644
index 00000000..9c22844e
--- /dev/null
+++ b/public/r/confetti.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "confetti",
+ "title": "Confetti",
+ "description": "Deterministic confetti burst for Remotion — seeded particles with gravity, spin, and flutter so every render is identical. Fire it on any frame as a celebratory overlay.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/confetti/index.tsx",
+ "content": "\"use client\";\n\nimport { AbsoluteFill, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ConfettiProps {\n /** Number of confetti pieces. */\n particleCount?: number;\n colors?: string[];\n /** Burst origin as a 0..1 fraction of the canvas. */\n originX?: number;\n originY?: number;\n /** Frame the burst fires on. */\n startFrame?: number;\n /** Lifetime of the burst, in frames. */\n lifetime?: number;\n /** Initial launch speed (px/frame at the 720px reference height). */\n power?: number;\n /** Downward acceleration (px/frame² at the 720px reference height). */\n gravity?: number;\n /** Base piece size in reference px. */\n size?: number;\n /** PRNG seed — same seed renders an identical burst every time. */\n seed?: number;\n}\n\nexport interface Particle {\n angle: number;\n speed: number;\n color: string;\n size: number;\n rot0: number;\n spin: number;\n drift: number;\n}\n\nconst DEFAULT_COLORS = [\n \"#1d9bf0\",\n \"#ff5da2\",\n \"#ffd23f\",\n \"#22c55e\",\n \"#a855f7\",\n \"#ff7a45\",\n];\n\n// --- Pure helpers (unit-tested) -------------------------------------------\n\n/** Deterministic PRNG (mulberry32) — returns a function yielding [0, 1). */\nexport function mulberry32(seed: number): () => number {\n let a = seed >>> 0;\n return () => {\n a = (a + 0x6d2b79f5) | 0;\n let t = Math.imul(a ^ (a >>> 15), 1 | a);\n t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;\n return ((t ^ (t >>> 14)) >>> 0) / 4294967296;\n };\n}\n\n/** Build a deterministic particle set for a seed (stable across renders). */\nexport function makeParticles({\n count,\n seed,\n colors,\n}: {\n count: number;\n seed: number;\n colors: string[];\n}): Particle[] {\n const rand = mulberry32(seed);\n const palette = colors.length > 0 ? colors : DEFAULT_COLORS;\n const out: Particle[] = [];\n for (let i = 0; i < count; i++) {\n const angle = rand() * Math.PI * 2;\n const speed = 0.35 + 0.65 * rand();\n out.push({\n angle,\n speed,\n color: palette[Math.floor(rand() * palette.length)],\n size: 0.7 + 0.6 * rand(),\n rot0: rand() * Math.PI * 2,\n spin: (rand() - 0.5) * 0.6,\n drift: (rand() - 0.5) * 2,\n });\n }\n return out;\n}\n\n/** Opacity envelope over a particle's lifetime: quick fade-in, slow fade-out. */\nexport function particleOpacity(tt: number, lifetime: number): number {\n if (tt < 0 || tt > lifetime) return 0;\n const fadeIn = interpolate(tt, [0, 4], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const fadeOut = interpolate(tt, [lifetime * 0.7, lifetime], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n return Math.min(fadeIn, fadeOut);\n}\n\n// --- Component -------------------------------------------------------------\n\nexport function Confetti({\n particleCount = 140,\n colors = DEFAULT_COLORS,\n originX = 0.5,\n originY = 0.5,\n startFrame = 0,\n lifetime = 90,\n power = 17,\n gravity = 0.45,\n size = 13,\n seed = 1,\n}: ConfettiProps) {\n const frame = useCurrentFrame();\n const { width, height } = useVideoConfig();\n\n const tt = frame - startFrame;\n if (tt < 0 || tt > lifetime) return null;\n\n const sc = height / 720;\n const ox = width * originX;\n const oy = height * originY;\n const particles = makeParticles({ count: particleCount, seed, colors });\n\n return (\n <AbsoluteFill style={{ pointerEvents: \"none\" }}>\n {particles.map((p, i) => {\n const opacity = particleOpacity(tt, lifetime);\n if (opacity <= 0) return null;\n\n const vx = Math.cos(p.angle) * p.speed * power + p.drift;\n const vy = Math.sin(p.angle) * p.speed * power;\n const x = ox + vx * tt * sc;\n const y = oy + (vy * tt + 0.5 * gravity * tt * tt) * sc;\n const rot = p.rot0 + p.spin * tt;\n const flutter = Math.cos(p.rot0 + p.spin * tt * 1.6);\n const w = size * p.size * sc;\n\n return (\n <div\n key={i}\n style={{\n position: \"absolute\",\n left: x,\n top: y,\n width: w,\n height: w * 0.62,\n borderRadius: 2,\n background: p.color,\n opacity,\n transform: `translate(-50%, -50%) rotate(${rot}rad) scaleX(${flutter})`,\n }}\n />\n );\n })}\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/confetti.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/input.json b/public/r/input.json
index 180901bb..dd446524 100644
--- a/public/r/input.json
+++ b/public/r/input.json
@@ -7,12 +7,13 @@
"remotion"
],
"registryDependencies": [
- "@remocn/remocn-ui"
+ "@remocn/remocn-ui",
+ "@remocn/caret"
],
"files": [
{
"path": "registry/remocn-ui/input/index.tsx",
- "content": "\"use client\";\n\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type InputState =\n | \"idle\"\n | \"hover\"\n | \"active\"\n | \"typing\"\n | \"blur\"\n | \"invalid\";\n\ntype InputSize = \"sm\" | \"default\" | \"lg\";\n\nexport interface InputProps {\n state?: InputState;\n style?: InputStyle;\n placeholder?: string;\n value?: string;\n size?: InputSize;\n theme?: Partial<RemocnTheme>;\n primary?: string;\n mode?: \"light\" | \"dark\";\n fullWidth?: boolean;\n className?: string;\n}\n\nconst FIELD_WIDTH = 320;\n\nconst SIZE_STYLES: Record<\n InputSize,\n { height: number; padding: number; fontSize: number }\n> = {\n sm: { height: 36, padding: 12, fontSize: 13 },\n default: { height: 40, padding: 14, fontSize: 15 },\n lg: { height: 48, padding: 16, fontSize: 17 },\n};\n\nexport interface InputStyle {\n borderColor: string;\n ringColor: string;\n ringWidth: number;\n background: string;\n caretOpacity: number;\n valueReveal: number;\n placeholderOpacity: number;\n}\n\nexport interface InputStyleContext {\n idleBorder: string;\n hoverBorder: string;\n activeBorder: string;\n invalidBorder: string;\n ring: string;\n invalidRing: string;\n background: string;\n hoverBackground: string;\n foreground: string;\n mutedForeground: string;\n}\n\nexport function inputStyleContext(theme: RemocnTheme): InputStyleContext {\n return {\n idleBorder: theme.input,\n hoverBorder: mixOklch(theme.input, theme.foreground, 0.18),\n activeBorder: theme.ring,\n invalidBorder: theme.destructive,\n ring: mixOklch(theme.background, theme.ring, 0.5),\n invalidRing: mixOklch(theme.background, theme.destructive, 0.4),\n background: theme.background,\n hoverBackground: mixOklch(theme.background, theme.muted, 0.4),\n foreground: theme.foreground,\n mutedForeground: theme.mutedForeground,\n };\n}\n\nexport function inputStyle(\n state: InputState,\n ctx: InputStyleContext,\n): InputStyle {\n switch (state) {\n case \"hover\":\n return {\n borderColor: ctx.hoverBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.hoverBackground,\n caretOpacity: 0,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n case \"active\":\n return {\n borderColor: ctx.activeBorder,\n ringColor: ctx.ring,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 1,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n case \"typing\":\n return {\n borderColor: ctx.activeBorder,\n ringColor: ctx.ring,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 1,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n case \"blur\":\n return {\n borderColor: ctx.idleBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n case \"invalid\":\n return {\n borderColor: ctx.invalidBorder,\n ringColor: ctx.invalidRing,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n default:\n return {\n borderColor: ctx.idleBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n }\n}\n\nexport function Input({\n state = \"idle\",\n style,\n placeholder = \"[email protected]\",\n value = \"[email protected]\",\n size = \"default\",\n theme: themeOverride,\n primary,\n mode,\n fullWidth = false,\n className,\n}: InputProps) {\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n\n const sizeStyle = SIZE_STYLES[size];\n const ctx = inputStyleContext(theme);\n const v = style ?? inputStyle(state, ctx);\n const revealed = value.slice(0, Math.round(value.length * v.valueReveal));\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n className={className}\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n width: fullWidth ? \"100%\" : FIELD_WIDTH,\n height: sizeStyle.height,\n padding: `0 ${sizeStyle.padding}px`,\n fontSize: sizeStyle.fontSize,\n letterSpacing: \"-0.01em\",\n background: v.background,\n border: `1px solid ${v.borderColor}`,\n borderRadius: theme.radius,\n boxShadow: `0 0 0 ${v.ringWidth}px ${v.ringColor}`,\n }}\n >\n {}\n <span\n style={{\n position: \"absolute\",\n left: sizeStyle.padding,\n color: ctx.mutedForeground,\n opacity: v.valueReveal > 0 ? 0 : v.placeholderOpacity,\n pointerEvents: \"none\",\n whiteSpace: \"nowrap\",\n }}\n >\n {placeholder}\n </span>\n {}\n <div style={{ display: \"flex\", alignItems: \"center\", minWidth: 0 }}>\n <span style={{ whiteSpace: \"nowrap\", color: ctx.foreground }}>\n {revealed}\n </span>\n <span\n style={{\n flexShrink: 0,\n width: 2,\n height: Math.round(sizeStyle.fontSize * 1.1),\n borderRadius: 1,\n background: ctx.foreground,\n opacity: v.caretOpacity,\n marginLeft: revealed.length > 0 ? 4 : 0,\n }}\n />\n </div>\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport {\n mixOklch,\n type RemocnTheme,\n revealedText,\n useRemocnTheme,\n} from \"@/lib/remocn-ui\";\nimport { Caret } from \"@/components/remocn/caret\";\n\nexport type InputState =\n | \"idle\"\n | \"hover\"\n | \"active\"\n | \"typing\"\n | \"blur\"\n | \"invalid\";\n\ntype InputSize = \"sm\" | \"default\" | \"lg\";\n\nexport interface InputProps {\n state?: InputState;\n style?: InputStyle;\n placeholder?: string;\n value?: string;\n size?: InputSize;\n theme?: Partial<RemocnTheme>;\n primary?: string;\n mode?: \"light\" | \"dark\";\n fullWidth?: boolean;\n className?: string;\n}\n\nconst FIELD_WIDTH = 320;\n\nconst SIZE_STYLES: Record<\n InputSize,\n { height: number; padding: number; fontSize: number }\n> = {\n sm: { height: 36, padding: 12, fontSize: 13 },\n default: { height: 40, padding: 14, fontSize: 15 },\n lg: { height: 48, padding: 16, fontSize: 17 },\n};\n\nexport interface InputStyle {\n borderColor: string;\n ringColor: string;\n ringWidth: number;\n background: string;\n caretOpacity: number;\n valueReveal: number;\n placeholderOpacity: number;\n}\n\nexport interface InputStyleContext {\n idleBorder: string;\n hoverBorder: string;\n activeBorder: string;\n invalidBorder: string;\n ring: string;\n invalidRing: string;\n background: string;\n hoverBackground: string;\n foreground: string;\n mutedForeground: string;\n}\n\nexport function inputStyleContext(theme: RemocnTheme): InputStyleContext {\n return {\n idleBorder: theme.input,\n hoverBorder: mixOklch(theme.input, theme.foreground, 0.18),\n activeBorder: theme.ring,\n invalidBorder: theme.destructive,\n ring: mixOklch(theme.background, theme.ring, 0.5),\n invalidRing: mixOklch(theme.background, theme.destructive, 0.4),\n background: theme.background,\n hoverBackground: mixOklch(theme.background, theme.muted, 0.4),\n foreground: theme.foreground,\n mutedForeground: theme.mutedForeground,\n };\n}\n\nexport function inputStyle(\n state: InputState,\n ctx: InputStyleContext,\n): InputStyle {\n switch (state) {\n case \"hover\":\n return {\n borderColor: ctx.hoverBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.hoverBackground,\n caretOpacity: 0,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n case \"active\":\n return {\n borderColor: ctx.activeBorder,\n ringColor: ctx.ring,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 1,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n case \"typing\":\n return {\n borderColor: ctx.activeBorder,\n ringColor: ctx.ring,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 1,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n case \"blur\":\n return {\n borderColor: ctx.idleBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n case \"invalid\":\n return {\n borderColor: ctx.invalidBorder,\n ringColor: ctx.invalidRing,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n default:\n return {\n borderColor: ctx.idleBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n }\n}\n\nexport function Input({\n state = \"idle\",\n style,\n placeholder = \"[email protected]\",\n value = \"[email protected]\",\n size = \"default\",\n theme: themeOverride,\n primary,\n mode,\n fullWidth = false,\n className,\n}: InputProps) {\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n\n const sizeStyle = SIZE_STYLES[size];\n const ctx = inputStyleContext(theme);\n const v = style ?? inputStyle(state, ctx);\n const revealed = revealedText(value, Math.round(value.length * v.valueReveal));\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n className={className}\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n width: fullWidth ? \"100%\" : FIELD_WIDTH,\n height: sizeStyle.height,\n padding: `0 ${sizeStyle.padding}px`,\n fontSize: sizeStyle.fontSize,\n letterSpacing: \"-0.01em\",\n background: v.background,\n border: `1px solid ${v.borderColor}`,\n borderRadius: theme.radius,\n boxShadow: `0 0 0 ${v.ringWidth}px ${v.ringColor}`,\n }}\n >\n {}\n <span\n style={{\n position: \"absolute\",\n left: sizeStyle.padding,\n color: ctx.mutedForeground,\n opacity: v.valueReveal > 0 ? 0 : v.placeholderOpacity,\n pointerEvents: \"none\",\n whiteSpace: \"nowrap\",\n }}\n >\n {placeholder}\n </span>\n {}\n <div style={{ display: \"flex\", alignItems: \"center\", minWidth: 0 }}>\n <span style={{ whiteSpace: \"nowrap\", color: ctx.foreground }}>\n {revealed}\n </span>\n <Caret\n color={ctx.foreground}\n height={Math.round(sizeStyle.fontSize * 1.1)}\n radius={1}\n opacity={v.caretOpacity}\n marginLeft={revealed.length > 0 ? 4 : 0}\n />\n </div>\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/input.tsx"
},
diff --git a/public/r/opencode.json b/public/r/opencode.json
new file mode 100644
index 00000000..fccf7cbb
--- /dev/null
+++ b/public/r/opencode.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "opencode",
+ "title": "OpenCode",
+ "description": "Animated OpenCode TUI welcome screen — two-tone wordmark, an input box with a blue accent bar that types a query, a model status line, and command hints. Dark/light themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/opencode/index.tsx",
+ "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/JetBrainsMono\";\nimport {\n AbsoluteFill,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { Caret } from \"@/components/remocn/caret\";\nimport { useTypewriter } from \"@/lib/remocn-ui\";\n\nconst { fontFamily: MONO_FAMILY } = loadFont();\n\nexport interface OpenCodeProps {\n placeholder?: string;\n query?: string;\n agentName?: string;\n modelName?: string;\n provider?: string;\n accentColor?: string;\n theme?: \"light\" | \"dark\";\n background?: \"surface\" | \"transparent\";\n speed?: number;\n}\n\ninterface Theme {\n page: string;\n boxBg: string;\n fg: string;\n fgMuted: string;\n fgQuery: string;\n logoOpen: string;\n logoCode: string;\n}\n\nexport const THEMES: Record<\"light\" | \"dark\", Theme> = {\n light: {\n page: \"#FFFFFF\",\n boxBg: \"#F2F2F2\",\n fg: \"#111111\",\n fgMuted: \"#888888\",\n fgQuery: \"#555555\",\n logoOpen: \"#999999\",\n logoCode: \"#111111\",\n },\n dark: {\n page: \"#000000\",\n boxBg: \"#161616\",\n fg: \"#EDEDED\",\n fgMuted: \"#6B6B6B\",\n fgQuery: \"#9A9A9A\",\n logoOpen: \"#6B6B6B\",\n logoCode: \"#EDEDED\",\n },\n};\n\nexport const TYPING_START_FRAME = 48;\n\nexport const TYPING_CPS = 20;\n\nfunction introBounceIn(\n frame: number,\n fps: number,\n): { translateY: number; scale: number } {\n const s = spring({\n fps,\n frame,\n config: { damping: 14, stiffness: 110, mass: 0.7 },\n });\n const translateY = interpolate(s, [0, 1], [28, 0]);\n const scale = interpolate(s, [0, 1], [0.97, 1]);\n return { translateY, scale };\n}\n\nfunction fadeUpAt(\n frame: number,\n range: [number, number],\n): { opacity: number; translateY: number } {\n const opts = {\n extrapolateLeft: \"clamp\" as const,\n extrapolateRight: \"clamp\" as const,\n };\n return {\n opacity: interpolate(frame, range, [0, 1], opts),\n translateY: interpolate(frame, range, [12, 0], opts),\n };\n}\n\nexport function OpenCode({\n placeholder = \"Ask anything... \",\n query = '\"What is the tech stack of this project?\"',\n agentName = \"Build\",\n modelName = \"Kimi K2.5\",\n provider = \"Moonshot AI\",\n accentColor = \"#2B7FFF\",\n theme = \"dark\",\n background = \"surface\",\n speed = 1,\n}: OpenCodeProps) {\n const frame = useCurrentFrame();\n const { width, height, fps } = useVideoConfig();\n const t = THEMES[theme] ?? THEMES.dark;\n\n const refW = 1280;\n const refH = 720;\n const stageScale = Math.min(width / refW, height / refH);\n\n const tw = useTypewriter(query, {\n cps: TYPING_CPS,\n speed,\n startFrame: TYPING_START_FRAME,\n });\n\n const intro = introBounceIn(frame * speed, fps);\n const logoFade = fadeUpAt(frame * speed, [4, 22]);\n const boxFade = fadeUpAt(frame * speed, [12, 30]);\n const hintsFade = fadeUpAt(frame * speed, [20, 38]);\n\n const pageBg = background === \"transparent\" ? \"transparent\" : t.page;\n\n const boxWidth = 1000;\n\n return (\n <AbsoluteFill style={{ background: pageBg }}>\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: refW,\n height: refH,\n transform: `translate(-50%, -50%) scale(${stageScale})`,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n lineHeight: 0,\n opacity: logoFade.opacity,\n transform: `translateY(${logoFade.translateY + intro.translateY * 0.4}px)`,\n }}\n >\n <svg\n width={468}\n height={84}\n viewBox=\"0 0 234 42\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>opencode</title>\n <clipPath id=\"opencode-wordmark-clip\">\n <rect width={234} height={42} fill=\"#ffffff\" />\n </clipPath>\n <g clipPath=\"url(#opencode-wordmark-clip)\">\n <path d=\"M18 30H6V18H18V30Z\" fill=\"#4B4646\" />\n <path d=\"M18 12H6V30H18V12ZM24 36H0V6H24V36Z\" fill=\"#B7B1B1\" />\n <path d=\"M48 30H36V18H48V30Z\" fill=\"#4B4646\" />\n <path\n d=\"M36 30H48V12H36V30ZM54 36H36V42H30V6H54V36Z\"\n fill=\"#B7B1B1\"\n />\n <path d=\"M84 24V30H66V24H84Z\" fill=\"#4B4646\" />\n <path\n d=\"M84 24H66V30H84V36H60V6H84V24ZM66 18H78V12H66V18Z\"\n fill=\"#B7B1B1\"\n />\n <path d=\"M108 36H96V18H108V36Z\" fill=\"#4B4646\" />\n <path\n d=\"M108 12H96V36H90V6H108V12ZM114 36H108V12H114V36Z\"\n fill=\"#B7B1B1\"\n />\n <path d=\"M144 30H126V18H144V30Z\" fill=\"#4B4646\" />\n <path\n d=\"M144 12H126V30H144V36H120V6H144V12Z\"\n fill=\"#F1ECEC\"\n />\n <path d=\"M168 30H156V18H168V30Z\" fill=\"#4B4646\" />\n <path\n d=\"M168 12H156V30H168V12ZM174 36H150V6H174V36Z\"\n fill=\"#F1ECEC\"\n />\n <path d=\"M198 30H186V18H198V30Z\" fill=\"#4B4646\" />\n <path\n d=\"M198 12H186V30H198V12ZM204 36H180V6H198V0H204V36Z\"\n fill=\"#F1ECEC\"\n />\n <path d=\"M234 24V30H216V24H234Z\" fill=\"#4B4646\" />\n <path\n d=\"M216 12V18H228V12H216ZM234 24H216V30H234V36H210V6H234V24Z\"\n fill=\"#F1ECEC\"\n />\n </g>\n </svg>\n </div>\n\n <div\n style={{\n width: boxWidth,\n marginTop: 40,\n minHeight: 150,\n background: t.boxBg,\n borderLeft: `4px solid ${accentColor}`,\n padding: \"26px 28px\",\n boxSizing: \"border-box\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n gap: 26,\n opacity: boxFade.opacity,\n transform: `translateY(${boxFade.translateY + intro.translateY * 0.6}px) scale(${intro.scale})`,\n transformOrigin: \"center top\",\n }}\n >\n <div\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n fontFamily: MONO_FAMILY,\n fontSize: 22,\n }}\n >\n <span style={{ color: t.fgMuted }}>{placeholder}</span>\n {tw.count > 0 ? (\n <span style={{ color: t.fgQuery }}>{tw.text}</span>\n ) : null}\n <span style={{ opacity: 0.6, display: \"inline-flex\" }}>\n <Caret\n width={12}\n height={24}\n color={t.fg}\n blink={!tw.typing}\n speed={speed}\n marginLeft={2}\n />\n </span>\n </div>\n\n <div\n style={{\n display: \"flex\",\n flexDirection: \"row\",\n alignItems: \"center\",\n gap: 16,\n fontFamily: MONO_FAMILY,\n fontSize: 20,\n }}\n >\n <span style={{ color: accentColor, fontWeight: 600 }}>\n {agentName}\n </span>\n <span style={{ color: t.fg }}>{modelName}</span>\n <span style={{ color: t.fgMuted }}>{provider}</span>\n </div>\n </div>\n\n <div\n style={{\n width: boxWidth,\n marginTop: 18,\n display: \"flex\",\n justifyContent: \"flex-end\",\n gap: 22,\n fontFamily: MONO_FAMILY,\n fontSize: 18,\n opacity: hintsFade.opacity,\n transform: `translateY(${hintsFade.translateY}px)`,\n }}\n >\n <span style={{ display: \"inline-flex\", gap: 8 }}>\n <span style={{ color: t.fg, fontWeight: 700 }}>tab</span>\n <span style={{ color: t.fgMuted }}>agents</span>\n </span>\n <span style={{ display: \"inline-flex\", gap: 8 }}>\n <span style={{ color: t.fg, fontWeight: 700 }}>ctrl+p</span>\n <span style={{ color: t.fgMuted }}>commands</span>\n </span>\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/opencode.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/registry.json b/public/r/registry.json
index 722a5707..bfb1f21c 100644
--- a/public/r/registry.json
+++ b/public/r/registry.json
@@ -26,6 +26,10 @@
"dependencies": [
"remotion"
],
+ "registryDependencies": [
+ "@remocn/remocn-ui",
+ "@remocn/caret"
+ ],
"files": [
{
"path": "registry/remocn/typewriter/index.tsx",
@@ -773,6 +777,167 @@
],
"type": "registry:component"
},
+ {
+ "name": "x-follow-card",
+ "title": "X Follow Card",
+ "description": "Animated X profile follow card — spring bounce-in, staggered blur-in, a synthetic cursor that clicks Follow and flips it to Following. Light/dark, horizontal or vertical.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/cursor"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/x-follow-card/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/x-follow-card.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "x-followers-overview",
+ "title": "X Followers Overview",
+ "description": "X follow notifications cycle through as 3D flipping text — '<name> followed you · 7h' — then the total follower count pops in with a confetti burst. Hardcoded sample list (X API ready). Light/dark, horizontal or vertical.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/confetti"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/x-followers-overview/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/x-followers-overview.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "claude-chat",
+ "title": "Claude Chat",
+ "description": "Animated Claude chat input — types a prompt character-by-character and the waveform button morphs into a terracotta send button the moment text appears. Warm light/dark themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/claude-chat/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/claude-chat.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "chat-gpt",
+ "title": "ChatGPT",
+ "description": "Animated ChatGPT composer — types a prompt into the pill input, the blue voice button morphs into a send button, and the suggestion chips fade out. Light/dark themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/chat-gpt/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/chat-gpt.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "v0",
+ "title": "v0",
+ "description": "Animated Vercel v0 composer — types a prompt into the dark textarea and the mic button morphs into a send button. Dark/light themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/v0/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/v0.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "claude-code",
+ "title": "Claude Code",
+ "description": "Animated Claude Code CLI welcome screen — terminal window with a dashed welcome box, recent activity and what's new panels, and a prompt line that types a command with a block cursor. Dark/light themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/claude-code/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/claude-code.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "opencode",
+ "title": "OpenCode",
+ "description": "Animated OpenCode TUI welcome screen — two-tone wordmark, an input box with a blue accent bar that types a query, a model status line, and command hints. Dark/light themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/opencode/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/opencode.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "confetti",
+ "title": "Confetti",
+ "description": "Deterministic confetti burst for Remotion — seeded particles with gravity, spin, and flutter so every render is identical. Fire it on any frame as a celebratory overlay.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/confetti/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/confetti.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
{
"name": "remocn-ui",
"title": "remocn UI Core",
@@ -832,6 +997,23 @@
],
"type": "registry:component"
},
+ {
+ "name": "caret",
+ "title": "UI Caret",
+ "description": "A blinking text caret — a controlled vertical bar, or a pure motion atom that blinks deterministically from useCurrentFrame.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [],
+ "files": [
+ {
+ "path": "registry/remocn-ui/caret/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/caret.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
{
"name": "button",
"title": "UI Button",
@@ -1057,7 +1239,8 @@
"remotion"
],
"registryDependencies": [
- "@remocn/remocn-ui"
+ "@remocn/remocn-ui",
+ "@remocn/caret"
],
"files": [
{
diff --git a/public/r/remocn-ui.json b/public/r/remocn-ui.json
index efa42165..2de9ec73 100644
--- a/public/r/remocn-ui.json
+++ b/public/r/remocn-ui.json
@@ -10,7 +10,7 @@
"files": [
{
"path": "registry/remocn-ui/core/timeline.ts",
- "content": "import { useCurrentFrame } from \"remotion\";\nimport type { Step } from \"./types\";\n\nexport function framesFor(d: number | { seconds: number }, fps: number): number {\n return typeof d === \"number\" ? d : Math.round(d.seconds * fps);\n}\n\nexport function revealCount(\n localFrame: number,\n fps: number,\n len: number,\n cps: number,\n): number {\n const over = (len / cps) * fps;\n if (over <= 0) return len;\n return Math.max(0, Math.min(len, Math.floor((localFrame / over) * len)));\n}\n\nexport function clamp01(t: number): number {\n return Math.max(0, Math.min(1, t));\n}\n\nexport function useCurrentState<S extends string>(\n steps: Step<S>[],\n defaultState: S,\n speed = 1,\n): S {\n const effectiveFrame = useCurrentFrame() * speed;\n let current = defaultState;\n let bestAt = -Infinity;\n steps.forEach((step) => {\n if (step.at <= effectiveFrame && step.at >= bestAt) {\n bestAt = step.at;\n current = step.state;\n }\n });\n return current;\n}\n\nexport function useStateTransition<S extends string>(\n steps: Step<S>[],\n defaultState: S,\n speed = 1,\n defaultDuration = 8,\n): { from: S; to: S; progress: number } {\n const effectiveFrame = useCurrentFrame() * speed;\n const started = steps\n .map((step, index) => ({ step, index }))\n .sort((a, b) => a.step.at - b.step.at || a.index - b.index)\n .filter((e) => e.step.at <= effectiveFrame);\n if (started.length === 0)\n return { from: defaultState, to: defaultState, progress: 1 };\n const to = started[started.length - 1].step;\n const from = started.length >= 2 ? started[started.length - 2].step : null;\n const dur = to.duration ?? defaultDuration;\n const progress = dur > 0 ? clamp01((effectiveFrame - to.at) / dur) : 1;\n return { from: from ? from.state : defaultState, to: to.state, progress };\n}\n",
+ "content": "import { useCurrentFrame, useVideoConfig } from \"remotion\";\nimport type { Step } from \"./types\";\n\nexport function framesFor(d: number | { seconds: number }, fps: number): number {\n return typeof d === \"number\" ? d : Math.round(d.seconds * fps);\n}\n\nexport function revealCount(\n localFrame: number,\n fps: number,\n len: number,\n cps: number,\n): number {\n const over = (len / cps) * fps;\n if (over <= 0) return len;\n return Math.max(0, Math.min(len, Math.floor((localFrame / over) * len)));\n}\n\nexport function clamp01(t: number): number {\n return Math.max(0, Math.min(1, t));\n}\n\nexport function revealedText(full: string, count: number): string {\n const c = Math.max(0, Math.min(full.length, Math.floor(count)));\n return full.slice(0, c);\n}\n\nexport interface TypewriterOptions {\n cps?: number;\n speed?: number;\n startFrame?: number;\n}\n\nexport interface TypewriterState {\n text: string;\n count: number;\n done: boolean;\n typing: boolean;\n}\n\nexport function useTypewriter(\n full: string,\n options: TypewriterOptions = {},\n): TypewriterState {\n const { cps = 20, speed = 1, startFrame = 0 } = options;\n const frame = useCurrentFrame();\n const { fps } = useVideoConfig();\n const local = frame * speed - startFrame;\n const count = local <= 0 ? 0 : revealCount(local, fps, full.length, cps);\n return {\n text: revealedText(full, count),\n count,\n done: count >= full.length,\n typing: count > 0 && count < full.length,\n };\n}\n\nexport function useCurrentState<S extends string>(\n steps: Step<S>[],\n defaultState: S,\n speed = 1,\n): S {\n const effectiveFrame = useCurrentFrame() * speed;\n let current = defaultState;\n let bestAt = -Infinity;\n steps.forEach((step) => {\n if (step.at <= effectiveFrame && step.at >= bestAt) {\n bestAt = step.at;\n current = step.state;\n }\n });\n return current;\n}\n\nexport function useStateTransition<S extends string>(\n steps: Step<S>[],\n defaultState: S,\n speed = 1,\n defaultDuration = 8,\n): { from: S; to: S; progress: number } {\n const effectiveFrame = useCurrentFrame() * speed;\n const started = steps\n .map((step, index) => ({ step, index }))\n .sort((a, b) => a.step.at - b.step.at || a.index - b.index)\n .filter((e) => e.step.at <= effectiveFrame);\n if (started.length === 0)\n return { from: defaultState, to: defaultState, progress: 1 };\n const to = started[started.length - 1].step;\n const from = started.length >= 2 ? started[started.length - 2].step : null;\n const dur = to.duration ?? defaultDuration;\n const progress = dur > 0 ? clamp01((effectiveFrame - to.at) / dur) : 1;\n return { from: from ? from.state : defaultState, to: to.state, progress };\n}\n",
"type": "registry:lib",
"target": "lib/remocn-ui/timeline.ts"
},
@@ -40,7 +40,7 @@
},
{
"path": "registry/remocn-ui/core/index.ts",
- "content": "export type { Step } from \"./types\";\nexport {\n clamp01,\n framesFor,\n revealCount,\n useCurrentState,\n useStateTransition,\n} from \"./timeline\";\nexport {\n mixOklch,\n oklchToRgb,\n parseColor,\n rgbToOklch,\n toCss,\n} from \"./color\";\nexport {\n defaultDarkTheme,\n defaultLightTheme,\n RemocnUIProvider,\n useRemocnTheme,\n} from \"./theme\";\nexport type { RemocnTheme, RemocnUIProviderProps } from \"./theme\";\nexport { easings, springs } from \"./motion\";\nexport type { EasingName, SpringName } from \"./motion\";\n",
+ "content": "export type { Step } from \"./types\";\nexport {\n clamp01,\n framesFor,\n revealCount,\n revealedText,\n useCurrentState,\n useStateTransition,\n useTypewriter,\n} from \"./timeline\";\nexport type { TypewriterOptions, TypewriterState } from \"./timeline\";\nexport {\n mixOklch,\n oklchToRgb,\n parseColor,\n rgbToOklch,\n toCss,\n} from \"./color\";\nexport {\n defaultDarkTheme,\n defaultLightTheme,\n RemocnUIProvider,\n useRemocnTheme,\n} from \"./theme\";\nexport type { RemocnTheme, RemocnUIProviderProps } from \"./theme\";\nexport { easings, springs } from \"./motion\";\nexport type { EasingName, SpringName } from \"./motion\";\n",
"type": "registry:lib",
"target": "lib/remocn-ui/index.ts"
}
diff --git a/public/r/typewriter.json b/public/r/typewriter.json
index 95553bcd..741f449e 100644
--- a/public/r/typewriter.json
+++ b/public/r/typewriter.json
@@ -6,10 +6,14 @@
"dependencies": [
"remotion"
],
+ "registryDependencies": [
+ "@remocn/remocn-ui",
+ "@remocn/caret"
+ ],
"files": [
{
"path": "registry/remocn/typewriter/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface TypewriterProps {\n text: string;\n cursor?: boolean;\n /** Typing speed in characters per second. */\n charsPerSecond?: number;\n /** Playback speed multiplier (1 = normal, 2 = twice as fast). */\n speed?: number;\n fontSize?: number;\n color?: string;\n cursorColor?: string;\n fontWeight?: number;\n className?: string;\n}\n\nexport function Typewriter({\n text,\n cursor = true,\n charsPerSecond = 20,\n speed = 1,\n fontSize = 48,\n color = \"#171717\",\n cursorColor = \"#171717\",\n fontWeight = 600,\n className,\n}: TypewriterProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const charsToRevealOver = (text.length / charsPerSecond) * fps;\n\n const revealed = Math.floor(\n interpolate(frame, [0, charsToRevealOver], [0, text.length], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n }),\n );\n\n const visibleText = text.substring(0, revealed);\n const isCursorVisible = Math.floor((frame / fps) * 2) % 2 === 0;\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"pre\",\n }}\n >\n {visibleText}\n {cursor && (\n <span\n style={{\n display: \"inline-block\",\n width: \"0.08em\",\n height: \"1em\",\n marginLeft: \"0.04em\",\n verticalAlign: \"text-bottom\",\n background: cursorColor,\n opacity: isCursorVisible ? 1 : 0,\n }}\n />\n )}\n </span>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport { Caret } from \"@/components/remocn/caret\";\nimport { useTypewriter } from \"@/lib/remocn-ui\";\n\nexport interface TypewriterProps {\n text: string;\n cursor?: boolean;\n charsPerSecond?: number;\n speed?: number;\n fontSize?: number;\n color?: string;\n cursorColor?: string;\n fontWeight?: number;\n className?: string;\n}\n\nexport function Typewriter({\n text,\n cursor = true,\n charsPerSecond = 20,\n speed = 1,\n fontSize = 48,\n color = \"#171717\",\n cursorColor = \"#171717\",\n fontWeight = 600,\n className,\n}: TypewriterProps) {\n const tw = useTypewriter(text, { cps: charsPerSecond, speed });\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"pre\",\n }}\n >\n {tw.text}\n {cursor && (\n <Caret\n color={cursorColor}\n blink={!tw.typing}\n speed={speed}\n radius={0}\n style={{\n width: \"0.08em\",\n height: \"1em\",\n marginLeft: \"0.04em\",\n verticalAlign: \"text-bottom\",\n }}\n />\n )}\n </span>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/typewriter.tsx"
}
diff --git a/public/r/v0.json b/public/r/v0.json
new file mode 100644
index 00000000..cd91c065
--- /dev/null
+++ b/public/r/v0.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "v0",
+ "title": "v0",
+ "description": "Animated Vercel v0 composer — types a prompt into the dark textarea and the mic button morphs into a send button. Dark/light themes.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/caret",
+ "@remocn/remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/v0/index.tsx",
+ "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Inter\";\nimport {\n AbsoluteFill,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { Caret } from \"@/components/remocn/caret\";\nimport { useTypewriter } from \"@/lib/remocn-ui\";\n\nconst { fontFamily: SANS_FAMILY } = loadFont();\n\nexport interface V0Props {\n greeting?: string;\n placeholder?: string;\n prompt?: string;\n modelName?: string;\n projectName?: string;\n theme?: \"light\" | \"dark\";\n background?: \"surface\" | \"transparent\";\n speed?: number;\n}\n\ninterface Theme {\n page: string;\n boxBg: string;\n boxBorder: string;\n fg: string;\n fgMuted: string;\n iconColor: string;\n btnBg: string;\n btnFg: string;\n}\n\nexport const THEMES: Record<\"light\" | \"dark\", Theme> = {\n light: {\n page: \"#FFFFFF\",\n boxBg: \"#FFFFFF\",\n boxBorder: \"#E3E3E3\",\n fg: \"#0D0D0D\",\n fgMuted: \"#8A8A8A\",\n iconColor: \"#5D5D5D\",\n btnBg: \"#0D0D0D\",\n btnFg: \"#FFFFFF\",\n },\n dark: {\n page: \"#000000\",\n boxBg: \"#0A0A0A\",\n boxBorder: \"#2A2A2A\",\n fg: \"#EDEDED\",\n fgMuted: \"#8A8A8A\",\n iconColor: \"#A0A0A0\",\n btnBg: \"#FFFFFF\",\n btnFg: \"#0A0A0A\",\n },\n};\n\nexport const TYPING_START_FRAME = 42;\n\nexport const TYPING_CPS = 22;\n\nexport function morphProgressAt(\n frame: number,\n opts: { startFrame?: number; fps: number; speed: number },\n): number {\n const startFrame = opts.startFrame ?? TYPING_START_FRAME;\n const value = spring({\n fps: opts.fps,\n frame: frame * opts.speed - startFrame,\n config: { damping: 14, stiffness: 200, mass: 0.6 },\n });\n return Math.max(0, Math.min(value, 1));\n}\n\nfunction introBounceIn(\n frame: number,\n fps: number,\n): { translateY: number; scale: number } {\n const s = spring({\n fps,\n frame,\n config: { damping: 14, stiffness: 110, mass: 0.7 },\n });\n const translateY = interpolate(s, [0, 1], [28, 0]);\n const scale = interpolate(s, [0, 1], [0.97, 1]);\n return { translateY, scale };\n}\n\nfunction fadeUpAt(\n frame: number,\n range: [number, number],\n): { opacity: number; translateY: number } {\n const opts = {\n extrapolateLeft: \"clamp\" as const,\n extrapolateRight: \"clamp\" as const,\n };\n return {\n opacity: interpolate(frame, range, [0, 1], opts),\n translateY: interpolate(frame, range, [12, 0], opts),\n };\n}\n\nfunction PlusIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Add</title>\n <path\n d=\"M12 5v14M5 12h14\"\n stroke={color}\n strokeWidth={2}\n strokeLinecap=\"round\"\n />\n </svg>\n );\n}\n\nfunction V0LogoIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>v0</title>\n <rect\n x={2.5}\n y={2.5}\n width={19}\n height={19}\n rx={5}\n stroke={color}\n strokeWidth={1.8}\n />\n <rect\n x={7.5}\n y={7.5}\n width={9}\n height={9}\n rx={2.5}\n stroke={color}\n strokeWidth={1.8}\n />\n </svg>\n );\n}\n\nfunction ChevronDownIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Expand</title>\n <path\n d=\"M6 9l6 6 6-6\"\n stroke={color}\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction MicIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Voice input</title>\n <rect\n x={9}\n y={3}\n width={6}\n height={11}\n rx={3}\n stroke={color}\n strokeWidth={1.8}\n />\n <path\n d=\"M5.5 11a6.5 6.5 0 0013 0M12 17.5V21M9 21h6\"\n stroke={color}\n strokeWidth={1.8}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction ArrowUpIcon({ size, color }: { size: number; color: string }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <title>Send</title>\n <path\n d=\"M12 19V6M12 6l-6 6M12 6l6 6\"\n stroke={color}\n strokeWidth={2.2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nexport function V0({\n greeting = \"What do you want to create?\",\n placeholder = \"Ask v0 to build…\",\n prompt = \"a landing page for my SaaS with pricing and testimonials\",\n modelName = \"v0 Max\",\n projectName = \"Project\",\n theme = \"dark\",\n background = \"surface\",\n speed = 1,\n}: V0Props) {\n const frame = useCurrentFrame();\n const { width, height, fps } = useVideoConfig();\n const t = THEMES[theme] ?? THEMES.dark;\n\n const refW = 1280;\n const refH = 720;\n const stageScale = Math.min(width / refW, height / refH);\n\n const tw = useTypewriter(prompt, {\n cps: TYPING_CPS,\n speed,\n startFrame: TYPING_START_FRAME,\n });\n const visibleText = tw.text;\n const showText = tw.count > 0;\n const morph = morphProgressAt(frame, { fps, speed });\n\n const intro = introBounceIn(frame * speed, fps);\n const headingFade = fadeUpAt(frame * speed, [4, 20]);\n const boxFade = fadeUpAt(frame * speed, [10, 26]);\n\n const pageBg = background === \"transparent\" ? \"transparent\" : t.page;\n\n const boxWidth = 880;\n const boxLeft = (refW - boxWidth) / 2;\n const boxTop = 270;\n const boxHeight = 150;\n const btnSize = 40;\n\n return (\n <AbsoluteFill style={{ background: pageBg }}>\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: refW,\n height: refH,\n transform: `translate(-50%, -50%) scale(${stageScale})`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 150,\n width: refW,\n textAlign: \"center\",\n fontFamily: SANS_FAMILY,\n fontSize: 44,\n fontWeight: 700,\n color: t.fg,\n opacity: headingFade.opacity,\n transform: `translateY(${headingFade.translateY + intro.translateY * 0.4}px)`,\n }}\n >\n {greeting}\n </div>\n\n <div\n style={{\n position: \"absolute\",\n left: boxLeft,\n top: boxTop,\n width: boxWidth,\n height: boxHeight,\n background: t.boxBg,\n border: `1px solid ${t.boxBorder}`,\n borderRadius: 16,\n boxShadow:\n theme === \"light\"\n ? \"0 8px 30px -14px rgba(13,13,13,0.12)\"\n : \"0 8px 40px -16px rgba(0,0,0,0.8)\",\n opacity: boxFade.opacity,\n transform: `translateY(${boxFade.translateY + intro.translateY * 0.6}px) scale(${intro.scale})`,\n transformOrigin: \"center top\",\n display: \"flex\",\n flexDirection: \"column\",\n boxSizing: \"border-box\",\n }}\n >\n <div\n style={{\n flex: 1,\n padding: \"18px 20px\",\n fontFamily: SANS_FAMILY,\n fontSize: 18,\n color: t.fg,\n display: \"flex\",\n alignItems: \"flex-start\",\n overflow: \"hidden\",\n }}\n >\n {showText ? (\n <span\n style={{\n color: t.fg,\n whiteSpace: \"pre-wrap\",\n }}\n >\n {visibleText}\n <Caret\n color={t.fg}\n blink={!tw.typing}\n speed={speed}\n height={20}\n marginLeft={2}\n />\n </span>\n ) : (\n <span\n style={{\n color: t.fgMuted,\n display: \"inline-flex\",\n alignItems: \"center\",\n }}\n >\n <Caret color={t.fg} blink={!tw.typing} speed={speed} height={20} />\n <span style={{ marginLeft: 6 }}>{placeholder}</span>\n </span>\n )}\n </div>\n\n <div\n style={{\n padding: \"12px 16px\",\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n >\n <div style={{ display: \"flex\", alignItems: \"center\", gap: 10 }}>\n <PlusIcon size={20} color={t.iconColor} />\n <div\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: 7,\n }}\n >\n <V0LogoIcon size={18} color={t.fg} />\n <span\n style={{\n fontFamily: SANS_FAMILY,\n fontSize: 15,\n fontWeight: 500,\n color: t.fg,\n }}\n >\n {modelName}\n </span>\n <ChevronDownIcon size={14} color={t.fgMuted} />\n </div>\n </div>\n\n <div style={{ display: \"flex\", alignItems: \"center\", gap: 12 }}>\n <div\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: 4,\n }}\n >\n <span\n style={{\n fontFamily: SANS_FAMILY,\n fontSize: 15,\n color: t.fgMuted,\n }}\n >\n {projectName}\n </span>\n <ChevronDownIcon size={14} color={t.fgMuted} />\n </div>\n\n <div\n style={{\n position: \"relative\",\n width: btnSize,\n height: btnSize,\n borderRadius: 10,\n background: t.btnBg,\n flexShrink: 0,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n opacity: 1 - morph,\n transform: `scale(${1 - 0.08 * morph})`,\n }}\n >\n <MicIcon size={20} color={t.btnFg} />\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n opacity: morph,\n transform: `scale(${0.85 + 0.15 * morph})`,\n }}\n >\n <ArrowUpIcon size={20} color={t.btnFg} />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/v0.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/x-follow-card.json b/public/r/x-follow-card.json
new file mode 100644
index 00000000..0a5c045a
--- /dev/null
+++ b/public/r/x-follow-card.json
@@ -0,0 +1,22 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "x-follow-card",
+ "title": "X Follow Card",
+ "description": "Animated X profile follow card — spring bounce-in, staggered blur-in, a synthetic cursor that clicks Follow and flips it to Following. Light/dark, horizontal or vertical.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/cursor"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/x-follow-card/index.tsx",
+ "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { loadFont } from \"@remotion/google-fonts/Inter\";\nimport {\n AbsoluteFill,\n Img,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { Cursor, type CursorStyle } from \"@/components/remocn/cursor\";\nimport {\n type CursorWaypoint,\n useCursorPath,\n} from \"@/components/remocn/use-cursor-path\";\n\nconst { fontFamily: FONT_FAMILY } = loadFont();\n\nexport interface XFollowCardProps {\n name?: string;\n handle?: string;\n bio?: string;\n avatarUrl?: string;\n coverUrl?: string;\n location?: string;\n website?: string;\n joined?: string;\n verified?: boolean;\n accentColor?: string;\n theme?: \"light\" | \"dark\";\n background?: \"surface\" | \"transparent\";\n orientation?: \"horizontal\" | \"vertical\";\n speed?: number;\n}\n\ninterface Theme {\n page: string;\n cardBg: string;\n cardBorder: string;\n fg: string;\n fgMuted: string;\n divider: string;\n}\n\nexport const THEMES: Record<\"light\" | \"dark\", Theme> = {\n light: {\n page: \"#f5f7f9\",\n cardBg: \"#ffffff\",\n cardBorder: \"#e6e9eb\",\n fg: \"#0f1419\",\n fgMuted: \"#536471\",\n divider: \"#eff3f4\",\n },\n dark: {\n page: \"#0a0a0a\",\n cardBg: \"#16181c\",\n cardBorder: \"#2f3336\",\n fg: \"#e7e9ea\",\n fgMuted: \"#71767b\",\n divider: \"#2f3336\",\n },\n};\n\nexport const CLICK_FRAME = 110;\n\nconst BUTTON_LAYOUT: Record<\n \"horizontal\" | \"vertical\",\n { x: number; y: number; w: number; h: number }\n> = {\n horizontal: { x: 800, y: 240, w: 116, h: 40 },\n vertical: { x: 542, y: 336, w: 124, h: 44 },\n};\n\nexport function cardBounceIn(\n frame: number,\n fps: number,\n): { translateY: number; scale: number } {\n const s = spring({\n fps,\n frame,\n config: { damping: 12, stiffness: 120, mass: 0.8 },\n });\n const translateY = interpolate(s, [0, 1], [60, 0]);\n const scale = interpolate(s, [0, 1], [0.9, 1]);\n return { translateY, scale };\n}\n\nexport function blurInSchedule(): {\n group: number;\n start: number;\n end: number;\n}[] {\n return [\n { group: 0, start: 20, end: 26 },\n { group: 1, start: 22, end: 28 },\n { group: 2, start: 24, end: 30 },\n { group: 3, start: 26, end: 32 },\n { group: 4, start: 28, end: 34 },\n { group: 5, start: 30, end: 36 },\n { group: 6, start: 32, end: 38 },\n { group: 7, start: 34, end: 40 },\n { group: 8, start: 36, end: 42 },\n ];\n}\n\nexport function blurInAt(\n step: { start: number; end: number },\n frame: number,\n): { blur: number; opacity: number; translateY: number } {\n const range: [number, number] = [step.start, step.end];\n const opts = {\n extrapolateLeft: \"clamp\" as const,\n extrapolateRight: \"clamp\" as const,\n };\n return {\n blur: interpolate(frame, range, [8, 0], opts),\n opacity: interpolate(frame, range, [0, 1], opts),\n translateY: interpolate(frame, range, [8, 0], opts),\n };\n}\n\nexport function followStateAt(frame: number, speed: number): boolean {\n return frame * speed >= CLICK_FRAME;\n}\n\nexport function buildFollowWaypoints(args: {\n buttonCenter: { x: number; y: number };\n orientation: \"horizontal\" | \"vertical\";\n}): CursorWaypoint[] {\n const { buttonCenter, orientation } = args;\n const rest =\n orientation === \"vertical\" ? { x: 640, y: 1120 } : { x: 1120, y: 600 };\n return [\n { at: 0, x: rest.x, y: rest.y },\n { at: 75, x: rest.x, y: rest.y },\n {\n at: CLICK_FRAME,\n x: buttonCenter.x,\n y: buttonCenter.y,\n duration: 32,\n click: true,\n easing: \"inOut\",\n },\n { at: CLICK_FRAME + 30, x: buttonCenter.x, y: buttonCenter.y },\n ];\n}\n\nfunction tintGradient(accent: string): string {\n return `linear-gradient(135deg, ${accent} 0%, ${accent}99 55%, ${accent}55 100%)`;\n}\n\nfunction Cover({\n coverUrl,\n accent,\n height,\n}: {\n coverUrl: string;\n accent: string;\n height: number;\n}) {\n const [errored, setErrored] = useState(false);\n const fallback = (\n <div\n style={{\n width: \"100%\",\n height,\n background: tintGradient(accent),\n }}\n />\n );\n if (errored || !coverUrl) return fallback;\n return (\n <Img\n src={coverUrl}\n crossOrigin=\"anonymous\"\n onError={() => setErrored(true)}\n style={{ width: \"100%\", height, objectFit: \"cover\", display: \"block\" }}\n />\n );\n}\n\nfunction Avatar({\n avatarUrl,\n name,\n size,\n accent,\n theme,\n}: {\n avatarUrl: string;\n name: string;\n size: number;\n accent: string;\n theme: Theme;\n}) {\n const [errored, setErrored] = useState(false);\n const ringStyle = {\n width: size,\n height: size,\n borderRadius: \"100%\",\n border: `4px solid ${theme.cardBg}`,\n flexShrink: 0,\n boxSizing: \"border-box\" as const,\n };\n\n if (errored || !avatarUrl) {\n return (\n <div\n style={{\n ...ringStyle,\n background: `${accent}33`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: accent,\n fontSize: size * 0.4,\n fontWeight: 700,\n fontFamily: FONT_FAMILY,\n }}\n >\n {name.charAt(0).toUpperCase()}\n </div>\n );\n }\n\n return (\n <Img\n src={avatarUrl}\n crossOrigin=\"anonymous\"\n onError={() => setErrored(true)}\n style={{ ...ringStyle, objectFit: \"cover\" }}\n />\n );\n}\n\nfunction VerifiedBadge({ accent, size }: { accent: string; size: number }) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 22 22\"\n width={size}\n height={size}\n fill={accent}\n >\n <title>Verified</title>\n <path d=\"M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44S11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85l-3.429-3.428 1.293-1.302 2.072 2.072 4.4-4.794 1.347 1.246z\" />\n </svg>\n );\n}\n\nfunction ProfileInfo({\n name,\n handle,\n bio,\n verified,\n accent,\n theme,\n isVertical,\n nameStyle,\n handleStyle,\n bioStyle,\n}: {\n name: string;\n handle: string;\n bio: string;\n verified: boolean;\n accent: string;\n theme: Theme;\n isVertical: boolean;\n nameStyle: React.CSSProperties;\n handleStyle: React.CSSProperties;\n bioStyle: React.CSSProperties;\n}) {\n return (\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n marginTop: 12,\n }}\n >\n <div\n style={{ ...nameStyle, display: \"flex\", alignItems: \"center\", gap: 6 }}\n >\n <span\n style={{\n fontSize: isVertical ? 28 : 24,\n fontWeight: 800,\n color: theme.fg,\n fontFamily: FONT_FAMILY,\n lineHeight: 1.2,\n letterSpacing: \"-0.01em\",\n }}\n >\n {name}\n </span>\n {verified && (\n <VerifiedBadge accent={accent} size={isVertical ? 24 : 22} />\n )}\n </div>\n <span\n style={{\n ...handleStyle,\n fontSize: isVertical ? 18 : 16,\n fontWeight: 400,\n color: theme.fgMuted,\n fontFamily: FONT_FAMILY,\n lineHeight: 1.3,\n }}\n >\n @{handle}\n </span>\n <p\n style={{\n ...bioStyle,\n margin: \"8px 0 0\",\n fontSize: isVertical ? 18 : 16,\n fontWeight: 400,\n color: theme.fg,\n fontFamily: FONT_FAMILY,\n lineHeight: 1.4,\n display: \"-webkit-box\",\n WebkitLineClamp: 2,\n WebkitBoxOrient: \"vertical\",\n overflow: \"hidden\",\n }}\n >\n {bio}\n </p>\n </div>\n );\n}\n\nfunction MetaRow({\n location,\n website,\n joined,\n accent,\n theme,\n}: {\n location: string;\n website: string;\n joined: string;\n accent: string;\n theme: Theme;\n}) {\n const itemStyle = {\n display: \"flex\",\n alignItems: \"center\",\n gap: 6,\n fontSize: 15,\n color: theme.fgMuted,\n fontFamily: FONT_FAMILY,\n } as const;\n return (\n <div\n style={{\n display: \"flex\",\n flexWrap: \"wrap\",\n gap: 16,\n marginTop: 14,\n }}\n >\n <span style={itemStyle}>\n <PinIcon color={theme.fgMuted} />\n {location}\n </span>\n <span style={itemStyle}>\n <LinkIcon color={theme.fgMuted} />\n <span style={{ color: accent }}>{website}</span>\n </span>\n <span style={itemStyle}>\n <CalendarIcon color={theme.fgMuted} />\n {`Joined ${joined}`}\n </span>\n </div>\n );\n}\n\nfunction PinIcon({ color }: { color: string }) {\n return (\n <svg width={16} height={16} viewBox=\"0 0 24 24\" fill={color}>\n <title>Location</title>\n <path d=\"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z\" />\n </svg>\n );\n}\n\nfunction LinkIcon({ color }: { color: string }) {\n return (\n <svg width={16} height={16} viewBox=\"0 0 24 24\" fill={color}>\n <title>Website</title>\n <path d=\"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z\" />\n </svg>\n );\n}\n\nfunction CalendarIcon({ color }: { color: string }) {\n return (\n <svg width={16} height={16} viewBox=\"0 0 24 24\" fill={color}>\n <title>Joined</title>\n <path d=\"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z\" />\n </svg>\n );\n}\n\nfunction FollowButton({\n frame,\n speed,\n accent,\n theme,\n layout,\n pressScale,\n}: {\n frame: number;\n speed: number;\n accent: string;\n theme: Theme;\n layout: { x: number; y: number; w: number; h: number };\n pressScale: number;\n}) {\n const followed = followStateAt(frame, speed);\n const flip = interpolate(\n frame * speed,\n [CLICK_FRAME, CLICK_FRAME + 10],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const base = {\n position: \"absolute\" as const,\n left: layout.x,\n top: layout.y,\n width: layout.w,\n height: layout.h,\n borderRadius: layout.h / 2,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: 16,\n fontWeight: 700,\n fontFamily: FONT_FAMILY,\n boxSizing: \"border-box\" as const,\n transform: `scale(${pressScale})`,\n transformOrigin: \"center\",\n };\n\n return (\n <div style={base}>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: layout.h / 2,\n background: accent,\n color: \"#ffffff\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n opacity: 1 - flip,\n }}\n >\n Follow\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: layout.h / 2,\n background: theme.cardBg,\n border: `1px solid ${theme.cardBorder}`,\n color: theme.fg,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n opacity: flip,\n }}\n >\n Following\n </div>\n </div>\n );\n}\n\nfunction MessageButton({\n layout,\n theme,\n}: {\n layout: { x: number; y: number; size: number };\n theme: Theme;\n}) {\n return (\n <div\n style={{\n position: \"absolute\",\n left: layout.x,\n top: layout.y,\n width: layout.size,\n height: layout.size,\n borderRadius: layout.size / 2,\n border: `1px solid ${theme.cardBorder}`,\n background: theme.cardBg,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <svg width={20} height={20} viewBox=\"0 0 24 24\" fill={theme.fg}>\n <title>Message</title>\n <path d=\"M1.998 5.5c0-1.381 1.119-2.5 2.5-2.5h15c1.381 0 2.5 1.119 2.5 2.5v13c0 1.381-1.119 2.5-2.5 2.5h-15c-1.381 0-2.5-1.119-2.5-2.5v-13zm2.5-.5c-.276 0-.5.224-.5.5v2.764l8 3.638 8-3.638V5.5c0-.276-.224-.5-.5-.5h-15zm15.5 5.463l-8 3.638-8-3.638V18.5c0 .276.224.5.5.5h15c.276 0 .5-.224.5-.5v-8.037z\" />\n </svg>\n </div>\n );\n}\n\nfunction Tabs({\n accent,\n theme,\n isVertical,\n}: {\n accent: string;\n theme: Theme;\n isVertical: boolean;\n}) {\n const tabs = [\"Posts\", \"Replies\", \"Media\", \"Likes\"];\n return (\n <div\n style={{\n display: \"flex\",\n marginTop: 0,\n columnGap: 32,\n borderBottom: `1px solid ${theme.divider}`,\n }}\n >\n {tabs.map((tab, i) => {\n const active = i === 0;\n return (\n <div\n key={tab}\n style={{\n // flex: 1,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n paddingBottom: 12,\n position: \"relative\",\n }}\n >\n <span\n style={{\n fontSize: isVertical ? 17 : 15,\n fontWeight: active ? 700 : 500,\n color: active ? theme.fg : theme.fgMuted,\n fontFamily: FONT_FAMILY,\n }}\n >\n {tab}\n </span>\n {active && (\n <div\n style={{\n position: \"absolute\",\n bottom: -1,\n height: 4,\n width: 56,\n borderRadius: 2,\n background: accent,\n }}\n />\n )}\n </div>\n );\n })}\n </div>\n );\n}\n\nfunction SamplePost({\n name,\n handle,\n avatarUrl,\n accent,\n theme,\n}: {\n name: string;\n handle: string;\n avatarUrl: string;\n accent: string;\n theme: Theme;\n}) {\n return (\n <div\n style={{\n display: \"flex\",\n gap: 12,\n marginTop: 16,\n }}\n >\n <Avatar\n avatarUrl={avatarUrl}\n name={name}\n size={44}\n accent={accent}\n theme={theme}\n />\n <div style={{ flex: 1, minWidth: 0 }}>\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 6,\n fontFamily: FONT_FAMILY,\n }}\n >\n <span style={{ fontSize: 15, fontWeight: 700, color: theme.fg }}>\n {name}\n </span>\n <span style={{ fontSize: 15, color: theme.fgMuted }}>\n {`@${handle} · 2d`}\n </span>\n </div>\n <p\n style={{\n margin: \"4px 0 0\",\n fontSize: 15,\n color: theme.fg,\n fontFamily: FONT_FAMILY,\n lineHeight: 1.4,\n }}\n >\n Shipping something new today. Built entirely with Remotion and a lot\n of coffee. More soon.\n </p>\n <div\n style={{\n display: \"flex\",\n gap: 40,\n marginTop: 10,\n color: theme.fgMuted,\n fontFamily: FONT_FAMILY,\n fontSize: 13,\n }}\n >\n <span>12</span>\n <span>48</span>\n <span>312</span>\n </div>\n </div>\n </div>\n );\n}\n\nfunction CursorLayer({\n theme,\n accent,\n style,\n}: {\n theme: \"light\" | \"dark\";\n accent: string;\n style: CursorStyle;\n}) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n pointerEvents: \"none\",\n }}\n >\n <Cursor\n variant=\"pointer\"\n mode={theme}\n rippleColor={accent}\n style={style}\n />\n </div>\n );\n}\n\nexport function XFollowCard({\n name = \"remocn\",\n handle = \"remocn\",\n bio = \"Building the collaborative video toolkit for small teams.\\nShip demos faster with ready-made motion.\",\n avatarUrl = \"/logo.svg\",\n coverUrl = \"\",\n location = \"Tunisia\",\n website = \"remocn.tn\",\n joined = \"January 2024\",\n verified = true,\n accentColor = \"#1d9bf0\",\n theme = \"light\",\n background = \"surface\",\n orientation = \"horizontal\",\n speed = 1,\n}: XFollowCardProps) {\n const frame = useCurrentFrame();\n const { width, height, fps } = useVideoConfig();\n const t = THEMES[theme] ?? THEMES.light;\n const isVertical = orientation === \"vertical\";\n\n const refW = isVertical ? 720 : 1280;\n const refH = isVertical ? 1280 : 720;\n const stageScale = Math.min(width / refW, height / refH);\n\n const cardWidth = isVertical ? 660 : 600;\n const cardLeft = (refW - cardWidth) / 2;\n const cardTop = isVertical ? 140 : 70;\n const coverHeight = isVertical ? 180 : 150;\n const avatarSize = isVertical ? 120 : 110;\n\n const bounce = cardBounceIn(frame * speed, fps);\n const schedule = blurInSchedule();\n\n const layout = BUTTON_LAYOUT[orientation];\n const buttonCenter = {\n x: layout.x + layout.w / 2,\n y: layout.y + layout.h / 2,\n };\n\n const cursorStyle = useCursorPath(\n buildFollowWaypoints({ buttonCenter, orientation }),\n { speed },\n );\n const pressScale = 0.9 + 0.1 * (cursorStyle.pressScale ?? 1);\n\n const messageLayout = {\n x: layout.x - layout.h - 8,\n y: layout.y,\n size: layout.h,\n };\n\n const groupStyle = (group: number) => {\n const step = schedule[group];\n const b = blurInAt(step, frame * speed);\n return {\n filter: b.blur > 0 ? `blur(${b.blur}px)` : \"none\",\n opacity: b.opacity,\n transform: `translateY(${b.translateY}px)`,\n };\n };\n\n const pageBg = background === \"transparent\" ? \"transparent\" : t.page;\n\n return (\n <AbsoluteFill style={{ background: pageBg }}>\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: refW,\n height: refH,\n transform: `translate(-50%, -50%) scale(${stageScale})`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: cardLeft,\n top: cardTop,\n width: cardWidth,\n background: t.cardBg,\n border: `1px solid ${t.cardBorder}`,\n borderRadius: 24,\n overflow: \"hidden\",\n transform: `translateY(${bounce.translateY}px) scale(${bounce.scale})`,\n transformOrigin: \"center top\",\n boxShadow:\n theme === \"light\"\n ? \"0 12px 40px -16px rgba(15,20,25,0.18)\"\n : \"0 12px 40px -16px rgba(0,0,0,0.6)\",\n }}\n >\n <div style={groupStyle(0)}>\n <Cover\n coverUrl={coverUrl}\n accent={accentColor}\n height={coverHeight}\n />\n </div>\n\n <div style={{ padding: \"0 24px 24px\" }}>\n <div\n style={{\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"flex-end\",\n marginTop: -(avatarSize / 2),\n position: \"relative\",\n }}\n >\n <div\n style={{\n width: avatarSize,\n height: avatarSize,\n borderRadius: \"100%\",\n background: t.cardBg,\n flexShrink: 0,\n }}\n >\n <div style={groupStyle(1)}>\n <Avatar\n avatarUrl={avatarUrl}\n name={name}\n size={avatarSize}\n accent={accentColor}\n theme={t}\n />\n </div>\n </div>\n </div>\n\n <ProfileInfo\n name={name}\n handle={handle}\n bio={bio}\n verified={verified}\n accent={accentColor}\n theme={t}\n isVertical={isVertical}\n nameStyle={groupStyle(2)}\n handleStyle={groupStyle(3)}\n bioStyle={groupStyle(4)}\n />\n\n <div style={groupStyle(5)}>\n <MetaRow\n location={location}\n website={website}\n joined={joined}\n accent={accentColor}\n theme={t}\n />\n </div>\n\n <div style={{ height: layout.h - 8 }} aria-hidden=\"true\" />\n\n <div style={groupStyle(7)}>\n <Tabs accent={accentColor} theme={t} isVertical={isVertical} />\n </div>\n\n <div style={groupStyle(8)}>\n <SamplePost\n name={name}\n handle={handle}\n avatarUrl={avatarUrl}\n accent={accentColor}\n theme={t}\n />\n </div>\n </div>\n </div>\n\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: `translateY(${bounce.translateY}px) scale(${bounce.scale})`,\n transformOrigin: \"center top\",\n }}\n >\n <div style={{ ...groupStyle(6), position: \"absolute\", inset: 0 }}>\n <MessageButton layout={messageLayout} theme={t} />\n <FollowButton\n frame={frame}\n speed={speed}\n accent={accentColor}\n theme={t}\n layout={layout}\n pressScale={pressScale}\n />\n </div>\n </div>\n\n <CursorLayer theme={theme} accent={accentColor} style={cursorStyle} />\n </div>\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/x-follow-card.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/x-followers-overview.json b/public/r/x-followers-overview.json
new file mode 100644
index 00000000..cf6b1ee0
--- /dev/null
+++ b/public/r/x-followers-overview.json
@@ -0,0 +1,22 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "x-followers-overview",
+ "title": "X Followers Overview",
+ "description": "X follow notifications cycle through as 3D flipping text — '<name> followed you · 7h' — then the total follower count pops in with a confetti burst. Hardcoded sample list (X API ready). Light/dark, horizontal or vertical.",
+ "dependencies": [
+ "remotion",
+ "@remotion/google-fonts"
+ ],
+ "registryDependencies": [
+ "@remocn/confetti"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/x-followers-overview/index.tsx",
+ "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { loadFont as loadSans } from \"@remotion/google-fonts/Manrope\";\nimport {\n AbsoluteFill,\n Easing,\n Img,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { Confetti } from \"@/components/remocn/confetti\";\n\nexport interface FollowerNotification {\n name: string;\n verified: boolean;\n /** Relative time label, e.g. \"7h\", \"1d\". */\n time: string;\n}\n\nexport interface XFollowersOverviewProps {\n notifications?: FollowerNotification[];\n totalFollowers?: number;\n handle?: string;\n avatarUrl?: string;\n accentColor?: string;\n theme?: \"light\" | \"dark\";\n orientation?: \"horizontal\" | \"vertical\";\n background?: \"surface\" | \"transparent\";\n speed?: number;\n}\n\nconst { fontFamily: SANS_FAMILY } = loadSans();\nconst FONT_FAMILY = SANS_FAMILY;\n\ninterface Theme {\n bg: string;\n fg: string;\n fgMuted: string;\n border: string;\n}\n\nconst THEMES: Record<\"light\" | \"dark\", Theme> = {\n light: {\n bg: \"#ffffff\",\n fg: \"#0f1419\",\n fgMuted: \"#536471\",\n border: \"#eff3f4\",\n },\n dark: {\n bg: \"#0a0a0a\",\n fg: \"#e7e9ea\",\n fgMuted: \"#71767b\",\n border: \"#2f3336\",\n },\n};\n\n/**\n * Hardcoded sample notifications so the composition renders immediately from\n * defaults. A future revision swaps this for live X API data.\n */\nexport const SAMPLE_FOLLOWERS: FollowerNotification[] = [\n { name: \"Andre Vitorio\", verified: true, time: \"7h\" },\n { name: \"Sarah Chen\", verified: true, time: \"7h\" },\n { name: \"marcus\", verified: false, time: \"8h\" },\n { name: \"Lena Powell\", verified: true, time: \"9h\" },\n { name: \"dev_jay\", verified: false, time: \"10h\" },\n { name: \"Priya Nair\", verified: true, time: \"11h\" },\n { name: \"Tomás Rivera\", verified: true, time: \"13h\" },\n { name: \"hana.eth\", verified: false, time: \"15h\" },\n { name: \"Will Carter\", verified: true, time: \"18h\" },\n { name: \"Yuki Tanaka\", verified: true, time: \"21h\" },\n { name: \"benoit\", verified: false, time: \"23h\" },\n { name: \"Amara Okafor\", verified: true, time: \"1d\" },\n { name: \"Leo Martins\", verified: true, time: \"1d\" },\n { name: \"sol\", verified: false, time: \"2d\" },\n];\n\n// --- Pure helpers (unit-tested) -------------------------------------------\n\n/** Map an effective frame to the active notification index + in-slot fraction. */\nexport function slotProgress(\n fc: number,\n slotFrames: number,\n count: number,\n): { idx: number; frac: number } {\n if (slotFrames <= 0 || count <= 0) return { idx: 0, frac: 0 };\n const pos = fc / slotFrames;\n const idx = Math.max(0, Math.min(Math.floor(pos), count - 1));\n const frac = Math.max(0, Math.min(pos - idx, 1));\n return { idx, frac };\n}\n\n/** Smoothstep flip ramp: rest for `hold` of the slot, then flip 0→1. */\nexport function flipEase(frac: number, hold: number): number {\n if (hold >= 1) return 0;\n const raw = (frac - hold) / (1 - hold);\n const c = Math.max(0, Math.min(raw, 1));\n return c * c * (3 - 2 * c);\n}\n\nexport function blurIn(\n frame: number,\n start: number,\n end: number,\n): { blur: number; opacity: number; translateY: number } {\n const range: [number, number] = [start, end];\n const opts = {\n extrapolateLeft: \"clamp\" as const,\n extrapolateRight: \"clamp\" as const,\n };\n return {\n blur: interpolate(frame, range, [10, 0], opts),\n opacity: interpolate(frame, range, [0, 1], opts),\n translateY: interpolate(frame, range, [12, 0], opts),\n };\n}\n\n// --- Sub-components --------------------------------------------------------\n\nfunction VerifiedBadge({ accent, size }: { accent: string; size: number }) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 22 22\"\n width={size}\n height={size}\n fill={accent}\n style={{ flexShrink: 0 }}\n >\n <title>Verified</title>\n <path d=\"M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44S11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85l-3.429-3.428 1.293-1.302 2.072 2.072 4.4-4.794 1.347 1.246z\" />\n </svg>\n );\n}\n\nfunction Avatar({\n avatarUrl,\n handle,\n size,\n theme,\n}: {\n avatarUrl: string;\n handle: string;\n size: number;\n theme: Theme;\n}) {\n const [errored, setErrored] = useState(false);\n const ringStyle = {\n width: size,\n height: size,\n borderRadius: 9999,\n border: `1px solid ${theme.border}`,\n flexShrink: 0,\n } as const;\n\n if (errored || !avatarUrl) {\n return (\n <div\n style={{\n ...ringStyle,\n background: theme.border,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: theme.fgMuted,\n fontSize: size * 0.42,\n fontWeight: 700,\n fontFamily: FONT_FAMILY,\n }}\n >\n {handle.charAt(0).toUpperCase()}\n </div>\n );\n }\n\n return (\n <Img\n src={avatarUrl}\n crossOrigin=\"anonymous\"\n onError={() => setErrored(true)}\n style={{ ...ringStyle, objectFit: \"cover\" }}\n />\n );\n}\n\n/** Username + verified badge — the only part that flips. Absolutely overlaid\n * and centered inside a slot sized to the active name, so the line as a whole\n * stays centered while names swap. */\nfunction NameBlock({\n item,\n fontSize,\n height,\n theme,\n accent,\n deg,\n opacity,\n}: {\n item: FollowerNotification;\n fontSize: number;\n height: number;\n theme: Theme;\n accent: string;\n deg: number;\n opacity: number;\n}) {\n return (\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 0,\n height,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: fontSize * 0.2,\n whiteSpace: \"nowrap\",\n transformOrigin: \"center\",\n backfaceVisibility: \"hidden\",\n transform: `rotateX(${deg}deg)`,\n opacity,\n }}\n >\n <span\n style={{\n fontFamily: FONT_FAMILY,\n fontSize,\n fontWeight: 800,\n color: theme.fg,\n lineHeight: 1,\n }}\n >\n {item.name}\n </span>\n {item.verified && (\n <VerifiedBadge accent={accent} size={fontSize * 0.66} />\n )}\n </div>\n );\n}\n\n// --- Main composition ------------------------------------------------------\n\nexport function XFollowersOverview({\n notifications = SAMPLE_FOLLOWERS,\n totalFollowers = 1709,\n handle = \"remocn\",\n avatarUrl = \"/logo.svg\",\n accentColor = \"#1d9bf0\",\n theme = \"light\",\n orientation = \"horizontal\",\n background = \"surface\",\n speed = 1,\n}: XFollowersOverviewProps) {\n const frame = useCurrentFrame();\n const { durationInFrames, width, height, fps } = useVideoConfig();\n const t = THEMES[theme] ?? THEMES.light;\n const isVertical = orientation === \"vertical\";\n\n const refW = isVertical ? 720 : 1280;\n const refH = isVertical ? 1280 : 720;\n const stageScale = Math.min(width / refW, height / refH);\n\n const notifSize = isVertical ? 38 : 46;\n const countNum = isVertical ? 92 : 110;\n const countLabel = isVertical ? 40 : 46;\n const perspective = isVertical ? 1000 : 1200;\n const stageH = isVertical ? 160 : 180;\n const lineH = notifSize * 1.4;\n // Fast cadence: ~0.43s per username at speed 1; flip occupies the back half.\n const SLOT = 13;\n const HOLD = 0.45;\n\n const fc = frame * speed;\n const items = notifications.length > 0 ? notifications : SAMPLE_FOLLOWERS;\n const count = items.length;\n\n // Notifications cycle first, then the total blurs in. The reveal starts once\n // the list is exhausted, capped so it always fits before the timeline ends.\n const revealStart = Math.min(\n count * SLOT,\n Math.round(durationInFrames * 0.82),\n );\n\n const { idx, frac } = slotProgress(fc, SLOT, count);\n const flipP = flipEase(frac, HOLD);\n const hasNext = idx + 1 < count;\n\n const current = items[idx];\n const next = hasNext ? items[idx + 1] : undefined;\n const activeItem = flipP >= 0.5 && next ? next : current;\n\n const currentDeg = hasNext ? -90 * flipP : 0;\n const currentOpacity = hasNext\n ? interpolate(flipP, [0, 0.55], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n })\n : 1;\n const nextDeg = 90 * (1 - flipP);\n const nextOpacity = interpolate(flipP, [0.45, 1], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const notifOpacity = interpolate(\n fc,\n [revealStart - 4, revealStart + 8],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n const countIn = blurIn(fc, revealStart + 4, revealStart + 28);\n // Dynamic pop: spring overshoot on the total as it blurs in.\n const revealSpring = spring({\n fps,\n frame: fc - (revealStart + 2),\n config: { damping: 10, stiffness: 170, mass: 0.8 },\n });\n const revealScale = interpolate(revealSpring, [0, 1], [0.5, 1]);\n\n // Avatar + handle reveal in sync with the total: same window as countIn,\n // avatar sliding in from the left, handle from the right.\n const avatarSize = isVertical ? 72 : 64;\n const handleSize = isVertical ? 30 : 34;\n const avatarIn = blurIn(fc, revealStart + 4, revealStart + 28);\n const handleIn = avatarIn;\n const slideOpts = {\n extrapolateLeft: \"clamp\" as const,\n extrapolateRight: \"clamp\" as const,\n };\n const avatarX = interpolate(\n fc,\n [revealStart + 4, revealStart + 28],\n [-36, 0],\n slideOpts,\n );\n const handleX = interpolate(\n fc,\n [revealStart + 4, revealStart + 28],\n [36, 0],\n slideOpts,\n );\n\n // Confetti fires on the real frame the reveal begins (sync across speeds),\n // centered on the canvas.\n const confettiStart = Math.round((revealStart + 2) / speed);\n const confettiColors = [\n accentColor,\n \"#ff5da2\",\n \"#ffd23f\",\n \"#22c55e\",\n \"#a855f7\",\n ];\n\n const pageBg = background === \"transparent\" ? \"transparent\" : t.bg;\n\n return (\n <AbsoluteFill style={{ background: pageBg }}>\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: refW,\n height: refH,\n transform: `translate(-50%, -50%) scale(${stageScale})`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div style={{ position: \"relative\", width: refW, height: stageH }}>\n {/* Cycling notifications — only the username flips in 3D, the\n \"followed you · <time>\" suffix stays put. */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: notifSize * 0.28,\n opacity: notifOpacity,\n }}\n >\n <div\n style={{\n position: \"relative\",\n height: lineH,\n perspective,\n display: \"inline-flex\",\n }}\n >\n {/* Invisible spacer sizes the slot to the active name so the\n whole line stays centered; flips overlay it absolutely. */}\n <div\n aria-hidden=\"true\"\n style={{\n visibility: \"hidden\",\n display: \"flex\",\n alignItems: \"center\",\n gap: notifSize * 0.2,\n whiteSpace: \"nowrap\",\n fontFamily: FONT_FAMILY,\n fontSize: notifSize,\n fontWeight: 800,\n }}\n >\n {activeItem.name}\n {activeItem.verified && (\n <span style={{ width: notifSize * 0.66 }} />\n )}\n </div>\n <NameBlock\n item={current}\n fontSize={notifSize}\n height={lineH}\n theme={t}\n accent={accentColor}\n deg={currentDeg}\n opacity={currentOpacity}\n />\n {next && (\n <NameBlock\n item={next}\n fontSize={notifSize}\n height={lineH}\n theme={t}\n accent={accentColor}\n deg={nextDeg}\n opacity={nextOpacity}\n />\n )}\n </div>\n <span\n style={{\n fontFamily: FONT_FAMILY,\n fontSize: notifSize,\n fontWeight: 500,\n color: t.fgMuted,\n whiteSpace: \"nowrap\",\n lineHeight: 1,\n }}\n >\n followed you · {activeItem.time}\n </span>\n </div>\n\n {/* Total reveal: avatar + handle above the count */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: isVertical ? 26 : 22,\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 14,\n }}\n >\n <div\n style={{\n opacity: avatarIn.opacity,\n filter:\n avatarIn.blur > 0 ? `blur(${avatarIn.blur}px)` : \"none\",\n transform: `translateX(${avatarX}px)`,\n }}\n >\n <Avatar\n avatarUrl={avatarUrl}\n handle={handle}\n size={avatarSize}\n theme={t}\n />\n </div>\n <span\n style={{\n fontFamily: FONT_FAMILY,\n fontSize: handleSize,\n fontWeight: 700,\n color: t.fg,\n whiteSpace: \"nowrap\",\n opacity: handleIn.opacity,\n filter:\n handleIn.blur > 0 ? `blur(${handleIn.blur}px)` : \"none\",\n transform: `translateX(${handleX}px)`,\n }}\n >\n @{handle}\n </span>\n </div>\n\n <div\n style={{\n display: \"flex\",\n alignItems: \"baseline\",\n justifyContent: \"center\",\n gap: 18,\n opacity: countIn.opacity,\n filter: countIn.blur > 0 ? `blur(${countIn.blur}px)` : \"none\",\n transform: `translateY(${countIn.translateY}px) scale(${revealScale})`,\n }}\n >\n <span\n style={{\n fontFamily: FONT_FAMILY,\n fontSize: countNum,\n fontWeight: 800,\n color: t.fg,\n letterSpacing: \"-0.03em\",\n fontVariantNumeric: \"tabular-nums\",\n lineHeight: 1,\n }}\n >\n {totalFollowers.toLocaleString(\"en-US\")}\n </span>\n <span\n style={{\n fontFamily: FONT_FAMILY,\n fontSize: countLabel,\n fontWeight: 500,\n color: t.fgMuted,\n lineHeight: 1,\n }}\n >\n Followers\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <Confetti\n startFrame={confettiStart}\n originX={0.5}\n originY={0.5}\n colors={confettiColors}\n particleCount={160}\n />\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/x-followers-overview.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file