Skip to content

Open-source design agent: on-brand stills, decks, diagrams, charts and motion graphics from a chat thread, built on Deep Agents.

Sample brand: a fuller graphic language, and the design wiki's missing craft (#21)

Amal Irgashev1f96c4b5e3b4
diff --git a/examples/brands/example-studio/graphic-language.md b/examples/brands/example-studio/graphic-language.md
index 3d814ef..305bc9c 100644
--- a/examples/brands/example-studio/graphic-language.md
+++ b/examples/brands/example-studio/graphic-language.md
@@ -1,7 +1,16 @@
# Example Studio graphic language
The mark is a studio window: a frame, a horizon, and one light. Graphics borrow the same three
-ideas, so a reader knows where to look before they read anything.
+ideas, so a reader knows where to look before they read anything. The values are in `tokens.json`;
+this file is how to compose with them. The concept gate (`brand-design`) comes first: these rules
+finish a piece that already has an idea, and never stand in for one.
+
+## The one idea: focus
+
+Every Example Studio visual moves from clutter to one lit subject. Many options become one choice,
+a busy screen becomes the one control that matters, a table becomes the one number. Show that
+through the content itself: crop to the real thing, set the message large, or light the step that
+changed. The window motif is never drawn as decoration.
## What our graphics mean
@@ -11,28 +20,140 @@ ideas, so a reader knows where to look before they read anything.
- **The light** (signal, `#ff5a36`) marks the single thing that matters most in a frame: the key
number, the active step, the new feature. One per frame.
+Pick one arrangement per piece; never stack them:
+
+| Arrangement | What it is | Use it for |
+| --- | --- | --- |
+| The window | One subject, large, in a frame on a quiet ground | A product shot, a stat, a quote |
+| The horizon | Context and subject split by one line | A headline over its proof, a before and after, a chart |
+| The sequence | Frames in a row along a horizon, one of them lit | Steps, a flow, a timeline, a carousel |
+
+## Two modes
+
+Both are on-brand. Choose per piece and surface without asking: blog and docs figures, print and
+editorial work sit on paper; product moments, talks and film openings can sit on ink. A set of
+options may come in both, built from one theme table so the twins share their layout.
+
+| Role | Light mode | Dark mode |
+| --- | --- | --- |
+| Ground | paper `#f6f1e7` (white for docs that are white) | ink `#14161a` |
+| Raised surface | a sand `#e8dcc4` shell, with white `#ffffff` cards inside it | a graphite `#4a4f57` card |
+| Text on a raised surface | ink | paper or mist (6.1:1 on graphite); never slate (2.5:1) |
+| Text | ink (16.1:1 on paper) | paper (16.1:1 on ink) |
+| Secondary text | graphite (7.3:1) | mist `#d9dde3` (13.3:1) |
+| Muted labels, axes | graphite | slate `#8a8f97` (5.6:1) |
+| Connectors, meaningful borders | graphite (7.3:1) | slate (5.6:1) |
+| Hairline dividers only | mist (1.2:1) | graphite (2.2:1) |
+| Emphasis in words | moss `#2f6b4f` (5.6:1) | sky `#8bb8e8` (8.7:1) |
+| The light | signal, as a shape or fill | signal, as a shape, fill or words (5.8:1) |
+
+- **The signal is never text on paper** (2.8:1, under even the large-text minimum). On paper it
+ fills a shape, a bar, a dot or an underline; words in signal belong on ink, or on white at display
+ size only (3.1:1).
+- **Elevation flips between modes.** On ink a raised surface is lighter than the ground; on paper
+ nothing is lighter than white, so the shell goes darker (sand) and the cards inside it return to
+ white. It looks backwards and is right.
+- **Step up the ladder, don't jump to the accent.** When a border or a card needs more contrast,
+ move one row down this table. A signal-coloured frame around a card is a second light.
+- **Hairlines are dividers, never meaningful.** Mist on paper and graphite on ink are too faint for
+ a connector, a dashed boundary or a chart mark; those take the connector row.
+- Moss, sky and sand fill shapes inside a frame (a field, a chart band, a chip); they are never the
+ whole ground. Chart series use the extended tints in order; the signal is never a series.
+
+## Type
+
+One grotesk, Geist, and one mono, Fragment Mono. Hierarchy comes from size and position first, then
+weight; never from a new face, an outline or an effect.
+
+| Level | Face | Weight | Tracking | Leading | Case |
+| --- | --- | --- | --- | --- | --- |
+| Display (headline, the big number) | Geist | 300 | -0.02em | 1.0 | Sentence |
+| Heading (a slide or section title under a display line) | Geist | 400 | -0.01em | 1.1 | Sentence |
+| Body | Geist | 400 | 0 | 1.4 | Sentence |
+| Label, eyebrow, caption, button | Geist | 500 | 0 | 1.2 | Sentence |
+| Data, code, file names, sizes | Fragment Mono | 400 | 0 | 1.4 (1.6 for code) | As written |
+
+- **Light display, real weights only.** The headline stays at 300 and gets its energy from size. A
+ heavier look comes from a real Geist weight (400 or 500), never from stroking or outlining the
+ light face. Bold display type is off-brand.
+- **Labels are Geist, not mono.** An eyebrow, a section label or a field key is Geist 500 in
+ sentence case, in the secondary text colour. Fragment Mono is for literal values only, at its
+ single regular weight and letter-spacing 0, never forced to capitals.
+- **Separators the person wrote stay, spaced like words.** If the copy says "Live | On demand",
+ keep the pipe with a normal word space each side; never pad it into a gap.
+- **Numbers that line up** (a table, a counter, a ticker) take `font-variant-numeric: tabular-nums`
+ or Fragment Mono. Geist's default figures are proportional, so a counting number jitters without
+ it.
+- Left-aligned, never justified. Sentence case everywhere except names (`voice.md`).
+
+Starting sizes at delivery size, to adjust by eye on the render:
+
+| Surface | Size | Display | Body and labels |
+| --- | --- | --- | --- |
+| Square and portrait post | 1080 wide | 96-150 px | 32-40 px |
+| Landscape card, blog header | 1600 × 900 | 96-140 px | 32-36 px |
+| Slide | 1920 × 1080 | 110-180 px | 36-48 px |
+| Thumbnail | 1280 × 720 | 120-180 px, five words at most | none |
+| Email banner | 1200 × 600 | 64-88 px | 24-28 px |
+| Story | 1080 × 1920 | 110-160 px | 36-44 px |
+| Diagram, as a post or slide | the post or slide size | node labels 32-44 px | edge labels 24 px or more |
+
+A diagram fills its frame inside the margins; when its labels come out under these sizes, cut
+nodes or words, or turn it into a portrait or a sequence, rather than shrinking the type.
+
## Construction
-- Grid: 8 px. Margins at least 8% of the frame's short edge. Text and shapes sit on the grid.
+- Grid: 8 px, with 4 px as the half step. Margins at least 8% of the frame's short edge, equal on
+ all four sides; nothing clips at the edge unless the piece is meant to bleed.
+- Spacing encodes grouping. Gaps grow with the level of grouping (within a line < between lines <
+ between blocks < between zones, about twice at each zone boundary), stay equal among peers and
+ never invert. Use 4, 8, 12, 16, 24, 32, 48, 64 and 96; an off-scale gap means the layout is wrong.
- Strokes: 2 px (`--brand-stroke`) for connectors and rules; the mark's own frame is heavier.
- Corners: 4, 8 or 12 px. A frame inside a frame steps down one size.
-- Type: one grotesk, Geist. Headlines in Geist Light (300), large, with tight tracking (-0.02em)
- and leading about 1.0; text in Geist Regular; weight changes, not new faces, carry hierarchy.
- Fragment Mono only for code, data, sizes and file names, with letter-spacing 0.
-- Color: grounds are paper, ink or white. Moss, sky and sand fill shapes inside a frame. Chart
- series use the extended tints in order; the signal color is never a series.
- Diagrams: concept first. Draw the specific mechanism (what flows where, what changes) and label
- it in words. Connectors meet shapes on shared coordinates, with one arrowhead style.
+ it in words. Connectors are quieter than the words they join (the connector row above), meet
+ shapes at the middle of an edge, and use one arrowhead style.
+- The logo goes in a corner at the minimum size that reads, with its clear space (`brand.toml`):
+ the lockup on paper, white, sand and mist; the reversed lockup on ink and graphite.
+
+## Motion
+
+The brand moves the way its mark is built: a frame opens, the horizon draws, the light comes on.
+Motion is calm and exact; the viewer should feel things settle into place.
+
+- **Settle.** Elements arrive by sliding a short distance along the grid (about 24-48 px at 1080)
+ and settling, with `power3.out` over 0.5-0.7 s; peers follow 60-90 ms apart. No bounce, elastic
+ or overshoot.
+- **Draw.** Lines, horizons and chart baselines draw left to right at a steady speed (`power1.inOut`),
+ before the content that sits on them.
+- **Light.** The signal switches on in one frame, as a cut, and is the brightest event in the shot.
+ It never fades, pulses or glows. One light per shot, meaning the same thing in every shot.
+- **The signature move**, for an opening or an end card: the frame draws, the horizon crosses it,
+ the light switches on, then everything holds. Frame 0 is the poster a player shows before it
+ plays, so the move starts part-drawn (the frame's first side already on screen) and continues
+ from exactly that state: nothing visible at frame 0 disappears or redraws later.
+- **The end card and a logo sting** assemble the mark the same way (frame, horizon, light, then the
+ wordmark), from the real SVG paths. The mark is the subject: about a third of the frame's width,
+ centred while it builds, moving aside only when the wordmark joins. Hold 1-1.5 s on a reel or
+ 2.5 s on a longer film.
+- **Allowed in film, declared in `STYLE.md`:** one change of mode at the turn (paper to ink or back);
+ a soft falloff of light from the lit element on an ink ground; cards up to 12 px radius, as in
+ stills. Not allowed: flash frames, bloom, particles, grain, chromatic fringing, a starfield, or
+ any fake 3D.
+- Transitions are cuts or a slide along the horizon. Copy holds still long enough to read once it
+ has settled.
## Do
- Leave space. A frame that is 40% empty reads as confident.
- Show the real thing (a screenshot, a number, the output) instead of an icon for it.
-- Put the logo in a corner at the minimum size that reads, with its clear space.
+- Cut words before shrinking type when a render reads busy.
## Don't
- Abstract node, dot or network wallpaper; particles; gradients as decoration.
-- More than one signal-colored element, or signal text on a moss or sky field.
+- More than one signal-coloured element, signal-coloured words on paper, or signal text on a moss
+ or sky field.
+- Outlined, stroked, shadowed or glowing type; bold display type; mono eyebrows or all-caps labels.
- Drop shadows, glows, bevels, or rounded corners beyond 12 px.
- Stretch, recolor or rebuild the logo; add a tagline to it.
diff --git a/skills/design-wiki/references/color.md b/skills/design-wiki/references/color.md
index d025e29..ac7da50 100644
--- a/skills/design-wiki/references/color.md
+++ b/skills/design-wiki/references/color.md
@@ -18,6 +18,27 @@ use the palette well.
- **Gradients belong to light, not decoration**: a light falling across a ground, a pool, a limb. A
two-colour fill used to make a frame look busy is decoration. Default to weigh.
+## Depth and surfaces
+
+- **Build a ladder per mode.** From the pack's colours, list the ground, a raised surface, text,
+ secondary text, connectors and hairlines for each mode, with their measured contrast; the sample
+ brand's `graphic-language.md` has one. Raise contrast by stepping down the ladder, not by jumping
+ to the accent: an accent-coloured border is a second accent. Default to weigh.
+- **Elevation flips between modes.** On a dark ground a raised surface is lighter than the ground.
+ On a light ground with no lighter colour left (pure white banned, or already used), the shell goes
+ darker and the cards inside it return to the ground's tone. Default to weigh.
+- **Text, data marks and chrome take separate tokens.** Secondary text is not the border colour, and
+ a chart's axis or line needs more contrast than the card edge beside it. Default to weigh.
+- **A dashed border loses weight against a solid one.** A faint dashed boundary disappears; give a
+ dash a step more contrast than a solid line, and measure borders against their ground (3:1 for
+ one that carries meaning). Default to weigh.
+- **A line graphic behind copy gets a ground-colour fade** that is strongest behind the words, so the
+ text reads without boxing it. A highlight chip on a dark ground is a low-opacity tint of the
+ accent with light text, not a bright fill. Default to weigh.
+- **An "off-palette" fill in a supplied source is often a token at low opacity.** Before declaring
+ an exception, solve `alpha = (sampled - ground) / (token - ground)` per channel; if the three agree,
+ the source used the token over the ground, and `rgba()` of the token reproduces it exactly.
+
## One accent, carrying meaning
- **One accent element per frame.** The accent marks the single thing that matters most: the key
diff --git a/skills/design-wiki/references/data-and-diagrams.md b/skills/design-wiki/references/data-and-diagrams.md
index 083c234..b284fbe 100644
--- a/skills/design-wiki/references/data-and-diagrams.md
+++ b/skills/design-wiki/references/data-and-diagrams.md
@@ -46,6 +46,19 @@ The question decides the form, not the data's shape:
straight; return paths are clean computed curves; one arrowhead style per figure; no connector
crosses text. The brand pack's `diagramConstruction` sets the stroke and arrowhead rules and
`brand-lint` checks them (`diagram.*`).
+- **Connectors, drawn.** The stroke comes from the pack's stroke token, set in CSS
+ (`.connector { stroke-width: var(--brand-stroke) }`): a custom property in an SVG presentation
+ attribute is ignored and draws a 1 px line. Each connector is one continuous path; every
+ arrowhead references one shared `<marker>`, about 4-5 strokes long and close to equilateral, and
+ appears only where the flow has a direction. A connector ends exactly on the middle of its node's
+ edge (no gap, not the node's centre), continues through a container to the real target, and sits
+ in a layer above the cards it joins.
+- **Connectors are quieter than the words they join**: a lower-contrast token than the text, so the
+ labels lead. When rebuilding a source, match its weights first; a rebuild that reads "messier"
+ than the original almost always has heavier strokes.
+- **Crisp lines.** An odd-width stroke centred on a whole pixel blurs across two; centre it on a half
+ pixel along the axis that crosses the line (`y` on a horizontal run, `x` on a vertical one), and
+ an even-width stroke on a whole one.
- **Hierarchy in a diagram** is position and weight before colour: the main path is the straight,
heavier one; side paths are lighter. The accent marks the one step that matters.
- **Direction is reading direction.** Flows run left to right or top to bottom for left-to-right
diff --git a/skills/design-wiki/references/hierarchy-and-layout.md b/skills/design-wiki/references/hierarchy-and-layout.md
index 83dc084..4269b70 100644
--- a/skills/design-wiki/references/hierarchy-and-layout.md
+++ b/skills/design-wiki/references/hierarchy-and-layout.md
@@ -21,6 +21,17 @@ it is a checkable rule or a default to weigh.
- **Use the brand's grid.** The pack's spacing unit (`--brand-space-unit`) and margins
(`graphic-language.md`) set the grid; positions and sizes are multiples of it. Fractional box
lengths snap unevenly to device pixels (`brand-lint` warns on `grid.fractional`).
+- **Spacing encodes grouping.** Gaps grow with the level of grouping (within a line < between lines
+ < between blocks < between zones, roughly doubling at a zone boundary), stay equal among peers,
+ and never invert. Measure gaps between the ink, not the boxes: a large line box carries slack
+ below its descenders. Default to weigh.
+- **One spacing scale.** Padding and gaps come from the pack's unit and its multiples; peers share a
+ value, and padding is symmetric unless the design says otherwise. An off-scale value usually
+ means the structure is wrong, not that the number needs nudging. Default to weigh.
+- **Margins on all four sides.** Every frame and page keeps real outer margins, bottom included,
+ and nothing clips at the edge unless the piece is meant to bleed. Default to weigh.
+- **A box that cannot grow takes its room from gaps, not leading.** Tightening line-height to fit a
+ capped card undoes the reading comfort the leading was there for. Default to weigh.
- **One alignment system per frame.** Pick left-aligned or centred and hold it; mixed alignment reads
as accident. Text aligns left unless the format centres it (a poster, an end card). Default to weigh.
- **Equal outer margins across a set.** A carousel, a deck or a size set holds the same margins, so
diff --git a/skills/design-wiki/references/review-rubric.md b/skills/design-wiki/references/review-rubric.md
index 096e4bf..50fe5ff 100644
--- a/skills/design-wiki/references/review-rubric.md
+++ b/skills/design-wiki/references/review-rubric.md
@@ -62,6 +62,8 @@ Then name the strengths the next pass must protect, so a fix does not break what
| Template sameness | Six slides that are one layout recoloured | Vary the spatial idea; keep the system |
| Lost on a phone | Proof text that is 7 px on a 360 px screen | Fewer words, larger type, a narrower canvas |
| Unofficial logo | A typeset stand-in or recoloured mark | The real file from the pack, at its minimum size or larger |
+| Generic software look | Mono on prose, all-caps mono eyebrows, bold display type, everything centred, floating columns with no container, glows | Same elements and copy: retreat mono to literal values, set labels in the text face, the display weight the pack names, one alignment, real containers, no effects. Name the diagnosis in one line |
+| Faked weight | A light face stroked or outlined to look heavier | A real weight of the face, or more size |
| Self-review | "It's fine" from the maker | An independent look with fresh evidence |
## Writing the review
diff --git a/skills/design-wiki/references/typography.md b/skills/design-wiki/references/typography.md
index a020c1d..5faf0a6 100644
--- a/skills/design-wiki/references/typography.md
+++ b/skills/design-wiki/references/typography.md
@@ -15,6 +15,15 @@ them. Each rule names its evidence or is marked as a default to weigh.
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.
@@ -50,7 +59,10 @@ Type is sized for the smallest view the piece gets, not for the canvas you autho
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-lint` rejects the decorative characters and marker classes the pack lists.)
+ (`brand-lint` rejects 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.
@@ -59,7 +71,17 @@ Type is sized for the smallest view the piece gets, not for the canvas you autho
- **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.
+ 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:
diff --git a/skills/motion-direction/references/brand-in-motion.md b/skills/motion-direction/references/brand-in-motion.md
index 1d8b362..bf9a876 100644
--- a/skills/motion-direction/references/brand-in-motion.md
+++ b/skills/motion-direction/references/brand-in-motion.md
@@ -18,6 +18,9 @@ Taste, a reference and a default never override these.
- **The brand's faces**, loaded locally through `@font-face` from the pack's `fonts.toml` and checked
by the renderer; never a fallback face in a final.
- **No outlined or stroked type** to fake a weight the face lacks.
+- **Supplied artwork moves only by its own layers.** A flat PNG, or an SVG that wraps a raster, is
+ not ready to animate: ask for the layered file (isolated parts with their bounds and anchors),
+ and never fake a moving part (an eye, a leaf, a limb) by cropping a guess out of the flat image.
- **Colours from the tokens**, or declared with their source in the film's `STYLE.md` when a
recreation samples a reference (and mapped to the nearest token wherever the brand's own work is
concerned). `brand-lint` checks the compositions.