visual-style

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Visual Style

视觉风格

Create, extract, and apply portable visual design systems. A
visual-style.md
file defines colors, typography, layout, motion, and mood in one file that any AI tool can consume.
创建、提取并应用可移植的视觉设计系统。
visual-style.md
文件将颜色、排版、布局、动效和氛围定义在单个文件中,可供任何AI工具调用。

Quick Reference

快速参考

ModeTriggerWhat it does
Create"Create a visual-style.md for..."Build a style from scratch via guided prompts
Extract"Extract a visual-style.md from [URL/image/video]"Analyze a source and generate a style file
Apply"Apply this visual-style.md to [tool]"Use a style with a specific connector
Gallery"Show me available visual styles"Browse and use example styles
模式触发指令功能说明
创建"为……创建visual-style.md"通过引导式提示从零构建风格
提取"从[URL/图片/视频]中提取visual-style.md"分析来源并生成风格文件
应用"将此visual-style.md应用于[工具]"将风格与特定连接器配合使用
图库"展示可用的视觉风格"浏览并使用示例风格

Default Workflow

默认工作流

Create

创建

  1. Gather vibe — Ask about mood, era, references, inspiration
  2. Define colors — Primary (2+), accent, neutrals with hex values and roles
  3. Set typography — Display, body, caption families + weight/style rules
  4. Layout & motion — Grid system, transitions, pacing
  5. Generate — Output complete
    visual-style.md
    using references/templates/minimal.visual-style.md or references/templates/full.visual-style.md
  6. Preview — Show a small HTML swatch or describe the visual result
  7. Optionally apply — Ask if user wants to use it with a connector
Questions to batch:
  1. What's the vibe? (mood keywords, era, references)
  2. Any specific colors? (or derive from the vibe?)
  3. Typography preference? (clean, editorial, technical, playful?)
  4. What tool will you use this with? (HeyGen, slides, paper.design, Figma?)
  1. 收集风格基调 — 询问氛围、时代、参考案例、灵感来源
  2. 定义颜色 — 主色(2种及以上)、强调色、中性色,包含十六进制值及用途
  3. 设置排版 — 标题、正文、说明文字的字体族 + 字重/样式规则
  4. 布局与动效 — 网格系统、过渡效果、节奏
  5. 生成文件 — 使用references/templates/minimal.visual-style.mdreferences/templates/full.visual-style.md输出完整的
    visual-style.md
  6. 预览 — 生成小型HTML样例或描述视觉效果
  7. 可选应用 — 询问用户是否要配合连接器使用该风格
批量询问的问题:
  1. 风格基调是什么?(氛围关键词、时代、参考案例)
  2. 有没有特定的颜色?(或者根据基调推导?)
  3. 排版偏好?(简洁风、编辑风、技术风、趣味风?)
  4. 你将用什么工具来使用这个风格?(HeyGen、幻灯片、paper.design、Figma?)

Extract

提取

  1. Receive source — URL, image, video, or PDF
  2. Load extractor — Read the appropriate extractor reference file
  3. Analyze — Identify colors, typography, layout, motion, mood
  4. Generate — Output complete
    visual-style.md
    with
    source_url
    set
  5. Validate — Ensure all required fields are present
  1. 接收来源 — URL、图片、视频或PDF
  2. 加载提取器 — 读取对应的提取器参考文件
  3. 分析内容 — 识别颜色、排版、布局、动效、氛围
  4. 生成文件 — 输出完整的
    visual-style.md
    并设置
    source_url
    字段
  5. 验证 — 确保所有必填字段都已填写

Apply

应用

  1. Read the style — Load the
    visual-style.md
    file
  2. Ask which connector — Or detect from context
  3. Load connector — Read the appropriate connector reference file
  4. Transform — Map style fields to tool-specific format
  5. Generate output — Produce tool-ready instructions or code
  1. 读取风格文件 — 加载
    visual-style.md
    文件
  2. 询问连接器类型 — 或从上下文自动检测
  3. 加载连接器 — 读取对应的连接器参考文件
  4. 格式转换 — 将风格字段映射为工具特定格式
  5. 生成输出结果 — 生成工具可直接使用的指令或代码

Gallery

图库

  1. List styles — Show available styles from references/gallery/
  2. Preview — Describe the selected style's visual character
  3. Load — Read the full
    visual-style.md
  4. Apply — Use with a connector
  1. 列出风格 — 展示references/gallery/中的可用风格
  2. 预览风格 — 描述所选风格的视觉特征
  3. 加载文件 — 读取完整的
    visual-style.md
  4. 应用风格 — 配合连接器使用

Format Quick Reference

格式快速参考

Required fields

必填字段

yaml
name: "Style Name"
version: "1.0"
style_prompt_short: "1-2 sentence elevator pitch"
style_prompt_full: "Detailed generation prompt — THE most important field"
colors:
  primary:
    - name: "Color Name"
      hex: "#000000"
      role: "how this color is used"
style_prompt_full
is king.
If a tool can only read one field, it reads this one. Everything else is structured data for tools that want finer control.
Full spec: references/spec.md
yaml
name: "Style Name"
version: "1.0"
style_prompt_short: "1-2 sentence elevator pitch"
style_prompt_full: "Detailed generation prompt — THE most important field"
colors:
  primary:
    - name: "Color Name"
      hex: "#000000"
      role: "how this color is used"
style_prompt_full
是核心
。如果某个工具只能读取一个字段,它会优先读取这个字段。其他所有内容都是结构化数据,供需要更精细控制的工具使用。
完整规范:references/spec.md

Reference Files

参考文件

Connectors (Apply mode)

连接器(应用模式)

ConnectorUse caseFile
HeyGen Video AgentAI video generationreferences/connectors/heygen-video-agent.md
HTML SlidesWeb presentationsreferences/connectors/html-slides.md
paper.designDesign documentsreferences/connectors/paper-design.md
FigmaDesign tool stylesreferences/connectors/figma.md
连接器适用场景文件
HeyGen Video AgentAI视频生成references/connectors/heygen-video-agent.md
HTML Slides网页演示文稿references/connectors/html-slides.md
paper.design设计文档references/connectors/paper-design.md
Figma设计工具样式references/connectors/figma.md

Extractors (Extract mode)

提取器(提取模式)

SourceFile
Website URLreferences/extractors/from-website.md
Video keyframesreferences/extractors/from-video.md
PDF / Brand guidereferences/extractors/from-pdf.md
来源文件
网站URLreferences/extractors/from-website.md
视频关键帧references/extractors/from-video.md
PDF / 品牌指南references/extractors/from-pdf.md

Gallery (pre-built styles)

图库(预构建风格)

StyleEraFile
Müller-Brockmann Swiss1950s–70sreferences/gallery/mueller-brockmann-swiss.visual-style.md
Neville Brody IndustrialLate 1980s–90sreferences/gallery/neville-brody-industrial.visual-style.md
Saul Bass Cinematic1950s–60sreferences/gallery/saul-bass-cinematic.visual-style.md
Game Boy Color1998–2003references/gallery/game-boy-color.visual-style.md
HeyGen AI Video2020sreferences/gallery/heygen-ai-video.visual-style.md
风格时代文件
Müller-Brockmann Swiss1950s–70sreferences/gallery/mueller-brockmann-swiss.visual-style.md
Neville Brody IndustrialLate 1980s–90sreferences/gallery/neville-brody-industrial.visual-style.md
Saul Bass Cinematic1950s–60sreferences/gallery/saul-bass-cinematic.visual-style.md
Game Boy Color1998–2003references/gallery/game-boy-color.visual-style.md
HeyGen AI Video2020sreferences/gallery/heygen-ai-video.visual-style.md

Templates & Spec

模板与规范

  • references/templates/minimal.visual-style.md — Bare minimum template
  • references/templates/full.visual-style.md — Complete template with all fields
  • references/spec.md — Full format specification
  • references/templates/minimal.visual-style.md — 最简模板
  • references/templates/full.visual-style.md — 包含所有字段的完整模板
  • references/spec.md — 完整格式规范

Best Practices

最佳实践

  1. style_prompt_full
    is king
    — Always usable as a standalone generation prompt
  2. One style, one file — No multi-style bundling
  3. Assets are URLs — Never embed binary data
  4. Show, don't tell — Generate previews when creating styles
  5. Opinionated defaults, flexible extensions — Core schema is fixed;
    x_*
    for tool-specific config
  1. style_prompt_full
    是核心
    — 始终可作为独立的生成提示词使用
  2. 一种风格对应一个文件 — 不要将多种风格打包在一个文件中
  3. 资源使用URL — 绝不嵌入二进制数据
  4. 可视化展示,而非文字描述 — 创建风格时生成预览效果
  5. 默认设置有主见,扩展方式灵活 — 核心 schema 固定;使用
    x_*
    前缀定义工具特定配置