/use-html-theme:use-html-themefrom use-html-theme
Offer a small catalog of visual themes and apply the chosen one to every HTML page, artifact, mockup, or email generated in the session, saving the choice for the project with user consent. Use when the user asks to generate or restyle HTML and no theme has been chosen yet, or asks to preview or switch themes. Not for markdown, JSON, or non-HTML output, or when the user said [notheme].
Ships in use-html-theme. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Activate whenever the next response will produce HTML. This is the load-bearing trigger — the catalog ask happens on the HTML request, not on any earlier "can we talk about a page" conversation.
✓ "Make me a status page in HTML" ✓ "Build an HTML landing page for my app" ✓ "Convert this changelog into a single-file HTML page" ✗ "Explain how flexbox works" (no HTML output) ✗ "Write me a README" (markdown, not HTML)
Follow these steps in order. The state machine lives in
references/activation-flow.md; read it once on first activation per session.
Detect HTML-generation intent. The user asked for HTML output.
Check session state. If a theme was already chosen in this conversation, apply it silently. Skip to step 6.
Check .claude/use-html-theme.local.md. If the file exists in the cwd
and contains a valid theme name under the theme: frontmatter key, adopt
it as the session choice and skip to step 6.
Ask the user. Use AskUserQuestion if available; otherwise print a
numbered list in chat. Options:
Record choice in session memory. If a theme was picked, ask once:
"Remember this theme for the project?" If yes, write
.claude/use-html-theme.local.md (see references/persistence.md for
the file format).
Load only the chosen theme's reference files — read
references/themes/<name>/tokens.md always; read components.md if the
task needs interactive or semantic elements; read illustrations.md only
if an illustration would replace a paragraph of prose (Birchline only).
Files from non-chosen themes are never read.
Generate the HTML using those tokens and components.
Two mechanisms — see references/override-grammar.md for full grammar and
precedence. Quick reference:
| Mechanism | Example | Scope |
|---|---|---|
| Inline flag | [theme: dark], [notheme] | This request only |
| Natural language | "switch to dark", "no theme this time", "clear the theme", "list the themes", "remember this theme" | Session or request |
Precedence (highest first): inline flag → natural-language override → session
memory → persistence file → ask. (Full ordering in
references/override-grammar.md.)
tokens.md. Never invent values.<meta name="color-scheme" content="light"> in <head> AND
color-scheme: light; in :root. The dark theme emits the dark
equivalents. Without these, iOS Safari auto-darkens light pages..html with embedded
<style>. No build step, no React, no Tailwind, no external CSS files.
Google Fonts allowed.anti-patterns.md before finalizing.Before delivering any themed artifact, ask:
<head>?anti-patterns.md?.claude/use-html-theme.local.md says so. Session memory is the default.references/themes/ and a new entry in the
picker. Don't invent a theme inline.If the request is an interactive pick-and-export decision page (codesign),
the sibling html-codesign skill owns the structure, stable IDs, and
exports — this skill still supplies the visual theme (its
references/themes/<name>/codesign.md overlay when present). Don't reimplement
toggles or export bars here.
If the user asks to preview, compare, or "see the options" for the themes
(e.g. "show me the theme choices", "preview the themes", "what do they look
like?"), render ../../assets/preview-template.html — a single self-contained page
showing all three themes side-by-side as sample cards — and share it. This is
the catalog showcase; it does not change the session theme.
Shared citations in this skill are spelled relative to the citing
file. From this SKILL.md the shared target is
../../assets/preview-template.html (the plugin-level catalog
preview under plugins/use-html-theme/assets/); in-skill references/
citations (activation-flow.md, persistence.md, override-grammar.md,
and the themes// pattern) stay as-is. Cross-skill mentions
(html-codesign's theming.md, html-explain's scaffold) are
owner-qualified prose, not file reads.
~/.agents/skills/), ../
traverses through the symlink into the install tree, so the OS
resolves these citations with no extra work.realpath of this SKILL.md first, then apply the
relative citation.assets/ and skills/ — and resolve
the shared filename there.references/activation-flow.md (opens in a new tab)references/override-grammar.md (opens in a new tab)references/persistence.md (opens in a new tab)references/themes/birchline/anti-patterns.md (opens in a new tab)references/themes/birchline/codesign.md (opens in a new tab)references/themes/birchline/components.md (opens in a new tab)references/themes/birchline/example.html (opens in a new tab)references/themes/birchline/explain.md (opens in a new tab)references/themes/birchline/illustrations.md (opens in a new tab)references/themes/birchline/illustrations/01-differentiated-trio.svg (opens in a new tab)references/themes/birchline/illustrations/02-variant-grid.svg (opens in a new tab)references/themes/birchline/illustrations/03-timeline-composite.svg (opens in a new tab)references/themes/birchline/illustrations/04-format-comparison.svg (opens in a new tab)references/themes/birchline/illustrations/05-single-preview.svg (opens in a new tab)references/themes/birchline/tokens.md (opens in a new tab)references/themes/high-contrast-dark/anti-patterns.md (opens in a new tab)references/themes/high-contrast-dark/codesign.md (opens in a new tab)references/themes/high-contrast-dark/components.md (opens in a new tab)references/themes/high-contrast-dark/example.html (opens in a new tab)references/themes/high-contrast-dark/tokens.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smorinlabs/smorinlabs-skills --plugin use-html-theme3 skills in this plugin
/html-codesignBuild a self-contained HTML page for reviewing unanswered questions, choosing options, adding notes, and exporting decisions. Use when the user asks for a codesign or decision page to compare designs, plans, or priorities asynchronously. Confirm the question set before generating. Not for settled material (html-explain), decisions walked through in chat (question-walkthrough), or signing Apple binaries./html-explainBuild a read-only explainer page as one self-contained HTML file, with diagrams, figures, and small widgets where prose is not enough, confirming the target before generating. Use when an explanation should be a shareable page, such as "explain the design we landed as a page", "make an explainer for this spec", or "deep dive on X as a page". Not for inline explanations (explain) or pages that collect decisions (html-codesign).Other plugins' skills for the same job