<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Izuorah Dubem kizito</title>
    <description>The latest articles on DEV Community by Izuorah Dubem kizito (@dubemkizito).</description>
    <link>https://dev.to/dubemkizito</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F125629%2F228a3d9f-4ed1-4b54-b3b3-fd2b3061f20c.png</url>
      <title>DEV Community: Izuorah Dubem kizito</title>
      <link>https://dev.to/dubemkizito</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dubemkizito"/>
    <language>en</language>
    <item>
      <title>How to generate abstract OG images for blog posts and docs</title>
      <dc:creator>Izuorah Dubem kizito</dc:creator>
      <pubDate>Mon, 16 Nov 2026 17:06:59 +0000</pubDate>
      <link>https://dev.to/dubemkizito/how-to-generate-abstract-og-images-for-blog-posts-and-docs-4p7h</link>
      <guid>https://dev.to/dubemkizito/how-to-generate-abstract-og-images-for-blog-posts-and-docs-4p7h</guid>
      <description>&lt;p&gt;Most blogs end up with one of three cover images: a stock photo that has nothing to do with the post, a screenshot that's out of date three releases later, or the same logo card on every page. None of them tell a reader scrolling past on LinkedIn or Slack which post this is.&lt;/p&gt;

&lt;p&gt;An &lt;strong&gt;abstract cover&lt;/strong&gt; fixes that without anyone opening a design tool per post. It's a colour, a geometric motif and the title, nothing else. Because it has no photo and no UI in it, it reads at thumbnail size and never goes stale. And because it's a &lt;em&gt;system&lt;/em&gt; rather than a picture, it can be generated for every blog post, docs page and changelog entry you have.&lt;/p&gt;

&lt;p&gt;Here is the system we built, the rules behind it, and how we generated the whole set below with an AI agent through the &lt;a href="https://bannx.com/docs/integrations/mcp" rel="noopener noreferrer"&gt;bannx MCP server&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpba201z2wafawf81n0gz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpba201z2wafawf81n0gz.webp" alt="Six abstract OG images from one template: a teal docs card with stepped bars, an amber changelog card with a dot grid, a rose essay card with rings, a blue tutorial card with dots, a lime help-center card with steps and a charcoal release-notes card with rings" width="800" height="630"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes an abstract cover work
&lt;/h2&gt;

&lt;p&gt;A good abstract cover is mostly restraint. Five rules carry it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One base colour per card.&lt;/strong&gt; Not a palette, one colour. Every other shade on the card is derived from it, so the card always looks intentional, whatever colour you pick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One motif from a small set.&lt;/strong&gt; Three or four shapes, each built from one repeated element: rings, bars, dots. A reader learns the set after a few posts, and the set is what makes the covers look like &lt;em&gt;your&lt;/em&gt; covers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The title is the only real text.&lt;/strong&gt; Big, short, left-aligned, two or three lines. A small section label above it and a site name below are the only extras.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The motif never competes with the title.&lt;/strong&gt; Keep it in one zone (the right half, a corner) and keep it lighter or lower in contrast than the text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text colour follows the background.&lt;/strong&gt; White on indigo, near-black on amber. Pick it from the colour, never by hand.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The colour and the motif carry &lt;strong&gt;meaning&lt;/strong&gt; too. Give each section of your site a fixed pair and the cover tells the reader where they are before they read the title:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Section&lt;/th&gt;
&lt;th&gt;Colour&lt;/th&gt;
&lt;th&gt;Motif&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Docs&lt;/td&gt;
&lt;td&gt;Teal&lt;/td&gt;
&lt;td&gt;Steps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changelog&lt;/td&gt;
&lt;td&gt;Amber&lt;/td&gt;
&lt;td&gt;Dots&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Essays&lt;/td&gt;
&lt;td&gt;Rose&lt;/td&gt;
&lt;td&gt;Orbits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tutorials&lt;/td&gt;
&lt;td&gt;Blue&lt;/td&gt;
&lt;td&gt;Dots&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Help center&lt;/td&gt;
&lt;td&gt;Lime&lt;/td&gt;
&lt;td&gt;Steps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release notes&lt;/td&gt;
&lt;td&gt;Charcoal&lt;/td&gt;
&lt;td&gt;Orbits&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Build it as a template, not a picture
&lt;/h2&gt;

&lt;p&gt;The trick that makes this scale is that nothing on the card is drawn by hand. The template is 1200 × 630 (the &lt;a href="https://bannx.com/blog/og-image-size-the-complete-guide" rel="noopener noreferrer"&gt;Open Graph size&lt;/a&gt;) and has five inputs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Variable&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;What it drives&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;title&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;How to generate abstract OG images&lt;/td&gt;
&lt;td&gt;The headline, shrinking to fit if it runs long&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kicker&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Guide&lt;/td&gt;
&lt;td&gt;The small label above the title&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;site&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;bannx.com/blog&lt;/td&gt;
&lt;td&gt;The footer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;color&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;#3B2DD9&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The background and every tint in the motif&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;motif&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;orbits&lt;/code&gt;, &lt;code&gt;steps&lt;/code&gt; or &lt;code&gt;dots&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Which motif is shown&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Everything else is computed from those.&lt;/p&gt;

&lt;h3&gt;
  
  
  The motifs are loops
&lt;/h3&gt;

&lt;p&gt;Each motif is &lt;strong&gt;one shape repeated over a list&lt;/strong&gt;. The rings are a single ellipse layer with a &lt;a href="https://bannx.com/docs/templates" rel="noopener noreferrer"&gt;repeat&lt;/a&gt; over eight items. Its size, position and colour are formulas of the item number &lt;code&gt;i&lt;/code&gt;, so ring 0 is the biggest and darkest and ring 7 the smallest and palest:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;repeat:  rings          (a hidden list: 0, 1, 2 … 7)
w, h:    1240 - i * 140
x:       1180 - (1240 - i * 140) / 2
y:       680 - (1240 - i * 140) / 2
fill:    {{ tint(color, 0.08 + i * 0.1) }}&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The steps are one rectangle repeated the same way, each bar 60 px taller than the last. The dots are a loop inside a loop: ten rows, each repeating a dot nine times, the dot growing with its column and fading with its row. Change the formula and you have a new motif; there are no hundred hand-placed shapes to maintain.&lt;/p&gt;

&lt;h3&gt;
  
  
  Every shade comes from one colour
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;tint(color, 0.3)&lt;/code&gt; mixes the base colour 30% toward white, and &lt;code&gt;shade()&lt;/code&gt; mixes it toward black. Because the motif only ever uses tints of the background, any colour you pass in gives a card that looks designed: indigo gives lavender rings, amber gives peach dots, charcoal gives greys. The full list of colour helpers is in the &lt;a href="https://bannx.com/docs/template-expressions#color-functions-chroma-js" rel="noopener noreferrer"&gt;template expressions reference&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Text colour picks itself, with the right threshold
&lt;/h3&gt;

&lt;p&gt;The title, label and footer all use one expression:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{{ isLight(color, 0.3) ? '#111827' : '#ffffff' }}&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The first version used &lt;code&gt;isLight(color)&lt;/code&gt; with its default threshold of 0.5, and the amber changelog card came out with white text on &lt;code&gt;#F59E0B&lt;/code&gt;. Amber's relative luminance is about 0.44, so it counted as "dark", but white on it is a contrast of roughly 2:1, well under the 4.5:1 that WCAG asks for. Near-black on the same amber is about 8:1. The crossover point where black and white text have equal contrast sits around a luminance of 0.2, so a threshold of 0.3 keeps mid-tones like amber and lime on dark text and sends indigo, teal and rose to white. If your covers ever look washed out, check this before anything else.&lt;/p&gt;

&lt;h3&gt;
  
  
  The motif switch
&lt;/h3&gt;

&lt;p&gt;Each motif lives in its own group with a &lt;strong&gt;Show if&lt;/strong&gt; condition: &lt;code&gt;motif === 'orbits'&lt;/code&gt;, &lt;code&gt;motif === 'steps'&lt;/code&gt;, &lt;code&gt;motif === 'dots'&lt;/code&gt;. Exactly one is visible per render, and a site can set it per section, per post, or leave it on the default.&lt;/p&gt;

&lt;h2&gt;
  
  
  Generate the set with an AI agent
&lt;/h2&gt;

&lt;p&gt;We didn't build this in the editor. An AI agent built it through the &lt;a href="https://bannx.com/docs/integrations/mcp" rel="noopener noreferrer"&gt;bannx MCP server&lt;/a&gt;, and the brief was close to what you've just read: a 1200 × 630 cover, colour-driven tints, three looping motifs, automatic text colour.&lt;/p&gt;

&lt;p&gt;The agent's work came down to a handful of tool calls:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;get_guide&lt;/code&gt; with &lt;code&gt;creative-authoring&lt;/code&gt; and &lt;code&gt;template-expressions&lt;/code&gt;, to learn the operation vocabulary and the colour helpers.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;template_create&lt;/code&gt; with the variables, three sample value sets and every layer in one batch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;template_render&lt;/code&gt; once per sample, to look at the result.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;template_apply_ops&lt;/code&gt; to fix what the renders showed: the groups started with a white fill that covered the background, and the amber card had white text (the threshold problem above).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;template_publish&lt;/code&gt; to make the &lt;a href="https://bannx.com/templates/abstract-og-cover" rel="noopener noreferrer"&gt;template page&lt;/a&gt; public.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Rendering a cover is one call with the post's values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"tool"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"template_render"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"arguments"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"templateId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"TEMPLATE_ID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"format"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"png"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"variables"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"What shipped in November"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"kicker"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Changelog"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"site"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"example.com/changelog"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"color"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#F59E0B"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"motif"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dots"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every render costs one credit, and the agent sees each image it makes, so the loop of &lt;em&gt;render → look → fix&lt;/em&gt; is the same loop a designer runs, just faster. Two rounds of fixes was all this template needed.&lt;/p&gt;

&lt;p&gt;You can do the same without an agent. Open the template, change the fields on the right and the preview updates as you type:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjhr6cqi9texczqjpggoj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjhr6cqi9texczqjpggoj.webp" alt="The public template page for the abstract cover: a large indigo preview with rings on the left, and on the right a form with a size picker and Title, Section and Site fields" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnd5hmmaryd65nwnashzc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnd5hmmaryd65nwnashzc.webp" alt="The same template page after editing the form: the preview is now an amber changelog card with a dot grid, and the form shows Title &amp;quot;What shipped in November&amp;quot;, Section &amp;quot;Changelog&amp;quot;, Colour &amp;quot;#F59E0B&amp;quot; and Motif &amp;quot;dots&amp;quot;" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  One design, every size
&lt;/h2&gt;

&lt;p&gt;A blog cover on your own site is often 16:9, an OG image is 1.91:1 and a social post is square. The motif groups are pinned to the right and bottom edges and stretch with the canvas, so the same template renders at other sizes without a second design. Pass &lt;code&gt;size&lt;/code&gt; on the render:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"templateId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"TEMPLATE_ID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"size"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1080x1080"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"variables"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"motif"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dots"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"color"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#F59E0B"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx7yxwixx9oehvynhvpnp.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx7yxwixx9oehvynhvpnp.webp" alt="The amber changelog cover re-rendered as a 1080 × 1080 square: the title sits top-left and the dot grid fills the right side" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0r3b5g42e2ovandtac3d.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0r3b5g42e2ovandtac3d.webp" alt="The teal docs cover re-rendered at the 1600 × 840 blog-cover size with the stepped bars anchored to the bottom-right corner" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The cover at the top of this post is the same template at 1200 × 675. See &lt;a href="https://bannx.com/docs/rendering#rendering-at-another-size" rel="noopener noreferrer"&gt;rendering at another size&lt;/a&gt; for the presets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put it in your og:image tag
&lt;/h2&gt;

&lt;p&gt;To give every page its own cover without rendering anything ahead of time, use a &lt;strong&gt;signed image URL&lt;/strong&gt;. It has no API key in it, it can't be edited (changing &lt;code&gt;title=&lt;/code&gt; breaks the signature), and each distinct URL renders once on its first open and is served from storage after that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;property&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"og:image"&lt;/span&gt;
  &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://bannx.com/r/TEMPLATE_ID?color=%230F766E&amp;amp;kicker=Docs&amp;amp;motif=steps&amp;amp;title=Authentication%20and%20API%20keys&amp;amp;sig=SIGNATURE"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sign them from your server or build script, up to 500 at a time, with &lt;code&gt;POST /api/v1/templates/:id/signed-urls&lt;/code&gt; (or the &lt;code&gt;template_sign_urls&lt;/code&gt; MCP tool). Map each section of your site to its colour and motif in that script, and the table at the top of this post becomes code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;SECTION_STYLE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;docs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kicker&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Docs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#0F766E"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;motif&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"steps"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;changelog&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kicker&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Changelog"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#F59E0B"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;motif&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dots"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;blog&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kicker&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Essay"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;     &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#E11D48"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;motif&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"orbits"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;variables&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SECTION_STYLE&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://bannx.com/blog/og-image-api" rel="noopener noreferrer"&gt;OG image API guide&lt;/a&gt; walks through the signing call, a Node script that chunks a long page list, and snippets for Next.js, Nuxt, Astro and plain HTML. The &lt;a href="https://bannx.com/docs/rendering#signed-image-urls" rel="noopener noreferrer"&gt;signed image URLs docs&lt;/a&gt; cover the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep the title under about 60 characters.&lt;/strong&gt; The template shrinks long titles to fit, but a three-line title at 64 px is what reads in a feed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check contrast on your lightest and darkest section colours.&lt;/strong&gt; Those are the two that break.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Leave the motif out of the top-left.&lt;/strong&gt; Some platforms crop the edges or lay a play button or domain label over the card.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide the colour and motif per section, not per post.&lt;/strong&gt; Randomness looks lively for a week and then looks like nobody decided.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test the URL in a link preview debugger&lt;/strong&gt; before the first share. Platforms cache the first image they fetch.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The template is public: open &lt;a href="https://bannx.com/templates/abstract-og-cover" rel="noopener noreferrer"&gt;Abstract Cover: Orbits, Steps, Dots&lt;/a&gt;, change the title and colour, and download a PNG, or remix it into your space and swap the motifs for your own. To have an agent make yours, connect the &lt;a href="https://bannx.com/docs/integrations/mcp" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt; and hand it the five rules above.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>design</category>
      <category>tutorial</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Design is a program you can see</title>
      <dc:creator>Izuorah Dubem kizito</dc:creator>
      <pubDate>Sat, 14 Nov 2026 17:21:26 +0000</pubDate>
      <link>https://dev.to/dubemkizito/design-is-a-program-you-can-see-1d6j</link>
      <guid>https://dev.to/dubemkizito/design-is-a-program-you-can-see-1d6j</guid>
      <description>&lt;p&gt;There are two people I keep meeting, and for a while I was both of them.&lt;/p&gt;

&lt;p&gt;The first is a designer. They have a social post that needs to go out for forty products, so they duplicate the artboard forty times and change the name, the price and the photo by hand. Around copy twenty-six they ask the question that every designer eventually asks: &lt;em&gt;is there a way to do this once?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The second is a developer. They need forty product images for the shop, and the only design tool they trust is code. So they write an HTML page, open it in a headless browser, take forty screenshots and spend the afternoon nudging a &lt;code&gt;div&lt;/code&gt; three pixels to the left.&lt;/p&gt;

&lt;p&gt;The designer has just described a loop. The developer has just rebuilt a design tool out of a browser. They are standing on opposite sides of the same problem, and each is missing exactly what the other already knows.&lt;/p&gt;

&lt;p&gt;I have been building &lt;a href="https://bannx.com" rel="noopener noreferrer"&gt;bannx&lt;/a&gt; to sit in the middle of that gap: a design tool where a layout is something you can see and move with your hands, &lt;em&gt;and&lt;/em&gt; a small program with variables, conditions, loops and formulas. This is what I learned building it, and what I think each side should steal from the other.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every design is already a program
&lt;/h2&gt;

&lt;p&gt;Look at any finished social post, invoice or certificate and you can read the code that a person ran in their head to make it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Variables.&lt;/strong&gt; The parts that change between versions: the name, the price, the photo, the date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conditionals.&lt;/strong&gt; "If there is no discount this week, drop the badge."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loops.&lt;/strong&gt; "One row per item on the order. One card per speaker."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Functions.&lt;/strong&gt; "The panel is a lighter version of the brand colour." "The total is the sum of the rows plus tax."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Layout as flow.&lt;/strong&gt; "The button sits under the text, however long the text turns out to be." That is flexbox, drawn instead of typed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Designers run all of this already. They run it by hand, once per file, and the program only exists in their memory. Developers can write all of it, but in a medium where they cannot see the result until the screenshot comes back.&lt;/p&gt;

&lt;p&gt;So the goal was never "teach designers to code" or "teach developers to design". The goal was a single document where both of them are looking at the same program.&lt;/p&gt;

&lt;p&gt;Here is what that looks like. These two images are one template. I passed it two different sets of data and changed nothing else.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqx13arlb85q1zirewlo9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqx13arlb85q1zirewlo9.png" alt="Cleaning-service post: three services, a discount badge, a price chip and a phone number" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhk61rj6esywdbpyajc2o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhk61rj6esywdbpyajc2o.png" alt="The same template with four services and no discount, price or phone, which the conditions removed" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The checklist is a loop: three services became four rows on their own. The discount badge, the price chip on the photo and the phone number each sit behind a condition, so when that data was empty they left, and the layout closed the gaps. The headline wrapped to more lines and everything under it moved down. Nobody drew the second version.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I built it: six decisions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Variables are inputs, and every input has a default
&lt;/h3&gt;

&lt;p&gt;A template declares its variables the way a function declares parameters: a name, a type and a default. The types are the ones a design actually needs. Plain text, numbers, rich text (so one word can be bold or highlighted), a colour, an image, a list of rows, even a signature drawn on a pad.&lt;/p&gt;

&lt;p&gt;The default matters more than the type. A template with no defaults is a function you cannot call without arguments, which in design terms means a blank canvas you cannot preview. Every template in bannx renders on its own with its sample values, so the designer is always looking at a real result, never a wireframe full of &lt;code&gt;{{ placeholders }}&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Conditions belong to the layer, not the formula
&lt;/h3&gt;

&lt;p&gt;The first version put visibility logic inside text formulas. It was miserable. You could not tell from looking at the canvas why a layer had vanished.&lt;/p&gt;

&lt;p&gt;Now a condition is a property of the layer, like its colour or its position. Select the price chip and you see its rule: &lt;code&gt;isDefined(price)&lt;/code&gt;. When the rule is false the layer is removed from the layout, not just hidden, and auto-layout closes the space it left. That last part is what makes conditions usable. A hidden layer that still takes up room is a bug the designer has to work around by hand.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Loops live in the layer tree, not in the formula language
&lt;/h3&gt;

&lt;p&gt;This was the most important call, and it went against my developer instincts.&lt;/p&gt;

&lt;p&gt;The formula language has no &lt;code&gt;for&lt;/code&gt; and no &lt;code&gt;while&lt;/code&gt;. Instead, any layer can be marked as a repeater and pointed at a list. At render time it is copied once per item, and inside each copy the item has a name, like &lt;code&gt;service&lt;/code&gt;, and an index, &lt;code&gt;serviceIndex&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The reason is that a designer needs to &lt;em&gt;see the row&lt;/em&gt;. They design one checklist item, at full fidelity, on the canvas, and the data decides how many there are. If loops lived inside formulas, the thing being repeated would be text in a box instead of a shape you can drag.&lt;/p&gt;

&lt;p&gt;The same idea scales up. Put a repeat on a whole scene and each item becomes a page. A carousel of eight slides, a deck, a 30-page product catalogue: one designed page, any number of rendered ones. A scene can also auto-paginate when its content is too long, which is how an invoice with three line items and one with sixty come out of the same file.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. The formula language is small on purpose
&lt;/h3&gt;

&lt;p&gt;The formulas inside &lt;code&gt;{{ }}&lt;/code&gt; look like JavaScript. &lt;code&gt;price * 1.2&lt;/code&gt;, &lt;code&gt;isDark(color) ? 'white' : 'black'&lt;/code&gt;, &lt;code&gt;len(headline) &amp;gt; 40&lt;/code&gt;. Underneath, they are not JavaScript at all, and that is deliberate.&lt;/p&gt;

&lt;p&gt;Templates are shared. They get published to a gallery, opened by strangers and rendered on a server. So a formula is user input, and the engine treats it that way. Each one is parsed into a syntax tree and walked by a small evaluator that only understands a fixed list of operations. Functions come from an allowlist of about a hundred helpers for text, numbers, money, colour, dates and lists. There are no method calls (&lt;code&gt;slice(list, 0, 3)&lt;/code&gt;, never &lt;code&gt;list.slice(0, 3)&lt;/code&gt;), no &lt;code&gt;new&lt;/code&gt;, no &lt;code&gt;function&lt;/code&gt;, no loops, no way to reach a prototype. A formula is capped in length and complexity, so nobody can write one that takes the server down.&lt;/p&gt;

&lt;p&gt;The constraint turned out to help designers as much as security. A small language is a learnable language. Someone who has written a spreadsheet formula can read every expression in a bannx template, and the error messages can be specific because there is so little that can go wrong.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Same input, same pixels
&lt;/h3&gt;

&lt;p&gt;A developer calls a function and expects the same answer twice. Designs should behave the same way, and by default they do not: anything "random" reshuffles on every render.&lt;/p&gt;

&lt;p&gt;So randomness takes a seed. &lt;code&gt;randomFloat(-3, 3, 'sticker-' + itemIndex)&lt;/code&gt; tilts each sticker by its own few degrees, and it is the same few degrees every time. Animation follows the same rule: time is just a variable, &lt;code&gt;$time&lt;/code&gt;, so frame 48 of a video is always the same frame.&lt;/p&gt;

&lt;p&gt;This is what makes the rest of the system possible. A render can be cached. A signed image URL can be generated before anything is drawn, because the result is a pure function of the template and the data. Fifty people downloading the same certificate do not cost fifty renders.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Make the program visible
&lt;/h3&gt;

&lt;p&gt;The risk with all of this is that the design turns into a black box. The canvas shows the result, but not why.&lt;/p&gt;

&lt;p&gt;So the program is drawn on top of the design. Type &lt;code&gt;{{&lt;/code&gt; in any field and autocomplete lists what is in scope right now: your variables with their current values, the brand's colours and fonts, the loop item if you are inside one. Any property driven by a formula is tinted in the inspector, and the selected layer shows small &lt;code&gt;{ }&lt;/code&gt; chips naming what it is bound to. A sample switcher steps the canvas through each set of test data, so a designer can watch the long-name case and the empty-discount case without typing them in.&lt;/p&gt;

&lt;p&gt;That is what I mean by a program you can see. The logic is not in a separate script window. It is attached to the shapes it controls.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you are a designer learning to code
&lt;/h2&gt;

&lt;p&gt;You already think in these structures. What you are learning is to write them down once instead of performing them forty times.&lt;/p&gt;

&lt;p&gt;Start with three, in this order. A &lt;strong&gt;fallback&lt;/strong&gt;, so nothing is ever empty: &lt;code&gt;{{ use(logo, iconFallback) }}&lt;/code&gt;. A &lt;strong&gt;condition&lt;/strong&gt;, so optional things can leave. A &lt;strong&gt;loop&lt;/strong&gt;, so lists stop being something you rearrange by hand.&lt;/p&gt;

&lt;p&gt;Then design the worst case before the nice one. The longest name, the missing photo, the order with forty items. That is the designer's version of writing tests, and it is where a template proves it works.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you are a developer who has to make graphics
&lt;/h2&gt;

&lt;p&gt;Stop placing things by coordinates. A layout that says "this sits under that, 24 pixels apart" survives new data. A layout that says "this sits at &lt;code&gt;y = 312&lt;/code&gt;" breaks the first time a headline wraps. Auto-layout is flexbox; use it the way you would in CSS.&lt;/p&gt;

&lt;p&gt;Pull colours, fonts and spacing from tokens instead of hard-coding hex values, for the same reason you would not hard-code a URL.&lt;/p&gt;

&lt;p&gt;And let someone with taste own the template. The win is not that you no longer need a designer. It is that the designer makes the thing once, and your code supplies the data:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST https://bannx.com/api/v1/templates/TEMPLATE_ID/render \
  -H &lt;span class="s2"&gt;"Authorization: Bearer YOUR_API_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{ "format": "png", "variables": { "services": ["Deep clean", "Oven refresh"], "price": "" } }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is a trimmed version of the request behind the second image above: a list for the loop, an empty price for the condition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the analogy breaks
&lt;/h2&gt;

&lt;p&gt;Programming principles make a design &lt;em&gt;repeatable&lt;/em&gt;. They do not make it &lt;em&gt;good&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;A loop does not know that nine speakers is too many for one square. A condition does not know that the post looks empty once the badge is gone. A formula can compute a lighter brand colour, but it cannot tell you whether that colour feels right next to the photo. Those are still judgement calls, and they still belong to whoever is designing.&lt;/p&gt;

&lt;p&gt;What the structures do is move that judgement to the right moment. You decide once how the design should behave across every version, instead of deciding forty times, tired, at copy twenty-six.&lt;/p&gt;

&lt;p&gt;I would like to hear from both sides of this. If you are a designer who started writing code, or a developer who ended up making graphics, which idea crossed over first for you?&lt;/p&gt;

</description>
      <category>design</category>
      <category>webdev</category>
      <category>programming</category>
      <category>showdev</category>
    </item>
    <item>
      <title>The 7 formulas I put in every design</title>
      <dc:creator>Izuorah Dubem kizito</dc:creator>
      <pubDate>Sat, 14 Nov 2026 15:36:08 +0000</pubDate>
      <link>https://dev.to/dubemkizito/the-7-formulas-i-put-in-every-design-1ig7</link>
      <guid>https://dev.to/dubemkizito/the-7-formulas-i-put-in-every-design-1ig7</guid>
      <description>&lt;p&gt;I used to finish a design and then make it again eleven times.&lt;/p&gt;

&lt;p&gt;Same card, different customer name. Same banner, the client's orange instead of our purple. Same certificate, except this person's name is thirty-four characters long and now nothing fits.&lt;/p&gt;

&lt;p&gt;None of that is design. It is typing, with a layout tool open.&lt;/p&gt;

&lt;p&gt;What changed it for me was treating a design the way I would treat a spreadsheet. A cell in a spreadsheet is either a value or a formula. A layer in a design can be the same. The headline is not "Summer sale". The headline is &lt;em&gt;whatever the headline is this time&lt;/em&gt;, and the colour behind it is &lt;em&gt;a quiet version of whatever the brand colour is this time&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Here are two renders of one template. Between them I changed a brand name, one colour and the text. I did not touch a single layer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2fhfw35y53uz4jmqmn32.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2fhfw35y53uz4jmqmn32.png" alt="The template rendered for an orange brand, with a summary line" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft6ifds7xlvpplqoz668w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft6ifds7xlvpplqoz668w.png" alt="The same template rendered for a green brand, with no summary line" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Look at what moved on its own. The highlight behind the last word, the icon tile, the section label and the arrow all followed the one colour. The second version has no summary, so that line is gone and nothing is left holding its place. The breadcrumb went from two items to one.&lt;/p&gt;

&lt;p&gt;That template uses four functions. These are the seven kinds of formula I reach for, in the order I usually add them. The syntax is from &lt;a href="https://bannx.com" rel="noopener noreferrer"&gt;bannx&lt;/a&gt;, the tool I build and use, but the ideas work anywhere a design tool lets you bind a property to an expression.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The fallback: no layer is ever empty
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ use(headline, 'Your headline here') }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;use&lt;/code&gt; returns the first value that exists. If a headline was passed in, you get it. If not, you get the placeholder.&lt;/p&gt;

&lt;p&gt;It reads as a small thing. It is the reason a template survives contact with real data. Every variable I declare gets a fallback on day one, and they chain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ use(brand.logos.logo, brand.logos.icon) }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full logo if there is one, the icon if there is not. The person filling in the template never sees a broken image, and I never get the message that starts with "quick question about the logo".&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The condition: layers that know when to leave
&lt;/h2&gt;

&lt;p&gt;A fallback fills a gap. Sometimes the right answer is for the gap not to exist.&lt;/p&gt;

&lt;p&gt;Every layer can carry a condition. Mine are usually one word long:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;isDefined(page.description)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No description, no layer. Because the layout around it stacks automatically, everything below moves up. That is what happened to the summary line in the green render above.&lt;/p&gt;

&lt;p&gt;Before this I kept two versions of most templates: "with subtitle" and "without subtitle". Now the template makes that decision per render.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. One colour in, a whole palette out
&lt;/h2&gt;

&lt;p&gt;This is the one that made me stop picking colours.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ alpha(brand.colors.primary, 0.15) }}
{{ mix(brand.colors.primary, '#ffffff', 0.5) }}
{{ tint(brand.colors.primary, 0.9) }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The icon tile is the brand colour at low opacity. The label is the brand colour mixed toward white. A pale panel is a tint. I choose the &lt;em&gt;relationships&lt;/em&gt; once. The brand supplies the one real colour, and the rest follows.&lt;/p&gt;

&lt;p&gt;When a client's orange arrives, I change one value and the whole design is theirs. I do not go hunting for the eleven places I used a lighter purple.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Text that stays readable on a colour you have not seen yet
&lt;/h2&gt;

&lt;p&gt;A button in the brand colour needs a label. White works on navy. White on yellow is unreadable. I will not be there when the yellow brand shows up, so the layer decides:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ isDark(brand.colors.primary) ? '#ffffff' : '#000000' }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the background is dark, use white text. Otherwise use black. There is also &lt;code&gt;contrast(a, b)&lt;/code&gt;, which returns the actual contrast ratio between two colours, for when you want to be strict about the 4.5 that accessibility guidelines ask for.&lt;/p&gt;

&lt;p&gt;It is one line, and it removes a whole category of "looks great in the mockup, illegible in production".&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Lists: draw one row, get all of them
&lt;/h2&gt;

&lt;p&gt;Design one row. Point it at a list. You get a row per item.&lt;/p&gt;

&lt;p&gt;That is how the breadcrumb above works, and it is how I build speaker line-ups, price tables and feature lists. The list can also come from a formula. My favourite:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;calendarMonthSlots(year, month, 1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That returns 42 cells: a full month laid out in weeks starting on Monday, with blanks where the month has not started yet. One designed day cell, two numbers in, any month of any year out. I have not drawn a calendar grid by hand since.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Numbers that add themselves up
&lt;/h2&gt;

&lt;p&gt;Invoices, receipts, order summaries. The total should never be typed by a person.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ money(sumItems(items, 'amount') * (1 + toNumber(taxRate, 0) / 100), currency) }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read it from the inside out. Add up the &lt;code&gt;amount&lt;/code&gt; of every item. Apply the tax rate, or zero if nobody gave one. Format the result as money in the right currency.&lt;/p&gt;

&lt;p&gt;The part I like most is that &lt;code&gt;sumItems&lt;/code&gt; accepts messy input. "$1,234.50" as a string adds up correctly. Real data arrives looking like that, and the design should cope rather than print &lt;code&gt;NaN&lt;/code&gt; on a customer's invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Randomness that holds still
&lt;/h2&gt;

&lt;p&gt;Perfectly aligned stickers look machine-made. A few degrees of tilt fixes that.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ randomFloat(-3, 3, 'sticker-' + itemIndex) }}deg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The third argument is a seed. With the same seed you get the same "random" number every time, so the tilt does not reshuffle whenever I touch something else. Each item in a list has its own index, so each gets its own angle. It looks hand-placed, and it renders identically today and next month.&lt;/p&gt;

&lt;h2&gt;
  
  
  A bonus one, for motion
&lt;/h2&gt;

&lt;p&gt;When the design moves, time is just another variable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ slice(headline, 0, floor(clamp(($time - 0.4) / 1.2, 0, 1) * len(headline))) }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is a typewriter. It shows more of the headline as time passes, starting at 0.4 seconds and finishing 1.2 seconds later. It works on any headline of any length, because the formula asks how long the headline is instead of assuming.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rules I ended up with
&lt;/h2&gt;

&lt;p&gt;After a lot of templates, a few habits stuck.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Design the worst case first.&lt;/strong&gt; I set the longest name, the biggest number and the missing logo before I make anything look nice. A layout that survives those survives everything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every variable gets a default.&lt;/strong&gt; A template that renders nothing without input is a template nobody can preview.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One line or it becomes a variable.&lt;/strong&gt; If a formula needs a comment to explain it, I move the hard part into a named variable. &lt;code&gt;isOnSale&lt;/code&gt; is easier to read in six months than the comparison it stands for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Formulas describe relationships, not values.&lt;/strong&gt; "40% of the brand colour" will still be right next year. "#E9D8FD" will not.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it changed
&lt;/h2&gt;

&lt;p&gt;I make fewer files. One template with seven small formulas replaces a folder of near-duplicates, and the duplicates were where the mistakes lived: the old price left in version nine, the logo nobody updated in version four.&lt;/p&gt;

&lt;p&gt;The work feels different as well. I spend my time deciding how things relate, which is the part of design I actually enjoy, and none of it retyping names.&lt;/p&gt;

&lt;p&gt;If you already do this in your own tool, I would like to know which formula you could not live without. Mine is the first one. It is the least clever and it has saved me the most.&lt;/p&gt;

</description>
      <category>design</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>I gave AI agents a design tool. Here is what they got wrong.</title>
      <dc:creator>Izuorah Dubem kizito</dc:creator>
      <pubDate>Sat, 14 Nov 2026 15:29:07 +0000</pubDate>
      <link>https://dev.to/dubemkizito/i-gave-ai-agents-a-design-tool-here-is-what-they-got-wrong-27c6</link>
      <guid>https://dev.to/dubemkizito/i-gave-ai-agents-a-design-tool-here-is-what-they-got-wrong-27c6</guid>
      <description>&lt;p&gt;The cover image of this post was made by an AI agent with one tool call. No Figma, no headless Chrome, no screenshot.&lt;/p&gt;

&lt;p&gt;The first attempt came back with another company's logo in the corner.&lt;/p&gt;

&lt;p&gt;Nothing crashed. The call returned &lt;code&gt;200&lt;/code&gt;, a URL and a charge of one credit. The template was attached to a sample brand I had forgotten about, the agent never checked, and the result looked perfectly professional and completely wrong.&lt;/p&gt;

&lt;p&gt;That is the whole problem with giving agents a design tool, in one render. I have spent the last few months building an MCP server for &lt;a href="https://bannx.com" rel="noopener noreferrer"&gt;bannx&lt;/a&gt;, a tool that renders templates into PNGs, PDFs and MP4s. Around 40 tools, driven by Claude Code, Cursor and Codex. These are the six things agents got wrong, and what I changed in the server each time.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Agents are bad at markup, so I stopped accepting it
&lt;/h2&gt;

&lt;p&gt;My first instinct was the obvious one: let the model write HTML or SVG and render that. It demos well and it falls apart on the second edit. The agent rewrites the whole document to move one headline, loses a layer on the way, and you cannot tell what changed.&lt;/p&gt;

&lt;p&gt;So the server takes no markup at all. A design is a document of nodes, and the agent edits it with a batch of operations:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"templateId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"66f1…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"operations"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"op"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"updateScene"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"sceneIndex"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"patch"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"fill"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#0f172a"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"op"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"addNode"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"props"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"{{ use(headline, 'Your headline here') }}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;280&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"h"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"fontSize"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;72&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"fill"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#ffffff"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"align"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"center"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two rules made this workable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;All or nothing.&lt;/strong&gt; The batch is validated first. If op 3 is wrong, nothing is written, and the error says so: &lt;code&gt;op 3 (addNode) props.w: …&lt;/code&gt;. An agent can fix a named op. It cannot fix "something went wrong".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;dryRun: true&lt;/code&gt;.&lt;/strong&gt; The agent can ask what a batch would do before it does it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Small diffs, named failures. It is the same reason we review pull requests instead of whole repositories.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Agents invent IDs
&lt;/h2&gt;

&lt;p&gt;Give a model a node called &lt;code&gt;headline&lt;/code&gt; and it will happily address &lt;code&gt;headline-2&lt;/code&gt; next, a node that has never existed.&lt;/p&gt;

&lt;p&gt;Node ids are now opaque 8-character strings, and they are only valid if they came from a snapshot of the document. There is nothing to guess, so the agent has to read before it writes. For building several nodes in one call, new nodes can carry a &lt;code&gt;ref&lt;/code&gt; that later operations in the same batch point at, so the agent never needs an id it has not been given.&lt;/p&gt;

&lt;p&gt;If your tool has identifiers, make them unguessable. A readable id is an invitation.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The worst bug is the one that returns 200
&lt;/h2&gt;

&lt;p&gt;A template has variables: &lt;code&gt;title&lt;/code&gt;, &lt;code&gt;price&lt;/code&gt;, &lt;code&gt;photo&lt;/code&gt;. You declare them, bind them to layers, and callers pass values at render time.&lt;/p&gt;

&lt;p&gt;When I audited our public gallery, 3 of 21 templates declared variables that no layer actually read. Every render succeeded. Every render ignored the caller's data and returned the sample design. Nobody got an error, so nobody noticed.&lt;/p&gt;

&lt;p&gt;From the agent's side this is a perfect crime. It declared the variable, the call succeeded, the image looked good, task complete.&lt;/p&gt;

&lt;p&gt;The fix was not a stricter error. It was making the response talk back. Create and edit calls now return the list of declared variables that nothing reads, as warnings, in the same reply. The agent sees it at the exact moment it can still do something about it.&lt;/p&gt;

&lt;p&gt;An agent will not go looking for problems. Put them in the result it is already reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Your output schema is a contract too
&lt;/h2&gt;

&lt;p&gt;This one touched billing, which is why I remember it.&lt;/p&gt;

&lt;p&gt;MCP tools can declare an output schema. Strict clients validate the result against it. I added two fields to the render result, &lt;code&gt;creditsCharged&lt;/code&gt; and &lt;code&gt;balanceAfter&lt;/code&gt;, and production was still advertising the older schema.&lt;/p&gt;

&lt;p&gt;So the render ran, the file was created, the credit was most likely charged, and then the client rejected the reply with &lt;code&gt;data must NOT have additional properties&lt;/code&gt;. The agent never saw the URL. From its point of view the tool was broken. From the user's point of view they paid for nothing.&lt;/p&gt;

&lt;p&gt;I had tests for the handler. I had no test where a real MCP client validated a real reply. Now there is one, and it is the test I would write first if I started again.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Nobody reads your tool descriptions the way you hope
&lt;/h2&gt;

&lt;p&gt;I started by putting everything in the tool descriptions: the coordinate system, the node types, how variables bind. Descriptions are loaded into context on every session whether the agent needs them or not, and long ones get skimmed like terms of service.&lt;/p&gt;

&lt;p&gt;What works better:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Short descriptions&lt;/strong&gt; that say what the tool is for and when to call it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A &lt;code&gt;get_guide&lt;/code&gt; tool&lt;/strong&gt; that returns the long-form manual by topic. The agent pays for those tokens only in the sessions that design something.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server instructions with an order of work.&lt;/strong&gt; Read the guide, resolve the brand, create or edit, read the warnings, then render. Agents follow a numbered sequence far more reliably than they follow advice.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Related: the expression language inside templates has no method calls. It is &lt;code&gt;slice(list, 0, 3)&lt;/code&gt;, never &lt;code&gt;list.slice(0, 3)&lt;/code&gt;. Models write the JavaScript version every single time unless the instructions say otherwise in one blunt sentence. So they do.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Make the dangerous calls boring
&lt;/h2&gt;

&lt;p&gt;Agents are confident. That is fine for adding a rectangle and less fine for deleting a customer's template or posting to their LinkedIn.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every tool carries MCP annotations (read, write, destructive), so a client that asks for confirmation only asks when it matters.&lt;/li&gt;
&lt;li&gt;Deleting a template requires &lt;code&gt;confirmName&lt;/code&gt;, the template's exact current name. A wrong name deletes nothing and the error states the name it expected. The agent has to look at the thing before it destroys it.&lt;/li&gt;
&lt;li&gt;The tools that post to social accounts are opt-in per API key. A key cannot post publicly unless someone ticked that box on purpose.&lt;/li&gt;
&lt;li&gt;Every render result says what it cost and what balance is left. An agent that can see the meter spends differently from one that cannot.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I have not solved
&lt;/h2&gt;

&lt;p&gt;The logo on my cover.&lt;/p&gt;

&lt;p&gt;The agent cannot see. It can render an image and get a URL back, but nothing in that reply says "this text overflows its box" or "this is white on pale yellow" or "that is not your brand". A human spots it in half a second.&lt;/p&gt;

&lt;p&gt;The next thing I am building is a check tool that returns design problems the way a linter returns code problems: contrast below 4.5:1, text clipped at its longest value, a raw hex colour where a brand token exists. Rule, node, suggested fix. Until then, the honest state of agent-made design is: fast, cheap, and needs a look before it ships.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The server speaks stateless Streamable HTTP, so the config is a URL and a key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"bannx"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://bannx.com/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer YOUR_API_KEY"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the actual call that produced the cover above, on the second try:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"templateId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"format"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"png"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"size"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1000x420"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"scale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"variables"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"page"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"I gave AI agents a &amp;lt;mark&amp;gt;design tool&amp;lt;/mark&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Here is what they got wrong."&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No agent? The same render is one POST:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST https://bannx.com/api/v1/templates/TEMPLATE_ID/render \
  -H &lt;span class="s2"&gt;"Authorization: Bearer YOUR_API_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{ "format": "png", "variables": { "title": "Summer sale" } }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is a free tier, and the &lt;a href="https://bannx.com/docs/integrations/mcp" rel="noopener noreferrer"&gt;MCP docs&lt;/a&gt; list every tool.&lt;/p&gt;




&lt;p&gt;If you have built an MCP server: what did agents get wrong with yours? I am especially curious whether anyone has a good answer to the "it cannot see its own output" problem.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Bannx — High-Volume Banner, Ad &amp; PDF Automation for Developers and Designers</title>
      <dc:creator>Izuorah Dubem kizito</dc:creator>
      <pubDate>Tue, 16 Jun 2026 12:32:10 +0000</pubDate>
      <link>https://dev.to/dubemkizito/bannx-high-volume-banner-ad-pdf-automation-for-developers-and-designers-b71</link>
      <guid>https://dev.to/dubemkizito/bannx-high-volume-banner-ad-pdf-automation-for-developers-and-designers-b71</guid>
      <description>&lt;p&gt;If you've ever had to generate hundreds of social media banners, OG images, or PDF certificates programmatically — you know how painful that workflow can get. Stitching together Canvas, Puppeteer, or headless Chrome just to render a templated image is a lot of overhead for what should be a straightforward task.&lt;/p&gt;

&lt;p&gt;That's exactly the problem &lt;strong&gt;&lt;a href="https://bannx.com/" rel="noopener noreferrer"&gt;Bannx&lt;/a&gt;&lt;/strong&gt; is built to solve.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Bannx?
&lt;/h2&gt;

&lt;p&gt;Bannx is a high-volume banner, ad, and PDF automation platform. It combines a visual template editor with a developer-friendly REST API, so designers can build beautiful templates and developers can render them at scale — no browser required.&lt;/p&gt;

&lt;p&gt;Think of it as the missing link between your design system and your backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🖼️ Visual Template Editor
&lt;/h3&gt;

&lt;p&gt;Bannx comes with a full-featured editor where you can create templates for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Social media graphics (Instagram, Twitter/X, LinkedIn)&lt;/li&gt;
&lt;li&gt;OG images for blogs and articles&lt;/li&gt;
&lt;li&gt;Ad banners&lt;/li&gt;
&lt;li&gt;E-commerce assets (product cards, order confirmations)&lt;/li&gt;
&lt;li&gt;Certificates and branded PDFs&lt;/li&gt;
&lt;li&gt;and more...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Variables can be bound to any element in the template, making every design data-driven from the start.&lt;/p&gt;

&lt;h3&gt;
  
  
  ⚡ REST API for Rendering
&lt;/h3&gt;

&lt;p&gt;Once your template is ready, rendering it is a single HTTP request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://bannx.com/api/render &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer YOUR_API_KEY"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{ "pageId": "PAGE_ID", "format": "png" }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You get back a hosted URL and metadata — ready to display, store, or pass downstream. You can also stream raw binary output with &lt;code&gt;"output": "binary"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Supported export formats: &lt;strong&gt;PNG, JPEG, SVG, WebP, PDF&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  📦 Bulk Generation via CSV
&lt;/h3&gt;

&lt;p&gt;Need to generate 10,000 personalized certificates or product cards? Upload a CSV and Bannx handles the rest. Each row maps to a set of variable overrides — no scripting required.&lt;/p&gt;

&lt;h3&gt;
  
  
  🧩 Dynamic Links &amp;amp; Variables
&lt;/h3&gt;

&lt;p&gt;Templates support per-request variable overrides, so you can pass data directly in the API call without modifying the template. Combined with &lt;strong&gt;template expressions&lt;/strong&gt; (functions and conditional logic built into the binding layer), you can build surprisingly complex output from a single template.&lt;/p&gt;

&lt;h3&gt;
  
  
  🤖 MCP Server for AI Agents
&lt;/h3&gt;

&lt;p&gt;One of the more forward-looking features: Bannx ships with an &lt;strong&gt;MCP (Model Context Protocol) server&lt;/strong&gt;, which means AI coding agents like Claude, Cursor, or Codex can generate design assets natively as part of an agentic workflow. This is a big deal for teams building AI-powered content pipelines.&lt;/p&gt;

&lt;h3&gt;
  
  
  ☁️ BYO Storage
&lt;/h3&gt;

&lt;p&gt;On Team and Scale plans, you can connect your own &lt;strong&gt;AWS S3&lt;/strong&gt; or &lt;strong&gt;Google Cloud Storage&lt;/strong&gt; bucket. Renders go straight to your infrastructure — no vendor lock-in on the asset side.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔗 Webhooks
&lt;/h3&gt;

&lt;p&gt;Fire callbacks after a render completes, when an upload finishes, or to log events. Great for integrating Bannx into larger pipelines (think: Zapier, n8n, or your own event bus).&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing at a Glance
&lt;/h2&gt;

&lt;p&gt;Bannx uses a credit-based model where each image render or PDF page = 1 credit.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Credits/mo&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;th&gt;Highlights&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;Great for testing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Starter&lt;/td&gt;
&lt;td&gt;1,000+&lt;/td&gt;
&lt;td&gt;from $15/mo&lt;/td&gt;
&lt;td&gt;Individuals &amp;amp; side projects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team&lt;/td&gt;
&lt;td&gt;25,000+&lt;/td&gt;
&lt;td&gt;from $95/mo&lt;/td&gt;
&lt;td&gt;Collaboration + BYO storage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scale&lt;/td&gt;
&lt;td&gt;250,000+&lt;/td&gt;
&lt;td&gt;from $350/mo&lt;/td&gt;
&lt;td&gt;High-volume production&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Who Is This For?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Developers&lt;/strong&gt; building content pipelines, SaaS products, or internal tooling that needs to generate visual assets programmatically. If you've ever reached for Puppeteer just to screenshot a styled HTML template, Bannx is a cleaner path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Designers&lt;/strong&gt; who want their templates to actually be used at scale — without handing off a Figma file and hoping engineering implements it faithfully. You own the template; the API does the rest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full-stack teams&lt;/strong&gt; that need both a great editor &lt;em&gt;and&lt;/em&gt; a solid API. Bannx doesn't force you to choose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Sign up for a free account at &lt;a href="https://bannx.com/" rel="noopener noreferrer"&gt;bannx.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Create or pick a template from the library&lt;/li&gt;
&lt;li&gt;Generate an API key under &lt;strong&gt;Settings &amp;gt; Space &amp;gt; Developers&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Make your first render with a simple POST request&lt;/li&gt;
&lt;li&gt;Check out the &lt;a href="https://bannx.com/docs/" rel="noopener noreferrer"&gt;full API docs&lt;/a&gt; for rendering guides, variable overrides, webhooks, and MCP integration&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;Have you tried Bannx or something similar in your stack? I'd love to hear how your team handles programmatic image generation — drop a comment below!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>design</category>
      <category>api</category>
      <category>automation</category>
    </item>
    <item>
      <title>10 New Year Resolutions for Web Developers: A Recommendation To Self</title>
      <dc:creator>Izuorah Dubem kizito</dc:creator>
      <pubDate>Thu, 03 Jan 2019 07:08:50 +0000</pubDate>
      <link>https://dev.to/dubemkizito/10-new-year-resolutions-for-web-developers-a-recommendation-to-self-4jkf</link>
      <guid>https://dev.to/dubemkizito/10-new-year-resolutions-for-web-developers-a-recommendation-to-self-4jkf</guid>
      <description>

&lt;p&gt;So is anew year, new chapter new everything. You might as well pick up a new toolkit to aid your workflow this year. Below are some of my recommendations to myself most especially for what I am resolute to imbibe in my work this year. Stay stunned to see if you find something useful to you own workflow.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Keep a Utility Library or Frameworks&lt;br&gt;
I just created the word “utility library” but to me what it means is a compilation of code, files or tools peculiar to your own workflow. It could be in form of a folder containing your common CSS starter files, your basic html layouts for web-page sections or even a library of common JavaScript functions peculiar to you or your team. Basically what I am saying is that inefficiencies that come from rewriting the same code for every project needs to be eliminated in order to save you time that can be directed to other activities. For example always writing: console.log(‘string’) 100 times, when you could create a function called log and pass it your string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose Your Preferred Web Development Tools and Stick by Them&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is important because very often we as web developers get overwhelmed by the humongous amount of frameworks, libraries and programming languages that all promise to be the best at what they do and ina bid to choose the best of the available options we become paralyzed and never start that project which we would love to deploy simply because we cant make up our minds whether to use vue.js or react. I love vue.js by the way. From my observation I have found that all the various options available for web development whether front-end or back-end can get you to a decent MVP for what ever you are making. Therefore it is better to build what you want and discover you made a wrong choice of technology stack while building a successful product than never starting something because you are seeking the best option.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Leave the Scratch Mentality&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I have nothing against starting your project from scratch or writing all the JavaScript config for a webpack project when you can just clone a GitHub repo, but it is really not the best approach in a result oriented system which is what the real world is. Nobody or at least your end user does not care how many lines of code you had to go through to get them that great feature they have being asking for, they just want something that works. What do you gain from writing your CSS from scratch when your colleague presents a better work done using bootstrap in half the time. I am just saying its time to up your game and use as many opensource tools available to you so you can get your product out there to your customers. Don’t keep your solutions to people’s problems away for too long just because you cant get your self to use bootstrap. Shame on you.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Take a Design Course&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These days the gap between developer and designer is closing even more rapidly as users are making decisions heavily based their visual satisfaction. You might say, designing is not for you let me stick to code but really you never know, you might actually have an eye for design which would be valuable to you and your team. It would also help you relate better with you designer colleges. What if you are a solo developers, try making designer friends or take a design course on Udemy. For example if you could make a super functional button, it wouldn't hurt to find out how a supper cool button looks like. I still see solo developers who give no consideration to what their applications look simply because it works. What harm can “it works and it looks good” do.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Build Something Useful&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;As developers I believe we truly have the power to bring change to the word especially because of this age of heavy dependence on the internet and technology. We could make an app or a website that solves peoples problems. For example make a website for fundraising, make an app to help people stay healthy or write code that people can clone from GitHub. Whatever it is, seek time to create something that truly adds value to peoples life and who knows, you might make a fortune out of it. You don’t have to stress if you don’t have an idea right now, but keep it in mind that you want to add value to people with your work and sooner or later you will find yourself doing it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Take Care of Your Health Mehn!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Because of the nature of our work, we usually can’t help not living a sedentary lifestyle and eat unhealthy food all in the name of stress eating or something. We must take out time to exercise, eat healthy foods and rest. One very important part of our health is our our eye health. Long hours consuming the rays from our laptop screen can have side effects to our eyes (in my experience). So it is important to invest in computer glasses, anti-reflective lenses, and regular eye checkups. Apps like eyeleo can help you remember to take time off from your screen and use apps like f.lux or switch on night mode on your windows PC filter out the blue rays from the screen. In short, our health is what enables us to do our work longer and better, so we must find balance between work and health, but know that health comes first.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Teach Someone&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When I started learning to code, I would go on stack exchange to ask questions and I would find one arrogant person drop me a message telling me how I am not supposed to ask that kind of question, without giving me any suggestions as to where I can get help (Why border to waste that energy typing if you cannot provide solution as well). What I am saying is that as intermediate or Pros we often get carried away with our skills (in quote) that we look down on beginners, but really everyone started from there. I teach people as much I can because apart from the fact that I enjoy it, I often get to learn new things, see things from a different light or have a whole new understanding about something.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use Git and Embrace Team Work&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I have spent a long period of my coding years not using Git or Github for my projects and I have regretted every bit of it. Why do I say so. Well, Git has a way of making your workflow easier to comprehend. For example I used to create multiple folders for version control but after a friend introduced me to Git workflows, my projects have never remained the same. If you work with a team, using Git would help your team so much you wouldn't believe it. Also if you would like your work to be private you can use Gitlab or Bitbucket to create private repositories or projects for free.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Optimize Your Workflow&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A lot of teaching about productivity have to do with putting in more time, but I believe having the right workflow and optimizing it can bring you better results. Workflow is very important to what we do in web development as most of our work follows the same pattern and require similar approach to achieving results. So it makes sense to ask the question “How can it be done better” before, during and after every project. Optimizing your workflow can come in different ways. For example, Getting a more comfortable chair, buying a gaming mouse with extra buttons, getting you preferred keyboard, paying for that premium software package that would make you 50% more productive, using open source frameworks, finding the best time to work, getting more rest, organizing your system project files, documentation etc. Whatever it is, make sure you are always seeking the best way to go about your work so you don’t cheat yourself out of the benefits of optimization. For me I always seek out better approaches to what I am already good at.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make that Leap&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One thing we all have in come as people, is we have desires, dreams and goals to reach, but we always allow considerations, fears and obstacles prevent us from getting to where we so desire. For web developers, your considerations might be whether you are using the right framework or hosting plan or programming language. Your fears might be asking for a raise or starting your own company. Obstacles might be your current skill set or economic atmosphere. Whatever the case may be, you have to make a commitment to fight through the challenges and get yourself what you want from life, because you are worth it.&lt;/p&gt;

&lt;p&gt;Finally, there is no aim in making a resolution, if you don’t realize you have to be resolute about your decisions, you must be firm in take action, put in the work, and be ready to blame nobody but yourself not even the resolution, but yourself if you fail to keep your resolution. But if you put in the work, you will be very grateful by the end of the year you did. Thank you and HAPPY NEW YEAR.&lt;/p&gt;

&lt;p&gt;Checkout my website: &lt;a href="https://everblending.com/"&gt;https://everblending.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Its is not complete yet, but I wouldn't mind visitors coming in to warm it up. Keep it touch you will be reading more of me this year.&lt;/p&gt;


</description>
      <category>webdev</category>
      <category>workflow</category>
      <category>newyearresolutions</category>
    </item>
  </channel>
</rss>
