chuspeeism/dashi-ppt-skill / skills/dashi-ppt
dashi-ppt
Flagged制作 PPT、演示文稿、幻灯片、汇报材料时使用。Dashi PPT 基于预置视觉主题组合页面,生成可离线打开、可在浏览器编辑的 HTML 演示,支持导出 PPTX / PDF 文件。
project/src/components/themes/theme01/source/slides/theme.js
View on GitHub// theme.js — shared design tokens + scoped stylesheet for the AI-funding deck.
// Standard ES module. No globals, no window registration.
//
// All CSS is scoped under `.aip-root` (never :root), and every class carries
// the `aip-` prefix, so dropping these components into another React app can
// not leak styles into the host. Import THEME for token values and THEME_CSS
// for the raw stylesheet string. Fonts (Noto Sans SC / Space Mono) are
// provided by the host document — no runtime webfont injection here.
export const THEME = {
ink: '#2b2b30',
ink2: '#56565c',
ink3: '#9a9ba4',
red: '#e8503a',
blue: '#5b8def',
green: '#46b083',
amber: '#e0a23a',
violet: '#7a5ae0',
// shared accent ordering used by charts / palettes
series: ['#5b8def', '#46b083', '#e0a23a', '#e8503a', '#7a5ae0'],
};
// hex → rgba() with alpha. Accepts #rgb or #rrggbb.
export function hexA(hex, a) {
const h = String(hex).replace('#', '');
const x = h.length === 3 ? h.replace(/./g, (c) => c + c) : h;
const n = parseInt(x, 16);
const r = (n >> 16) & 255, g = (n >> 8) & 255, b = n & 255;
return `rgba(${r},${g},${b},${a})`;
}
export const THEME_CSS = `
.aip-root{
--aip-type-display:128px; --aip-type-title:78px; --aip-type-subtitle:42px;
--aip-type-en:28px; --aip-type-body:30px; --aip-type-small:24px; --aip-type-mono:24px;
--aip-pad-x:108px; --aip-pad-top:92px; --aip-pad-bottom:84px; --aip-gap:40px;
--aip-ink:#2b2b30; --aip-ink-2:#56565c; --aip-ink-3:#9a9ba4;
--aip-red:#e8503a; --aip-blue:#5b8def; --aip-green:#46b083; --aip-amber:#e0a23a; --aip-violet:#7a5ae0;
position:relative; width:100%; height:100%; overflow:hidden;
font-family:'Noto Sans SC',system-ui,sans-serif; color:var(--aip-ink);
-webkit-font-smoothing:antialiased;
}
.aip-root *{box-sizing:border-box;}
/* backgrounds */
.aip-bg{position:absolute;inset:0;}
.aip-bg-a{background:
radial-gradient(40% 52% at 16% 20%, rgba(120,150,255,.22), transparent 70%),
radial-gradient(34% 44% at 84% 14%, rgba(255,150,195,.18), transparent 72%),
radial-gradient(42% 52% at 80% 84%, rgba(110,212,172,.20), transparent 72%),
radial-gradient(36% 46% at 22% 88%, rgba(245,202,128,.16), transparent 72%),
linear-gradient(135deg, #eef0f5, #e6e7ee);}
.aip-bg-b{background:
radial-gradient(38% 50% at 82% 18%, rgba(245,196,150,.22), transparent 72%),
radial-gradient(36% 46% at 14% 26%, rgba(150,170,255,.18), transparent 72%),
radial-gradient(44% 54% at 24% 86%, rgba(255,160,190,.16), transparent 72%),
radial-gradient(38% 48% at 84% 82%, rgba(120,210,180,.16), transparent 72%),
linear-gradient(135deg, #f1efec, #e9e8e6);}
.aip-bg::after{content:"";position:absolute;inset:0;
background:radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.55), transparent 55%);}
.aip-content{position:absolute;inset:0;
padding:var(--aip-pad-top) var(--aip-pad-x) var(--aip-pad-bottom);
display:flex;flex-direction:column;}
/* tags / pills */
.aip-tag{display:inline-block;white-space:nowrap;padding:5px 15px;border-radius:9px;color:#fff;
font-weight:700;font-size:var(--aip-type-small);letter-spacing:.04em;line-height:1.3;}
.aip-tag-red{background:var(--aip-red);} .aip-tag-blue{background:var(--aip-blue);}
.aip-tag-green{background:var(--aip-green);} .aip-tag-amber{background:var(--aip-amber);}
.aip-tag-violet{background:var(--aip-violet);}
.aip-mono{font-family:'Space Mono',monospace;color:var(--aip-ink-3);
font-size:var(--aip-type-mono);letter-spacing:.02em;margin-top:34px;}
.aip-en{font-family:'Space Mono',monospace;text-transform:uppercase;letter-spacing:.16em;
color:#aaabb4;font-size:var(--aip-type-en);}
/* slide head block */
.aip-head{display:flex;flex-direction:column;gap:14px;}
.aip-head .aip-kicker{align-self:flex-start;}
.aip-head h2{margin:0;font-size:var(--aip-type-title);font-weight:900;color:var(--aip-ink);
letter-spacing:.012em;line-height:1.05;}
.aip-head .aip-sub{display:flex;align-items:baseline;gap:20px;flex-wrap:wrap;}
.aip-head .aip-sub .aip-cn{font-size:var(--aip-type-subtitle);font-weight:700;color:#7e7f8a;}
.aip-glass{background:rgba(255,255,255,.5);backdrop-filter:blur(28px) saturate(140%);
-webkit-backdrop-filter:blur(28px) saturate(140%);
border:1px solid rgba(255,255,255,.7);border-radius:24px;
box-shadow:0 1px 0 rgba(255,255,255,.75) inset,0 24px 60px rgba(70,72,100,.13);}
/* entrance — transform-only so a frozen/paused timeline or print/reduced-motion
can never hide content; the visible end-state is the base style. */
@media (prefers-reduced-motion:no-preference){
[data-deck-active] .aip-content > *{animation:aip-rise .55s both;}
[data-deck-active] .aip-content > *:nth-child(2){animation-delay:.05s;}
[data-deck-active] .aip-content > *:nth-child(3){animation-delay:.1s;}
[data-deck-active] .aip-content > *:nth-child(4){animation-delay:.15s;}
@keyframes aip-rise{from{transform:translateY(14px);}to{transform:none;}}
}
/* Full-bleed media layers (data-aip-media-layer) sit under the typographic
layers (z 3-4), and the entrance animation above pins every .aip-content
child in its own stacking context — an empty slot's own z-index can never
escape it, so under a full-page composition (mag cover) the slot is
unclickable everywhere. While the slot is EMPTY and the deck is in edit
mode, lift the media layer above the type so click-to-upload works
anywhere; once media lands (or in view/present mode) the layer drops back
under the text. Same trade-off the theme04 hero cover shipped with, gated
tighter. */
/* !important: some layers carry an inline z-index (hero overlay pins itself
at 0); the edit-mode lift must beat inline values too. */
body[data-mode="edit"] [data-aip-media-layer]:has([data-aip-slot-empty]){z-index:6 !important;}
`;
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |