Skip to content
Back to skills

Typography Theme

ASecurity

Choose, design, or tune a typography-next theme for an app or long-form content, using its shared typography model and available inspection tools.

  • 20 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 2, 2026
developmentreactnodeexpressapi

Works with

  • terminal
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add KyleAMathews/vite-plugin-capsize-radix-ui --skill typography-theme --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Typography Theme?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Typography Theme
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kyleamathews-typography-theme/badge)](https://www.skillsdirectory.com/skills/kyleamathews-typography-theme)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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` compiles from bundled Inter metrics with
  no browser measurement or runtime requirement. An explicit custom InterReference
  is optional; only that mode requires complete exact-size measurements.
  Line height never follows the selected font's metadata.
- `blockMarginBottom` scales the current rhythm-based prose gap. The rhythm is
  the normalized `baseFontSize`, independent of 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.

For app layout or custom prose, read the [spacing token contract](../../docs/spacing-tokens.md).
Every resolved core/adapter stylesheet emits `--type-space-1` through
`--type-space-9`; Base UI and Radix also expose `--space-1` through `--space-9`.
Use native size/gap APIs for native component steps, and the namespaced tokens
for shared app CSS. Their step4 is one normalized body size times adapter `density`;
MUI/Tailwind retain their own native step relationships.

Use `--type-block-gap`, `--type-list-item-gap`, `--type-list-indent` and
`--type-blockquote-inset` when composing the relationships the engine already
owns. Density scales layout tokens; prose tokens follow normalized body size and
`blockMarginBottom`. Avoid adding stack gap to `.type-prose`, whose margins
already include separation and profile compensation. Select the intended
context before compiling, then replace its emitted CSS on DevTools updates;
font/profile changes should not become an accidental spacing adjustment.
The [Base UI example](../../docs/base-ui-spacing.md) shows the adapter setup.

Current experimental normalization uses a fixed 62.5% actual lowercase-height /
37.5% mean visible-glyph-width geometric score against Inter regular. Require
versioned `appearance` measurements as well as exact outline/source identity;
legacy anchors without width are unverified and retain physical CSS sizing.
Use the Node-only `measureFontSource` helper in [font sources](../../docs/font-sources.md)
to remeasure supplied static files. Inline code follows the surrounding actual
lowercase height; code blocks have independent reference sizing. Treat visual
comparison as necessary; do not refit the candidate during 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.
  Focus outlines/rings follow the whole visible control frame, including icon
  slots. Normalized text can move inside that frame, so check keyboard focus
  separately from glyph/placeholder paint. Customize Base UI focus on its
  frameProps wrapper; its editor keeps the caret and text geometry.
- 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.

Use [responsive recipes](../../docs/responsive-recipes.md) for mobile/desktop
or named-container relationships. Base settings describe the smallest layout;
`responsive.breakpoints` contains cumulative `{minWidth, options}` patches in
CSS pixels. Compile full CSS through an adapter or `toString()` during SSR;
`atWidth()` provides an explicit scalar diagnostic snapshot. Put named
containers outside theme roots and give portalled content its own container
when needed. Check each threshold below, at and above, and resize back.

Choose `paragraphSeparation: {mode: "gap"}` or `{mode: "indent", indent:
bodySize(1.5)}` deliberately. The latter replaces only the implicit gap between
continuing sibling paragraphs; openings stay flush and structural block spacing
remains. Explicit native margins retain priority. Use
`--type-paragraph-gap`/`--type-paragraph-indent` for related app CSS. Check
reciprocal responsive mode changes and nested lists. For MUI SSR, extract
Emotion critical styles into the head so style elements do not interrupt prose
adjacency. See the recipe guide for interior native composition limits.

Opt-in `boxHeight` alignment and broader fallback heuristics remain roadmap
work. Do not emit those as working engine settings. Preserve generated
profile-offset margins when overriding managed prose spacing.

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.

DevTools can be installed separately as `typography-next-devtools` from the preview release tarball. Import its `styles.css` once. Radix is bundled; React and React DOM use the host app instances. Existing engine `/typography/devtools` and `/typography/devtools.css` imports ship the same complete bundles. No Radix installation or vendor stylesheet import is needed solely for the editor. Keep the editor outside generated typography scopes and gate it to development. See the [DevTools guide](../../docs/devtools.md) for the controlled host contract and browser limits.

### Optional protected text-input assets

For supplied static font bytes, use `prepareStaticFontFamily` at build time and
pass its `binding` through `preparedSources` alongside original `fonts`. Serve one
final file per face: ordinary and block metrics registrations share its URL, and
native inputs automatically use that primary resource. Do not register original
fonts or prepare companion input/block binaries. See [font sources](../../docs/font-sources.md).
Keep theme size/line-height settings and preserve metadata in contexts/DevTools.
Check `inputSourceStatus` separately from browser paint; missing/conflicting faces
stay unverified. Test loaded text, declared-repertoire accents, placeholders,
editing/selection and actual frames. Attach `observeControlInputs` after mount.
Shadcn keeps its decorated border
fixed and redistributes existing vertical padding; inspect
`data-type-input-alignment` and its reason when the budget is insufficient.
A ready asset or aligned baseline does not certify every glyph/caret/browser/OS.
Test actual native paint and editing; Firefox caret screenshot instrumentation
remains unverified, as do fallback transitions and other OSes.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.