/howells-skills:typecasefrom howells-skills
Replaces scattered Tailwind font utilities with a small set of named type roles and a CI scanner that enforces them. Use when text sizes have multiplied or a type ramp needs designing.
Ships in howells-skills. 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; scripts run unread.
A compositor sets from the compartments in the case. Every piece of text takes its shape from one named role, chosen from a set small enough to hold in your head.
Shape is size, weight, family, tracking, leading and case. Colour, alignment, wrapping and truncation are not shape and stay free.
Agents size text by picking a plausible utility for the element in front of them, and nothing notices that the last file chose differently. A rule nobody checks does not hold, so the job ends with a scanner in CI.
type-data: same size and weight as its base, different family or numeric features. It counts toward the total but adds no step.uppercase sits in is a role, which owns its positive tracking.@theme (--text-micro: 0.6875rem). Keep text-[11px] only for a measured, load-bearing value, with a comment. A role's own definition is exempt: naming the value is its job.font-semibold role over a family shipped in 400 and 700 renders a synthesised bold.Defaults for the roles, to depart from with a reason:
| Role | For | Leading |
|---|---|---|
type-display | Page heroes. One responsive clamp across every viewport. | 1.0–1.1 |
type-heading | Section headings. | 1.2–1.3 |
type-body | Names, titles and running copy, one role for both. 16px for long-form; 14px is fine in dense tools. | 1.5 |
type-small | Metadata, labels, captions, controls. The workhorse. Not below 12px. | 1.4 |
type-data | Numerics and codes: type-small with tabular-nums or mono. | as base |
leading-tight on a card description is the usual offender.@theme size token, never inline.text-base sm:text-sm).Define it once, in the stylesheet that imports Tailwind or a file @imported into it, as either component classes (.type-body { @apply … } in @layer components) or theme tokens (--text-body in @theme, used as text-body). Pick one per codebase. A separately bundled stylesheet (a CSS module, a Vue, Svelte or Astro style block, some route sheets) has no theme in scope and needs @reference. A missing @reference normally fails the build, but @apply inside a consuming package's own @layer can emit nothing: check one role's computed style before migrating.
Never use Instrument Serif, Playfair Display, Poppins, Montserrat, Roboto or Arial for a new face. Before choosing or changing a face, read references/font-recommendations.md. Before setting OpenType features, optical sizing, rendering or font loading, read references/typography-opentype.md.
For an audit or proposal, stop after step 4 and return the census and mapping. A request to migrate or enforce authorises the rest.
Census. Run the script before forming a view on how many roles the codebase needs, and report its counts; they make the case arguable rather than a preference.
python3 <this skill's directory>/scripts/census-typography.py /path/to/repo --roots apps/web/app apps/web/components
--json gives every location for the migration. It is lexical: it does not scan @apply inside Vue, Svelte or Astro style blocks, and it cannot resolve dynamic class expressions, so check those by hand. Exit 2 means coverage was incomplete, not that the census is clean.
Read the jobs. For each combination, open two or three uses and write down what the text is doing there: row title, table header, form hint, stat figure. The census sees tokens, not jobs, and a role named from its size alone is a guess.
Design the case from those jobs, using the census's proposal as a starting shape and the rules above. Name each role by its job. State the count and why. If the task includes choosing or changing a face, do it here from references/font-recommendations.md, and load every weight the roles use (rule 6).
Write the mapping: every combination the census found and the role it becomes, with the nearer role chosen where a value falls between two. Reviewers check the diff against this table.
Define the case with a comment saying a scanner enforces it.
Name the sanctioned modifiers and the one dimension each may change: font-medium for emphasis, font-mono for family, capitalize for casing a data value, tabular-nums for figures. None changes size, leading or tracking. Everything else typographic belongs to a role.
Migrate by the mapping, a whole file at a time. A file half on the case is worse than one consistently raw.
Install the scanner. Read references/scanner.md first; use the project's existing typography rule only if it covers that token list and those call sites, otherwise write one. Wire it into CI. An unreached root reports clean, so plant one violation per root, confirm it is named with file:line, and restore it.
Look at the migrated screens on desktop and a phone. The small end goes wrong in place: across a 21-row table a one-step size difference lets numerals dominate rows they should annotate. Settle doubts with getComputedStyle on live elements.
Report combinations before and after, the roles and why that many, files migrated, the scanner, and any exceptions with owner and reason.
Two hold up; a third means the case is wrong.
size prop, such as a stat figure or chart axis. Name it in the scanner; nothing passes it inline sizes.chiaroscuro.signage.componentize.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
33 skills in this plugin
/armatureTurn a web app that scrolls like a document into an app shell with fixed chrome and panes that scroll on their own. Use when headers, toolbars or filters scroll out of view. Not for visual polish (`chiaroscuro`) or small-screen layout (`reflow`)./ask-howellsRoute a situation to the skills in this collection and the command to type. Not for doing the work./blenderInspect, edit and render Blender scenes and films through the Blender MCP or headless CLI. Not for Remotion films (`rostrum`)./browseDrive the user's real Chromium browser (logins, tabs, extensions) via the browse MCP: logged-in/JS sites, forms, screenshots, recordings, HAR capture, and 2FA/payment handoffs. Not for QA (`fieldtest`) or native Mac apps (`computer-use`)./chiaroscuroDesign, build, polish or critique web UI in Tailwind v4. Use when an interface should look gorgeous, looks generic or unfinished, or feels off. Not for design options (`maquette`), app shells (`armature`), screen sizes (`reflow`), Paper (`paste-up`) or QA (`fieldtest`)./componentizeConsolidate duplicated UI into shared components, split god files or extract packages. Not for redesign (`chiaroscuro`), typography (`typecase`), structural review (`fettle`) or behaviour-preserving cleanup (`unslop`).npx claudepluginhub howells/skills --plugin howells-skills