Skip to content

v0.2.0 — theme engine + white/ocean-blue sample video

Choose a tag to compare

@XuHo-IT XuHo-IT released this 02 Aug 10:44
· 77 commits to main since this release
95e06e7

Almost every template in this kit ships a dark canvas. Wanting a light one used to mean
forking fourteen templates and maintaining fourteen more. Now it is one line:

{ "aspect": "9:16", "theme": "paper-blue" }

Templates are recoloured into a throwaway copy at render time — nothing under
video-templates/ changes.

Assets

file
claude-fable-5-paper-blue-1080x1920.mp4 2 min 28 s · 16 scenes · all 14 templates · white canvas, ocean-blue ink
claude-fable-5-paper-blue-voice.mp3 the narration alone, for CapCut

Everything needed to regenerate it byte-for-byte is in the repo:
examples/ai-video-social/sample-output-paper-blue/.

What the theme engine handles that find-and-replace does not

  • Hex inside JS and data-composition-variables — that is where a template keeps its
    caller-facing colours. Skipping them left a themed comparison card with one orange side.
  • mix-blend-mode: screen flips to multiply on a canvas going light. Screen over white
    paints white, so an aurora blob or a glitch layer vanishes with a successful exit code.
  • Accents darkened to clear 3:1 against the canvas. Flipping lightness alone leaves amber
    #ffb020 at 1.5:1 on white.
  • Hue squeezed with its ordering preserved, so two accents that differed still differ.

Which way to flip is measured, not guessed: theme-probe.mjs screenshots each composition
with Chrome and measures it. Static CSS parsing is not reliable — frame-bold-poster is
light at 16:9 and dark at 9:16.

Template fixes

Two templates had line-height below 1 — fine for Latin capitals, wrong for a language whose
vowels carry a horn and a tone mark above and a descender below. Both were caught by looking
at a contact sheet; both rendered successfully and exited 0.

  • frame-bold-poster — tilted headline lines overlapped: "ngày" landed on "rồi tắt"
  • frame-build-minimal — the tilde was clipped off "Ỡ", and the per-character hero split
    "NGƯỠNG" into "NGƯỠ / G"