Open-source design agent: on-brand stills, decks, diagrams, charts and motion graphics from a chat thread, built on Deep Agents.
JavaScript agentagentsai-agentdeepagentsdesignhyperframeslanggraphmanaged-agentsmotion-graphicspaperslackvideo
Typography
Type roles and families come from the brand pack (fontStacks in tokens.json, the
--brand-font-* properties in tokens.css, fonts.toml for the files). This page is how to use
them. Each rule names its evidence or is marked as a default to weigh.
Roles
| Role | Use for | Notes |
|---|---|---|
| Display | Headlines, the one big number, the end card line | The pack's display stack and weight. One display size per frame |
| Text | Everything else a person reads: labels, body, captions the ask supplied | The pack's text stack |
| Mono | Literal values only: code, commands, file names, data values, ids | Letter-spacing as the pack says (creativeTypography.monoLetterSpacing); never for prose or labels, never forced to capitals |
A frame uses two families at most (display and text), plus mono where something is literally code or data. Default to weigh; the pack can say otherwise.
- Labels are text, not mono. An eyebrow, section label, field key or button is the text face in sentence case; a step of weight or the secondary colour gives it hierarchy. All-caps mono eyebrows are the most common generic-software tell. Default to weigh.
- Mono at its regular weight. Heavier mono spaces unevenly at small sizes: narrow letters ("ll") look loose and wide ones ("AMA") crammed, because every cell is the same width. Default to weigh.
- Energy from size, not weight. A light display face stays light; emphasis comes from size, position or the accent. Bold display type reads as a template default. Default to weigh; the pack's weights decide.
Sizes at the delivered size
Type is sized for the smallest view the piece gets, not for the canvas you author on.
- Text a person must read is legible at the smallest view. A 1080 px wide social image is often
seen about 360-400 px wide on a phone, so text set at 36 px on the canvas is about 12-13 px on the
screen. Measure on the render, downscaled to the view's width (
review-thumb.mjs, thenlook). Default to weigh. - Thumbnails are judged at the smallest rail (about 215 px wide on desktop);
thumbnailshas the small-size gates. - Video overlay text is checked by
video-score: a body set below its legible floor for video is a finding (hierarchy.illegible), and one size for everything is another (hierarchy.flat). - Charts must clear 12 px at the delivered size;
data-vizfails a chart that does not. - Contrast scales with size. WCAG 2.1 asks 4.5:1 for normal text and 3:1 for large text, defined as at least 18 pt or 14 pt bold (SC 1.4.3, https://www.w3.org/TR/WCAG21/#contrast-minimum). Thin display weights read smaller than their point size; give them the normal-text ratio.
Measure and leading
- Line length for reading. Aim for an average of 45-90 characters per line, spaces included (Butterick, Practical Typography, https://practicaltypography.com/line-length.html). On graphics, lines are much shorter: a headline is a phrase, not a paragraph.
- Leading. Headlines are set tight (around 1.0-1.15 of the size) because they are read as one shape; body text opens up (around 1.3-1.5). Default to weigh; the pack's graphic language may fix it.
- No
<br>for layout in compositions that reflow: wrap by width so every size recomposes (HyperFrames also asks for no<br>in body text,hyperframes-core).
Casing and punctuation
- Casing comes from the pack (
copy.casingRules,voice.md). Never force it with CSStext-transform; author the text in its final case.brand-lintchecks it. - Headlines carry no trailing full stop unless the pack says otherwise; real multi-sentence body copy keeps its punctuation. Default to weigh.
- No decorative separators. Middle dots, bullets and pipes between words are ornament; use space,
a line break or real punctuation. Dots that mean something stay: decimals, versions, URLs, code.
(
brand-lintrejects the decorative characters and marker classes the pack lists.) A separator the person wrote in their copy stays, with one word space on each side, never padded into a gap. - Copy handed over is the text; how a request is typed is not. Copy given as the words for the piece keeps its wording and casing; a lowercase chat message is not a casing instruction.
- Proper nouns and product names are exact, including their own casing.
- Numbers are figures with units ("3 hours", "40%") unless the pack's voice says otherwise.
Finish
- No one-word last lines (widows) in body copy or multi-line headlines: rewrap or rebalance. Default to weigh.
- No type effects: no stroke, outline, shadow or glow on text, no justified text. Default to weigh; most packs make it a rule. Never stroke a light face to fake a heavier weight the brand did not ask for: reviewers read it as the wrong font. Use a real weight of the face, or more size.
- Letter-spacing and word-spacing are separate. Tightening the tracking of a light face pulls its words together too; hold the word spacing when you change the letter spacing, and never track mono. Default to weigh.
- Figures. Numbers that must line up or that count in motion need tabular figures
(
font-variant-numeric: tabular-nums, if the face has them) or mono, or they jitter. Read proportional figures at the delivered size: some faces open a gap after a narrow digit. - A contrast note on text already at the palette's maximum is a legibility note. The levers are size (grow into the free width, judged at the phone view) and format (offer the vertical version), not a brighter colour that does not exist.
- Align icons by their ink, not their box: a glyph's optical centre is rarely its box centre. Default to weigh.
- Measure, don't estimate. Fit text by measuring it after fonts load, never by counting characters: "Ill" and "WWW" are not the same width.
- The font must actually paint. A browser silently falls back when a face is missing; render with
--brand-fontsor--require-fontso a missing face fails (html2png.mjs,html2pdf.mjs).
Type on screen over time (motion)
How long text must hold is set by reading speed, not by the music.
- A published ceiling for subtitles is 20 characters per second for adult viewers and 17 for children, at most 42 characters per line (Netflix English Timed Text Style Guide, https://partnerhelp.netflixstudios.com/hc/en-us/articles/217350977-English-USA-Timed-Text-Style-Guide). So a line of N characters a viewer must read needs at least N ÷ 20 seconds on screen once it has settled (a 40-character line, 2 s), plus a beat; a typed command or a dense label needs more.
- A word or line counts as readable only once it has settled: at its final size and position, not
moving fast. Time the hold from the end of its entrance (
motion-direction).