theme-factory
Use when asked to create, adapt, or apply a visual theme — color palette, typography system, component tokens — for a product, document, or presentation.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-02
- Stars
- ★ 6
- Forks
- 3
01 前言 Front Matter
- name
- theme-factory
- metadata
- { "tags": "theme, color, palette, typography, tokens, design-system, branding, visual", "version": "1.0.0", "display_name": "Theme Factory" }
- description
- Use when asked to create, adapt, or apply a visual theme — color palette, typography system, component tokens — for a product, document, or presentation.
02 资源文件 4
- 许可证LICENSE.txt11.1 KB
- 参考文档PROVENANCE.md1.2 KB
- 参考文档references/palette-construction.md1.9 KB
- 参考文档references/themes.md5.6 KB
03 SKILL.md 正文
Goal
Produce a coherent, reusable visual theme: color palette + typography + spacing tokens, ready to drop into CSS, a slide deck, or a design tool.
Steps
- Gather inputs: brand colors (hex or description), mood/adjectives (trustworthy, bold, minimal), intended medium (web, slides, doc, Slack canvas). Use known workspace facts about the product/brand if present.
- Build the palette:
- Primary (2 shades), Secondary (2 shades), Neutral scale (6 steps from near-white to near-black), Semantic (success green, warning amber, error red, info blue).
- Check contrast: primary on white must pass WCAG AA (4.5:1 body text; 3:1 large text).
- See
references/palette-construction.mdfor the generation method.
- Select type scale: 1 heading face, 1 body face (system or Google Font), 5 sizes (xs/sm/base/lg/xl), matching line-heights.
- Emit tokens in the requested format:
- CSS custom properties (
:root { --color-primary: … }) for web. - Named swatches table for slides/docs.
- CSS custom properties (
- Showcase: produce a one-page HTML preview (
assets/showcase.htmlor inline code) demonstrating the palette and type scale together. - Offer Slack delivery: post the palette as a formatted Slack message with hex swatches in code blocks, and offer to upload the HTML showcase as a file.
Pre-built themes
Ten named themes are defined in references/themes.md. Each has a 4-color palette with hex codes, a typography pairing, and recommended use cases. When a user selects or asks for one of the named themes, load the corresponding section from that file and apply it directly without re-generating the palette from scratch.
Available themes: Ocean Depths, Sunset Boulevard, Forest Canopy, Modern Minimalist, Golden Hour, Arctic Frost, Desert Rose, Tech Innovation, Botanical Garden, Midnight Galaxy.
Rules
- Never ship a palette where primary and secondary are too close in hue (ΔH < 30°) unless the brief explicitly asks for monochrome.
- Always name every token; unnamed colors are not a system.
- If the brand color fails WCAG AA, say so and propose the nearest compliant adjustment rather than silently changing it.
04 同仓库更多 Skills
demo-skill
Use when the user asks to run the demo analysis workflow on a dataset.
youtube-transcript
Use when asked to get a transcript, extract key points, or summarize a YouTube video — given a YouTube URL.
weekly-status-report
Use when asked to compile a weekly status update, team recap, or progress report from recent channel activity, tasks, or notes.
weekly-channel-digest
Use when asked to digest a channel's week, recap what happened in a channel, catch someone up on a channel, or post a recurring "this week in
thread-recap
Use when asked to recap this thread, summarize the discussion above, TL;DR a long thread, or pull the decisions and action items out of the conversation right here — work from the live Slack thread in front of you and post a tight recap back into it.
slack-block-kit
Use whenever a Slack reply carries structured data — a list of entities with attributes, key-value facts or metrics, status, comparisons, or rows that share columns. Teaches how to render that data as native Slack Block Kit (cards, fields, tables, context) instead of flat prose, by emitting a small presentation hint. Trigger this for any answer that lists things, reports numbers, shows statuses, or compares options — even when the user didn't ask for "formatting."