Skip to content

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.

FieldType and rangeDefault
fontA font family namePoppinsInter, Poppins, Montserrat, Nimbus Roman, Instrument Serif and Barlow Condensed are bundled. Any other Google Fonts family is fetched once by the server.
font_sizeInteger, 12 to 30064The size of the text.
text_colorColour#FFFFFF
highlight_colors1 to 4 colours["#7C3AED"]What the animation paints with. The first is the main one. See Styling.
animationOne of the values belowhighlight_slide
words_per_lineInteger, 1 to 103A line also ends where the speaker paused.
word_spacing0 to 10As a fraction of the font size.
text_casenone or uppernone
italicBooleanfalse
backgroundnone, solid, pill or squarenonesolid has rounded corners, square sharp ones.
background_colorColour#000000
background_opacity0 to 10
position_x, position_y0 to 10.5, 0.84The caption block across the frame: its centre, or for left and right alignment its edge. Low and centred is the usual spot.
stroke_width0 to 100The outline around the letters.
stroke_colorColour#000000
shadow_blur0 to 2010
shadow_colorColour, with optional alpha#000000A0
shadow_offset_x, shadow_offset_y-40 to 400, 0Where the shadow falls. With no blur it is solid and drawn as an extrusion.
glow_blur0 to 400A halo around the letters. 0 is none.
glow_colorColour, with optional alpha#FFFFFF
fill_colors0 to 4 coloursnoneA vertical gradient over each word’s letters, from the top of the line to the baseline. Empty is text_color.
extrude_shade0 to 10How 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_backcolour#00000000The colour an extrusion fades to at its back, from shadow_color at the front. Fully transparent for none.
aligncenter, left, right, justifycenterHow 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 10Extra space after each letter, as a fraction of the font size. Negative tightens.
stretch0.5 to 21How much wider (or narrower, below 1) the letters are drawn than the font has them: 0.79 is a condensed version of any face.
variants0 to 6 looksnoneLooks a word can be given instead of the style’s own (see Word looks).
ValueIn the appMarks the word being said by
word_highlightHighlightChanging its colour.
highlight_boxBoxA box behind it.
word_popPopGrowing it briefly.
word_fadeFadeFading it in.
word_sweepKaraokeSweeping the colour across it.
word_underlineUnderlineA marker stroke drawn under it.
typewriterTypewriterTyping words out one at a time.
word_bounceBounceBouncing it.
lyric_focusFocusSharpening and brightening it, with the rest of the line soft and dim.
highlight_slideSlideA single box that slides from word to word.
line_barProgressA bar that fills along the line.
stickersStickersA coloured label on each word.
word_pressPressRaising it out of the page: its solid shadow grows into an extrusion as it is said, and the other words stay flat.
word_slamSlamEach word hidden until said, then dropping in from 1.7 times its size, the line jolting a little as it lands.
letter_riseRiseEach 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.
driftDriftEach 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_inBlur InEach word hidden until said, then coming out of a short blur (about four frames); nothing moves and nothing glows.
noneNoneNothing: plain captions.
glintGlintSnapping 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.
weightWeightSwelling 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.
saberSaberWriting 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.
signalSignalTearing it in like a broken transmission: split colour channels, sliding bands, scanlines and stray blocks in the highlight colours, then a faint chromatic edge.
trailerTrailerA 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.
markerMarkerA streaky highlighter swipe in the highlight colour drawn behind it, the word turning dark on it.
decodeDecodeIts letters spinning through random characters and locking in one by one, glowing in glow_color.
raysRaysLight pouring out of the letters in glow_color, from a source that sweeps along the line.
echoEchoSliding it in trailed by outlined afterimages in the four highlight colours; its outline ripples out as it lands.
revealRevealRaising it out of a slot on a thin rule that draws itself under the line.
depthDepthA focus pull: the line out of focus, focus racking onto each word while the camera creeps in and drifts.
liquidLiquidPouring 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.
elasticElasticOne pill in the highlight colour that travels from word to word, its front edge leaping ahead and its back catching up.
splitSplitBringing it in as two halves from opposite sides, motion-blurred, locking with a flash of glow_color along the cut.
blockBlockA solid block in the highlight colour that sweeps across and leaves the word behind.
beatBeatShowing it alone in the middle of the caption, punching in with motion blur and a kick, in the highlight colours in turn.
flapFlapA departures board: each letter on a tile (the highlight colour) flips through the alphabet and settles. Suits a monospaced face and some letter_spacing.
countCountCounting a number up to its value like an odometer as it is said; other words pop in.
scrollScrollGliding 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.
reelReelRolling it into a single slot in the middle as if printed on a drum, in the highlight colours in turn.
fillFillFilling 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.
snapSnapBringing it in stretched and smeared sideways, then pulling it tight with a little overshoot.
pulsePulseSwelling 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.
knockoutKnockoutCutting it out of a solid block in the highlight colour, so the picture shows through its letters.
mirrorMirrorFading it up out of a blur over its own reflection on a glossy floor, with a soft light of glow_color crossing it.
foldFoldUnfolding 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.

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.

FieldRange
fontA font family nameAnother face. A family with an italic file (Instrument Serif) draws that, not the upright face leaned.
scale0.3 to 3A multiple of font_size. All the words of a line sit on one baseline, whatever their size.
italicBoolean
text_casenone or upper
text_colorColourReplaces text_color (and any fill_colors gradient) for this word.
accentBooleanSets the word in the style’s first highlight colour, so the accent follows it. A text_color of its own wins.
letter_spacing, stretchAs in the style
box_colorColourA 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.

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.

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.