Creates systematic typography for web projects: modular type scales, font pairing, heading hierarchy, fluid clamp() sizing, variable fonts, and font loading.
Ships in designskills. 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.
None: SKILL.md is the whole skill.
Create beautiful, readable, and systematic typography for any web project.
Before setting typography, check for existing design context:
.agents/design-context.md (see design-context): Heading/Body/Mono Font, Base Size, Scale Ratio, Heading/Body Weight. Use them unless the user is explicitly changing them.The type scale ratio determines the mathematical relationship between sizes. Pick based on the content density and visual character of the project.
| Ratio | Nickname | Value | Best for |
|---|---|---|---|
| Minor second | Tight | 1.067 | Dense data UIs, dashboards |
| Major second | Compact | 1.125 | Apps, tools, compact layouts |
| Minor third | Default | 1.200 | General web, blogs, marketing |
| Major third | Relaxed | 1.250 | Editorial, magazines |
| Perfect fourth | Bold | 1.333 | Marketing sites, landing pages |
| Augmented fourth | Impact | 1.414 | Bold headlines, creative sites |
| Perfect fifth | Drama | 1.500 | High-impact hero sections |
| Golden ratio | Grand | 1.618 | Art, luxury, editorial |
:root {
--type-ratio: 1.25; /* major third */
--type-base: 1rem; /* 16px */
/* Each step = previous * ratio, so changing --type-ratio updates the whole scale */
--text-xs: max(0.75rem, calc(var(--text-sm) / var(--type-ratio))); /* 0.64rem = 10.24px -> floored to 12px */
--text-sm: calc(var(--type-base) / var(--type-ratio)); /* 0.8rem = 12.8px */
--text-base: var(--type-base); /* 1rem = 16px */
--text-lg: calc(var(--text-base) * var(--type-ratio)); /* 1.25rem = 20px */
--text-xl: calc(var(--text-lg) * var(--type-ratio)); /* 1.563rem = 25px */
--text-2xl: calc(var(--text-xl) * var(--type-ratio)); /* 1.953rem = 31.25px */
--text-3xl: calc(var(--text-2xl) * var(--type-ratio)); /* 2.441rem = 39px */
--text-4xl: calc(var(--text-3xl) * var(--type-ratio)); /* 3.052rem = 48.8px */
--text-5xl: calc(var(--text-4xl) * var(--type-ratio)); /* 3.815rem = 61px */
}
Formula: size(n) = base × ratio^n. Comments above are for ratio 1.25; recompute them if you change the ratio. Keep functional text (captions, labels) at 12px or larger.
These are tested, production-ready combinations.
Playfair Display + Source Sans 3 Elegant serif headings, clean sans body. Great for magazines, blogs.
Lora + Inter Warm transitional serif + neutral modern sans. Excellent readability.
Fraunces + Commissioner Variable "soft" serif with personality + low-contrast humanist sans. Distinctive editorial.
Inter + Inter Single-family system. Use 700 for headings, 400 for body. Extremely versatile.
DM Sans + DM Sans Geometric, modern. Slightly more personality than Inter.
Manrope + Source Sans 3 Semi-condensed geometric grotesque + humanist sans. Friendly tech feel.
Space Grotesk + General Sans (Fontshare, self-host) or Space Grotesk + DM Sans Monospace-influenced sans + clean geometric. Techy and bold.
Bricolage Grotesque + Inter Quirky variable sans for headings + reliable body text. Playful but professional.
Cabinet Grotesk + Satoshi (both Fontshare, self-host -- see Licensing) Modern geometric pair. Premium startup aesthetic.
JetBrains Mono + Inter Monospace headings/code + sans body. Developer tools, documentation.
Instrument Serif + Instrument Sans Companion serif/sans designed together. Low-risk pairing (Instrument Serif is display-weight only -- headings, not body).
Sora + Newsreader Geometric sans headings + readable serif body. Inverted classic pattern.
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap" rel="stylesheet">
:root {
--font-heading: 'Playfair Display', Georgia, serif;
--font-body: 'Inter', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}
h1 {
font-family: var(--font-heading);
font-size: var(--text-5xl); /* ~3.8rem / 61px */
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.025em;
margin-bottom: 0.5em;
}
h2 {
font-family: var(--font-heading);
font-size: var(--text-4xl); /* ~3.05rem / 49px */
font-weight: 700;
line-height: 1.15;
letter-spacing: -0.02em;
margin-bottom: 0.5em;
}
h3 {
font-family: var(--font-heading);
font-size: var(--text-3xl); /* ~2.44rem / 39px */
font-weight: 700;
line-height: 1.2;
letter-spacing: -0.015em;
margin-bottom: 0.5em;
}
h4 {
font-size: var(--text-2xl); /* ~1.95rem / 31px */
font-weight: 600;
line-height: 1.25;
letter-spacing: -0.01em;
}
h5 {
font-size: var(--text-xl); /* ~1.56rem / 25px */
font-weight: 600;
line-height: 1.3;
}
h6 {
font-size: var(--text-lg); /* ~1.25rem / 20px */
font-weight: 600;
line-height: 1.4;
text-transform: uppercase;
letter-spacing: 0.05em;
}
<h2 class="h4">).body {
font-family: var(--font-body);
font-size: 1.125rem; /* 18px */
line-height: 1.65;
color: var(--text-primary, var(--gray-900)); /* design-context: Neutral 800 body / 900 headings */
-webkit-font-smoothing: antialiased; /* macOS only; harmless elsewhere */
text-rendering: optimizeLegibility;
}
.prose {
max-width: 65ch;
margin-inline: auto;
}
.prose p + p {
margin-top: 1.25em;
}
.prose > * + * {
margin-top: 1em;
}
Use clamp() for fluid scaling between breakpoints without media queries.
clamp(min, preferred, max)
slope = (maxSize - minSize) / (maxViewport - minViewport) e.g. (24 - 20) / (1280 - 360) = 0.004348
preferred = (slope * 100)vw + (minSize - slope * minViewport)/16 rem
= 0.4348vw + 1.152rem -> clamp(1.25rem, 0.4348vw + 1.152rem, 1.5rem)
Always keep a rem term in the preferred value: pure vw sizes do not grow with browser zoom and fail WCAG 1.4.4 (Resize Text).
This replaces the static scale from Step 1 (use one or the other, not both). Max values approximate a 1.25-1.33 progression at desktop widths; min values stay close to the mobile static scale.
:root {
--text-base: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
--text-lg: clamp(1.125rem, 0.75vw + 0.9rem, 1.35rem);
--text-xl: clamp(1.25rem, 1vw + 0.95rem, 1.75rem);
--text-2xl: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
--text-3xl: clamp(1.875rem, 2vw + 1.1rem, 3rem);
--text-4xl: clamp(2.25rem, 3vw + 1rem, 4rem);
--text-5xl: clamp(2.75rem, 4vw + 1rem, 5.5rem);
}
.hero-title {
font-size: clamp(2.5rem, 5vw + 1rem, 6rem);
font-weight: 800;
line-height: 1.05;
letter-spacing: -0.03em;
text-wrap: balance; /* evens out line lengths in short headings */
}
.gradient-text {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.outlined-text {
-webkit-text-stroke: 2px currentColor;
-webkit-text-fill-color: transparent;
font-weight: 800;
font-size: 5rem;
}
.text-shadow-soft { text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.text-shadow-hard { text-shadow: 3px 3px 0 rgba(0,0,0,0.15); }
.text-over-image { text-shadow: 0 2px 16px rgba(0,0,0,0.5); } /* or a backdrop: */
.text-backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); padding: 0.5em 1em; border-radius: 0.25em; }
Gradient, outlined, and image-backed text must still meet contrast: measure the lightest part of the gradient/photo behind the text, and keep outlined text to display sizes.
| Axis | CSS property | Range (typical) |
|---|---|---|
| wght | font-weight | 100-900 |
| wdth | font-stretch | 75%-125% |
| slnt | font-style: oblique Xdeg | -12 to 0 (varies) |
| ital | font-style: italic | 0 or 1 |
| opsz | font-optical-sizing: auto | varies (Inter 14-32) |
@font-face {
font-family: 'Inter Variable';
src: url('/fonts/InterVariable.woff2') format('woff2');
font-weight: 100 900;
font-display: swap;
}
.heading {
font-family: 'Inter Variable', sans-serif;
font-weight: 750; /* precise weight */
font-optical-sizing: auto; /* uses Inter's opsz axis automatically */
}
/* Width only works if the font HAS a wdth axis (e.g. Roboto Flex, Mona Sans; Inter has none) */
.heading-wide { font-stretch: 110%; }
Prefer the high-level properties (font-weight, font-stretch, font-style, font-optical-sizing) over font-variation-settings, which overrides all axes at once and does not inherit per-axis. Check a font's axes on its Google Fonts page before using them.
| Context | letter-spacing | Rationale |
|---|---|---|
| Large headings (3rem+) | -0.02 to -0.03em | Tighten for visual density |
| Small headings | -0.01em | Slight tightening |
| Body text | normal (0) | Default is optimized |
| All-caps text | +0.05 to +0.1em | Caps need room to breathe |
| Small/caption text | +0.01 to +0.02em | Improve legibility at small sizes |
| Monospace | normal | Already evenly spaced |
.caps-label {
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: var(--text-sm);
font-weight: 600;
}
Pick ONE: Google Fonts CDN (Option A) or self-hosting (Option B, better for performance and privacy/GDPR).
<!-- Option A: Google Fonts CDN -- preconnect, then the stylesheet from Step 3 -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- Option B: self-hosted -- preload only the 1-2 files needed above the fold -->
<link rel="preload" as="font" type="font/woff2"
href="/fonts/inter-var.woff2" crossorigin>
@font-face {
font-family: 'Inter';
src: url('/fonts/inter-var.woff2') format('woff2');
font-weight: 100 900;
font-display: swap; /* Show fallback immediately, swap when loaded */
}
| Value | Behavior | Use when |
|---|---|---|
| swap | Fallback shown immediately, swaps | Body text, most cases |
| optional | Brief block, may skip custom font | Non-critical decorative fonts |
| fallback | Short block, short swap period | Balance of swap + optional |
| block | Invisible text for up to 3s | Icon fonts only |
:root {
--font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
Use size-adjust, ascent-override, and descent-override to match fallback metrics:
@font-face {
font-family: 'Inter Fallback';
src: local('Arial');
size-adjust: 107%;
ascent-override: 90%;
descent-override: 22%;
line-gap-override: 0%;
}
body { font-family: 'Inter', 'Inter Fallback', sans-serif; }
These override values are for Inter over Arial; for other fonts generate them (e.g. Fontaine, Capsize, or next/font, which does it automatically).
clamp() for fluid responsive sizing.font-display: swap.text-wrap: balance on headings and text-wrap: pretty on paragraphs to avoid orphans.npx playwright screenshot --viewport-size=375,800 --full-page "file://$PWD/specimen.html" mobile.png) and look at both with Read. Check: fonts actually loaded (not fallback), clear step between each level, body line length 45-75 characters, no heading wider than the viewport..agents/design-context.md: update only the changed Typography fields (Heading Font, Body Font, Mono Font, Base Size, Scale Ratio, Heading Weight, Body Weight) as full font stacks. Show the diff and ask before saving.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
28 skills in this plugin
/ad-creative-designPaid advertising creative: IAB display banners (300x250, 728x90, etc.), Google Display and Performance Max assets, and paid social ads (Meta, LinkedIn, X), via Gemini 3.1 Flash image generation, HTML/CSS, or HTML5 animated ads. Covers exact-size cropping, CTA design, value proposition hierarchy, A/B variations, and platform ad specs. Use whenever the creative will be bought as ad inventory; for organic posts use social-media-graphic, for on-site hero or email banners use banner-design. Trigger phrases: "design an ad", "create a banner ad", "display ad", "ad creative", "Google Display ad", "Meta ad", "ad banner", "create ad variations", "HTML5 ad".
/banner-designBanner graphics for owned channels: website hero/section banner images, email header images, event and conference banners, sidebar house promos, and announcement bars, via Gemini 3.1 Flash image generation (default) or HTML/CSS. Covers standard sizes, Gemini ratios and cropping, CTA placement, responsive art direction, and email constraints. For paid display/IAB ads use ad-creative-design; for a coded above-the-fold section use hero-section; for a full email template use email-design. Trigger phrases: "design a banner", "create a website banner", "hero banner image", "email header", "event banner", "promotional banner", "web banner", "sidebar banner", "announcement bar", "Eventbrite banner".
/brand-identityBuild a complete visual identity from scratch or refresh one: logo mark and variations (SVG), brand color roles, brand fonts, patterns, favicons/app icons, social avatars, and a brand guidelines page. Use when the user needs the brand itself, not just one ingredient. Trigger phrases: "brand identity", "logo design", "brand guidelines", "visual identity", "brand system", "favicon", "logo variations", "brand pattern", "rebrand". For only a palette use color-palette; only fonts use typography; UI tokens/components use design-system.
/card-designIndividual card components and card grids: anatomy, grid/masonry/carousel layouts, hover effects, and ready patterns for product, feature, testimonial, blog, expandable, and flippable cards plus skeleton loaders. Use when the user asks to "design a card", "build card layout", "create a product card", "make a card grid", "design a testimonial card", "blog post card", "feature card", "pricing card", or any card-based UI component. For the full page section around the cards use landing-page-design; for KPI/stat tiles use dashboard-design; for general components use ui-design.
/color-paletteGenerate accessible color palettes: OKLCH shade scales (50-950), tinted neutrals, semantic colors, WCAG contrast checks, dark-mode color remaps, gradients, and CSS/Tailwind color output. Use when the task is ONLY about color. Trigger phrases: "color palette", "color scheme", "generate colors", "shade scale", "color tokens", "color system", "accessible colors", "contrast ratio", "semantic colors", "palette from hex". For logo + fonts + guidelines use brand-identity; for full token/component systems (spacing, radius, components) use design-system; for complete dark themes use dark-mode.
/dark-modeDark theme design and implementation for web UIs: surface elevation, desaturated brand colors, text/border tokens, color-scheme, system-preference detection, a no-flash theme toggle, and Tailwind dark variants. Use when the user asks to "add dark mode", "create a dark theme", "dark mode support", "implement dark/light toggle", "theme switcher", "prefers-color-scheme", "design for dark background", "night mode", or any dark theme work. For dark mode in HTML email use email-design; for building the full color palette use color-palette.
/designskills:typographyfrom designskills
npx claudepluginhub arnavpuri/designskills --plugin designskillsOther plugins' skills for the same job