Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
{
"type": "remotion-element",
"version": 1,
"element": {
"assets": [],
"dependencies": [
{
"name": "@remotion/google-fonts",
"version": null
}
],
"dimensions": null,
"displayName": "Chaos to Order",
"initialProps": null,
"slug": "chaos-to-order",
"sourceCode": "import { loadFont } from \"@remotion/google-fonts/Inter\";\nimport { AbsoluteFill, Easing, Interactive, Sequence, interpolate, spring, useCurrentFrame, useVideoConfig, type InteractiveBaseProps, type InteractiveTransformProps, type InteractivitySchema, type SequenceControls } from \"remotion\";\nimport React, { forwardRef, useImperativeHandle, useRef, type ComponentProps } from \"react\";\n\nconst { fontFamily } = loadFont(\"normal\", {\n weights: [\"400\", \"500\", \"600\", \"700\"],\n subsets: [\"latin\"],\n});\n\ninterface ChaosToOrderProps {\n /** Labels for the chaos pieces (window titles, sticky notes, toasts), in drop order. */\n items?: string[];\n /** Your product window. Falls back to a built-in issues list. */\n children?: React.ReactNode;\n accent?: string;\n speed?: number;\n theme?: \"light\" | \"dark\";\n}\n\nconst DEFAULT_ITEMS = [\n \"#launch-war-room\",\n \"Q4 roadmap v7 FINAL.xlsx\",\n \"Inbox\",\n \"Launch plan (draft 3)\",\n \"Pricing · Kitebase\",\n \"fix onboarding!!\",\n \"Payment failed\",\n \"who owns billing??\",\n \"Standup in 2 min\",\n \"14 new comments\",\n \"ship by Fri???\",\n \"Build #482 failed\",\n \"call Maya re: assets\",\n \"3 unread in #design\",\n];\n\ntype ToastIcon = \"alert\" | \"cal\" | \"chat\" | \"x\";\ntype Kind = \"chat\" | \"sheet\" | \"mail\" | \"doc\" | \"browser\" | \"sticky\" | \"toast\";\ntype Piece = {\n kind: Kind;\n x: number;\n y: number;\n w: number;\n h: number;\n r: number;\n d: number;\n tint?: string;\n sub?: string;\n app?: string;\n icon?: ToastIcon;\n};\nconst toast = (\n x: number,\n y: number,\n r: number,\n d: number,\n tint: string,\n app: string,\n sub: string,\n icon: ToastIcon,\n): Piece => ({\n kind: \"toast\",\n x,\n y,\n w: 272,\n h: 62,\n r,\n d,\n tint,\n app,\n sub,\n icon,\n});\nconst sticky = (\n x: number,\n y: number,\n s: number,\n r: number,\n d: number,\n tint: string,\n): Piece => ({ kind: \"sticky\", x, y, w: s, h: s, r, d, tint });\n\n// x/y = centre in a 1280×720 design space, r = resting angle, d = drop frame.\nconst PIECES: Piece[] = [\n { kind: \"chat\", x: 318, y: 236, w: 400, h: 254, r: -5, d: -3 },\n { kind: \"sheet\", x: 930, y: 214, w: 360, h: 232, r: 4, d: 6 },\n { kind: \"mail\", x: 960, y: 505, w: 350, h: 240, r: -3.5, d: 11 },\n { kind: \"doc\", x: 560, y: 470, w: 280, h: 300, r: 3, d: 16 },\n { kind: \"browser\", x: 650, y: 200, w: 390, h: 244, r: -2.5, d: 20 },\n sticky(190, 520, 148, -8, 24, \"#FCE38A\"),\n toast(\n 1060,\n 88,\n 4,\n 27,\n \"#E5484D\",\n \"Kitebase\",\n \"Card ending 4242 was declined\",\n \"alert\",\n ),\n sticky(1135, 330, 136, 7, 30, \"#F9C9DE\"),\n toast(\n 330,\n 645,\n -3,\n 32,\n \"#3E63DD\",\n \"Calendar\",\n \"Product sync · Room 4B\",\n \"cal\",\n ),\n toast(770, 650, 4, 34, \"#8E4EC6\", \"Docs\", \"on Launch plan (draft 3)\", \"chat\"),\n sticky(430, 104, 128, 9, 36, \"#BFE3F7\"),\n toast(150, 330, -6, 37.5, \"#F76B15\", \"CI\", \"main · exited with code 1\", \"x\"),\n sticky(820, 405, 136, -10, 39, \"#C4EBCB\"),\n toast(610, 340, 5, 40, \"#30A46C\", \"Chat\", \"Priya, Leo and 1 other\", \"chat\"),\n];\n\nconst PULL = 56;\nconst PULL_LEN = 18;\nconst WIN_IN = PULL + 10;\nconst WIN_W = 880;\nconst WIN_H = 530;\n\nconst clamp = { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" } as const;\nconst HAIR = \"1px solid rgba(0,0,0,0.07)\";\nconst IN_OUT = Easing.bezier(0.65, 0, 0.35, 1);\nconst flex = (s: React.CSSProperties = {}): React.CSSProperties => ({\n display: \"flex\",\n alignItems: \"center\",\n ...s,\n});\nconst clip: React.CSSProperties = {\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n};\n\nfunction Icon({\n d,\n size = 14,\n color = \"currentColor\",\n sw = 2,\n}: {\n d: string;\n size?: number;\n color?: string;\n sw?: number;\n}) {\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke={color}\n strokeWidth={sw}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n style={{ flexShrink: 0 }}\n >\n <path d={d} />\n </svg>\n );\n}\n\nconst I = {\n alert: \"M12 8v5M12 16.5v.01\",\n cal: \"M5 6h14v13H5zM5 10h14M9 3.5v4M15 3.5v4\",\n chat: \"M5 5h14v10H11l-4 3.5V15H5z\",\n x: \"M8 8l8 8M16 8l-8 8\",\n search: \"M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM20 20l-4-4\",\n compose: \"M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4\",\n filter: \"M4 6h16M7 12h10M10 18h4\",\n display: \"M4 7h10M18 7h2M4 17h2M10 17h10M14 4v6M6 14v6\",\n chevron: \"M7 10l5 5 5-5\",\n inbox: \"M3 13l2.5-8h13L21 13v6H3zM3 13h5l1.5 2.5h5L16 13h5\",\n user: \"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM5 21c.8-3.5 3.6-5.5 7-5.5s6.2 2 7 5.5\",\n box: \"M12 3l8 4.5v9L12 21l-8-4.5v-9zM12 12l8-4.5M12 12v9M12 12L4 7.5\",\n layers: \"M3 8l9-5 9 5-9 5zM3 13l9 5 9-5\",\n target:\n \"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4z\",\n cycle: \"M20 12a8 8 0 1 1-2.3-5.7M20 4v5h-5\",\n hash: \"M9 4L7 20M17 4l-2 16M4 9h16M3.5 15h16\",\n};\n\nfunction Lights() {\n return (\n <div style={flex({ gap: 6 })}>\n {[\"#FF5F57\", \"#FEBC2E\", \"#28C840\"].map((c) => (\n <div\n key={c}\n style={{\n width: 10,\n height: 10,\n borderRadius: 5,\n background: c,\n boxShadow: \"inset 0 0 0 0.5px rgba(0,0,0,0.18)\",\n }}\n />\n ))}\n </div>\n );\n}\n\nfunction Win({\n title,\n dark,\n children,\n}: {\n title: string;\n dark?: boolean;\n children: React.ReactNode;\n}) {\n return (\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: 10,\n overflow: \"hidden\",\n background: dark ? \"#1C1C1F\" : \"#fff\",\n display: \"flex\",\n flexDirection: \"column\",\n }}\n >\n <div\n style={flex({\n height: 28,\n flexShrink: 0,\n position: \"relative\",\n padding: \"0 10px\",\n background: dark ? \"#232327\" : \"#F6F6F7\",\n borderBottom: dark ? \"1px solid rgba(255,255,255,0.06)\" : HAIR,\n })}\n >\n <Lights />\n <span\n style={{\n ...clip,\n position: \"absolute\",\n left: 70,\n right: 70,\n textAlign: \"center\",\n fontSize: 11.5,\n fontWeight: 500,\n color: dark ? \"#C8C8CD\" : \"#52525B\",\n }}\n >\n {title}\n </span>\n </div>\n <div style={{ flex: 1, position: \"relative\", overflow: \"hidden\" }}>\n {children}\n </div>\n </div>\n );\n}\n\nfunction Avatar({\n name,\n color,\n size = 22,\n round = true,\n}: {\n name: string;\n color: string;\n size?: number;\n round?: boolean;\n}) {\n return (\n <div\n style={flex({\n width: size,\n height: size,\n borderRadius: round ? size / 2 : size * 0.25,\n background: color,\n color: \"#fff\",\n fontSize: size * 0.4,\n fontWeight: 600,\n justifyContent: \"center\",\n flexShrink: 0,\n letterSpacing: \"0.01em\",\n })}\n >\n {name}\n </div>\n );\n}\n\nconst PEOPLE: Record<string, [string, string]> = {\n MC: [\"Maya Chen\", \"#D6409F\"],\n LP: [\"Leo Park\", \"#0090FF\"],\n PR: [\"Priya Raman\", \"#12A594\"],\n};\n\nfunction Chat({ title, badge }: { title: string; badge: string }) {\n const msgs: [string, string, string][] = [\n [\"MC\", \"11:42\", \"is the launch video locked?? need it for the deck\"],\n [\"LP\", \"11:43\", \"pricing page still says $19, design says $24\"],\n [\"PR\", \"11:43\", \"who has the latest logo files\"],\n ];\n const chans: [string, string?][] = [\n [\"general\"],\n [title.replace(/^#/, \"\"), \"on\"],\n [\"design\", \"3\"],\n [\"billing\", \"1\"],\n [\"random\"],\n ];\n return (\n <Win title=\"Kitebase\" dark>\n <div style={{ display: \"flex\", height: \"100%\" }}>\n <div\n style={{\n width: 40,\n background: \"#141416\",\n paddingTop: 10,\n display: \"flex\",\n justifyContent: \"center\",\n }}\n >\n <div style={{ position: \"relative\", height: 26 }}>\n <div\n style={flex({\n width: 26,\n height: 26,\n borderRadius: 7,\n background: \"#EDEDEF\",\n color: \"#18181B\",\n fontSize: 12,\n fontWeight: 700,\n justifyContent: \"center\",\n })}\n >\n K\n </div>\n <div\n style={flex({\n position: \"absolute\",\n top: -6,\n right: -9,\n height: 16,\n padding: \"0 5px\",\n borderRadius: 8,\n background: \"#E5484D\",\n color: \"#fff\",\n fontSize: 9.5,\n fontWeight: 600,\n fontVariantNumeric: \"tabular-nums\",\n boxShadow: \"0 0 0 2px #141416\",\n })}\n >\n {badge}\n </div>\n </div>\n </div>\n <div\n style={{\n width: 112,\n background: \"#19191C\",\n padding: \"8px 6px\",\n borderRight: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n <div\n style={flex({\n gap: 3,\n fontSize: 12,\n fontWeight: 600,\n color: \"#F4F4F5\",\n padding: \"0 6px 8px\",\n })}\n >\n Kitebase <Icon d={I.chevron} size={10} color=\"#8B8B92\" />\n </div>\n {chans.map(([c, s]) => (\n <div\n key={c}\n style={flex({\n gap: 5,\n height: 21,\n padding: \"0 6px\",\n borderRadius: 5,\n fontSize: 10.5,\n fontWeight: s ? 600 : 400,\n background: s === \"on\" ? \"rgba(255,255,255,0.1)\" : undefined,\n color: s ? \"#F4F4F5\" : \"#8B8B92\",\n })}\n >\n <Icon d={I.hash} size={10} color={s ? \"#C8C8CD\" : \"#6B6B72\"} />\n <span style={{ ...clip, flex: 1 }}>{c}</span>\n {s && s !== \"on\" ? (\n <span\n style={{\n fontSize: 9,\n background: \"#E5484D\",\n borderRadius: 6,\n padding: \"0 4px\",\n }}\n >\n {s}\n </span>\n ) : null}\n </div>\n ))}\n </div>\n <div style={{ flex: 1, minWidth: 0, background: \"#1C1C1F\" }}>\n <div\n style={flex({\n height: 30,\n padding: \"0 12px\",\n gap: 4,\n fontSize: 12,\n fontWeight: 600,\n color: \"#F4F4F5\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n })}\n >\n <Icon d={I.hash} size={11} color=\"#C8C8CD\" />\n {title.replace(/^#/, \"\")}\n </div>\n <div style={{ padding: \"8px 12px\", display: \"grid\", gap: 8 }}>\n {msgs.map(([who, t, text], i) => (\n <div key={who} style={{ display: \"flex\", gap: 8 }}>\n <Avatar\n name={who}\n color={PEOPLE[who][1]}\n size={22}\n round={false}\n />\n <div style={{ minWidth: 0 }}>\n <div\n style={{ fontSize: 11, fontWeight: 600, color: \"#F4F4F5\" }}\n >\n {PEOPLE[who][0]}{\" \"}\n <span\n style={{\n fontWeight: 400,\n color: \"#7C7C84\",\n fontSize: 9.5,\n }}\n >\n {t}\n </span>\n </div>\n <div\n style={{\n fontSize: 10.5,\n color: \"#C8C8CD\",\n lineHeight: 1.4,\n }}\n >\n {text}\n </div>\n {i === 0 ? (\n <div style={flex({ gap: 4, marginTop: 4 })}>\n {[\"👀 4\", \"😬 2\"].map((r, k) => (\n <span\n key={r}\n style={{\n fontSize: 9.5,\n color: \"#C8C8CD\",\n padding: \"1px 6px\",\n borderRadius: 8,\n background:\n k === 0\n ? \"rgba(0,144,255,0.18)\"\n : \"rgba(255,255,255,0.06)\",\n boxShadow:\n k === 0\n ? \"inset 0 0 0 1px rgba(0,144,255,0.5)\"\n : \"inset 0 0 0 1px rgba(255,255,255,0.08)\",\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {r}\n </span>\n ))}\n </div>\n ) : null}\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n </Win>\n );\n}\n\nconst STATUS: Record<string, [string, string]> = {\n Late: [\"#FCE8E8\", \"#CE2C31\"],\n Blocked: [\"#FFF1D6\", \"#AB6400\"],\n \"Not started\": [\"#F0F0F2\", \"#60646C\"],\n \"??\": [\"#fff\", \"#18181B\"],\n};\n\nfunction Sheet({ title }: { title: string }) {\n const widths = [24, 66, 52, 80, 54, 44];\n const rows = [\n [\"\", \"A\", \"B\", \"C\", \"D\", \"E\"],\n [\"1\", \"Q4 goal\", \"Owner\", \"Status\", \"ETA\", \"Δ days\"],\n [\"2\", \"Launch\", \"Maya\", \"Late\", \"Oct 31\", \"−12\"],\n [\"3\", \"Pricing\", \"Leo\", \"??\", \"TBD\", \"#REF!\"],\n [\"4\", \"Docs\", \"Priya\", \"Blocked\", \"Nov 4\", \"−3\"],\n [\"5\", \"Video\", \"—\", \"Not started\", \"Nov 1\", \"−9\"],\n [\"6\", \"Billing\", \"?\", \"Late\", \"Oct 28\", \"−15\"],\n ];\n return (\n <Win title={title}>\n <div\n style={flex({\n gap: 8,\n height: 24,\n borderBottom: HAIR,\n padding: \"0 8px\",\n fontSize: 10.5,\n color: \"#3F3F46\",\n })}\n >\n <span style={{ fontWeight: 600, width: 22 }}>C3</span>\n <span style={{ color: \"#A1A1AA\", fontStyle: \"italic\" }}>fx</span>\n <span style={{ ...clip, fontFamily: \"monospace\", fontSize: 10 }}>\n =VLOOKUP(B3, Owners!A:F, 7, FALSE)\n </span>\n </div>\n {rows.map((r, ri) => (\n <div\n key={r[0] || \"h\"}\n style={{\n display: \"flex\",\n height: 21,\n fontSize: 10.5,\n borderBottom: ri === 1 ? \"1px solid #C9CBCF\" : \"1px solid #ECEDEF\",\n }}\n >\n {r.map((cell, ci) => {\n const head = ri === 0 || ci === 0;\n const err = cell === \"#REF!\";\n const st = ci === 3 && ri > 1 ? STATUS[cell] : undefined;\n return (\n <div\n key={ci}\n style={flex({\n ...clip,\n width: widths[ci],\n flexShrink: 0,\n borderRight: \"1px solid #ECEDEF\",\n justifyContent: head ? \"center\" : \"flex-start\",\n padding: head ? 0 : \"0 5px\",\n background: head ? \"#F6F6F7\" : err ? \"#FCE8E8\" : \"#fff\",\n color: head\n ? \"#80838D\"\n : err || cell.startsWith(\"−\")\n ? \"#CE2C31\"\n : \"#1C2024\",\n fontWeight: ri === 1 || err ? 600 : 400,\n fontVariantNumeric: \"tabular-nums\",\n outline:\n ri === 3 && ci === 3 ? \"2px solid #1A73E8\" : undefined,\n outlineOffset: -2,\n })}\n >\n {st && cell !== \"??\" ? (\n <span\n style={{\n background: st[0],\n color: st[1],\n borderRadius: 4,\n padding: \"1px 5px\",\n fontSize: 9.5,\n fontWeight: 500,\n }}\n >\n {cell}\n </span>\n ) : (\n cell\n )}\n </div>\n );\n })}\n </div>\n ))}\n <div\n style={flex({\n position: \"absolute\",\n bottom: 0,\n left: 0,\n right: 0,\n height: 24,\n gap: 2,\n padding: \"0 8px\",\n background: \"#F6F6F7\",\n borderTop: HAIR,\n fontSize: 10,\n color: \"#60646C\",\n })}\n >\n {[\"Q4\", \"Owners\", \"Sheet3 (old)\"].map((t, i) => (\n <span\n key={t}\n style={{\n padding: \"3px 8px\",\n borderRadius: 4,\n background: i === 0 ? \"#fff\" : undefined,\n color: i === 0 ? \"#1A73E8\" : undefined,\n fontWeight: i === 0 ? 600 : 400,\n boxShadow: i === 0 ? \"0 0 0 1px rgba(0,0,0,0.06)\" : undefined,\n }}\n >\n {t}\n </span>\n ))}\n </div>\n </Win>\n );\n}\n\nfunction Mail({ title, accent }: { title: string; accent: string }) {\n const mails = [\n [\n \"Kitebase Billing\",\n \"Action required: card declined\",\n \"Your payment of $4,280 could not be processed…\",\n \"9:12\",\n ],\n [\n \"Maya Chen\",\n \"Re: Re: Re: launch assets\",\n \"Sending again, the drive link expired…\",\n \"9:04\",\n ],\n [\n \"Orbitly\",\n \"You have 14 unread mentions\",\n \"Leo Park and 6 others mentioned you…\",\n \"8:51\",\n ],\n [\n \"Halcyon Legal\",\n \"Contract v3 (final) (2)\",\n \"Please countersign by end of day…\",\n \"8:30\",\n ],\n ];\n return (\n <Win title={title}>\n <div\n style={flex({\n height: 32,\n padding: \"0 12px\",\n gap: 6,\n borderBottom: HAIR,\n })}\n >\n <span style={{ fontSize: 13, fontWeight: 600, color: \"#18181B\" }}>\n {title}\n </span>\n <span\n style={{\n fontSize: 10.5,\n color: \"#8B8D98\",\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n 214 unread\n </span>\n <div\n style={flex({\n marginLeft: \"auto\",\n gap: 2,\n fontSize: 10,\n color: \"#60646C\",\n })}\n >\n {[\"Important\", \"Other\"].map((t, i) => (\n <span\n key={t}\n style={{\n padding: \"2px 7px\",\n borderRadius: 5,\n background: i === 0 ? \"#F0F0F2\" : undefined,\n color: i === 0 ? \"#18181B\" : undefined,\n fontWeight: 500,\n }}\n >\n {t}\n </span>\n ))}\n </div>\n </div>\n {mails.map(([from, subj, prev, time], i) => (\n <div\n key={subj}\n style={{\n display: \"flex\",\n gap: 8,\n padding: \"7px 12px 7px 8px\",\n borderBottom: \"1px solid #F2F2F4\",\n background: i === 0 ? `${accent}12` : \"#fff\",\n boxShadow: i === 0 ? `inset 2px 0 0 ${accent}` : undefined,\n }}\n >\n <div\n style={{\n width: 6,\n height: 6,\n borderRadius: 3,\n background: i < 3 ? accent : \"transparent\",\n marginTop: 5,\n flexShrink: 0,\n }}\n />\n <div style={{ minWidth: 0, flex: 1, lineHeight: 1.35 }}>\n <div\n style={flex({\n justifyContent: \"space-between\",\n fontSize: 11.5,\n fontWeight: 600,\n color: \"#18181B\",\n })}\n >\n <span>{from}</span>\n <span\n style={{\n fontWeight: 400,\n color: \"#8B8D98\",\n fontSize: 10,\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {time}\n </span>\n </div>\n <div\n style={{\n ...clip,\n fontSize: 10.5,\n color: \"#27272A\",\n fontWeight: 500,\n }}\n >\n {subj}\n </div>\n <div style={{ ...clip, fontSize: 10.5, color: \"#8B8D98\" }}>\n {prev}\n </div>\n </div>\n </div>\n ))}\n </Win>\n );\n}\n\nfunction Doc({ title }: { title: string }) {\n const todo = [\n \"Who signs off on the video?\",\n \"Is the waitlist email ready?\",\n \"Final price: $19 or $24\",\n ];\n return (\n <Win title={title}>\n <div\n style={flex({\n height: 26,\n padding: \"0 12px\",\n gap: 4,\n fontSize: 9.5,\n color: \"#80838D\",\n })}\n >\n <span>Kitebase</span>/<span>Launch</span>/\n <span style={{ color: \"#3F3F46\" }}>Launch plan</span>\n <span style={{ marginLeft: \"auto\" }}>Edited 3m ago</span>\n </div>\n <div\n style={{\n padding: \"8px 20px\",\n fontSize: 10.5,\n lineHeight: 1.5,\n color: \"#37352F\",\n }}\n >\n <div\n style={{\n fontSize: 20,\n fontWeight: 700,\n color: \"#18181B\",\n letterSpacing: \"-0.02em\",\n marginBottom: 8,\n }}\n >\n Launch plan\n </div>\n {[\n [\"Owner\", \"Empty\"],\n [\"Launch\", \"Nov 1 → Nov 8?\"],\n ].map(([k, v]) => (\n <div key={k} style={flex({ gap: 10, fontSize: 10, height: 18 })}>\n <span style={{ width: 44, color: \"#80838D\" }}>{k}</span>\n <span style={{ color: v === \"Empty\" ? \"#B4B4BB\" : \"#37352F\" }}>\n {v}\n </span>\n </div>\n ))}\n <p style={{ margin: \"8px 0 6px\", textWrap: \"pretty\" }}>\n Ship the new editor on{\" \"}\n <span\n style={{ background: \"#FBF3DB\", boxShadow: \"0 1.5px 0 #F5C842\" }}\n >\n Nov 1 (or Nov 8?)\n </span>{\" \"}\n with a 60s launch video, a blog post and a pricing update.\n </p>\n <div\n style={{\n fontWeight: 600,\n fontSize: 12,\n color: \"#18181B\",\n margin: \"10px 0 4px\",\n }}\n >\n Open questions\n </div>\n {todo.map((t) => (\n <div key={t} style={flex({ gap: 7, height: 19 })}>\n <span\n style={{\n width: 10,\n height: 10,\n borderRadius: 2.5,\n boxShadow: \"inset 0 0 0 1.25px #A1A1AA\",\n }}\n />\n {t}\n </div>\n ))}\n </div>\n <div\n style={{\n position: \"absolute\",\n right: 10,\n top: 112,\n width: 104,\n padding: \"7px 8px\",\n borderRadius: 8,\n background: \"#fff\",\n fontSize: 9.5,\n lineHeight: 1.35,\n color: \"#37352F\",\n boxShadow:\n \"0 0 0 1px rgba(0,0,0,0.06), 0 4px 12px -2px rgba(0,0,0,0.12)\",\n }}\n >\n <div style={flex({ gap: 5, marginBottom: 3, fontWeight: 600 })}>\n <Avatar name=\"MC\" color={PEOPLE.MC[1]} size={14} /> Maya\n </div>\n which date is it???\n </div>\n </Win>\n );\n}\n\nfunction Browser({ title }: { title: string }) {\n const tabs = [title, \"Roadmap\", \"Q4 OKRs\", \"Inbox (214)\", \"Figma\", \"Docs\"];\n const fav = [\n \"#0090FF\",\n \"#F5A524\",\n \"#30A46C\",\n \"#E5484D\",\n \"#8E4EC6\",\n \"#60646C\",\n ];\n const plans: [string, string, string][] = [\n [\"Starter\", \"$0\", \"Get started\"],\n [\"Pro\", \"$24\", \"Upgrade\"],\n [\"Team\", \"$59\", \"Contact sales\"],\n ];\n return (\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: 10,\n overflow: \"hidden\",\n background: \"#fff\",\n }}\n >\n <div\n style={{\n height: 32,\n background: \"#E3E5E8\",\n display: \"flex\",\n alignItems: \"flex-end\",\n padding: \"0 8px\",\n gap: 1,\n }}\n >\n <div style={{ alignSelf: \"center\", marginRight: 8 }}>\n <Lights />\n </div>\n {tabs.map((t, i) => (\n <div\n key={t}\n style={flex({\n flex: 1,\n minWidth: 0,\n height: 25,\n borderRadius: \"7px 7px 0 0\",\n background: i === 0 ? \"#fff\" : \"transparent\",\n gap: 5,\n padding: \"0 7px\",\n fontSize: 9.5,\n color: i === 0 ? \"#1C2024\" : \"#60646C\",\n })}\n >\n <div\n style={{\n width: 9,\n height: 9,\n borderRadius: 2.5,\n background: fav[i],\n flexShrink: 0,\n }}\n />\n <span style={clip}>{t}</span>\n </div>\n ))}\n </div>\n <div style={flex({ height: 28, padding: \"0 10px\", borderBottom: HAIR })}>\n <div\n style={flex({\n flex: 1,\n height: 19,\n borderRadius: 10,\n background: \"#F0F1F3\",\n fontSize: 9.5,\n color: \"#60646C\",\n padding: \"0 10px\",\n })}\n >\n kitebase.com/<span style={{ color: \"#1C2024\" }}>pricing</span>\n </div>\n </div>\n <div style={{ padding: \"14px 16px\" }}>\n <div\n style={{\n fontSize: 15,\n fontWeight: 600,\n color: \"#111113\",\n letterSpacing: \"-0.02em\",\n textAlign: \"center\",\n }}\n >\n Simple pricing for growing teams\n </div>\n <div style={{ display: \"flex\", gap: 8, marginTop: 12 }}>\n {plans.map(([n, p, cta], i) => (\n <div\n key={n}\n style={{\n flex: 1,\n borderRadius: 8,\n padding: 8,\n boxShadow:\n i === 1\n ? \"0 0 0 1.5px #111113\"\n : \"0 0 0 1px rgba(0,0,0,0.08)\",\n }}\n >\n <div style={{ fontSize: 9.5, color: \"#60646C\", fontWeight: 500 }}>\n {n}\n </div>\n <div\n style={{\n fontSize: 18,\n fontWeight: 600,\n color: \"#111113\",\n letterSpacing: \"-0.02em\",\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {p}\n <span\n style={{\n fontSize: 9,\n color: \"#8B8D98\",\n fontWeight: 400,\n letterSpacing: 0,\n }}\n >\n {\" \"}\n /mo\n </span>\n </div>\n <div\n style={flex({\n justifyContent: \"center\",\n height: 20,\n borderRadius: 5,\n marginTop: 8,\n fontSize: 9,\n fontWeight: 500,\n background: i === 1 ? \"#111113\" : \"#fff\",\n color: i === 1 ? \"#fff\" : \"#1C2024\",\n boxShadow: i === 1 ? undefined : \"0 0 0 1px rgba(0,0,0,0.1)\",\n })}\n >\n {cta}\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n\nfunction Sticky({ text, tint }: { text: string; tint: string }) {\n return (\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n position: \"relative\",\n background: `linear-gradient(172deg, ${tint} 60%, color-mix(in srgb, ${tint} 88%, #000))`,\n padding: \"22px 14px 12px\",\n boxSizing: \"border-box\",\n fontSize: 16,\n fontWeight: 600,\n lineHeight: 1.2,\n color: \"#3B2F12\",\n letterSpacing: \"-0.01em\",\n textWrap: \"balance\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n top: -8,\n left: \"30%\",\n width: \"40%\",\n height: 18,\n background: \"rgba(255,255,255,0.5)\",\n transform: \"rotate(-3deg)\",\n boxShadow: \"0 1px 2px rgba(0,0,0,0.06)\",\n }}\n />\n {text}\n </div>\n );\n}\n\n// macOS-style notification banner\nfunction Toast({ text, p }: { text: string; p: Piece }) {\n return (\n <div\n style={flex({\n width: \"100%\",\n height: \"100%\",\n borderRadius: 16,\n background: \"rgba(246,246,247,0.97)\",\n gap: 10,\n padding: \"0 12px\",\n boxSizing: \"border-box\",\n })}\n >\n <div\n style={flex({\n width: 32,\n height: 32,\n borderRadius: 8,\n background: p.tint,\n flexShrink: 0,\n justifyContent: \"center\",\n boxShadow: \"inset 0 0 0 0.5px rgba(0,0,0,0.12)\",\n })}\n >\n <Icon d={I[p.icon ?? \"alert\"]} size={17} color=\"#fff\" sw={2.25} />\n </div>\n <div style={{ minWidth: 0, flex: 1, lineHeight: 1.3 }}>\n <div style={flex({ justifyContent: \"space-between\", gap: 6 })}>\n <span\n style={{\n ...clip,\n fontSize: 12.5,\n fontWeight: 600,\n color: \"#18181B\",\n }}\n >\n {text}\n </span>\n <span style={{ fontSize: 10.5, color: \"#8B8D98\", flexShrink: 0 }}>\n now\n </span>\n </div>\n <div style={{ ...clip, fontSize: 11.5, color: \"#52525B\" }}>{p.sub}</div>\n </div>\n </div>\n );\n}\n\ntype Row = [string, string, string, string, string, string, number];\nconst ISSUES: { group: string; count?: number; rows: Row[] }[] = [\n {\n group: \"In Progress\",\n rows: [\n [\n \"REM-214\",\n \"Spring presets for page transitions\",\n \"Feature\",\n \"#8E4EC6\",\n \"MC\",\n \"Oct 24\",\n 3,\n ],\n [\n \"REM-209\",\n \"Grouped stack for notification avalanche\",\n \"Motion\",\n \"\",\n \"LP\",\n \"Oct 23\",\n 2,\n ],\n [\n \"REM-198\",\n \"Fix flicker on 1920×1080 renders\",\n \"Bug\",\n \"#E5484D\",\n \"PR\",\n \"Oct 22\",\n 4,\n ],\n ],\n },\n {\n group: \"Todo\",\n rows: [\n [\n \"REM-221\",\n \"Launch video: hook beat\",\n \"Launch\",\n \"#F76B15\",\n \"MC\",\n \"Oct 28\",\n 3,\n ],\n [\n \"REM-217\",\n \"Document phone-scroll props\",\n \"Docs\",\n \"#12A594\",\n \"LP\",\n \"Oct 29\",\n 0,\n ],\n [\n \"REM-203\",\n \"Audit easing curves across templates\",\n \"Motion\",\n \"\",\n \"PR\",\n \"Nov 1\",\n 2,\n ],\n [\n \"REM-190\",\n \"Add JetBrains Mono to code blocks\",\n \"Feature\",\n \"#8E4EC6\",\n \"MC\",\n \"Nov 3\",\n 1,\n ],\n ],\n },\n {\n group: \"Backlog\",\n count: 12,\n rows: [\n [\n \"REM-188\",\n \"Explore WebGL gradient backgrounds\",\n \"Research\",\n \"#8B8D98\",\n \"LP\",\n \"Nov 12\",\n 0,\n ],\n [\n \"REM-176\",\n \"Right-to-left support for captions\",\n \"Feature\",\n \"#8E4EC6\",\n \"PR\",\n \"Nov 14\",\n 1,\n ],\n ],\n },\n];\n\nfunction StatusIcon({ group, c }: { group: string; c: string }) {\n if (group === \"In Progress\")\n return (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" style={{ flexShrink: 0 }}>\n <circle\n cx=\"7\"\n cy=\"7\"\n r=\"5.5\"\n fill=\"none\"\n stroke=\"#F0B100\"\n strokeWidth=\"1.5\"\n />\n <path d=\"M7 4a3 3 0 0 1 0 6z\" fill=\"#F0B100\" />\n </svg>\n );\n return (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" style={{ flexShrink: 0 }}>\n <circle\n cx=\"7\"\n cy=\"7\"\n r=\"5.5\"\n fill=\"none\"\n stroke={c}\n strokeWidth=\"1.5\"\n strokeDasharray={group === \"Backlog\" ? \"1.4 1.6\" : undefined}\n />\n </svg>\n );\n}\n\nfunction Priority({\n level,\n on,\n off,\n}: {\n level: number;\n on: string;\n off: string;\n}) {\n return (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" style={{ flexShrink: 0 }}>\n {level === 4 ? (\n <>\n <rect x=\"1\" y=\"1\" width=\"12\" height=\"12\" rx=\"3\" fill=\"#F76B15\" />\n <path\n d=\"M7 4v3.6M7 9.6v.2\"\n stroke=\"#fff\"\n strokeWidth=\"1.6\"\n strokeLinecap=\"round\"\n />\n </>\n ) : level === 0 ? (\n [3, 7, 11].map((x) => <circle key={x} cx={x} cy=\"7\" r=\"1\" fill={off} />)\n ) : (\n [0, 1, 2].map((b) => (\n <rect\n key={b}\n x={1.5 + b * 4}\n y={9 - b * 3}\n width={3}\n height={3.5 + b * 3}\n rx={0.8}\n fill={b < level ? on : off}\n />\n ))\n )}\n </svg>\n );\n}\n\nfunction palette(dark: boolean) {\n return dark\n ? {\n bg: \"#141416\",\n side: \"#0E0E10\",\n text: \"#EDEDEF\",\n muted: \"#8B8D98\",\n faint: \"#3A3A40\",\n hair: \"rgba(255,255,255,0.06)\",\n group: \"#1B1B1F\",\n active: \"rgba(255,255,255,0.07)\",\n chip: \"rgba(255,255,255,0.08)\",\n }\n : {\n bg: \"#FFFFFF\",\n side: \"#F8F8F9\",\n text: \"#1C2024\",\n muted: \"#80838D\",\n faint: \"#D0D1D6\",\n hair: \"rgba(0,0,0,0.07)\",\n group: \"#F7F7F8\",\n active: \"rgba(0,0,0,0.05)\",\n chip: \"rgba(0,0,0,0.05)\",\n };\n}\n\nfunction IssuesWindow({\n accent,\n f,\n fps,\n dark,\n}: {\n accent: string;\n f: number;\n fps: number;\n dark: boolean;\n}) {\n const p = palette(dark);\n let n = 0;\n const rowIn = (): React.CSSProperties => {\n const s = spring({\n frame: f - WIN_IN - 3 - n++ * 1.3,\n fps,\n config: { damping: 30, stiffness: 260 },\n });\n return { opacity: s, transform: `translateY(${(1 - s) * 6}px)` };\n };\n const nav = (\n label: string,\n icon: string,\n active = false,\n indent = 0,\n badge?: string,\n ) => (\n <div\n key={label + indent}\n style={flex({\n gap: 8,\n height: 27,\n padding: `0 8px 0 ${8 + indent}px`,\n borderRadius: 6,\n background: active ? p.active : undefined,\n fontSize: 12.5,\n fontWeight: 500,\n color: active ? p.text : dark ? \"#C8C8CD\" : \"#3F3F46\",\n })}\n >\n <Icon d={icon} size={14} color={active ? p.text : p.muted} />\n <span style={{ flex: 1 }}>{label}</span>\n {badge ? (\n <span style={{ fontSize: 11, color: p.muted }}>{badge}</span>\n ) : null}\n </div>\n );\n const section = (t: string) => (\n <div\n style={flex({\n gap: 3,\n fontSize: 11.5,\n color: p.muted,\n fontWeight: 500,\n padding: \"14px 8px 4px\",\n })}\n >\n {t} <Icon d={I.chevron} size={10} color={p.muted} />\n </div>\n );\n return (\n <div\n style={{\n width: WIN_W,\n height: WIN_H,\n display: \"flex\",\n fontSize: 13,\n color: p.text,\n background: p.bg,\n }}\n >\n <div\n style={{\n width: 204,\n background: p.side,\n borderRight: `1px solid ${p.hair}`,\n padding: \"12px 8px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: 1,\n }}\n >\n <div style={{ padding: \"0 6px 14px\" }}>\n <Lights />\n </div>\n <div style={flex({ gap: 8, padding: \"0 6px 10px\" })}>\n <div\n style={flex({\n width: 20,\n height: 20,\n borderRadius: 5,\n background: accent,\n color: \"#fff\",\n fontSize: 11,\n fontWeight: 600,\n justifyContent: \"center\",\n })}\n >\n r\n </div>\n <span style={{ fontWeight: 600, fontSize: 13 }}>remocn</span>\n <Icon d={I.chevron} size={10} color={p.muted} />\n <div style={flex({ marginLeft: \"auto\", gap: 10 })}>\n <Icon d={I.search} size={14} color={p.muted} />\n <Icon d={I.compose} size={14} color={p.muted} />\n </div>\n </div>\n {nav(\"Inbox\", I.inbox, false, 0, \"3\")}\n {nav(\"My issues\", I.user)}\n {section(\"Workspace\")}\n {nav(\"Projects\", I.box)}\n {nav(\"Views\", I.layers)}\n {section(\"Your teams\")}\n <div\n style={flex({\n gap: 8,\n height: 27,\n padding: \"0 8px\",\n fontSize: 12.5,\n fontWeight: 500,\n })}\n >\n <div\n style={flex({\n width: 14,\n height: 14,\n borderRadius: 4,\n background: \"#12A594\",\n color: \"#fff\",\n fontSize: 8,\n fontWeight: 700,\n justifyContent: \"center\",\n })}\n >\n E\n </div>\n Engine\n </div>\n {nav(\"Issues\", I.target, true, 14)}\n {nav(\"Cycles\", I.cycle, false, 14)}\n {nav(\"Projects\", I.box, false, 14)}\n </div>\n <div\n style={{\n flex: 1,\n minWidth: 0,\n display: \"flex\",\n flexDirection: \"column\",\n }}\n >\n <div\n style={flex({\n height: 44,\n padding: \"0 14px\",\n gap: 4,\n borderBottom: `1px solid ${p.hair}`,\n })}\n >\n {[\"All issues\", \"Active\", \"Backlog\"].map((t, i) => (\n <div\n key={t}\n style={{\n padding: \"4px 10px\",\n borderRadius: 6,\n fontSize: 12,\n fontWeight: 500,\n background: i === 1 ? p.chip : undefined,\n boxShadow: i === 1 ? `inset 0 0 0 1px ${p.hair}` : undefined,\n color: i === 1 ? p.text : p.muted,\n }}\n >\n {t}\n </div>\n ))}\n <div style={flex({ marginLeft: \"auto\", gap: 6 })}>\n {[I.filter, I.display].map((d) => (\n <div\n key={d}\n style={flex({\n width: 26,\n height: 26,\n borderRadius: 6,\n justifyContent: \"center\",\n boxShadow: `inset 0 0 0 1px ${p.hair}`,\n })}\n >\n <Icon d={d} size={14} color={p.muted} />\n </div>\n ))}\n </div>\n </div>\n {ISSUES.map((g) => (\n <div key={g.group}>\n <div\n style={flex({\n ...rowIn(),\n height: 36,\n background: p.group,\n gap: 8,\n padding: \"0 18px\",\n borderBottom: `1px solid ${p.hair}`,\n })}\n >\n <StatusIcon group={g.group} c={p.muted} />\n <span style={{ fontWeight: 500, fontSize: 12.5 }}>{g.group}</span>\n <span\n style={{\n color: p.muted,\n fontSize: 12,\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {g.count ?? g.rows.length}\n </span>\n </div>\n {g.rows.map(([id, title, label, lc, who, date, pri]) => (\n <div\n key={id}\n style={flex({\n ...rowIn(),\n height: 40,\n gap: 10,\n padding: \"0 18px\",\n borderBottom: `1px solid ${p.hair}`,\n })}\n >\n <Priority level={pri} on={p.muted} off={p.faint} />\n <span\n style={{\n color: p.muted,\n fontSize: 12,\n width: 58,\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {id}\n </span>\n <StatusIcon group={g.group} c={p.muted} />\n <span style={{ ...clip, fontWeight: 500, flex: 1 }}>\n {title}\n </span>\n <span\n style={flex({\n gap: 5,\n borderRadius: 999,\n padding: \"2px 9px\",\n fontSize: 11.5,\n color: dark ? \"#C8C8CD\" : \"#52525B\",\n boxShadow: `inset 0 0 0 1px ${dark ? \"rgba(255,255,255,0.1)\" : \"rgba(0,0,0,0.1)\"}`,\n })}\n >\n <span\n style={{\n width: 7,\n height: 7,\n borderRadius: 4,\n background: lc || accent,\n }}\n />\n {label}\n </span>\n <Avatar name={who} color={PEOPLE[who][1]} size={20} />\n <span\n style={{\n color: p.muted,\n fontSize: 12,\n width: 44,\n textAlign: \"right\",\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {date}\n </span>\n </div>\n ))}\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nfunction ChaosToOrderBase({\n items = DEFAULT_ITEMS,\n children,\n accent = \"#3B5BFD\",\n speed = 1,\n theme = \"dark\",\n}: ChaosToOrderProps) {\n const frame = useCurrentFrame();\n const { fps, width, height } = useVideoConfig();\n const f = frame * speed;\n const dark = theme === \"dark\";\n const u = Math.min(width / 1280, height / 720);\n const label = (i: number) => items[i] ?? DEFAULT_ITEMS[i];\n\n // the unread counter on the chat rail climbs faster and faster\n const unread = Math.round(\n 2 + 110 * interpolate(f, [6, PULL - 4], [0, 1], clamp) ** 2.2,\n );\n const badge = unread > 99 ? \"99+\" : String(unread);\n\n // slow push-in while the pile builds, then the camera settles on the window\n const cam = interpolate(f, [0, PULL, PULL + PULL_LEN + 10], [1, 1.04, 1], {\n ...clamp,\n easing: IN_OUT,\n });\n const win = spring({\n frame: f - WIN_IN,\n fps,\n config: { damping: 200, stiffness: 170 },\n });\n\n const pieces = PIECES.map((p, i) => {\n const drop = spring({\n frame: f - p.d,\n fps,\n config: { damping: 14, stiffness: 200, mass: 0.8 },\n });\n const order = Math.hypot(p.x - 640, p.y - 360) / 700; // far pieces leave first\n const start = PULL + (1 - order) * 5;\n const pull = interpolate(f, [start, start + PULL_LEN], [0, 1], {\n ...clamp,\n easing: IN_OUT,\n });\n const x = interpolate(pull, [0, 1], [p.x, 640]);\n const y = interpolate(pull, [0, 1], [p.y, 360]);\n const rot = interpolate(\n pull,\n [0, 1],\n [p.r + (1 - drop) * (p.r > 0 ? 8 : -8), 0],\n );\n const scale =\n interpolate(drop, [0, 1], [1.25, 1]) *\n interpolate(pull, [0, 1], [1, 0.5]);\n const opacity =\n interpolate(drop, [0, 0.3], [0, 1], clamp) *\n interpolate(pull, [0.3, 0.7], [1, 0], clamp);\n const lift = 1 - drop; // shadow is soft and far while falling, tight once landed\n const a = dark ? 0.5 : 0.16;\n let body: React.ReactNode;\n if (p.kind === \"chat\") body = <Chat title={label(i)} badge={badge} />;\n else if (p.kind === \"sheet\") body = <Sheet title={label(i)} />;\n else if (p.kind === \"mail\")\n body = <Mail title={label(i)} accent={accent} />;\n else if (p.kind === \"doc\") body = <Doc title={label(i)} />;\n else if (p.kind === \"browser\") body = <Browser title={label(i)} />;\n else if (p.kind === \"sticky\")\n body = <Sticky text={label(i)} tint={p.tint ?? \"#FCE38A\"} />;\n else body = <Toast text={label(i)} p={p} />;\n return (\n <div\n key={i}\n style={{\n position: \"absolute\",\n left: x - p.w / 2,\n top: y - p.h / 2,\n width: p.w,\n height: p.h,\n opacity,\n filter:\n pull > 0.25\n ? `blur(${interpolate(pull, [0.25, 0.7], [0, 4], clamp)}px)`\n : undefined,\n transform: `rotate(${rot}deg) scale(${scale})`,\n boxShadow: `0 0 0 1px rgba(0,0,0,${dark ? 0.4 : 0.06}), 0 ${2 + lift * 30}px ${6 + lift * 40}px -2px rgba(0,0,0,${a * 0.6}), 0 ${16 + lift * 30}px ${40 + lift * 40}px -12px rgba(0,0,0,${a})`,\n borderRadius: p.kind === \"sticky\" ? 2 : p.kind === \"toast\" ? 16 : 10,\n }}\n >\n {body}\n </div>\n );\n });\n\n return (\n <AbsoluteFill\n style={{\n fontFamily,\n background: dark ? \"#09090B\" : \"#F1F1F3\",\n overflow: \"hidden\",\n WebkitFontSmoothing: \"antialiased\",\n }}\n >\n <AbsoluteFill\n style={{\n backgroundImage: `radial-gradient(${dark ? \"rgba(255,255,255,0.06)\" : \"rgba(0,0,0,0.07)\"} 1px, transparent 1px)`,\n backgroundSize: `${22 * u}px ${22 * u}px`,\n maskImage:\n \"radial-gradient(ellipse at center, #000 30%, transparent 75%)\",\n }}\n />\n <div\n style={{\n position: \"absolute\",\n left: (width - 1280 * u) / 2,\n top: (height - 720 * u) / 2,\n width: 1280,\n height: 720,\n transform: `scale(${u * cam})`,\n transformOrigin: \"640px 360px\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 640 - WIN_W / 2,\n top: 360 - WIN_H / 2,\n width: WIN_W,\n height: WIN_H,\n borderRadius: 14,\n overflow: \"hidden\",\n background: dark ? \"#141416\" : \"#fff\",\n opacity: interpolate(win, [0, 0.35], [0, 1], clamp),\n transform: `translateY(${(1 - win) * 14}px) scale(${interpolate(win, [0, 1], [0.94, 1])})`,\n boxShadow: dark\n ? \"0 0 0 1px rgba(255,255,255,0.09), 0 24px 64px -12px rgba(0,0,0,0.7)\"\n : \"0 0 0 1px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04), 0 24px 64px -16px rgba(16,16,24,0.22)\",\n }}\n >\n {children ?? (\n <IssuesWindow accent={accent} f={f} fps={fps} dark={dark} />\n )}\n </div>\n {f < PULL + PULL_LEN + 6 ? pieces : null}\n </div>\n </AbsoluteFill>\n );\n}\n\nconst elementSchema = {\n ...Interactive.baseSchema,\n theme: {\n type: \"enum\",\n default: \"dark\",\n variants: {\n light: {},\n dark: {},\n },\n description: \"Theme\",\n },\n accent: {\n type: \"color\",\n default: \"#3B5BFD\",\n description: \"Accent\",\n },\n speed: {\n type: \"number\",\n default: 1,\n min: 0.25,\n max: 4,\n step: 0.25,\n description: \"Speed\",\n hiddenFromList: false,\n },\n ...Interactive.transformSchema,\n} as const satisfies InteractivitySchema;\n\nconst ELEMENT_PROP_KEYS = new Set([\"theme\",\"accent\",\"speed\"]);\n\nconst ELEMENT_PROP_DEFAULTS: Record<string, unknown> = {\n theme: \"dark\",\n accent: \"#3B5BFD\",\n speed: 1,\n};\n\ntype ChaosToOrderElementProps = InteractiveBaseProps &\n InteractiveTransformProps &\n ComponentProps<typeof ChaosToOrderBase>;\n\nconst ChaosToOrderInner = forwardRef<\n HTMLDivElement,\n ChaosToOrderElementProps & { readonly controls: SequenceControls | undefined }\n>(({ controls, name, style, ...rest }, ref) => {\n const outlineRef = useRef<HTMLDivElement>(null);\n useImperativeHandle(ref, () => outlineRef.current as HTMLDivElement, []);\n const componentProps: Record<string, unknown> = { ...ELEMENT_PROP_DEFAULTS };\n const sequenceProps: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(rest)) {\n if (ELEMENT_PROP_KEYS.has(key)) {\n if (value !== undefined) componentProps[key] = value;\n } else {\n sequenceProps[key] = value;\n }\n }\n return (\n <Sequence\n layout=\"none\"\n {...sequenceProps}\n controls={controls}\n name={name ?? \"<ChaosToOrder>\"}\n outlineRef={outlineRef}\n >\n <div\n ref={outlineRef}\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...style,\n }}\n >\n <ChaosToOrderBase\n {...(componentProps as unknown as ComponentProps<typeof ChaosToOrderBase>)}\n />\n </div>\n </Sequence>\n );\n});\n\nexport const ChaosToOrder = Interactive.withSchema({\n Component: ChaosToOrderInner,\n componentName: \"<ChaosToOrder>\",\n componentIdentity: null,\n schema: elementSchema,\n supportsEffects: false,\n});\n",
"durationInFrames": 98,
"installationMode": "component-owned-sequence"
},
"durationInFrames": 98
}