theme-factory
Produce variants of an existing Style by shifting tone (light/dark), density (compact/relaxed), or accent (palette rotation) while preserving the brand identity. Use when the user wants alternate themes derived from one brand.
- License 许可
- MIT
- 所属仓库
- clawic/Clawix
- 最近更新
- 2026-06-06
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- theme-factory
- keywords
- [ "theme", "variants", "palette", "factory", "light", "dark", "density" ]
- description
- Produce variants of an existing Style by shifting tone (light/dark), density (compact/relaxed), or accent (palette rotation) while preserving the brand identity. Use when the user wants alternate themes derived from one brand.
03 SKILL.md 正文
theme-factory
Algorithmic generation of related Styles from one source Style. Produces new Styles that share brand and voice but differ in tone or density.
Recipes
- Light / Dark inversion: swap
bgandfg. Adjustsurfaceandsurface-2to keep contrast. Recomputefg-mutedandborderto be perceptually consistent. - Density: tighten or relax
spacing.scaleby a factor (0.8 for compact, 1.25 for relaxed). Adjust typographyscaleproportionally. - Accent rotation: keep all tokens, swap
accentandaccent-2for a complementary or analogous pair from the same hue family. - Editorial / Display: keep colors, swap
typography.display.familybetween a serif and a sans of similar weight.
Procedure
- Read the source Style:
claw style get <sourceId>. - Decide the recipe based on the user's intent.
- Build the variant Style by starting from the source and overlaying the recipe's deltas. Use:
claw style create "<Source name> · Dark" --from <sourceId> - Apply the deltas to STYLE.md.
- Render a preview using a Template the source already has examples in.
- Report: the new style id and the deltas applied.
Constraints
- Never change
brand.voice,brand.do_dont, orbrand.taglines. Identity is shared across variants. - Each variant is a new Style, not a mutation of the source.
- Mention exact contrast ratios when producing a light/dark variant so the user can verify accessibility.
04 同仓库更多 Skills
visual-regression
Run and interpret Clawix UI geometry, screenshot, protected-surface, and debt-baseline checks without authorizing visual repair.
ui-performance-budget
Capture and compare Clawix UI performance budgets for critical flows before optimizing visible or runtime UI behavior.
ui-implementation
Implement functional Clawix UI wiring while respecting visual mutation boundaries, pattern contracts, protected surfaces, and debt baselines.
ui-canon-review
Review whether a Clawix UI pattern, visual decision, copy change, or component extraction belongs in canon, debt, exception, or protected-surface scope.
template-render
Render a Template + data + Style into a final artifact in one of HTML, PDF, PNG, SVG or PPTX. Use whenever the user asks for a concrete deliverable like "make me a poster", "render a card", "give me a one-pager".
surface-route-work
Work from a registered surface or transverse route by inspecting nodes, neighbors, edges, contracts, owners, tests, and gaps before editing.