marp-slide
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMarp Slide Creator
Marp 幻灯片创建工具
Create professional, visually appealing Marp presentation slides with 7 pre-designed themes and built-in best practices.
使用7款预设计主题和内置最佳实践,创建专业、视觉吸引力强的Marp演示幻灯片。
When to Use This Skill
何时使用该功能
Use this skill when the user:
- Requests to create presentation slides or Marp documents
- Asks to "make slides look good" or "improve slide design"
- Provides vague instructions like "良い感じにして" (make it nice) or "かっこよく" (make it cool)
- Wants to create lecture or seminar materials
- Needs bullet-point focused slides with occasional images
当用户有以下需求时,可使用本功能:
- 需要创建演示幻灯片或Marp文档时
- 要求“优化幻灯片外观”或“改进幻灯片设计”时
- 给出模糊指令,比如日语的“良い感じにして”(优化外观)或“かっこよく”(让它更酷炫)时
- 需要制作讲座或研讨会资料时
- 需要以项目符号为主、偶尔搭配图片的幻灯片时
Quick Start
快速入门
Step 1: Select Theme
步骤1:选择主题
First, determine the appropriate theme based on the user's request and content.
Quick theme selection:
- Technical/Developer content → tech theme
- Business/Corporate → business theme
- Creative/Event → colorful or gradient theme
- Academic/Simple → minimal theme
- General/Unsure → default theme
- Dark background preferred → dark or tech theme
For detailed theme selection guidance, read .
references/theme-selection.md首先,根据用户的需求和内容确定合适的主题。
主题快速选择规则:
- 技术/开发者内容 → tech主题
- 商务/企业内容 → business主题
- 创意/活动内容 → colorful或gradient主题
- 学术/简洁风格 → minimal主题
- 通用/不确定场景 → default主题
- 偏好深色背景 → dark或tech主题
如需详细的主题选择指南,请阅读。
references/theme-selection.mdStep 2: Create Slides
步骤2:创建幻灯片
-
Read relevant references first:
- Always start by reading for basic syntax
references/marp-syntax.md - For images: (official Marpit image syntax)
references/image-patterns.md - For advanced features (math, emoji):
references/advanced-features.md - For custom themes:
references/theme-css-guide.md
- Always start by reading
-
Copy content from the appropriate template file:
- - Default theme (most common)
assets/template-basic.md - - Minimal theme
assets/template-minimal.md - - Colorful theme
assets/template-colorful.md - - Dark mode theme
assets/template-dark.md - - Gradient theme
assets/template-gradient.md - - Tech/code theme
assets/template-tech.md - - Business theme
assets/template-business.md
-
Readfor quality guidelines
references/best-practices.md -
Structure content following best practices:
- Title slide with
<!-- _class: lead --> - Concise h2 titles (5-7 characters in Japanese)
- 3-5 bullet points per slide
- Adequate whitespace
- Title slide with
-
Add images if needed using patterns from
references/image-patterns.md -
Save towith
/mnt/user-data/outputs/extension.md
-
先阅读相关参考文档:
- 始终先阅读了解基础语法
references/marp-syntax.md - 涉及图片时:参考(官方Marpit图片语法)
references/image-patterns.md - 涉及高级功能(数学公式、表情符号)时:参考
references/advanced-features.md - 涉及自定义主题时:参考
references/theme-css-guide.md
- 始终先阅读
-
从对应模板文件中复制内容:
- - 默认主题(最常用)
assets/template-basic.md - - 极简主题
assets/template-minimal.md - - 多彩主题
assets/template-colorful.md - - 深色模式主题
assets/template-dark.md - - 渐变主题
assets/template-gradient.md - - 科技/代码主题
assets/template-tech.md - - 商务主题
assets/template-business.md
-
阅读了解质量规范
references/best-practices.md -
遵循最佳实践组织内容:
- 标题幻灯片使用
<!-- _class: lead --> - 简洁的h2标题(日语为5-7个字符)
- 每张幻灯片3-5个项目符号
- 保留足够的留白
- 标题幻灯片使用
-
如需添加图片,使用中的格式
references/image-patterns.md -
将文件保存至目录,后缀为
/mnt/user-data/outputs/.md
Available Themes
可用主题
1. Default Theme
1. 默认主题
Colors: Beige background, navy text, blue headings
Style: Clean, sophisticated with decorative lines
Use for: General seminars, lectures, presentations
Template:
template-basic.md配色:米色背景、深蓝色文字、蓝色标题
风格:简洁精致,带有装饰线条
适用场景:通用研讨会、讲座、演示文稿
模板:
template-basic.md2. Minimal Theme
2. 极简主题
Colors: White background, gray text, black headings
Style: Minimal decoration, wide margins, light fonts
Use for: Content-focused presentations, academic talks
Template:
template-minimal.md配色:白色背景、灰色文字、黑色标题
风格:极少装饰、宽边距、浅色字体
适用场景:内容导向型演示、学术报告
模板:
template-minimal.md3. Colorful & Pop Theme
3. 多彩活力主题
Colors: Pink gradient background, multi-color accents
Style: Vibrant gradients, bold fonts, rainbow accents
Use for: Youth-oriented events, creative projects
Template:
template-colorful.md配色:粉色渐变背景、多色点缀
风格:鲜艳渐变、粗体字体、彩虹色装饰
适用场景:面向青年的活动、创意项目
模板:
template-colorful.md4. Dark Mode Theme
4. 深色模式主题
Colors: Black background, cyan/purple accents
Style: Dark theme with glow effects, eye-friendly
Use for: Tech presentations, evening talks, modern look
Template:
template-dark.md配色:黑色背景、青色/紫色点缀
风格:深色主题搭配发光效果,护眼友好
适用场景:科技演示、晚间演讲、现代风格展示
模板:
template-dark.md5. Gradient Background Theme
5. 渐变背景主题
Colors: Purple/pink/blue/green gradients (varies per slide)
Style: Different gradient per slide, white text, shadows
Use for: Visual-focused, creative presentations
Template:
template-gradient.md配色:紫/粉/蓝/绿渐变(每张幻灯片不同)
风格:每张幻灯片使用不同渐变、白色文字、阴影效果
适用场景:视觉导向型、创意演示文稿
模板:
template-gradient.md6. Tech/Code Theme
6. 科技/代码主题
Colors: GitHub-style dark background, blue/green accents
Style: Code fonts, Markdown-style headers with # symbols
Use for: Programming tutorials, tech meetups, developer content
Template:
template-tech.md配色:GitHub风格深色背景、蓝/绿色点缀
风格:代码字体、带#符号的Markdown风格标题
适用场景:编程教程、技术聚会、开发者内容
模板:
template-tech.md7. Business Theme
7. 商务主题
Colors: White background, navy headings, blue accents
Style: Corporate presentation style, top border, table support
Use for: Business presentations, proposals, reports
Template:
template-business.md配色:白色背景、深蓝色标题、蓝色点缀
风格:企业演示风格、顶部边框、支持表格
适用场景:商务演示、提案、报告
模板:
template-business.mdCreating Slides Process
幻灯片创建流程
Basic Workflow
基础工作流
-
Understand requirements
- Identify content: title, topics, key points
- Determine target audience
- Assess formality level
-
Select theme
- Use quick selection rules above
- If uncertain, consult
references/theme-selection.md - Default to default theme if still unsure
-
Apply template
- Load appropriate template from
assets/ - CSS is already embedded - no external files needed
- Maintain template structure
- Load appropriate template from
-
Structure content
- Title slide: + h1
<!-- _class: lead --> - Content slides: h2 title + bullet points
- Keep titles to 5-7 characters (Japanese)
- Use 3-5 bullet points per slide
- Title slide:
-
Refine quality
- Read
references/best-practices.md - Ensure adequate whitespace
- Maintain consistency
- Keep text concise (15-25 chars per line)
- Read
-
Add images
- If needed, consult
references/image-patterns.md - Common: for side images
 - Use proper Marp image syntax
- If needed, consult
-
Output file
- Save to
/mnt/user-data/outputs/ - Use descriptive filename like
presentation.md
- Save to
-
理解需求
- 明确内容:标题、主题、核心要点
- 确定目标受众
- 评估正式程度
-
选择主题
- 使用上述快速选择规则
- 如有疑问,参考
references/theme-selection.md - 若仍不确定,默认使用default主题
-
应用模板
- 从目录加载对应模板
assets/ - CSS已嵌入文件,无需外部文件
- 保留模板结构
- 从
-
组织内容
- 标题幻灯片:+ h1标题
<!-- _class: lead --> - 内容幻灯片:h2标题 + 项目符号
- 标题控制在5-7个字符(日语)
- 每张幻灯片使用3-5个项目符号
- 标题幻灯片:
-
优化质量
- 阅读
references/best-practices.md - 确保留白充足
- 保持格式一致
- 文字简洁(每行15-25个字符)
- 阅读
-
添加图片
- 如需添加,参考
references/image-patterns.md - 常见格式:用于侧边图片
 - 使用标准Marp图片语法
- 如需添加,参考
-
输出文件
- 保存至目录
/mnt/user-data/outputs/ - 使用描述性文件名,如
presentation.md
- 保存至
Handling "Make It Look Good" Requests
处理“优化外观”类请求
When users give vague instructions like "良い感じにして", "かっこよく", or "make it cool":
-
Infer theme from content:
- Business content → business theme
- Technical content → tech or dark theme
- Creative content → gradient or colorful theme
- General → default theme
-
Apply best practices automatically:
- Shorten titles to 5-7 characters
- Limit bullet points to 3-5 items
- Add adequate whitespace
- Use consistent structure
-
Enhance visual hierarchy:
- Use h3 for sub-sections when appropriate
- Break up dense text into multiple slides
- Ensure logical flow (intro → body → conclusion)
-
Maintain professional tone:
- Match formality to content
- Use parallel structure in lists
- Keep technical terms consistent
当用户给出模糊指令,比如日语的“良い感じにして”“かっこよく”或英语的“make it cool”时:
-
根据内容推断主题:
- 商务内容 → 商务主题
- 技术内容 → 科技或深色主题
- 创意内容 → 渐变或多彩主题
- 通用内容 → 默认主题
-
自动应用最佳实践:
- 将标题缩短至5-7个字符
- 项目符号限制为3-5个
- 添加充足留白
- 保持结构一致
-
增强视觉层级:
- 必要时使用h3作为子标题
- 将密集文本拆分为多张幻灯片
- 确保逻辑流程清晰(引言 → 主体 → 结论)
-
保持专业语气:
- 语气正式程度与内容匹配
- 列表使用平行结构
- 技术术语保持一致
Image Integration
图片整合
For slides with images, consult for detailed syntax.
references/image-patterns.mdCommon patterns:
- Side image: - Image on right, text on left
 - Centered: - Centered with specific width
 - Full background: - Full-screen background
 - Multiple images: Multiple declarations
![bg]
Example lecture pattern:
markdown
undefined如需在幻灯片中添加图片,请参考中的详细语法。
references/image-patterns.md常见格式:
- 侧边图片:- 图片在右侧,文字在左侧
 - 居中图片:- 按指定宽度居中显示
 - 全屏背景:- 全屏背景图片
 - 多张图片:使用多个声明
![bg]
讲座场景示例:
markdown
undefinedSlide Title
幻灯片标题

- Explanation point 1
- Explanation point 2
- Explanation point 3
undefined
- 说明要点1
- 说明要点2
- 说明要点3
undefinedFile Output
文件输出
Always save the final Marp file to with extension:
/mnt/user-data/outputs/.mdpresentation.mdseminar-slides.mdlecture-materials.md
请始终将最终的Marp文件保存至目录,后缀为:
/mnt/user-data/outputs/.mdpresentation.mdseminar-slides.mdlecture-materials.md
Quality Checklist
质量检查清单
Before delivering slides, verify:
- Theme selected appropriately for content
- CSS theme is embedded in the file
- Title slide uses
<!-- _class: lead --> - All h2 titles are concise (5-7 chars)
- Bullet points are 3-5 items per slide
- Images use proper Marp syntax
- File saved to outputs directory
- Content follows best practices
交付幻灯片前,请验证以下内容:
- 主题选择与内容匹配
- CSS主题已嵌入文件
- 标题幻灯片使用了
<!-- _class: lead --> - 所有h2标题简洁(5-7个字符)
- 每张幻灯片的项目符号为3-5个
- 图片使用标准Marp语法
- 文件已保存至输出目录
- 内容遵循最佳实践
References
参考文档
Core Documentation
核心文档
- Marp syntax: - Basic Marp/Marpit syntax (directives, frontmatter, pagination, etc.)
references/marp-syntax.md - Image patterns: - Official image syntax (bg, filters, split backgrounds)
references/image-patterns.md - Theme CSS guide: - How to create custom themes based on Marpit specification
references/theme-css-guide.md - Advanced features: - Math, emoji, fragmented lists, Marp CLI, VS Code
references/advanced-features.md - Official themes: - default, gaia, uncover themes documentation
references/official-themes.md
- Marp 语法:- 基础Marp/Marpit语法(指令、前置内容、分页等)
references/marp-syntax.md - 图片格式:- 官方图片语法(背景、滤镜、分割背景)
references/image-patterns.md - 主题CSS指南:- 基于Marpit规范创建自定义主题的方法
references/theme-css-guide.md - 高级功能:- 数学公式、表情符号、分段列表、Marp CLI、VS Code相关功能
references/advanced-features.md - 官方主题:- default、gaia、uncover主题文档
references/official-themes.md
Quality & Selection Guides
质量与选择指南
- Theme selection: - How to choose the right theme for content
references/theme-selection.md - Best practices: - Quality guidelines for "cool" slides
references/best-practices.md
- 主题选择:- 如何根据内容选择合适的主题
references/theme-selection.md - 最佳实践:- 打造“酷炫”幻灯片的质量规范
references/best-practices.md
Templates & Assets
模板与资源
- Templates: - Starting points with embedded CSS for each theme (7 themes)
assets/template-*.md - Standalone CSS: - CSS files for reference (already embedded in templates)
assets/theme-*.css
- 模板:- 包含嵌入CSS的各主题起始模板(共7款)
assets/template-*.md - 独立CSS:- 供参考的CSS文件(已嵌入模板中)
assets/theme-*.css
Official External Links
官方外部链接
- Marp Official Site: https://marp.app/
- Marpit Directives: https://marpit.marp.app/directives
- Marpit Image Syntax: https://marpit.marp.app/image-syntax
- Marpit Theme CSS: https://marpit.marp.app/theme-css
- Marp Core GitHub: https://github.com/marp-team/marp-core
- Marp CLI GitHub: https://github.com/marp-team/marp-cli
- Marp 官方网站:https://marp.app/
- Marpit 指令:https://marpit.marp.app/directives
- Marpit 图片语法:https://marpit.marp.app/image-syntax
- Marpit 主题CSS:https://marpit.marp.app/theme-css
- Marp Core GitHub:https://github.com/marp-team/marp-core
- Marp CLI GitHub:https://github.com/marp-team/marp-cli