Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Theme Skill 20261123?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kyleamathews-theme-skill-20261123)
---
name: typography-theme
description: Choose, design, or tune a typography-next theme for an app or long-form content, using its shared typography model and available inspection tools.
---
Treat font selection as a normal theme choice and typography as relationships
between roles, line heights, spacing and component geometry. Preserve the user's
visual intent and chosen component library. This skill targets the experimental
`/typography` engine; the repository's root `radix-typography` skill documents the
older Capsize Vite plugin and has a different API.
Start with the actual page and theme configuration. Identify whether the task is
primarily dense controls, long-form reading or a mixture. Reuse an existing theme
when it expresses that intent. Use named contexts for article/app differences
instead of pushing one compromise through every role. Font features, palette and
arbitrary CSS remain the host's responsibility; consider contrast and layout in
the review without inventing engine settings for them.
When MCP tools are connected, use `typography_inspect` to read current options,
role tokens, contexts, exact-face/source evidence and warnings. Use
`typography_preview` to compare a **complete configuration**, copying current
`report.input.config` before changing a setting. A missing field uses the engine
default; omitting contexts removes them. Neither tool applies changes. Without
MCP, use the public `/typography/inspection` functions or inspect the configured
engine directly. Local setup and snapshot export are in
[the MCP guide](../../docs/mcp.md). An exported file describes supplied data; it
cannot prove what a currently open app is rendering.
Tune the smallest set of relationships that explains the requested change:
- `baseFontSize` expresses a familiar Inter-reference size; `scaleRatio` changes
the hierarchy. Body, heading and code families can differ. Preserve the user's
chosen stroke weights rather than resizing bold fonts to equalize ink mass.
- `baseLineHeight` and `headerLineHeight` are authored line-height multipliers.
The heading default is 1.1. `normal` requires locally measured Inter reference
heights at the requested sizes; it does not delegate spacing to each chosen
font's metadata. Inspect missing-size evidence before making comparisons.
- `blockMarginBottom` scales the current rhythm-based prose gap. The rhythm is
derived from authored body line height. Profile bounds protect glyphs; they
should not become a second paragraph-spacing control. Inspect actual managed
composition rather than adding profile padding to every margin by hand.
- Inline code is sized automatically using exact outline anchors and a visual
balance factor. `codeBlockFontSize` and `codeBlockLineHeight` are independent
block controls. Blocks retain horizontal scrolling for long lines.
- Native adapters preserve their host's role and spacing-step relationships.
Use the adapter for Radix, MUI, Base UI or supported shadcn components and the
host's normal size/gap API. Avoid duplicating trim/protection on nested labels.
Confirm the supported variants and scoped CSS before promising integration.
In shadcn, adapter density also scales frames and icons; it is broader than
paragraph spacing. Use the relevant relationship rather than treating density
as a universal “make text compact” control.
Current size normalization uses measured lowercase anchors; a weighted apparent-
size model is still experimental. Treat visual comparison as necessary and do
not rewrite the calibration formula as part of an ordinary theme task.
Choose a profile from measured repertoire evidence when available. A font
subset label or an x-height anchor does not establish the full glyph envelope.
Keep font/resource/weight/style/instance provenance with measurements; a missing
face, reference table or envelope is unverified, not necessarily an invalid
theme. For an observed collision, explain which text/role/size/line height causes
it and offer a deliberate line-height or profile change. Do not silently shrink
text or increase line height to hide it.
Review the candidate in its receiving app. Use available browser tools and real
component controls; generated CSS alone is insufficient. Cover the checks that
matter for the task:
- Ordinary paragraphs, a long wrapped heading and small secondary text retain a
clear hierarchy. Evaluate readable measure and paragraph continuity together
with line height, including narrow layouts.
- Lists, quotes, captions, code and adjacent headings have intentional grouping.
Check nested and terminal blocks and explicit margins, including zero. Look
for doubled spacing where native and prose defaults meet.
- Inline code sits comfortably in its actual sentence. Code blocks keep their
own sizing and scroll within the available width.
- Labels, carets, buttons and editable controls retain useful inset and native
behavior. Check empty/filled/focused states and the fonts/weights in use.
- Repertoire samples include the product's real accents, symbols and languages.
Test multiline collisions separately from exterior clipping. An envelope fit
is not proof of clipping-free native editor paint.
- Check font-load transitions, fallback wrapping and mobile/desktop controls
when those affect the task. Distinguish measured geometry from visual judgment
and name the browser/OS actually checked. Cross-OS certification is pending.
The reusable [devtools panel](../../docs/devtools.md) supports controlled live
experiments; mount it outside the generated typography scopes so the controls
stay stable. Preserve explicit overrides on preset changes.
Responsive viewport/container recipes, paragraph indent/gap separation modes,
opt-in `boxHeight` alignment and broader fallback heuristics are roadmap work.
Do not output those as working engine options. If needed in an app now, use
ordinary host CSS and describe that boundary. Preserve generated profile-offset
margins when changing a managed prose gap; blanket `margin: 0` discards that
accounting. A chosen paragraph-indent design
should replace the interparagraph gap for continuing paragraphs; opening
paragraphs should remain distinguishable without an automatic indent.
Apply the requested theme changes in the host's configuration, then report the
important visual relationships and remaining unverified evidence. Do not call a
proposal applied merely because MCP returned a preview. Avoid a universal
“safe” verdict from partial measurements.
For background, link readers to free resources such as
[MDN line-height](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height),
[MDN font-size-adjust](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size-adjust),
[web.dev font best practices](https://web.dev/articles/font-best-practices), and
[Practical Typography](https://practicaltypography.com/). Write original guidance;
do not reproduce the paid typography checklist or present its text as ours.