Style reference
A project’s style_config holds its caption style. It is the same object the editor’s style panel edits, and
the same in the API, in the web app and in the iPhone app’s project files. Send any subset of it, and the
fields you leave out keep their value. The defaults are the first built-in look, Purple Punch.
Colours are #RRGGBB hex strings. A few can carry an alpha channel as #RRGGBBAA, noted below.
| Field | Type and range | Default | |
|---|---|---|---|
font | A font family name | Poppins | Inter, Poppins, Montserrat, Nimbus Roman, Instrument Serif and Barlow Condensed are bundled. Any other Google Fonts family is fetched once by the server. |
font_size | Integer, 12 to 300 | 64 | The size of the text. |
text_color | Colour | #FFFFFF | |
highlight_colors | 1 to 4 colours | ["#7C3AED"] | What the animation paints with. The first is the main one. See Styling. |
animation | One of the values below | highlight_slide | |
words_per_line | Integer, 1 to 10 | 3 | A line also ends where the speaker paused. |
word_spacing | 0 to 1 | 0 | As a fraction of the font size. |
text_case | none or upper | none | |
italic | Boolean | false | |
background | none, solid, pill or square | none | solid has rounded corners, square sharp ones. |
background_color | Colour | #000000 | |
background_opacity | 0 to 1 | 0 | |
position_x, position_y | 0 to 1 | 0.5, 0.84 | The caption block across the frame: its centre, or for left and right alignment its edge. Low and centred is the usual spot. |
stroke_width | 0 to 10 | 0 | The outline around the letters. |
stroke_color | Colour | #000000 | |
shadow_blur | 0 to 20 | 10 | |
shadow_color | Colour, with optional alpha | #000000A0 | |
shadow_offset_x, shadow_offset_y | -40 to 40 | 0, 0 | Where the shadow falls. With no blur it is solid and drawn as an extrusion. |
glow_blur | 0 to 40 | 0 | A halo around the letters. 0 is none. |
glow_color | Colour, with optional alpha | #FFFFFF | |
fill_colors | 0 to 4 colours | none | A vertical gradient over each word’s letters, from the top of the line to the baseline. Empty is text_color. |
extrude_shade | 0 to 1 | 0 | How much a solid shadow (an extrusion) darkens from front to back, with a lit edge just behind the letters. Pick a shadow colour that is not black, or there is nothing to darken. |
extrude_back | colour | #00000000 | The colour an extrusion fades to at its back, from shadow_color at the front. Fully transparent for none. |
align | center, left, right, justify | center | How the rows sit in the block. left and right also make position_x the place of that edge of the block, not its centre, so each line of words starts (or ends) at the same spot. justify is a poster: short rows (cut at about half the width), each scaled up (at most three times) to the width of the widest, stacked tight. A style saved with layout (stack, line) is read as justify and center. |
letter_spacing | -0.2 to 1 | 0 | Extra space after each letter, as a fraction of the font size. Negative tightens. |
stretch | 0.5 to 2 | 1 | How much wider (or narrower, below 1) the letters are drawn than the font has them: 0.79 is a condensed version of any face. |
variants | 0 to 6 looks | none | Looks a word can be given instead of the style’s own (see Word looks). |
Animations
Section titled “Animations”| Value | In the app | Marks the word being said by |
|---|---|---|
word_highlight | Highlight | Changing its colour. |
highlight_box | Box | A box behind it. |
word_pop | Pop | Growing it briefly. |
word_fade | Fade | Fading it in. |
word_sweep | Karaoke | Sweeping the colour across it. |
word_underline | Underline | A marker stroke drawn under it. |
typewriter | Typewriter | Typing words out one at a time. |
word_bounce | Bounce | Bouncing it. |
lyric_focus | Focus | Sharpening and brightening it, with the rest of the line soft and dim. |
highlight_slide | Slide | A single box that slides from word to word. |
line_bar | Progress | A bar that fills along the line. |
stickers | Stickers | A coloured label on each word. |
word_press | Press | Raising it out of the page: its solid shadow grows into an extrusion as it is said, and the other words stay flat. |
word_slam | Slam | Each word hidden until said, then dropping in from 1.7 times its size, the line jolting a little as it lands. |
letter_rise | Rise | Each word hidden until said, its letters then climbing into place one after another. A word in a connected script (Arabic, Hebrew, the Indic scripts, Thai) rises as one piece. |
drift | Drift | Each word hidden until said, then coming into focus out of a blur; the whole line pushes in a little over its life and floats, and the glow of the word being said is brighter than the rest (it needs a glow_blur). |
blur_in | Blur In | Each word hidden until said, then coming out of a short blur (about four frames); nothing moves and nothing glows. |
none | None | Nothing: plain captions. |
glint | Glint | Snapping it in with motion blur and turning it to the gradient (fill_colors), with a light sweep across it; the letters sit on the outline and a hard drop. |
weight | Weight | Swelling it from a hairline to black and stretching it, then settling it to medium, the line reflowing round it. It needs a variable face (Inter is one); other faces only stretch. |
saber | Saber | Writing its outline with a glowing stroke, then filling it in over its glow, with comets running round it while it is said. The glow is glow_color, the outer light the highlight colour. |
signal | Signal | Tearing it in like a broken transmission: split colour channels, sliding bands, scanlines and stray blocks in the highlight colours, then a faint chromatic edge. |
trailer | Trailer | A film title card: wide tracking that slowly pulls in as each word fades out of a blur, a halo of glow_color, grain in the letters, and a scrim of shadow_color behind the line. |
marker | Marker | A streaky highlighter swipe in the highlight colour drawn behind it, the word turning dark on it. |
decode | Decode | Its letters spinning through random characters and locking in one by one, glowing in glow_color. |
rays | Rays | Light pouring out of the letters in glow_color, from a source that sweeps along the line. |
echo | Echo | Sliding it in trailed by outlined afterimages in the four highlight colours; its outline ripples out as it lands. |
reveal | Reveal | Raising it out of a slot on a thin rule that draws itself under the line. |
depth | Depth | A focus pull: the line out of focus, focus racking onto each word while the camera creeps in and drifts. |
liquid | Liquid | Pouring molten metal into it: drops run together as it fills, then it settles to polished metal (fill_colors, light then dark) in a dark rim, with a rolling highlight. |
elastic | Elastic | One pill in the highlight colour that travels from word to word, its front edge leaping ahead and its back catching up. |
split | Split | Bringing it in as two halves from opposite sides, motion-blurred, locking with a flash of glow_color along the cut. |
block | Block | A solid block in the highlight colour that sweeps across and leaves the word behind. |
beat | Beat | Showing it alone in the middle of the caption, punching in with motion blur and a kick, in the highlight colours in turn. |
flap | Flap | A departures board: each letter on a tile (the highlight colour) flips through the alphabet and settles. Suits a monospaced face and some letter_spacing. |
count | Count | Counting a number up to its value like an odometer as it is said; other words pop in. |
scroll | Scroll | Gliding the whole line, one row, so the word being said sits in the middle, underlined in the highlight colour, the rest fading toward the frame’s edges. |
reel | Reel | Rolling it into a single slot in the middle as if printed on a drum, in the highlight colours in turn. |
fill | Fill | Filling it from the bottom with a moving wave in the highlight colour and a bright water line of glow_color; the rest of the line waits as outlines. |
snap | Snap | Bringing it in stretched and smeared sideways, then pulling it tight with a little overshoot. |
pulse | Pulse | Swelling it with how loudly it is spoken; a shouted word shakes and takes the highlight colour, and a waveform under the line draws the voice. It follows the transcript’s loudness, which a transcription made on the server or the phone measures; without it the word swells on its timing alone. |
knockout | Knockout | Cutting it out of a solid block in the highlight colour, so the picture shows through its letters. |
mirror | Mirror | Fading it up out of a blur over its own reflection on a glossy floor, with a soft light of glow_color crossing it. |
fold | Fold | Unfolding it like paper, the bottom half dropping open and the top following over the crease. |
The animations from glint on are drawn from layers, as a motion designer builds them: light, motion blur
and mattes. They take their colours from the style: the letters are text_color, the highlight colours are
what the look paints in, fill_colors is a gradient over the letters, glow_color is its light (whatever
glow_blur is), and the outline and shadow are the style’s own.
Word looks
Section titled “Word looks”A style can define up to six looks, in variants, and a word in the transcript picks one by its index
(variant, counting from 0; absent is the style’s own look). A look overrides the style for that word, and
every field is optional: what a look leaves out is the style’s own.
| Field | Range | |
|---|---|---|
font | A font family name | Another face. A family with an italic file (Instrument Serif) draws that, not the upright face leaned. |
scale | 0.3 to 3 | A multiple of font_size. All the words of a line sit on one baseline, whatever their size. |
italic | Boolean | |
text_case | none or upper | |
text_color | Colour | Replaces text_color (and any fill_colors gradient) for this word. |
accent | Boolean | Sets the word in the style’s first highlight colour, so the accent follows it. A text_color of its own wins. |
letter_spacing, stretch | As in the style | |
box_color | Colour | A square box of this colour behind the word, like a name label. |
A variant past the end of the style’s looks draws as the style’s own and is kept, so switching to a
preset with fewer looks and back loses nothing. Picking a preset that has looks (such as Editorial) deals them to the words at random: about half the
words keep the style’s own look and the rest take the looks in turn. Shuffle looks deals again. A look
can be changed on a word in the editors (double-click a word, or tap it on the phone); the style panel does
not edit the looks themselves, they come with the preset.
Timing offset
Section titled “Timing offset”caption_offset_ms is a field of the project, next to style_config, not of the style. It is an integer from
-2000 to 2000, in milliseconds, and shifts every caption against the audio (positive is later). It does not
change the transcript.
Presets
Section titled “Presets”The forty-five built-in looks are plain data in
apps/web/src/lib/presets.json,
each a name and a complete style in this shape. They are shared by the web app, the API’s tests and the iPhone
app.