--- name: canvas-design description: Designs a single graphic (social post, poster, cover, icon, diagram, badge) by first writing a short art direction and then building it as clean SVG or HTML canvas that exports to PNG or PDF. Use when a user says "design a graphic for", "make me a poster", "I need an Instagram image", "create an icon set", or wants a visual without opening a design tool. --- # Visual Design Makes one finished graphic at a time. The method is direction first, construction second, so the piece looks decided instead of default. ## When to use this - One-off graphics: announcements, covers, posters, certificates, simple infographics, icons, diagrams. - Clean vector and layout work that must scale. Not for photo retouching, realistic illustration, or multi-page documents. ## Procedure 1. **Gather the brief in four lines.** Purpose and audience, exact words that must appear, size or ratio (default 1080 by 1080 for social, 1920 by 1080 for slides, A4 for print), and any brand colors or fonts. Ask for the text; never invent claims or numbers. 2. **Write the art direction** in about six sentences before drawing: the single idea, the dominant color and why, the type approach, how space is used, and what you are deliberately leaving out. Choose one clear focal point. 3. **Set the grid.** Pick margins (at least 6 percent of the shorter side), a column or baseline logic and a hierarchy of three levels: headline, support, detail. If everything is the same size, fix that now. 4. **Choose the palette and type.** Three or four colors with one strong contrast pair. One or two typefaces, with a web-safe fallback. Headline at least three times the size of the detail text. 5. **Build it in SVG** (preferred) or HTML canvas. Use a `viewBox` that matches the chosen size, group elements by layer with readable ids, keep text as live text, and define colors once at the top. Draw simple geometric forms with intent: repetition, scale contrast, alignment or deliberate asymmetry. 6. **Critique before delivering.** Squint test: is the focal point still obvious? Check alignment, even spacing, text legibility at thumbnail size, and whether anything is decoration with no job. Remove one element, then deliver. 7. **Explain how to export.** Give the file as one code block, then the steps to save it as SVG, convert to PNG at 2x, or print to PDF from a browser. 8. **Offer variations** by changing one variable at a time (color, layout, or type) rather than starting over. ## Output format - The art direction (about six sentences). - The complete SVG or HTML in a single code block. - Export steps (three lines). - Two suggested variations. ## Guardrails - Do not use clip-art cliches such as confetti, lightbulbs for ideas or handshakes. - No copied logos, mascots or recognizable characters; draw original shapes. - Keep every required word spelled exactly as supplied; proofread twice. - Keep contrast strong enough to read on a phone; avoid text over busy areas. - Say plainly when the request needs a photographer or illustrator instead. - Expect two or three rounds; improve the composition each pass rather than adding more elements. ## Quality checks Before sending, confirm each of these: - There is exactly one focal point, and it is the most important message. - Margins are equal on matching sides and the elements share a few clear alignment lines. - Every word matches the supplied text, with no invented numbers. - The headline stays legible when the image is shrunk to about 200 pixels wide. - No more than four colors and two typefaces are in use. - The SVG opens in a browser without any external file.