agentcut 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -2
  3. package/dist/bridge.d.ts +45 -0
  4. package/dist/bridge.js +691 -0
  5. package/dist/bridge.js.map +1 -0
  6. package/dist/config.d.ts +13 -0
  7. package/dist/config.js +50 -0
  8. package/dist/config.js.map +1 -0
  9. package/dist/index.d.ts +2 -0
  10. package/dist/index.js +35 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/log.d.ts +1 -0
  13. package/dist/log.js +14 -0
  14. package/dist/log.js.map +1 -0
  15. package/dist/studio/agents/claude.d.ts +7 -0
  16. package/dist/studio/agents/claude.js +155 -0
  17. package/dist/studio/agents/claude.js.map +1 -0
  18. package/dist/studio/agents/codex.d.ts +4 -0
  19. package/dist/studio/agents/codex.js +169 -0
  20. package/dist/studio/agents/codex.js.map +1 -0
  21. package/dist/studio/agents/index.d.ts +8 -0
  22. package/dist/studio/agents/index.js +50 -0
  23. package/dist/studio/agents/index.js.map +1 -0
  24. package/dist/studio/agents/types.d.ts +131 -0
  25. package/dist/studio/agents/types.js +11 -0
  26. package/dist/studio/agents/types.js.map +1 -0
  27. package/dist/studio/bundler.d.ts +29 -0
  28. package/dist/studio/bundler.js +136 -0
  29. package/dist/studio/bundler.js.map +1 -0
  30. package/dist/studio/chat.d.ts +147 -0
  31. package/dist/studio/chat.js +681 -0
  32. package/dist/studio/chat.js.map +1 -0
  33. package/dist/studio/cli.d.ts +2 -0
  34. package/dist/studio/cli.js +194 -0
  35. package/dist/studio/cli.js.map +1 -0
  36. package/dist/studio/components.d.ts +4 -0
  37. package/dist/studio/components.js +36 -0
  38. package/dist/studio/components.js.map +1 -0
  39. package/dist/studio/host.d.ts +105 -0
  40. package/dist/studio/host.js +634 -0
  41. package/dist/studio/host.js.map +1 -0
  42. package/dist/studio/http.d.ts +21 -0
  43. package/dist/studio/http.js +240 -0
  44. package/dist/studio/http.js.map +1 -0
  45. package/dist/studio/music.d.ts +35 -0
  46. package/dist/studio/music.js +130 -0
  47. package/dist/studio/music.js.map +1 -0
  48. package/dist/studio/proc.d.ts +11 -0
  49. package/dist/studio/proc.js +69 -0
  50. package/dist/studio/proc.js.map +1 -0
  51. package/dist/studio/projects.d.ts +84 -0
  52. package/dist/studio/projects.js +369 -0
  53. package/dist/studio/projects.js.map +1 -0
  54. package/dist/studio/render.d.ts +24 -0
  55. package/dist/studio/render.js +197 -0
  56. package/dist/studio/render.js.map +1 -0
  57. package/dist/studio/reveal.d.ts +7 -0
  58. package/dist/studio/reveal.js +49 -0
  59. package/dist/studio/reveal.js.map +1 -0
  60. package/dist/studio/schema.d.ts +4152 -0
  61. package/dist/studio/schema.js +358 -0
  62. package/dist/studio/schema.js.map +1 -0
  63. package/dist/studio/tools.d.ts +2 -0
  64. package/dist/studio/tools.js +165 -0
  65. package/dist/studio/tools.js.map +1 -0
  66. package/dist/studio/voice.d.ts +150 -0
  67. package/dist/studio/voice.js +434 -0
  68. package/dist/studio/voice.js.map +1 -0
  69. package/dist/studio/workspace.d.ts +31 -0
  70. package/dist/studio/workspace.js +187 -0
  71. package/dist/studio/workspace.js.map +1 -0
  72. package/package.json +50 -4
  73. package/template/AGENTS.md +13 -0
  74. package/template/components/CATALOG.md +1306 -0
  75. package/template/components/README.md +61 -0
  76. package/template/components/STYLES.md +246 -0
  77. package/template/components/arcade-title/ArcadeTitle.tsx +860 -0
  78. package/template/components/arcade-title/meta.json +28 -0
  79. package/template/components/aurora/Aurora.tsx +63 -0
  80. package/template/components/aurora/meta.json +28 -0
  81. package/template/components/bar-wipe-title/BarWipeTitle.tsx +94 -0
  82. package/template/components/bar-wipe-title/meta.json +29 -0
  83. package/template/components/before-after/BeforeAfter.tsx +89 -0
  84. package/template/components/before-after/meta.json +233 -0
  85. package/template/components/bento-grid/BentoGrid.tsx +202 -0
  86. package/template/components/bento-grid/meta.json +25 -0
  87. package/template/components/blur-in-title/BlurInTitle.tsx +121 -0
  88. package/template/components/blur-in-title/meta.json +32 -0
  89. package/template/components/catalog.json +8730 -0
  90. package/template/components/catalog.ts +103 -0
  91. package/template/components/chat-thread/ChatThread.tsx +128 -0
  92. package/template/components/chat-thread/meta.json +24 -0
  93. package/template/components/checklist/Checklist.tsx +129 -0
  94. package/template/components/checklist/meta.json +25 -0
  95. package/template/components/confetti/Confetti.tsx +109 -0
  96. package/template/components/confetti/meta.json +28 -0
  97. package/template/components/countdown/Countdown.tsx +166 -0
  98. package/template/components/countdown/meta.json +28 -0
  99. package/template/components/cut-and-paste/CutAndPaste.tsx +654 -0
  100. package/template/components/cut-and-paste/meta.json +29 -0
  101. package/template/components/decode-text/DecodeText.tsx +97 -0
  102. package/template/components/decode-text/meta.json +29 -0
  103. package/template/components/editorial-quote/EditorialQuote.tsx +122 -0
  104. package/template/components/editorial-quote/meta.json +28 -0
  105. package/template/components/glitch-title/GlitchTitle.tsx +171 -0
  106. package/template/components/glitch-title/meta.json +32 -0
  107. package/template/components/halftone-wave/HalftoneWave.tsx +106 -0
  108. package/template/components/halftone-wave/meta.json +28 -0
  109. package/template/components/highlighter/Highlighter.tsx +142 -0
  110. package/template/components/highlighter/meta.json +28 -0
  111. package/template/components/hook-card/HookCard.tsx +552 -0
  112. package/template/components/hook-card/meta.json +304 -0
  113. package/template/components/index.ts +149 -0
  114. package/template/components/iris-wipe/IrisWipe.tsx +76 -0
  115. package/template/components/iris-wipe/meta.json +24 -0
  116. package/template/components/kinetic-poster/KineticPoster.tsx +437 -0
  117. package/template/components/kinetic-poster/meta.json +31 -0
  118. package/template/components/kinetic-punch/KineticPunch.tsx +80 -0
  119. package/template/components/kinetic-punch/meta.json +30 -0
  120. package/template/components/lava-lamp/LavaLamp.tsx +92 -0
  121. package/template/components/lava-lamp/meta.json +28 -0
  122. package/template/components/letter-cascade/LetterCascade.tsx +102 -0
  123. package/template/components/letter-cascade/meta.json +29 -0
  124. package/template/components/lib.ts +179 -0
  125. package/template/components/light-leak/LightLeakTransition.tsx +43 -0
  126. package/template/components/light-leak/meta.json +74 -0
  127. package/template/components/line-diagram/LineDiagram.tsx +205 -0
  128. package/template/components/line-diagram/meta.json +217 -0
  129. package/template/components/list-card/ListCard.tsx +104 -0
  130. package/template/components/list-card/meta.json +232 -0
  131. package/template/components/logo-sting/LogoSting.tsx +129 -0
  132. package/template/components/logo-sting/meta.json +29 -0
  133. package/template/components/looks.tsx +1447 -0
  134. package/template/components/lower-third/LowerThird.tsx +100 -0
  135. package/template/components/lower-third/meta.json +24 -0
  136. package/template/components/marquee/Marquee.tsx +100 -0
  137. package/template/components/marquee/meta.json +30 -0
  138. package/template/components/notification/Notification.tsx +115 -0
  139. package/template/components/notification/meta.json +27 -0
  140. package/template/components/outline-fill/OutlineFill.tsx +106 -0
  141. package/template/components/outline-fill/meta.json +28 -0
  142. package/template/components/panel-sweep/PanelSweep.tsx +86 -0
  143. package/template/components/panel-sweep/meta.json +25 -0
  144. package/template/components/prompt-box/PromptBox.tsx +131 -0
  145. package/template/components/prompt-box/meta.json +24 -0
  146. package/template/components/props.ts +73 -0
  147. package/template/components/quote-card/QuoteCard.tsx +71 -0
  148. package/template/components/quote-card/meta.json +216 -0
  149. package/template/components/shape-shift/ShapeShift.tsx +420 -0
  150. package/template/components/shape-shift/meta.json +31 -0
  151. package/template/components/slide-zoom-message/SlideZoomMessage.tsx +179 -0
  152. package/template/components/slide-zoom-message/meta.json +199 -0
  153. package/template/components/social-post/SocialPost.tsx +185 -0
  154. package/template/components/social-post/meta.json +30 -0
  155. package/template/components/split-flap/SplitFlap.tsx +191 -0
  156. package/template/components/split-flap/meta.json +29 -0
  157. package/template/components/spotlight-grid/SpotlightGrid.tsx +84 -0
  158. package/template/components/spotlight-grid/meta.json +25 -0
  159. package/template/components/stat-counter/StatCounter.tsx +117 -0
  160. package/template/components/stat-counter/meta.json +27 -0
  161. package/template/components/sticker-badge/StickerBadge.tsx +46 -0
  162. package/template/components/sticker-badge/meta.json +220 -0
  163. package/template/components/sticker-slam/StickerSlam.tsx +941 -0
  164. package/template/components/sticker-slam/meta.json +34 -0
  165. package/template/components/style-layer.tsx +233 -0
  166. package/template/components/styles.json +762 -0
  167. package/template/components/styles.ts +113 -0
  168. package/template/components/target-lock/TargetLock.tsx +662 -0
  169. package/template/components/target-lock/meta.json +32 -0
  170. package/template/components/text-reveal/TextReveal.tsx +99 -0
  171. package/template/components/text-reveal/meta.json +28 -0
  172. package/template/components/tile-wipe/TileWipe.tsx +75 -0
  173. package/template/components/tile-wipe/meta.json +24 -0
  174. package/template/components/type-zoom/TypeZoom.tsx +103 -0
  175. package/template/components/type-zoom/meta.json +27 -0
  176. package/template/components/types.ts +66 -0
  177. package/template/components/typewriter/Typewriter.tsx +112 -0
  178. package/template/components/typewriter/meta.json +29 -0
  179. package/template/components/word-pop/WordPop.tsx +59 -0
  180. package/template/components/word-pop/meta.json +237 -0
  181. package/template/components/word-stack/WordStack.tsx +122 -0
  182. package/template/components/word-stack/meta.json +27 -0
  183. package/template/components/word-swap/WordSwap.tsx +127 -0
  184. package/template/components/word-swap/meta.json +30 -0
  185. package/template/presets/charcoal-sketch/PROMPT.md +48 -0
  186. package/template/presets/charcoal-sketch/assets/paper/grain-0.png +0 -0
  187. package/template/presets/charcoal-sketch/assets/paper/grain-1.png +0 -0
  188. package/template/presets/charcoal-sketch/assets/paper/grain-2.png +0 -0
  189. package/template/presets/charcoal-sketch/assets/paper/sketch-paper.jpg +0 -0
  190. package/template/presets/charcoal-sketch/assets/paper/smudge.png +0 -0
  191. package/template/presets/charcoal-sketch/poster.jpg +0 -0
  192. package/template/presets/charcoal-sketch/preset.json +17 -0
  193. package/template/presets/charcoal-sketch/preview.mp4 +0 -0
  194. package/template/presets/charcoal-sketch/scenes/Grain.tsx +23 -0
  195. package/template/presets/charcoal-sketch/scenes/Paper.tsx +17 -0
  196. package/template/presets/charcoal-sketch/scenes/examples/Agents.tsx +100 -0
  197. package/template/presets/charcoal-sketch/scenes/examples/Approvals.tsx +110 -0
  198. package/template/presets/charcoal-sketch/scenes/examples/Blog.tsx +105 -0
  199. package/template/presets/charcoal-sketch/scenes/examples/EndCard.tsx +41 -0
  200. package/template/presets/charcoal-sketch/scenes/examples/Hook.tsx +130 -0
  201. package/template/presets/charcoal-sketch/scenes/examples/Ideas.tsx +92 -0
  202. package/template/presets/charcoal-sketch/scenes/examples/Posting.tsx +128 -0
  203. package/template/presets/charcoal-sketch/scenes/lib/painfix.tsx +119 -0
  204. package/template/presets/charcoal-sketch/scenes/lib/sketch.tsx +291 -0
  205. package/template/presets/charcoal-sketch/scripts/build_layers.example.py +193 -0
  206. package/template/presets/charcoal-sketch/scripts/duck_music.py +34 -0
  207. package/template/presets/charcoal-sketch/scripts/make_textures.py +93 -0
  208. package/template/presets/punk-cut-paper/PROMPT.md +37 -0
  209. package/template/presets/punk-cut-paper/assets/paper/desk-cream.jpg +0 -0
  210. package/template/presets/punk-cut-paper/assets/paper/grain-overlay.png +0 -0
  211. package/template/presets/punk-cut-paper/assets/paper/halftone-black.png +0 -0
  212. package/template/presets/punk-cut-paper/assets/paper/halftone-red.png +0 -0
  213. package/template/presets/punk-cut-paper/assets/paper/halftone-yellow.png +0 -0
  214. package/template/presets/punk-cut-paper/assets/paper/kraft.jpg +0 -0
  215. package/template/presets/punk-cut-paper/assets/paper/newsprint.jpg +0 -0
  216. package/template/presets/punk-cut-paper/assets/paper/paper-cream.jpg +0 -0
  217. package/template/presets/punk-cut-paper/assets/paper/paper-white.jpg +0 -0
  218. package/template/presets/punk-cut-paper/assets/paper/tape.png +0 -0
  219. package/template/presets/punk-cut-paper/build_layers.example.py +150 -0
  220. package/template/presets/punk-cut-paper/poster.jpg +0 -0
  221. package/template/presets/punk-cut-paper/preset.json +15 -0
  222. package/template/presets/punk-cut-paper/preview.mp4 +0 -0
  223. package/template/presets/punk-cut-paper/scenes/Backdrop.tsx +76 -0
  224. package/template/presets/punk-cut-paper/scenes/Motif.tsx +376 -0
  225. package/template/presets/punk-cut-paper/scenes/Photo.tsx +73 -0
  226. package/template/presets/punk-cut-paper/scenes/Ransom.tsx +119 -0
  227. package/template/presets/punk-cut-paper/scenes/Xerox.tsx +31 -0
  228. package/template/presets/punk-cut-paper/scenes/lib/punk.tsx +208 -0
  229. package/template/runtime/composition.tsx +920 -0
  230. package/template/runtime/helpers.tsx +228 -0
  231. package/template/runtime/index.tsx +22 -0
  232. package/template/runtime/types.ts +248 -0
  233. package/template/skill/SKILL.md +149 -0
  234. package/template/skill/references/browser-export.md +61 -0
  235. package/template/skill/references/components.md +38 -0
  236. package/template/skill/references/craft.md +53 -0
  237. package/template/skill/references/cursor.md +91 -0
  238. package/template/skill/references/footage.md +73 -0
  239. package/template/skill/references/format.md +140 -0
  240. package/template/skill/references/presets.md +56 -0
  241. package/template/skill/references/sound.md +128 -0
  242. package/template/starter/.studio/chat.json +1 -0
  243. package/template/starter/assets/.keep +0 -0
  244. package/template/starter/layers.json +46 -0
  245. package/template/starter/notes.md +4 -0
  246. package/template/starter/project.json +13 -0
  247. package/template/starter/renders/.keep +0 -0
  248. package/template/starter/scenes/Title.tsx +38 -0
@@ -0,0 +1,28 @@
1
+ {
2
+ "id": "arcade-title",
3
+ "name": "Arcade Title",
4
+ "category": "Text & Titles",
5
+ "description": "A retro game title screen in big hard-edged pixels: dithered sky, parallax hills, city or space scrolling in whole pixels, a running sprite, a bitmap title that drops in with a bounce and a blinking \"press start\".",
6
+ "useWhen": "Playful, nostalgic or gaming moments: an intro or chapter card (\"Level 2\"), a launch framed as a game, an indie game or 8-bit music promo, an \"achievement unlocked\" beat, a fun end card. Keep the title short (one to three words) so the pixels stay big.",
7
+ "durationInFrames": 150,
8
+ "layer": "full",
9
+ "tags": ["pixel", "pixel art", "8-bit", "retro", "game", "arcade", "dithering", "parallax", "sprite", "crt", "title screen"],
10
+ "props": {
11
+ "title": { "type": "text", "label": "Title", "default": "Pixel Quest", "maxLength": 24, "help": "A–Z, 0–9 and basic punctuation, shown in capitals." },
12
+ "subtitle": { "type": "text", "label": "Subtitle", "default": "Press start", "maxLength": 24, "help": "Blinks under the title. Leave empty for none." },
13
+ "scene": { "type": "select", "label": "Scene", "default": "hills", "options": [{ "value": "hills", "label": "Hills" }, { "value": "city", "label": "Night city" }, { "value": "space", "label": "Space" }] },
14
+ "palette": { "type": "select", "label": "Palette", "default": "pico8", "options": [{ "value": "pico8", "label": "PICO-8" }, { "value": "nes", "label": "NES" }, { "value": "gameboy", "label": "Game Boy" }, { "value": "sunset", "label": "Sunset" }] },
15
+ "sprite": { "type": "select", "label": "Sprite", "default": "auto", "options": [{ "value": "auto", "label": "Auto (runner, ship in space)" }, { "value": "runner", "label": "Runner" }, { "value": "ship", "label": "Spaceship" }, { "value": "coins", "label": "Spinning coins" }, { "value": "none", "label": "None" }] },
16
+ "resolution": { "type": "number", "label": "Pixels", "default": 90, "min": 60, "max": 180, "step": 1, "unit": "px", "help": "Virtual pixels across the short side: lower is chunkier." },
17
+ "spriteFps": { "type": "number", "label": "Frame rate", "default": 10, "min": 6, "max": 15, "step": 1, "unit": "fps", "help": "Everything moves in steps at this rate, like a sprite sheet." },
18
+ "speed": { "type": "number", "label": "Scroll speed", "default": 2, "min": 0, "max": 6, "step": 0.5, "unit": "px/step" },
19
+ "crt": { "type": "boolean", "label": "CRT scanlines", "default": true },
20
+ "seed": { "type": "number", "label": "Pattern", "default": 7, "min": 0, "max": 99, "step": 1 }
21
+ },
22
+ "examples": [
23
+ { "name": "Arcade hills", "props": {} },
24
+ { "name": "Neon night", "props": { "title": "Neon Nights", "subtitle": "Insert coin", "scene": "city", "palette": "sunset" } },
25
+ { "name": "Pocket space", "props": { "title": "Level 2", "subtitle": "Get ready", "scene": "space", "palette": "gameboy", "sprite": "ship" } }
26
+ ],
27
+ "stillAt": 0.4
28
+ }
@@ -0,0 +1,63 @@
1
+ import { useId } from "react";
2
+ import { AbsoluteFill, random, useCurrentFrame } from "remotion";
3
+ import { alpha, exitOut, glowStyle, ramp } from "../lib";
4
+ import type { MotionBaseProps } from "../types";
5
+
6
+ type Props = MotionBaseProps & {
7
+ color1: string;
8
+ color2: string;
9
+ color3: string;
10
+ color4: string;
11
+ background: string;
12
+ speed: number;
13
+ intensity: number;
14
+ grain: boolean;
15
+ vignette: boolean;
16
+ seed: number;
17
+ };
18
+
19
+ /**
20
+ * A mesh gradient that never sits still: four big soft color fields drift, swell and swap places
21
+ * over a base color, with film grain and a vignette. The modern "AI product" backdrop.
22
+ */
23
+ export function Aurora(props: Props) {
24
+ const frame = useCurrentFrame();
25
+ const { width, height, fps, durationInFrames: d } = props;
26
+ const id = `aurora${useId().replace(/[^a-zA-Z0-9]/g, "")}`;
27
+ const t = (frame / fps) * props.speed;
28
+ const out = exitOut(frame, d, 12);
29
+ const fadeIn = ramp(frame, 0, 12);
30
+ const colors = [props.color1, props.color2, props.color3, props.color4];
31
+
32
+ return (
33
+ <AbsoluteFill style={{ background: props.background, overflow: "hidden", opacity: out * fadeIn }}>
34
+ {colors.map((color, i) => {
35
+ const r = (k: string) => random(`${props.seed}-${i}-${k}`);
36
+ // Each field orbits its own center on a slow Lissajous path.
37
+ const cx = 50 + (r("cx") - 0.5) * 60 + Math.sin(t * (0.21 + r("w1") * 0.2) + r("p1") * 6.28) * 30;
38
+ const cy = 50 + (r("cy") - 0.5) * 60 + Math.cos(t * (0.17 + r("w2") * 0.2) + r("p2") * 6.28) * 28;
39
+ const size = (55 + r("s") * 25 + Math.sin(t * 0.4 + i * 1.7) * 10) / 100;
40
+ return (
41
+ <div
42
+ key={i}
43
+ style={glowStyle((cx / 100) * width, (cy / 100) * height, width * size * 1.35, height * size * 1.7, color, props.intensity)}
44
+ />
45
+ );
46
+ })}
47
+ {props.vignette ? (
48
+ <AbsoluteFill
49
+ style={{ background: `radial-gradient(${alpha(props.background, 0)} 45%, ${alpha(props.background, 0.9)} 100%)` }}
50
+ />
51
+ ) : null}
52
+ {props.grain ? (
53
+ <svg width={width} height={height} style={{ position: "absolute", inset: 0 }} viewBox={`0 0 ${width / 2} ${height / 2}`}>
54
+ <filter id={`${id}-grain`}>
55
+ <feTurbulence type="fractalNoise" baseFrequency={0.8} numOctaves={2} seed={frame % 48} />
56
+ <feColorMatrix type="saturate" values="0" />
57
+ </filter>
58
+ <rect width={width / 2} height={height / 2} filter={`url(#${id}-grain)`} opacity={0.09} />
59
+ </svg>
60
+ ) : null}
61
+ </AbsoluteFill>
62
+ );
63
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "id": "aurora",
3
+ "name": "Aurora Gradient",
4
+ "category": "Backgrounds",
5
+ "description": "A drifting mesh gradient: four soft color fields swell and swap places over a base color, with film grain and a vignette.",
6
+ "useWhen": "The default premium backdrop for titles, product shots, quotes and end cards, especially for AI, SaaS and app videos. Match the colors to the brand; use a dark base for white text, a light one for dark text.",
7
+ "durationInFrames": 300,
8
+ "layer": "full",
9
+ "tags": ["gradient", "mesh", "aurora", "background", "loop", "grain", "ai", "saas", "blur"],
10
+ "props": {
11
+ "color1": { "type": "color", "label": "Color 1", "default": "#6d28d9" },
12
+ "color2": { "type": "color", "label": "Color 2", "default": "#2563eb" },
13
+ "color3": { "type": "color", "label": "Color 3", "default": "#db2777" },
14
+ "color4": { "type": "color", "label": "Color 4", "default": "#0891b2" },
15
+ "background": { "type": "color", "label": "Base", "default": "#06050c" },
16
+ "speed": { "type": "number", "label": "Speed", "default": 1, "min": 0.1, "max": 4, "step": 0.1, "unit": "×" },
17
+ "intensity": { "type": "number", "label": "Intensity", "default": 0.85, "min": 0.2, "max": 1, "step": 0.05 },
18
+ "grain": { "type": "boolean", "label": "Film grain", "default": true },
19
+ "vignette": { "type": "boolean", "label": "Vignette", "default": true },
20
+ "seed": { "type": "number", "label": "Pattern", "default": 2, "min": 0, "max": 99, "step": 1 }
21
+ },
22
+ "examples": [
23
+ { "name": "Night aurora", "props": {} },
24
+ { "name": "Peach", "props": { "color1": "#fb923c", "color2": "#f472b6", "color3": "#fde68a", "color4": "#fda4af", "background": "#fff7ed", "vignette": false, "seed": 7 } },
25
+ { "name": "Emerald", "props": { "color1": "#059669", "color2": "#0d9488", "color3": "#84cc16", "color4": "#064e3b", "background": "#020806", "seed": 21, "speed": 0.6 } }
26
+ ],
27
+ "stillAt": 0.3
28
+ }
@@ -0,0 +1,94 @@
1
+ import { AbsoluteFill, useCurrentFrame } from "remotion";
2
+ import { FONTS, easeInOut, fill, ramp, splitHighlights, unit } from "../lib";
3
+ import type { MotionBaseProps } from "../types";
4
+
5
+ type Props = MotionBaseProps & {
6
+ lines: string[];
7
+ color: string;
8
+ accent: string;
9
+ barColor: string;
10
+ background: string;
11
+ size: number;
12
+ weight: string;
13
+ font: string;
14
+ uppercase: boolean;
15
+ align: string;
16
+ stagger: number;
17
+ };
18
+
19
+ /**
20
+ * Each line is wiped on by a solid bar: the bar sweeps across, the text appears behind it and the
21
+ * bar pulls away. At the end the bars sweep back over and take the text with them.
22
+ */
23
+ export function BarWipeTitle(props: Props) {
24
+ const frame = useCurrentFrame();
25
+ const { width, height, durationInFrames: d } = props;
26
+ const u = unit(width, height);
27
+ const vertical = height > width;
28
+ const fontSize = (props.size / 100) * Math.min(width, height) * (vertical ? 1.05 : 1);
29
+ const justify = props.align === "left" ? "flex-start" : props.align === "right" ? "flex-end" : "center";
30
+ const sweep = 12;
31
+
32
+ return (
33
+ <AbsoluteFill
34
+ style={{
35
+ background: fill(props.background),
36
+ alignItems: justify,
37
+ justifyContent: "center",
38
+ padding: `0 ${Math.round((vertical ? 70 : 120) * u)}px`,
39
+ }}
40
+ >
41
+ <div style={{ display: "flex", flexDirection: "column", alignItems: justify, gap: fontSize * 0.14 }}>
42
+ {props.lines.map((line, i) => {
43
+ const start = i * props.stagger;
44
+ const grow = ramp(frame, start, sweep, easeInOut);
45
+ const shrink = ramp(frame, start + sweep + 2, sweep, easeInOut);
46
+ // The exit runs the same wipe again, the lines in reverse order.
47
+ const exitStart = d - 2 * sweep - 4 - (props.lines.length - 1 - i) * Math.min(props.stagger, 4);
48
+ const regrow = ramp(frame, exitStart, sweep, easeInOut);
49
+ const gone = ramp(frame, exitStart + sweep + 2, sweep, easeInOut);
50
+ const exiting = frame >= exitStart;
51
+ const showText = exiting ? regrow < 1 : grow >= 1;
52
+ const left = exiting ? (gone > 0 ? gone : 0) : shrink;
53
+ const right = exiting ? 1 - regrow : 1 - grow;
54
+ return (
55
+ <div key={i} style={{ position: "relative", padding: `${fontSize * 0.04}px ${fontSize * 0.12}px` }}>
56
+ <div
57
+ style={{
58
+ display: "flex",
59
+ gap: fontSize * 0.26,
60
+ fontFamily: FONTS[props.font] ?? FONTS.sans,
61
+ fontWeight: Number(props.weight) || 800,
62
+ fontSize,
63
+ lineHeight: 1.05,
64
+ letterSpacing: "-0.03em",
65
+ textTransform: props.uppercase ? "uppercase" : undefined,
66
+ whiteSpace: "nowrap",
67
+ opacity: showText ? 1 : 0,
68
+ }}
69
+ >
70
+ {splitHighlights(line).map((word, j) => (
71
+ <span key={j} style={{ color: word.highlighted ? props.accent : props.color }}>
72
+ {word.text}
73
+ </span>
74
+ ))}
75
+ </div>
76
+ {left < 1 && right < 1 ? (
77
+ <div
78
+ style={{
79
+ position: "absolute",
80
+ top: 0,
81
+ bottom: 0,
82
+ left: `${left * 100}%`,
83
+ right: `${right * 100}%`,
84
+ background: i % 2 === 1 && props.accent !== props.barColor ? props.accent : props.barColor,
85
+ }}
86
+ />
87
+ ) : null}
88
+ </div>
89
+ );
90
+ })}
91
+ </div>
92
+ </AbsoluteFill>
93
+ );
94
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "id": "bar-wipe-title",
3
+ "name": "Bar Wipe Title",
4
+ "category": "Text & Titles",
5
+ "description": "Each line is revealed by a solid color bar that sweeps across and pulls away, then sweeps back to take it off.",
6
+ "useWhen": "Bold, graphic titles with an editorial or news feel: chapter cards, big claims, a list of two or three short lines, a product name over a cut. Lines wipe on one after another.",
7
+ "durationInFrames": 100,
8
+ "layer": "overlay",
9
+ "tags": ["title", "wipe", "bar", "reveal", "mask", "editorial", "news"],
10
+ "props": {
11
+ "lines": { "type": "lines", "label": "Lines", "default": ["Less editing.", "More *shipping*."], "max": 4, "help": "One line per row. *Starred* words use the accent." },
12
+ "color": { "type": "color", "style": "text", "label": "Text", "default": "#ffffff" },
13
+ "accent": { "type": "color", "style": "accent", "label": "Accent", "default": "#fb7185", "help": "Accent words, and every other bar." },
14
+ "barColor": { "type": "color", "label": "Bar", "default": "#ffffff" },
15
+ "background": { "type": "color", "label": "Background", "default": "transparent", "help": "\"transparent\" to sit over other layers." },
16
+ "size": { "type": "number", "label": "Size", "default": 10, "min": 4, "max": 22, "step": 0.5, "unit": "% of frame" },
17
+ "weight": { "type": "select", "style": "weight", "label": "Weight", "default": "800", "options": [{ "value": "500", "label": "Medium" }, { "value": "700", "label": "Bold" }, { "value": "800", "label": "Extra bold" }, { "value": "900", "label": "Black" }] },
18
+ "font": { "type": "select", "style": "font", "label": "Font", "default": "grotesk", "options": [{ "value": "sans", "label": "Inter" }, { "value": "display", "label": "Bricolage" }, { "value": "serif", "label": "Instrument Serif" }, { "value": "fraunces", "label": "Fraunces" }, { "value": "grotesk", "label": "Space Grotesk" }, { "value": "syne", "label": "Syne" }, { "value": "wide", "label": "Unbounded" }, { "value": "condensed", "label": "Anton" }, { "value": "mono", "label": "Mono" }, { "value": "archivo", "label": "Archivo Black" }, { "value": "caveat", "label": "Caveat" }, { "value": "pixel", "label": "VT323" }, { "value": "tech", "label": "Orbitron" }, { "value": "heavy", "label": "Montserrat" }, { "value": "retro", "label": "Bungee" }] },
19
+ "uppercase": { "type": "boolean", "label": "Uppercase", "default": false },
20
+ "align": { "type": "select", "label": "Align", "default": "left", "options": [{ "value": "left", "label": "Left" }, { "value": "center", "label": "Center" }, { "value": "right", "label": "Right" }] },
21
+ "stagger": { "type": "number", "label": "Line delay", "default": 6, "min": 0, "max": 20, "step": 1, "unit": "frames" }
22
+ },
23
+ "examples": [
24
+ { "name": "Two lines", "props": {} },
25
+ { "name": "Poster caps", "props": { "lines": ["Chapter *one*", "The setup"], "font": "condensed", "weight": "500", "uppercase": true, "size": 14, "barColor": "#facc15", "accent": "#facc15", "align": "center" } },
26
+ { "name": "On paper", "props": { "lines": ["Made for", "*small* teams"], "color": "#111111", "barColor": "#111111", "accent": "#2563eb", "background": "#f5f1e8", "font": "fraunces", "weight": "700" } }
27
+ ],
28
+ "stillAt": 0.5
29
+ }
@@ -0,0 +1,89 @@
1
+ import { useCurrentFrame } from "remotion";
2
+ import { ramp, unit } from "../lib";
3
+ import { CardStage, CardTitle, Label, Words, enter, headWeight, lookKit, type LookProps } from "../looks";
4
+ import type { MotionBaseProps } from "../types";
5
+
6
+ type Props = MotionBaseProps &
7
+ LookProps & {
8
+ kicker: string;
9
+ title: string;
10
+ beforeLabel: string;
11
+ before: string;
12
+ afterLabel: string;
13
+ after: string;
14
+ footer: string;
15
+ layout: string;
16
+ size: number;
17
+ };
18
+
19
+ /**
20
+ * A number that changes: the old value gets struck out, then the new one lands in the accent.
21
+ * "$240 → $0 per month", "3 hours → 4 minutes". Full frame or over footage.
22
+ */
23
+ export function BeforeAfter(props: Props) {
24
+ const frame = useCurrentFrame();
25
+ const { width, height, fps, durationInFrames: d } = props;
26
+ const u = unit(width, height);
27
+ const kit = lookKit(props, u);
28
+ const titleSize = (props.size / 100) * Math.min(width, height);
29
+ const valueSize = titleSize * 0.95;
30
+ const beforeIn = enter(kit, frame, fps, 12, 0, 3);
31
+ const strike = ramp(frame, 24, 8);
32
+ const afterIn = enter(kit, frame, fps, 32, kit.look === "ink" || kit.look === "paper" ? -3 : 0, 8);
33
+ const value = {
34
+ fontFamily: kit.head,
35
+ fontWeight: headWeight(kit),
36
+ fontSize: valueSize,
37
+ lineHeight: 1,
38
+ color: kit.panelText,
39
+ } as const;
40
+ return (
41
+ <CardStage
42
+ kit={kit}
43
+ width={width}
44
+ height={height}
45
+ layout={props.layout}
46
+ frame={frame}
47
+ fps={fps}
48
+ durationInFrames={d}
49
+ footer={props.footer}
50
+ footerStart={42}
51
+ title="~/cost.txt"
52
+ >
53
+ <div style={{ padding: `${titleSize * 0.5}px ${titleSize * 0.55}px ${titleSize * 0.6}px`, display: "flex", flexDirection: "column", gap: titleSize * 0.18 }}>
54
+ {props.kicker ? (
55
+ <Label kit={kit} fontSize={titleSize * 0.17}>
56
+ {props.kicker}
57
+ </Label>
58
+ ) : null}
59
+ <CardTitle kit={kit} text={props.title} fontSize={titleSize} frame={frame} fps={fps} start={4} />
60
+ <div style={{ display: "flex", flexDirection: "column", gap: titleSize * 0.08, marginTop: titleSize * 0.2 }}>
61
+ <Label kit={kit} fontSize={titleSize * 0.15}>
62
+ {props.beforeLabel}
63
+ </Label>
64
+ <div style={{ position: "relative", alignSelf: "flex-start", opacity: beforeIn.opacity * (1 - strike * 0.45), transform: beforeIn.transform }}>
65
+ <div style={value}>{props.before}</div>
66
+ <div
67
+ style={{
68
+ position: "absolute",
69
+ left: "-4%",
70
+ top: "50%",
71
+ height: Math.max(4, valueSize * 0.09),
72
+ width: `${strike * 108}%`,
73
+ background: kit.look === "clean" || kit.look === "crt" || kit.look === "neon" || kit.look === "line" ? kit.accent : kit.line,
74
+ transform: "rotate(-4deg)",
75
+ borderRadius: kit.look === "notebook" ? valueSize : 0,
76
+ }}
77
+ />
78
+ </div>
79
+ <Label kit={kit} fontSize={titleSize * 0.15} style={{ marginTop: titleSize * 0.12 }}>
80
+ {props.afterLabel}
81
+ </Label>
82
+ <div style={{ ...value, alignSelf: "flex-start", opacity: afterIn.opacity, transform: afterIn.transform, transformOrigin: "0% 60%" }}>
83
+ <Words kit={kit} line={`*${props.after.replace(/\*/g, "")}*`} fontSize={valueSize} frame={frame} start={32} />
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </CardStage>
88
+ );
89
+ }
@@ -0,0 +1,233 @@
1
+ {
2
+ "id": "before-after",
3
+ "name": "Before / After",
4
+ "category": "Talking Head",
5
+ "durationInFrames": 120,
6
+ "layer": "overlay",
7
+ "description": "A number that changes: the old value is struck out, then the new one lands in the accent.",
8
+ "useWhen": "Savings, speed-ups, prices: \"$240 → $0\", \"3 hours → 4 minutes\". Land the after value on the word that says it.",
9
+ "tags": [
10
+ "before after",
11
+ "price",
12
+ "number",
13
+ "savings",
14
+ "card",
15
+ "talking head"
16
+ ],
17
+ "props": {
18
+ "kicker": {
19
+ "type": "text",
20
+ "label": "Kicker",
21
+ "default": "What it costs you"
22
+ },
23
+ "title": {
24
+ "type": "text",
25
+ "label": "Title",
26
+ "default": "Per month"
27
+ },
28
+ "beforeLabel": {
29
+ "type": "text",
30
+ "label": "Before label",
31
+ "default": "Before"
32
+ },
33
+ "before": {
34
+ "type": "text",
35
+ "label": "Before",
36
+ "default": "$240"
37
+ },
38
+ "afterLabel": {
39
+ "type": "text",
40
+ "label": "After label",
41
+ "default": "After"
42
+ },
43
+ "after": {
44
+ "type": "text",
45
+ "label": "After",
46
+ "default": "$0"
47
+ },
48
+ "footer": {
49
+ "type": "text",
50
+ "label": "Footer",
51
+ "default": "you pay *nothing*"
52
+ },
53
+ "layout": {
54
+ "type": "select",
55
+ "label": "Layout",
56
+ "default": "full",
57
+ "options": [
58
+ {
59
+ "value": "full",
60
+ "label": "Full frame"
61
+ },
62
+ {
63
+ "value": "card",
64
+ "label": "Card over video"
65
+ }
66
+ ]
67
+ },
68
+ "size": {
69
+ "type": "number",
70
+ "label": "Size",
71
+ "default": 11.5,
72
+ "min": 4,
73
+ "max": 18,
74
+ "step": 0.5,
75
+ "unit": "% of frame"
76
+ },
77
+ "look": {
78
+ "type": "select",
79
+ "style": "look",
80
+ "label": "Look",
81
+ "default": "ink",
82
+ "options": [
83
+ {
84
+ "value": "ink",
85
+ "label": "Ink (bold borders)"
86
+ },
87
+ {
88
+ "value": "paper",
89
+ "label": "Cut paper"
90
+ },
91
+ {
92
+ "value": "notebook",
93
+ "label": "Notebook"
94
+ },
95
+ {
96
+ "value": "crt",
97
+ "label": "Terminal"
98
+ },
99
+ {
100
+ "value": "neon",
101
+ "label": "Neon (cyberpunk)"
102
+ },
103
+ {
104
+ "value": "line",
105
+ "label": "Line (black & white)"
106
+ },
107
+ {
108
+ "value": "vhs",
109
+ "label": "VHS (90s tape)"
110
+ },
111
+ {
112
+ "value": "clean",
113
+ "label": "Clean"
114
+ }
115
+ ],
116
+ "help": "The graphic language. Follows the project style."
117
+ },
118
+ "font": {
119
+ "type": "select",
120
+ "style": "font",
121
+ "label": "Headline font",
122
+ "default": "archivo",
123
+ "options": [
124
+ {
125
+ "value": "archivo",
126
+ "label": "Archivo Black"
127
+ },
128
+ {
129
+ "value": "condensed",
130
+ "label": "Anton"
131
+ },
132
+ {
133
+ "value": "grotesk",
134
+ "label": "Space Grotesk"
135
+ },
136
+ {
137
+ "value": "caveat",
138
+ "label": "Caveat"
139
+ },
140
+ {
141
+ "value": "pixel",
142
+ "label": "VT323"
143
+ },
144
+ {
145
+ "value": "tech",
146
+ "label": "Orbitron"
147
+ },
148
+ {
149
+ "value": "heavy",
150
+ "label": "Montserrat"
151
+ },
152
+ {
153
+ "value": "retro",
154
+ "label": "Bungee"
155
+ },
156
+ {
157
+ "value": "sans",
158
+ "label": "Inter"
159
+ },
160
+ {
161
+ "value": "display",
162
+ "label": "Bricolage"
163
+ },
164
+ {
165
+ "value": "serif",
166
+ "label": "Instrument Serif"
167
+ },
168
+ {
169
+ "value": "fraunces",
170
+ "label": "Fraunces"
171
+ },
172
+ {
173
+ "value": "wide",
174
+ "label": "Unbounded"
175
+ }
176
+ ]
177
+ },
178
+ "accent": {
179
+ "type": "color",
180
+ "style": "accent",
181
+ "label": "Accent",
182
+ "default": "#ff3d8b"
183
+ },
184
+ "panel": {
185
+ "type": "color",
186
+ "style": "panel",
187
+ "label": "Card",
188
+ "default": "#ffffff"
189
+ },
190
+ "panelText": {
191
+ "type": "color",
192
+ "style": "panelText",
193
+ "label": "Card text",
194
+ "default": "#111111"
195
+ },
196
+ "line": {
197
+ "type": "color",
198
+ "style": "line",
199
+ "label": "Ink",
200
+ "default": "#111111",
201
+ "help": "Borders, hard shadows, pen strokes."
202
+ },
203
+ "backdrop": {
204
+ "type": "color",
205
+ "style": "backdrop",
206
+ "label": "Backdrop",
207
+ "default": "#ffe14d",
208
+ "help": "Full-frame and split backgrounds."
209
+ },
210
+ "onVideo": {
211
+ "type": "color",
212
+ "style": "text",
213
+ "label": "Text on video",
214
+ "default": "#ffffff"
215
+ }
216
+ },
217
+ "examples": [
218
+ {
219
+ "name": "Price",
220
+ "props": {}
221
+ },
222
+ {
223
+ "name": "Time",
224
+ "props": {
225
+ "kicker": "Monthly report",
226
+ "title": "Time spent",
227
+ "before": "3 hours",
228
+ "after": "4 min",
229
+ "footer": ""
230
+ }
231
+ }
232
+ ]
233
+ }