Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计未展示

tooyoung%3afrontend-slidesTooyoung%3a 前端幻灯片

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

279

周安装

12

GitHub Stars

15

下载量

98
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tooyoung%3afrontend-slides(Tooyoung%3a 前端幻灯片)
来源仓库:https://github.com/shiqkuangsan/oh-my-daily-skills
仓库路径:skills/tooyoung%3Afrontend-slides
安装命令:
npx skills add https://github.com/shiqkuangsan/oh-my-daily-skills --skill tooyoung:frontend-slides
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/shiqkuangsan/oh-my-daily-skills --skill tooyoung:frontend-slides

简介

用于辅助前端页面和组件的开发与维护。

  • 适合生成或审查 React、Vue、CSS 等相关代码,整理组件结构。
  • 使用时需结合项目现有设计系统和路由方式,避免孤立片段。
  • 涉及页面改动时应配合本地预览检查视觉效果。
  • tooyoung%3afrontend-slides 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Frontend Slides

Create beautiful, single-file HTML slide presentations. Each slide fills exactly one viewport — no scrolling within slides, no build tools, no frameworks. Inspired by zarazhangrui/frontend-slides.

Output: One .html file containing all CSS, JS, and slide content inline.

Font strategy: Every theme specifies a Google Fonts / Fontshare web font AND a system font fallback stack. Web fonts enhance — they are not required. Presentations must look good offline.

Reference files contain complete code templates. Load them on-demand — only read what you need for the current task.

Core Principles

  1. One slide = one viewport. 100dvh, overflow: hidden, scroll-snap-align: start. Content that overflows → split into more slides.
  2. All sizes use clamp(). No fixed px/rem for typography or spacing. Everything scales with the viewport.
  3. Content density limits are hard rules. See the table below — never exceed them.
  4. Single-file output. Fonts via CDN <link>, everything else inline. No external CSS/JS files.
  5. Respect prefers-reduced-motion. All animations must have a reduced-motion fallback.

Viewport Fitting (Single Source of Truth)

This section is THE authority on viewport rules. Reference files do not repeat these — they assume this CSS is always present.

Required Base CSS

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100%;
}

.slide {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
}

.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 100%;
  overflow: hidden;
  padding: var(--slide-padding);
}

Required CSS Variables

:root {
  /* Typography — MUST use clamp() */
  --title-size: clamp(1.5rem, 5vw, 4rem);
  --h2-size: clamp(1.25rem, 3.5vw, 2.5rem);
  --h3-size: clamp(1rem, 2.5vw, 1.75rem);
  --body-size: clamp(0.75rem, 1.5vw, 1.125rem);
  --small-size: clamp(0.65rem, 1vw, 0.875rem);

  /* Spacing — MUST use clamp() */
  --slide-padding: clamp(1rem, 4vw, 4rem);
  --content-gap: clamp(0.5rem, 2vw, 2rem);
  --element-gap: clamp(0.25rem, 1vw, 1rem);

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 0.6s;
}

Responsive Breakpoints

/* Short viewports (< 700px height) */
@media (max-height: 700px) {
  :root {
    --slide-padding: clamp(0.75rem, 3vw, 2rem);
    --content-gap: clamp(0.4rem, 1.5vw, 1rem);
    --title-size: clamp(1.25rem, 4.5vw, 2.5rem);
    --h2-size: clamp(1rem, 3vw, 1.75rem);
  }
}

/* Very short (< 600px height) */
@media (max-height: 600px) {
  :root {
    --slide-padding: clamp(0.5rem, 2.5vw, 1.5rem);
    --content-gap: clamp(0.3rem, 1vw, 0.75rem);
    --title-size: clamp(1.1rem, 4vw, 2rem);
    --body-size: clamp(0.7rem, 1.2vw, 0.95rem);
  }
  .nav-dots,
  .keyboard-hint,
  .decorative {
    display: none;
  }
}

/* Landscape phones (< 500px height) */
@media (max-height: 500px) {
  :root {
    --slide-padding: clamp(0.4rem, 2vw, 1rem);
    --title-size: clamp(1rem, 3.5vw, 1.5rem);
    --h2-size: clamp(0.9rem, 2.5vw, 1.25rem);
    --body-size: clamp(0.65rem, 1vw, 0.85rem);
  }
}

/* Narrow viewports (< 600px width) */
@media (max-width: 600px) {
  :root {
    --title-size: clamp(1.25rem, 7vw, 2.5rem);
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.2s !important;
  }
  html {
    scroll-behavior: auto;
  }
}

Content Density Limits

Hard maximums per slide type. If content exceeds → split into multiple slides.

Slide TypeMaximum Content
Title1 heading + 1 subtitle + optional tagline
Content1 heading + 4–6 bullets OR 1 heading + 2 paragraphs
Feature Grid1 heading + 6 cards max (2×3 or 3×2)
Code1 heading + 8–10 lines of code max
Quote1 quote (max 3 lines) + attribution
Two-Column1 heading + 2 columns, each ≤ 4 bullets
Image1 heading + 1 image (max-height: min(50vh, 400px))

Slide Types

Seven standard types. See references/slide-components.md for complete HTML/CSS templates.

TypeClassUse For
Title.title-slideOpening slide, section dividers
Content.content-slideBullet points, paragraphs
Code.code-slideCode snippets with syntax highlighting
Feature Grid.grid-slideFeature cards, comparisons
Quote.quote-slideTestimonials, key statements
Two-Column.two-col-slideSide-by-side comparisons
Image.image-slideScreenshots, diagrams, photos

Theme Collection

8 curated themes across 3 categories. Each theme includes CSS variables, font pairings with system fallbacks, layout guidance, and signature element CSS.

Dark Themes → references/themes-dark.md

ThemeVibeSignature
Bold SignalConfident, high-impactColored card on dark gradient, large section numbers
Creative VoltageEnergetic, retro-modernElectric blue + neon yellow, halftone textures
Dark BotanicalElegant, sophisticatedSoft gradient circles, warm gold/pink accents

Light Themes → references/themes-light.md

ThemeVibeSignature
Notebook TabsEditorial, tactilePaper card with colored tabs, binder holes
Pastel GeometryFriendly, approachableRounded card with vertical pills on right edge
Vintage EditorialWitty, personality-drivenGeometric shapes, bold bordered CTAs, serif headlines

Specialty Themes → references/themes-specialty.md

ThemeVibeSignature
Neon CyberFuturistic, techyParticle backgrounds, neon glow, grid patterns
Terminal GreenDeveloper, hackerScan lines, blinking cursor, monospace everything

Font Fallback Strategy

Every theme has two font stacks — web (CDN) and system (offline).

ThemeWeb FontSystem Fallback
Bold SignalArchivo Black / Space GroteskImpact, Arial Black / system-ui
Creative VoltageSyne / Space MonoTrebuchet MS / Courier New, monospace
Dark BotanicalCormorant / IBM Plex SansGeorgia, Times New Roman / system-ui
Notebook TabsBodoni Moda / DM SansDidot, Georgia / system-ui
Pastel GeometryPlus Jakarta Sanssystem-ui, -apple-system
Vintage EditorialFraunces / Work SansGeorgia, Palatino / system-ui
Neon CyberClash Display / Satoshisystem-ui, -apple-system
Terminal GreenJetBrains Mono"SF Mono", "Cascadia Code", "Fira Code", monospace

When web fonts fail to load, the presentation must still look intentional — system fallbacks are chosen to preserve the theme's character.

Creation Workflow

  1. User provides: topic, audience, optional theme preference
  2. Choose theme: match audience/mood to theme vibe (see table above)
  3. Load references:

- Always: references/slide-template.md (HTML skeleton) - Always: the relevant references/themes-*.md (for chosen theme) - As needed: references/slide-components.md (for specific slide types) - As needed: references/animation-recipes.md (for advanced effects)

  1. Plan slides: outline each slide with type + key content (respect density limits)
  2. Generate: single HTML file using the skeleton, theme CSS, and component patterns
  3. Verify: every slide fits viewport, no overflow, animations have reduced-motion fallback

CSS Gotchas

Negating CSS Functions

/* WRONG — silently ignored, no console error: */
right: -clamp(28px, 3.5vw, 44px);
margin-left: -min(10vw, 100px);

/* CORRECT — wrap in calc(): */
right: calc(-1 * clamp(28px, 3.5vw, 44px));
margin-left: calc(-1 * min(10vw, 100px));

Browsers silently discard declarations with - before clamp(), min(), max().

Image Constraints

.slide-image {
  max-width: 100%;
  max-height: min(50vh, 400px);
  object-fit: contain;
  border-radius: 8px;
}

.slide-image.screenshot {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

Grid Auto-Fit

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

Effect-to-Feeling Guide

FeelingTechniques
DramaticSlow fade-ins (1–1.5s), scale 0.9→1, dark bg + spotlight, parallax
TechyNeon glow, particle canvas, grid patterns, monospace, glitch effects
PlayfulBouncy easing, large border-radius, pastels, floating animations
ProfessionalSubtle fast animations (200–300ms), clean sans-serif, minimal decoration
CalmVery slow subtle motion, high whitespace, muted palette, serif type
EditorialStrong type hierarchy, pull quotes, grid-breaking layouts, serif + sans

DO NOT USE

  • position: fixed for slides (breaks scroll-snap)
  • Fixed px / rem for typography or spacing (use clamp())
  • vh without dvh fallback (mobile address bar issues)
  • overflow: auto/scroll on .slide (breaks one-slide-per-viewport rule)
  • Google Fonts @import in CSS (use <link> in <head> for performance)
  • More than 6 feature cards per grid slide
  • Code blocks longer than 10 lines per slide

References

FileContentsWhen to Load
slide-template.mdComplete HTML/CSS/JS skeleton with navigationAlways — every presentation starts here
slide-components.md7 slide type HTML templatesAlways — for building individual slides
themes-dark.mdBold Signal, Creative Voltage, Dark BotanicalWhen using a dark theme
themes-light.mdNotebook Tabs, Pastel Geometry, Vintage EditorialWhen using a light theme
themes-specialty.mdNeon Cyber, Terminal GreenWhen using a specialty theme
animation-recipes.mdReveal, stagger, typewriter, particle effectsWhen advanced animations are needed

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.19%
按下载量换算32

Claude

29.59%
按下载量换算29

Cursor

18.17%
按下载量换算18

Gemini CLI

10.14%
按下载量换算10

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills