SVG Cover Generator
Generate one self-contained SVG cover that is visually intentional, easy to edit, and ready to save as .svg.
Quick Flow
1. Confirm the target format, dimensions, text content, and mood. Read design-rules.md and layout-recipes.md before composing. Pick one layout recipe that matches the brief. Write a complete SVG with inline styles and no external dependencies. Validate the SVG structure before finishing.
Intake
If the user already gave a clear brief, do not over-question. Otherwise collect the minimum missing inputs:
- Title Optional subtitle or byline Intended use: report cover, social card, slide cover, poster, hero image Canvas size or aspect ratio Brand colors or visual mood Whether the output should feel corporate, editorial, playful, technical, minimal, or bold
Reasonable defaults:
- Use 1600x900 for general landscape covers. Use 1080x1350 for portrait social-style covers. Use 1080x1080 for square covers. Use a clean sans-serif fallback stack inside the SVG unless the user provided a font direction.
Composition Rules
- Prefer bold typography and a small number of strong shapes over busy illustration. Keep the title as the dominant element. Use 2-4 colors unless the brief asks for a richer palette. Use gradients, grids, bands, masks, or geometric clusters to create atmosphere. Keep all text editable as <text> unless the user explicitly asks for paths. Avoid embedded raster images unless the user explicitly provides one and wants it included.
Build Procedure
1. Choose a layout
Select a layout from layout-recipes.md that fits the brief.
2. Build the SVG
Always produce:
- An <svg> root with xmlns, width, height, and INLINECODE9 A background layer A content layer for title and supporting text One visual motif layer such as lines, circles, blocks, mesh-like gradients, or abstract geometry
Keep styles inline in a <style> block or on elements. Do not rely on external CSS, web fonts, or remote assets.
3. Make the output usable
- Escape XML-sensitive characters in text. Keep the hierarchy readable with grouping and brief comments when helpful. Ensure contrast is strong enough for the title to remain legible. Leave comfortable margins so text does not touch the canvas edge.
Validation
Before finishing, check:
- The file is valid XML-style SVG. INLINECODE11 matches the intended composition size. Required text from the brief is present. There are no external asset references. The artwork is self-contained and editable.
If the SVG is saved to a file, run:
CODEBLOCK0
Output
When the user asked for the SVG itself, return the full SVG in a fenced svg block.
When the user asked for a file, write the SVG to the requested path and summarize:
- dimensions chosen layout palette validation result
Resources
- Use design-rules.md for visual and technical rules. Use layout-recipes.md for composition choices. Use assets/templates/ as starting points when a blank canvas would slow things down. Use scripts/check_svg.py to catch structural mistakes before handing off the file.
SVG封面生成器
生成一个自包含的SVG封面,视觉上具有明确意图、易于编辑,并可直接保存为.svg文件。
快速流程
1. 确认目标格式、尺寸、文本内容和风格基调。 在创作前阅读设计规则.md 和布局方案.md 。 选择一个符合需求的布局方案。 编写完整的SVG代码,使用内联样式且无外部依赖。 在完成前验证SVG结构。
信息收集
如果用户已给出明确需求,请勿过度提问。否则收集以下最少缺失信息:
- 标题 可选副标题或署名 预期用途:报告封面、社交卡片、幻灯片封面、海报、英雄图 画布尺寸或宽高比 品牌色或视觉风格 输出风格应为:企业风、编辑风、趣味风、技术风、极简风或大胆风
合理默认值:
- 通用横版封面使用1600x900 竖版社交风格封面使用1080x1350 方形封面使用1080x1080 除非用户指定字体方向,否则在SVG内使用干净的无衬线后备字体栈
构图规则
- 优先使用大胆的排版和少量强形状,而非复杂的插画 将标题作为主导元素 除非需求要求更丰富的调色板,否则使用2-4种颜色 使用渐变、网格、色带、遮罩或几何簇来营造氛围 所有文本保持为可编辑的元素,除非用户明确要求使用路径 避免嵌入光栅图像,除非用户明确提供并要求包含
构建流程
1. 选择布局
从布局方案.md 中选择符合需求的布局。
2. 构建SVG
始终生成:
- 包含xmlns、width、height和viewBox的根元素 背景层 标题和辅助文本的内容层 一个视觉主题层,如线条、圆形、方块、网格状渐变或抽象几何图形
将样式内联在