视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
frontend-slides【文档与办公】OpenDesign as a worked AI-workflow example: how local agents read your files and design on your desktop — concretely. Built as a decision-grade AI literacy deck for teams new to AI, leadership.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: frontend-slides en_name: "Write an AI-Workflow 101 like a Top Technology Explainer" zh_name: "像顶级技术解释者一样写 AI 工作流 101" description: | OpenDesign as a worked AI-workflow example: how local agents read your files and design on your desktop — concretely. Built as a decision-grade AI literacy deck for teams new to AI, leadership. en_description: | OpenDesign as a worked AI-workflow example: how local agents read your files and design on your desktop — concretely. Built as a decision-grade AI literacy deck for teams new to AI, leadership. zh_description: | 像顶级技术解释者一样写 AI 工作流 101——一份可商业交付的AI 素养 Deck,围绕真实主题、证据链与决策目标组织。 tags:
Zero-dependency, animation-rich HTML presentations that run entirely in the browser. Curated from the MIT-licensed zarazhangrui/frontend-slides.
Start from example.html in this plugin folder. It is the proven seed: copy its stage CSS, slide shell, and the entire SlidePresentation controller script verbatim, then replace slide content. Do not rewrite the stage system, the navigation script, or the design tokens architecture from scratch.
.deck-viewport (fills the window) wraps .deck-stage (1920×1080, transform-origin: 0 0).factor = min(innerWidth/1920, innerHeight/1080), then translate(x, y) scale(factor) to center with letterbox/pillarbox. Re-run on resize.references/viewport-base.css in the <style> block (the seed already embeds it).<section class="slide"> directly inside .deck-stage. Around 10 slides for a standard deck; split content into more slides rather than shrinking type..active / .visible classes toggling visibility, opacity, pointer-events — never display: none/block (layout classes like display: flex on children would override it and show every slide at once).←/→, ↑/↓, Space, PageUp/PageDown, Home/End.#/<index>; deep links and hashchange restore the slide..deck-controls, fixed-positioned outside the scaled stage.:root CSS custom properties; retheme by editing tokens only.#6366f1 indigo and purple-gradient-on-white clichés.references/STYLE_PRESETS.md (12 curated presets: Bold Signal, Electric Studio, Creative Voltage, Dark Botanical, Notebook Tabs, Pastel Geometry, Split Pastel, Vintage Editorial, Neon Cyber, Terminal Green, Swiss Modern, Paper & Ink) or design a custom system with the same discipline. The seed ships Bold Signal.title-card (colored focal card), agenda (numbered editorial list), section divider (giant outlined number), bullets (icon + heading + support line, max 4-6), big-stat (oversized number + side note), quote, two-column comparison, principle grid (2×2 cards), CSS bar chart (scaleY-animated bars), closing. Keep the slide-number top-left, breadcrumb nav top-right, and baseline rule bottom — that chrome is the deck's signature.
.reveal elements that transition when the slide gains .visible; stagger with transition-delay steps (~0.1s).cubic-bezier(0.16, 1, 0.3, 1)); animate only transform and opacity.prefers-reduced-motion support is mandatory (included in viewport-base.css).references/animation-patterns.md.Ask (or infer) whether the deck is speaker-led or reading-first:
.html file: all CSS and JS inline, no build step, no external JS libraries, no CDN scripts./* === SECTION NAME === */.-clamp() is silently ignored) — use calc(-1 * clamp(...)).| File | When |
|---|---|
references/STYLE_PRESETS.md | Choosing the visual direction |
references/viewport-base.css | Mandatory stage CSS — embed in full |
references/html-template.md | Controller architecture, inline-editing pattern, image pipeline |
references/animation-patterns.md | Matching effects to feeling |
Design system, fixed-stage model, presets, and workflow come from the upstream MIT-licensed zarazhangrui/frontend-slides (© 2025 Zara Zhang). The LICENSE file ships in this plugin folder; keep it in place when redistributing.