Fluid CSS values.One line of clamp().

The workbench for fluid typography and fluid spacing: calculate values, paste existing CSS and keep working on it, build whole scales and export them ready to use.

Coming soon to the App Store

Native app for iPhone, iPad and Mac.

HBClamp on iPhone: the quick calculator has recognised a pasted clamp() line and shows its values.

What HBClamp does

From a single line to a website's design system.

Quick calculator

A minimum and maximum value in px or rem plus two viewport limits instantly give you the finished line, with or without a comment. rem base 16 or 10 px. Values that shrink are calculated correctly too.

CSS import

Paste one line or a whole block. HBClamp finds the clamp() expressions and turns them back into pixel sizes and viewports. Anything that cannot be calculated is named and can be filled in.

Projects and scales

Keep viewports and values together for each website. Build a type scale from base sizes and ratios and a spacing scale from factors. Override single steps whenever you need to.

Export

CSS custom properties, SCSS variables, a Tailwind 4 theme or a snippet for the WordPress theme.json file. Copy it, save it as a file or share it.

Preview

Move the viewport slider and watch type and spacing grow with it.

Zoom notice

For font sizes, HBClamp calculates the window widths at which browser zoom cannot enlarge text to 200 % (WCAG 1.4.4). It is a calculation, not an audit of your website.

A worked example

A font size should grow evenly between a narrow and a wide window.

Property
font-size
Size
14 → 22 px
Viewport
420 → 1460 px
rem base
16 px
font-size: clamp(0.875rem, 0.6731rem + 0.7692vw, 1.375rem);

Up to a window width of 420 px the text stays at 14 px (first value), from 1460 px at 22 px (last value). In between, the middle expression provides an even transition.

What HBClamp looks like

On iPhone and iPad.

  • Quick calculator on iPhone with a CSS input field, viewport limits and values.
    Quick calculator
  • Type scale on iPhone with base sizes, ratios and the calculated steps.
    Type scale
  • Export on iPhone: CSS custom properties with clamp() for a whole project.
    Export
  • Quick calculator on iPad with sidebar, finished CSS line and preview.
    Calculator with preview
  • Type scale on iPad with a type preview of all steps.
    Scale with type preview
  • Export on iPad with a choice of CSS, SCSS, Tailwind and theme.json.
    Four export formats

Local and private

No account, no ads, no analytics.

Your projects, settings and history are stored on your device. The developer collects no data through the app. It reads the clipboard only when you paste something.

Read the privacy policy

Buy once, no subscription

One purchase for iPhone, iPad and Mac. Requires iOS or iPadOS 26, or macOS 26 on the Mac.

Coming soon to the App Store