h1 · base 96px · current 90.13px
CSS clamp generator for responsive font sizes.
TYPECLAMP helps designers and developers turn fixed font sizes from Figma and other design tools into production-ready responsive CSS tokens. Keep every design value exact at your base viewport, then generate clean clamp values that scale down to mobile and expand beyond desktop with optional limits.
Results
Live scale
Scale Map
System overview
Current 1024pxOpenClose
Scale Map
System overview
h2 · base 72px · current 67.6px
h3 · base 48px · current 45.07px
h4 · base 32px · current 30.04px
body-lg · base 22px · current 20.65px
body · base 18px · current 16.9px
Export
Design-system export
:root {
--text-h1: clamp(80px, 74.15px + 1.561vw, 96px);
--text-h2: clamp(60px, 55.61px + 1.1707vw, 72px);
--text-h3: clamp(40px, 37.07px + 0.7805vw, 48px);
--text-h4: clamp(26.67px, 24.72px + 0.5203vw, 32px);
--text-body-lg: clamp(18.33px, 16.99px + 0.3577vw, 22px);
--text-body: clamp(15px, 13.9px + 0.2927vw, 18px);
}
@media (min-width: 1400px) {
:root {
--text-h1: clamp(96px, 44.31px + 3.6923vw, 115.2px);
--text-h2: clamp(72px, 33.23px + 2.7692vw, 86.4px);
--text-h3: clamp(48px, 22.15px + 1.8462vw, 57.6px);
--text-h4: clamp(32px, 14.77px + 1.2308vw, 38.4px);
--text-body-lg: clamp(22px, 10.15px + 0.8462vw, 26.4px);
--text-body: clamp(18px, 8.31px + 0.6923vw, 21.6px);
}
}
.text-h1 {
font-size: var(--text-h1);
}
.text-h2 {
font-size: var(--text-h2);
}
.text-h3 {
font-size: var(--text-h3);
}
.text-h4 {
font-size: var(--text-h4);
}
.text-body-lg {
font-size: var(--text-body-lg);
}
.text-body {
font-size: var(--text-body);
}Responsive Typography
From Figma font sizes to responsive CSS clamp tokens.
TYPECLAMP turns the fixed type values from a design file into production-ready responsive typography. Enter the Figma size, choose the design viewport, set mobile and desktop limits, then export CSS clamp tokens for your site or design system.
Figma to CSS
Convert fixed design specs into production-ready responsive font-size values.
Fluid type scale
Preview how headings, labels, and body text resize across mobile and desktop.
Token export
Copy clean CSS custom properties for design systems, landing pages, and apps.
FAQ
Responsive type handoff, without guesswork.
A few practical details for designers and developers using TYPECLAMP as a Figma to CSS clamp workflow.
How do I turn Figma font sizes into CSS clamp values?OpenClose
Copy the fixed type sizes from your Figma styles, set the mobile, design, and max viewports, then TYPECLAMP generates responsive clamp tokens that stay exact at the design viewport.
Why use a design viewport?OpenClose
The design viewport keeps the original Figma value as the anchor. Text can scale down for mobile and up for wider screens without drifting away from the approved design size.
Can I export tokens for a design system?OpenClose
Yes. TYPECLAMP exports CSS custom properties, Tailwind v4 theme variables, SCSS maps, Style Dictionary tokens, Figma variable JSON, and generic JSON tokens.
What is the difference between the design viewport and preview width?OpenClose
The design viewport is the width where the original design value must stay exact. Preview width is only the live viewport used to inspect the computed result while you work.
Should every text style use CSS clamp?OpenClose
No. Fluid clamp values are most useful for headings, display text, editorial titles, and responsive systems with clear hierarchy. Small labels, dense tables, and utility text often work better with stable sizes.
Does TYPECLAMP support Tailwind v4?OpenClose
Yes. The Tailwind export uses CSS-first Tailwind v4 theme variables, including responsive font-size tokens, line-height values, and font-weight values where available.
Can I use TYPECLAMP with existing Figma type styles?OpenClose
Yes. Copy the fixed font sizes, line-height values, and weights from your Figma styles, then use the design viewport to keep those approved values exact while generating responsive CSS.
Why are min and max font sizes important?OpenClose
Min and max sizes stop viewport-based typography from becoming too small on mobile or too large on wide screens. They make the responsive behavior predictable instead of purely fluid.
Can I share a TYPECLAMP setup with someone else?OpenClose
Yes. The share action creates a preset URL that includes the current type tokens, viewport settings, units, preview text, and export preferences.
Agency Handoff & Development
Need this turned into a full type system?
Send a Figma file or current CSS and Blank Studio can audit the scale, fix mobile heading behavior, define token names, prepare implementation-ready exports, and build the tokens into your site or design system.
Typography audit
Find inconsistent sizes, weak line-height choices, and headings that break on mobile.
Advanced exports
Prepare Tailwind, SCSS, Style Dictionary, JSON tokens, and naming presets from the scale.
Brand type kit
Extend headings and body text into buttons, forms, nav, captions, and editorial styles.
Front-end implementation
Build the responsive typography tokens into your website, component library, or design system codebase.