vidmake v0.2.1
Download

Journal/release · motion · typography · design-systemsEntry 02 / 10

What's new in vidmake 0.5

Markers name the beats of a video, decoration draws underlines, strike-throughs and highlights from the glyphs, design tokens and named easings bring a brand's system into a project, and WOFF2 fonts, synthetic italics, skewX, themed SVG icons, repeat origins and wipe edges close the gaps an agent hit making a 20-second ad.

▸ blog-050-ad1280×720 · 30 fps · 0:06.0Rendered by vidmake

We asked an agent to make a 20-second ad for a design studio, using the studio's own design system: its colors, its pixel display font, its one motion curve and its icon set. It finished, and the ad looked right. It also kept a log of everything that slowed it down, and the log read like a to-do list. The display font only shipped as WOFF2. The design called for an italic accent line in a family without an italic. The icons colored themselves with CSS variables. To strike four items off a list, the agent measured each line of text with inspect and typed the widths in. And four moments in a six-second scene were retyped, by hand and in local time, into six different layers.

vidmake 0.5 is that list, done. Everything is additive: projects that worked in 0.4 render the same, pixel for pixel, with two deliberate exceptions: "italic": true on a family without an italic face now leans instead of staying upright, and SVGs that color with var(--name, fallback) now show their fallback color (before, such fills came out black and such strokes didn't draw at all).

00:00.0 · f 000
A six-second ad built on 0.5: markers, decoration, tokens, a named easing, repeat src, svgVars, a wipe edge and a WOFF2 fontDownload

That's the whole release in six seconds. The rest of this post takes it apart.

#Markers: name the beats once

Choreography is mostly about when. A card arrives at a station at 8.5s, so the progress bar fills to it at 8.5s, the node turns blue at 8.5s and the label lights up at 8.5s. Each of those lives in a different layer with its own start, so each one needs its own local version of the same moment, and moving the beat means finding them all.

A composition's markers names those moments once, in composition time:

json
"markers": { "strike": "1.5s", "turn": "2.4s", "lane": "@turn+0.3s", "cta": "4.4s" }

and every layer points at the name:

  • "start": "@lane", "@strike+0.1s" in keyframes and tweens, "end": "@cta", or "duration": "@cta" for "until the cue". vidmake converts the marker into the layer's own time, whatever group, series scene or repeat copy it's in.
  • since('strike') in an expression is the seconds since the marker, negative before it: "opacity": "=1 - 0.65 * house(clamp(since('strike') / 0.4, 0, 1))" dims every struck item at the same moment, though each one started at a different time.
  • On the command line too: vidmake still -t @cta, storyboard --at @strike,@lane+0.5s, render --frames @turn..@cta, and timeline lists them.
00:00.0 · f 000
Markers name the beats once; layers start at @title, draw on at @underline and read since('underline')Download
time-markers.jsonjson
{  "fonts": [    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }  ],  "compositions": [{    "id": "markers", "description": "Markers name the beats once; layers start at @title, draw on at @underline and read since('underline')",    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",    "markers": { "title": "0.3s", "underline": "@title+0.7s", "sub": "@underline+0.6s", "out": "3.4s" },    "layers": [      { "id": "title", "type": "text", "text": "Name the beats", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 116,        "letterSpacing": -5, "fill": "#161412", "y": 250, "start": "@title", "end": "@out", "enter": "fadeUp", "exit": "fade",        "decoration": { "type": "underline", "color": "#c92a26", "thickness": 6, "offset": 10,          "progress": { "from": 0, "to": 1, "start": "@underline", "duration": "0.5s", "ease": "easeOutCubic" } } },      { "id": "sub", "type": "text", "text": "then point at them from any layer", "font": "Schibsted Grotesk", "fontSize": 40, "fill": "#4a4640",        "y": 380, "start": "@sub", "end": "@out", "enter": "fadeUp", "exit": "fade" },      { "id": "clock", "type": "text", "text": "since('underline') = ${since('underline'):2}s", "font": "JetBrains Mono", "fontSize": 22,        "fill": "#161412", "y": 470 },      { "id": "rail", "type": "rect", "anchor": "left", "x": 100, "y": 600, "width": 1080, "height": 2, "fill": "#d8d1c1" },      { "id": "tick", "type": "rect", "width": 2, "height": 26, "y": 600, "fill": "#161412",        "x": "=100 + 1080 * pick(i, [marker('title'), marker('underline'), marker('sub'), marker('out')]) / 4",        "repeat": 4 },      { "id": "tick-name", "type": "text", "text": "@${pick(i, ['title', 'underline', 'sub', 'out'])}", "font": "JetBrains Mono", "fontSize": 16,        "fill": "#8a857a", "y": 640, "x": "=100 + 1080 * pick(i, [marker('title'), marker('underline'), marker('sub'), marker('out')]) / 4",        "repeat": 4 },      { "id": "playhead", "type": "rect", "width": 3, "height": 46, "y": 600, "fill": "#c92a26", "x": "=100 + 1080 * gt / 4" }    ]  }]}

Markers can build on each other ("lane": "@turn+0.3s"), so retiming a scene is one edit. A misspelled name is an error that lists the markers you do have. See markers.

#Decoration: lines that follow the text

decoration draws an underline, a strike-through or a highlight band from the glyphs themselves, so it follows wrapping, alignment, letter spacing, live ${...} values and typewriter reveals. Its progress draws it on from the left, one line after another:

json
"decoration": { "type": "strike", "color": "#c92a26", "thickness": 8, "extend": 8,                "progress": { "from": 0, "to": 1, "start": "@strike", "duration": "0.35s", "ease": "house" } }
00:00.0 · f 000
Underline, strike-through and highlight, measured from the glyphs and drawn on with progressDownload
text-decoration.jsonjson
{  "fonts": [{ "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" }],  "compositions": [{    "id": "decoration", "description": "Underline, strike-through and highlight, measured from the glyphs and drawn on with progress",    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",    "layers": [      { "id": "under", "type": "text", "text": "underline", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 96,        "letterSpacing": -4, "fill": "#161412", "align": "left", "anchor": "left", "x": 140, "y": 150,        "decoration": { "type": "underline", "color": "#161412", "thickness": 6, "offset": 10,          "progress": { "from": 0, "to": 1, "start": "0.3s", "duration": "0.6s", "ease": "easeOutCubic" } } },      { "id": "strike", "type": "text", "text": "strike it off", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 96,        "letterSpacing": -4, "fill": "#161412", "align": "left", "anchor": "left", "x": 140, "y": 300,        "opacity": "=map(t, 1.3, 1.6, 1, 0.4)",        "decoration": { "type": "strike", "color": "#c92a26", "thickness": 7, "extend": 10,          "progress": { "from": 0, "to": 1, "start": "1s", "duration": "0.4s", "ease": "easeOutQuint" } } },      { "id": "mark", "type": "text", "text": "or highlight a phrase that wraps onto a second line",        "font": "Schibsted Grotesk", "fontWeight": 500, "fontSize": 64, "letterSpacing": -1.5, "fill": "#161412",        "align": "left", "anchor": "top-left", "x": 140, "y": 400, "maxWidth": 900, "lineHeight": 1.15,        "decoration": { "type": "highlight", "color": "#c92a2626",          "progress": { "from": 0, "to": 1, "start": "1.8s", "duration": "1.2s", "ease": "easeInOutCubic" } } }    ]  }]}

No more measuring: the four hand-typed widths in the original ad became one field. See decoration.

#Bring the design system with you

A design system is mostly tokens: a few colors, a type scale, a motion curve. 0.5 lets a project say them once.

Design tokens. A top-level tokens object, or a path to a JSON file, is visible as {{name}} in every composition and every component, without forwarding props. Files in the W3C design-token format work as they come out of a design tool: $value leaves are unwrapped, $type and $description are ignored, and {color.pencil} aliases are resolved. A composition's own props still win. See design tokens.

00:00.0 · f 000
Design tokens (W3C format) shared by every composition: {{color.accent}} works in the card component tooDownload

Named easings. "easings": { "house": "cubic-bezier(0.22, 1, 0.36, 1)" } names a curve, and the name works wherever an ease does, keyframes, tweens, presets, stagger and transitions, and as a function in expressions: "=600 * house(clamp(t / 0.4, 0, 1))". Before, a custom bezier couldn't be used in an expression at all, so draw-ons driven by expressions had to approximate the house curve with easeOutQuint. See named easings.

00:00.0 · f 000
Named easings: define a curve once, use it as an ease and as a function in expressionsDownload
easing-named.jsonjson
{  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],  "easings": { "house": "cubic-bezier(0.22, 1, 0.36, 1)", "snap": [0.7, 0, 0.2, 1] },  "compositions": [{    "id": "named", "description": "Named easings: define a curve once, use it as an ease and as a function in expressions",    "width": 1280, "height": 720, "fps": 30, "duration": "3s", "background": "#f4f1ea",    "layers": [      { "id": "name", "type": "text", "text": "${pick(i, ['ease: \"house\"', 'ease: \"snap\"', '=house(t / 1.2)'])}", "font": "JetBrains Mono",        "fontSize": 24, "fill": "#8a857a", "align": "left", "anchor": "left", "x": 140, "y": 220,        "repeat": { "count": 3, "layout": "column", "spacing": 150, "origin": "start" } },      { "id": "house-dot", "type": "ellipse", "width": 44, "y": 270, "fill": "#161412",        "x": { "from": 160, "to": 1120, "start": "0.3s", "duration": "1.2s", "ease": "house" } },      { "id": "snap-dot", "type": "ellipse", "width": 44, "y": 420, "fill": "#4a4640",        "x": { "from": 160, "to": 1120, "start": "0.3s", "duration": "1.2s", "ease": "snap" } },      { "id": "bar", "type": "rect", "anchor": "left", "x": 140, "y": 570, "height": 20, "fill": "#c92a26",        "width": "=1000 * house(clamp((t - 0.3) / 1.2, 0, 1))" }    ]  }]}

Fonts as they ship. Project fonts can be .woff and .woff2 files, decoded on load, so a web design system's fonts need no conversion step. A family with no italic face now gets a synthetic oblique for "italic": true, the way browsers do it, and every layer takes skewX and skewY for a stronger or animated lean. vidmake fonts <filter> now lists what each family actually has, such as Inter weights 400,700 no italic (italic: true is slanted), so you find out before rendering that weight 300 will come out as 400.

00:00.0 · f 000
A WOFF2 web font, a synthetic italic for a family without one, and an animated skewXDownload
text-woff-oblique.jsonjson
{  "fonts": [{ "family": "Geist Pixel", "path": "fonts/GeistPixel-Square.woff2" }],  "compositions": [{    "id": "woff", "description": "A WOFF2 web font, a synthetic italic for a family without one, and an animated skewX",    "width": 1280, "height": 720, "fps": 30, "duration": "3s", "background": "#f4f1ea",    "layers": [      { "id": "upright", "type": "text", "text": "Geist Pixel.woff2", "font": "Geist Pixel", "fontSize": 92, "fill": "#161412", "y": 200,        "enter": "fadeUp" },      { "id": "slanted", "type": "text", "text": "italic: true", "font": "Geist Pixel", "italic": true, "fontSize": 92, "fill": "#c92a26",        "y": 360, "start": "0.3s", "enter": "fadeUp" },      { "id": "skewed", "type": "text", "text": "skewX", "font": "Geist Pixel", "fontSize": 92, "fill": "#4a4640", "y": 520,        "skewX": { "keys": [[0, -25], ["0.8s", 25, "easeInOutCubic"], ["1.6s", -25, "easeInOutCubic"]], "repeat": "loop" } }    ]  }]}

Themed icons. Icon sets color their accents with CSS variables (fill: var(--accent, #2b3cf0)) and their strokes with currentColor. vidmake used to draw those fills black and drop those strokes; it now renders the fallback color, and svgVars sets them per layer, so one file works on a light card and a dark one. See theming an SVG.

00:00.0 · f 000
One SVG icon, three themes: svgVars sets currentColor and the CSS variable --accent per layerDownload
images-svg-vars.jsonjson
{  "compositions": [{    "id": "themes", "description": "One SVG icon, three themes: svgVars sets currentColor and the CSS variable --accent per layer",    "width": 1280, "height": 720, "fps": 30, "duration": "3s", "background": "#f4f1ea",    "layers": [      { "id": "tile-ivory", "type": "rect", "width": 320, "height": 320, "x": 290, "y": 360, "fill": "#fbf9f4", "stroke": "#161412" },      { "id": "icon-ivory", "type": "image", "src": "icons/ship.svg", "width": 200, "x": 290, "y": 360,        "svgVars": { "currentColor": "#161412", "--accent": "#c92a26" }, "enter": "pop" },      { "id": "tile-dark", "type": "rect", "width": 320, "height": 320, "x": 640, "y": 360, "fill": "#161412" },      { "id": "icon-dark", "type": "image", "src": "icons/ship.svg", "width": 200, "x": 640, "y": 360,        "svgVars": { "currentColor": "#efebe2", "--accent": "#6aa6e8" }, "start": "0.2s", "enter": "pop" },      { "id": "tile-gold", "type": "rect", "width": 320, "height": 320, "x": 990, "y": 360, "fill": "#c92a26" },      { "id": "icon-gold", "type": "image", "src": "icons/ship.svg", "width": 200, "x": 990, "y": 360,        "svgVars": { "currentColor": "#161412", "--accent": "#fbf9f4" }, "start": "0.4s", "enter": "pop" }    ]  }]}

#Smaller things that added up

  • repeat.origin. Row, column and grid layouts center the block on x/y, which is right for a ring of dots and wrong for a list under a left-aligned heading. "origin": "start" puts the first copy exactly at x/y. In the original ad, validate caught the centered version as off-canvas twice. See repeat.
  • A different file per copy. src takes ${...}, so "icons/${pick(i, ['draft', 'review', 'ship'])}.svg" gives each copy of one repeated image its own icon, instead of four hand-written layers.
00:00.0 · f 000
One repeated image layer shows a different file per copy, lined up from the first copy with origin: startDownload
repeat-src.jsonjson
{  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],  "compositions": [{    "id": "lane", "description": "One repeated image layer shows a different file per copy, lined up from the first copy with origin: start",    "width": 1280, "height": 720, "fps": 30, "duration": "3s", "background": "#f4f1ea",    "layers": [      { "id": "icon", "type": "image", "src": "icons/${pick(i, ['draft', 'review', 'ship'])}.svg", "width": 150,        "svgVars": { "currentColor": "#161412", "--accent": "#161412" }, "x": 290, "y": 320,        "repeat": { "count": 3, "layout": "row", "spacing": 350, "origin": "start", "delay": "0.25s" }, "enter": "pop" },      { "id": "label", "type": "text", "text": "${pad(i + 1, 2)}  ${pick(i, ['draft', 'review', 'ship'])}", "font": "JetBrains Mono",        "fontSize": 24, "letterSpacing": 3, "uppercase": true, "fill": "#161412", "x": 290, "y": 470,        "repeat": { "count": 3, "layout": "row", "spacing": 350, "origin": "start", "delay": "0.25s" }, "enter": "fadeUp" }    ]  }]}
  • Wipe edges. Wipe transitions and presets take edge (a band of color riding the edge) and feather (a soft ramp), and transitions take an ease. A brand-colored edge turns a plain cut into a designed one. See wipe edges.
00:00.0 · f 000
Wipe transitions: an edge band of color, then a feathered edgeDownload
series-wipe-edge.jsonjson
{  "fonts": [{ "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" }],  "compositions": [{    "id": "edges", "description": "Wipe transitions: an edge band of color, then a feathered edge",    "width": 1280, "height": 720, "fps": 30, "duration": "auto",    "layers": [      { "id": "show", "type": "group", "series": true, "children": [        { "id": "one", "type": "group", "duration": "1.4s",          "transition": { "type": "wipeUp", "duration": "0.6s", "edge": { "color": "#c92a26", "width": 16 } },          "children": [            { "id": "one-bg", "type": "rect", "fill": "#f4f1ea" },            { "id": "one-t", "type": "text", "text": "wipe transitions", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 80, "letterSpacing": -3.5, "fill": "#161412" } ] },        { "id": "two", "type": "group", "duration": "1.6s",          "transition": { "type": "wipeLeft", "duration": "0.8s", "feather": 260, "ease": "easeInOutQuart", "edge": { "color": "#c92a26", "width": 6 } },          "children": [            { "id": "two-bg", "type": "rect", "fill": "#161412" },            { "id": "two-t", "type": "text", "text": "edge: a band of color", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 80, "letterSpacing": -3.5, "fill": "#f4f1ea" } ] },        { "id": "three", "type": "group", "duration": "1.4s", "children": [          { "id": "three-bg", "type": "rect", "fill": "#e9e4d8" },          { "id": "three-t", "type": "text", "text": "feather: a soft edge", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 80, "letterSpacing": -3.5, "fill": "#161412" } ] }      ] }    ]  }]}
  • Button padding. "padding": [18, 36] (or { "x": 36, "y": 18 }) pads text more on the sides than above and below. It used to be read as a keyframe list and failed with a confusing error.
  • Fixes. timeline now shows each repeat copy's own text (it printed copy 0's for all of them), and one bad use reference no longer makes its siblings fail with "nesting too deep".

#For agents

AGENTS.md and the agent skill now say: name the beats with markers, never measure text to decorate it, and put brand colors and curves in tokens and easings. The reference that vidmake docs prints covers all of it, and vidmake docs markers prints just the new section.

Upgrade with vidmake update, or see installation.

View .md Ask Claude Ask ChatGPT

Keep reading

showcasemotion

Four reels, thirty seconds each

A Swiss poster, a piece of generative op-art, a data poem and a risograph collage. Each is a single vidmake JSON file, written, checked and rendered by an agent, using nothing but the four stock assets.

Read

releaseaudio

What's new in vidmake 0.2.1

vidmake analyze shows the beats and loudness curves that audio-reactive expressions will see, rich-text spans take fontWeight, italic and font, drawMode: "total" draws many strokes with one pen, and source builds report the right version.

Read

remotionmigration

Porting a Remotion composition to vidmake

A typical Remotion video (spring, interpolate, Sequence, TransitionSeries, a mapped list, audio and a reusable component) next to its vidmake port, concept by concept, with notes on what doesn't carry over.

Read