create-theme
Skill này làm gì
Skill này xây dựng một chủ đề cho slide open-slide, gồm màu sắc, phông chữ, bố cục và chuyển động, để các bộ slide sau có thể dùng chung một diện mạo. Dành cho nhà thiết kế và lập trình viên thiết lập kiểu slide.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một chủ đề slide mới với diện mạo riêng.
- ✓Khi bạn muốn rút chủ đề từ một slide hiện có hoặc từ một bộ hình ảnh.
- ✓Khi bạn muốn một file xem trước cho thấy chủ đề hoạt động trên các slide mẫu.
Liên kết skill
https://github.com/open-slide/open-slide/blob/main/packages/core/skills/create-theme/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xây dựng một chủ đề tên midnight từ ba hình ảnh tham khảo này.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill viết hai file đi cặp: một tài liệu chủ đề gồm quy tắc bảng màu, phông chữ, bố cục và chuyển động, và một slide demo nhỏ có thể chạy để xem trước chủ đề. Skill chỉ ghi vào thư mục themes.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Create a slide theme
This skill produces a theme bundle under themes/: two paired files that together describe a reusable visual identity.
themes/<id>.md— agent-facing documentation: palette, typography, layout, fixed Title/Footer/Eyebrow components, motion. This is whatcreate-slidereads when an author picks the theme.themes/<id>.demo.tsx— a runnable mini-slide (a normal slide module:export default Page[]) that demonstrates the theme on 2–3 pages. The dev UI's Themes panel loads this file and renders it as the theme's live preview.
Both files share the same stem so the runtime can pair them automatically.
A theme is distinct from a slide's design const. The theme markdown is authoring-time aesthetic direction (copied into a real slide's source by create-slide). The demo .tsx is a self-contained preview, not a real slide — it does not appear in the slides list. A per-slide const design: DesignSystem = { … } (declared at the top of slides/<id>/index.tsx) is the runtime tokens object the user can tweak from the Design panel. The markdown commits the direction; the per-slide design const makes the slide tweakable; the demo .tsx makes the theme previewable.
You only write files under themes/<id>.md and themes/<id>.demo.tsx. Never modify real slides or other configuration. The canvas / type-scale defaults that themes can override live in the slide-authoring skill — read it before writing the theme so your overrides are stated explicitly.
Step 1 — Identify the input source
A theme can be derived from any combination of three input shapes:
- Image references — paths or URLs to slide screenshots, mood-board images, brand assets.
- Free-text description — prose describing the desired palette, fonts, feel.
- An existing slide —
slides/<id>/index.tsxwhose visual identity should be lifted out into a reusable theme.
If the user's original message already specifies the inputs unambiguously, skip the question and proceed. Otherwise call AskUserQuestion (multi-select) so they can pick one or more sources, and ask follow-ups (paths, slide id, prose) only as needed.
Step 2 — Gather raw inputs
- Images: read each path with the
Readtool (it accepts images). Note dominant colors as hex, type weight/style, layout rhythm, decorative motifs, and any recurring chrome (header bar, footer line, page numbers). - Text: extract explicit tokens (hex codes, font names, motion verbs) and implicit tone words ("editorial", "playful", "brutalist"). Resolve vague language into concrete decisions before writing.
- Existing slide: read
slides/<id>/index.tsxand pull:- The
design.paletteobject (or a legacy top-of-filepaletteconst) → Palette section. design.fonts/ font constants and anyfont-sizepatterns → Typography section.- Padding / alignment patterns → Layout section.
- Recurring components (TrafficLights, Eyebrow, Footer-style helpers, WindowShell, …) → Fixed components section.
@keyframesblocks and the sharedstylesstring → Motion section.- The aesthetic feel implied by the design → Aesthetic paragraph.
- The
When inputs disagree (e.g. images use blue but the description says green), ask the user which to honor.
Step 3 — Pick a theme id
Use kebab-case, short, descriptive. Examples: editorial-noir, brutalist-mono, pastel-soft, dev-terminal. Check themes/ to avoid collisions.
Step 4 — Write themes/<id>.md
Produce a file with this exact section order. Section bodies adapt to the theme; the headings stay consistent across all themes.
---
name: <Human title, e.g. "Editorial Noir">
description: <one-line elevator pitch>
mode: <dark | light — whichever matches the palette's bg>
---
# <Theme name>
## Palette
| Role | Value | Notes |
| ------ | --------- | ------------------------------ |
| bg | `#0f172a` | page background |
| text | `#f8fafc` | primary copy |
| accent | `#fbbf24` | callouts, eyebrow, key numbers |
| muted | `#94a3b8` | secondary copy, dividers |
| ... | ... | extend as the theme requires |
## Typography
- Display font: `<stack>` — weight 800–900 for headlines.
- Body font: `<stack>` — weight 400–500.
- Webfont import (omit for system stacks): `<stylesheet URL>` — see `references/webfonts.md` in `slide-authoring` for loading rules.
- Type-scale overrides (only list
Câu hỏi thường gặp
Chủ đề có giống thiết lập thiết kế của slide không?
Không. Chủ đề đưa ra hướng đi, còn thiết lập thiết kế của từng slide là các giá trị bạn có thể điều chỉnh.
Demo có xuất hiện trong danh sách slide của tôi không?
Không. Demo chỉ là bản xem trước và được hiển thị trong bảng chủ đề.
Nó có thay đổi các slide thật của tôi không?
Không. Nó chỉ ghi các file chủ đề.
Chi tiết
Mô tả gốc của tác giả
Use this skill when the user wants to create, draft, author, or extract a slide theme in this open-slide repo. Triggers on phrases like "create a theme", "make a theme called X", "extract a theme from <slide>", "build a theme from these images". Produces two paired files under `themes/` — `<id>.md` (palette, typography, layout, fixed Title/Footer components, motion) and `<id>.demo.tsx` (a runnable demo slide that the dev-UI Themes panel previews). Do NOT use for editing real slides — only for authoring the theme bundle.
repo: open-slide/open-slide
Độ phổ biến
- Sao GitHub
- 9.6k
- Vị trí xếp hạng
- #12220
- Giấy phép
- MIT
- Cập nhật
- 29/10/2026
Bình luận
- …
Thêm skill từ kho mã này
apply-comments
9.6kGiúp agent của bạn áp dụng các nhận xét bạn để lại trên một slide trong trình soạn open-slide, thực hiện từng chỉnh sửa được yêu cầu và xóa dấu đánh dấu.
create-slide
9.6kGiúp agent của bạn soạn một slide hoặc bộ slide mới trong dự án open-slide, chọn chủ đề và viết các file trang cho bạn.
current-slide
9.6kGiúp agent của bạn tìm slide, trang và phần tử nào bạn đang xem trong trình xem open-slide, để 'trang này' luôn trỏ đúng vào trang bạn muốn.
slide-authoring
9.6kCung cấp cho agent của bạn các quy tắc kỹ thuật để viết trang open-slide, gồm kích thước canvas, thang cỡ chữ, màu sắc, hình ảnh, ghi chú và chuyển cảnh.
Skill tương tự
brand-discovery
280kGiúp xác định bản sắc thương hiệu thông qua các buổi phỏng vấn có cấu trúc. Tạo hướng dẫn đầy đủ về mục đích, đối tượng và tính cách của thương hiệu.
brand-voice
280kTạo hồ sơ viết dựa trên văn bản thương hiệu thực tế. Đảm bảo nội dung và giao tiếp giữ được phong cách nhất quán và chân thực.
design-md
260kDạy agent viết, kiểm tra và xuất tệp DESIGN.md, ghi màu, phông chữ và phong cách thương hiệu theo dạng công cụ AI đọc được.