视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
dev-slides【文档与办公】Create developer-friendly presentations using Slidev. Build Vue-powered slides with live code execution, syntax highlighting, and diagrams. Use when a user asks to create a presentation, build slides, make a tech talk, create a slide deck, or prepare a developer presentation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Create developer-friendly presentations using Slidev, a markdown-based slide framework powered by Vue. Supports live code execution, syntax highlighting, Mermaid diagrams, LaTeX math, and speaker notes. Ideal for tech talks, team demos, and conference presentations.
When a user asks you to create a presentation or slide deck, follow this process:
Check if Slidev is available, and scaffold a project if needed:
# Check if slidev is installed
npx slidev --version 2>/dev/null || echo "Will use npx to run slidev"
# Create a new slidev project directory
mkdir -p slides-project && cd slides-project
# Initialize with a slides.md file
touch slides.md
Before writing slides, determine:
Slidev uses Markdown with YAML frontmatter and --- separators between slides.
Basic structure:
---
theme: default
title: "Your Presentation Title"
info: |
Presentation description
class: text-center
drawings:
persist: false
transition: slide-left
---
# Your Presentation Title
Subtitle or tagline
---
## Slide Title
- Bullet point one
- Bullet point two
- Bullet point three
---
Code blocks with syntax highlighting:
---
## API Example
\`\`\`typescript {2-4|6-8} {lines:true}
async function fetchUsers() {
const response = await fetch('/api/users');
const data = await response.json();
return data;
// With error handling
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
}
\`\`\`
---
The {2-4|6-8} syntax enables click-through line highlighting.
Mermaid diagrams:
---
## Architecture
\`\`\`mermaid
graph LR
A[Client] --> B[API Gateway]
B --> C[Auth Service]
B --> D[Data Service]
D --> E[(Database)]
\`\`\`
---
Two-column layouts:
---
## Comparison
::left::
### Before
- Manual deploys
- No tests
- 2-hour releases
::right::
### After
- CI/CD pipeline
- 95% coverage
- 5-minute releases
---
Speaker notes:
---
## Key Metrics
- 99.9% uptime
- 50ms p99 latency
<!--
Speaker notes go here.
Mention that we achieved this after the migration in Q3.
-->
---
Configure the frontmatter for styling:
---
theme: seriph # or: default, apple-basic, dracula, etc.
background: /cover.jpg # optional cover image
class: text-center
highlighter: shiki
lineNumbers: true
drawings:
persist: false
transition: slide-left
css: unocss
---
# Start the dev server with live preview
npx slidev slides.md --open
# Export to PDF
npx slidev export slides.md --output presentation.pdf
# Export to PNG images
npx slidev export slides.md --format png --output slides-images/
# Build as static SPA
npx slidev build slides.md
User request: "Create slides for a talk on REST API best practices"
Output: Write slides.md with approximately 12-15 slides covering:
Each slide uses appropriate Slidev features: code blocks for examples, Mermaid for architecture diagrams, two-column layouts for comparisons.
User request: "Make slides for demoing our new auth system to the team"
Output: Write slides.md with 8-10 slides:
User request: "Turn this outline into slides: Intro to Docker - what it is, images vs containers, Dockerfile basics, docker-compose, best practices"
Output: Convert each outline item into 2-3 slides with:
{lines} syntax.seriph or default theme for professional presentations.