Fluid Typography in Salient
Getting type to feel right on every screen size is one of the trickier parts of building a website. You want headlines that look bold on a desktop monitor but don’t overwhelm a phone, and body text that stays comfortable to read whether the browser is 400px wide or 2000px wide.
Salient’s Fluid Typography setting handles this for you with a single configuration. Set it once, and every heading and paragraph on your site will scale smoothly with the browser width, kept within sensible limits you define.
What it does
Instead of picking a fixed font size for desktop and another for mobile, Fluid Typography lets your text grow and shrink continuously as the viewport changes. You set a minimum size (so text never gets too small to read), a maximum size (so it never gets oversized on large monitors), and a formula that controls how it scales between the two.
The clever part is that this setting controls the root font size for your whole site. Every other typography field in Salient (body, H1 through H6, navigation, labels, and so on) can then scale proportionally from that single value. Want all your text 10% larger? Adjust the root, and the entire site rescales in proportion. You don’t have to touch each heading individually.
How to set it up
Go to Salient > Typography > Responsive Settings > Fluid Typography. You’ll see two configurations, one for desktop and one for mobile. Each takes three values:
- Min: the smallest the text is allowed to get
- Max: the largest the text is allowed to get
- Custom: the formula that controls scaling between those limits
For everything to scale together, two rules apply to the rest of your typography settings:
- Set all font size fields to rem units
- Set all line height fields to em or unitless values
Anything set in pixels will stay frozen at that pixel value and won’t scale. Stick to rem and em, and the whole system stays in sync.
A real example: the Harbor demo
The Harbor demo is a good reference for how to use this in practice. Its Fluid Typography is set up like this:
Desktop
- Min: 0.8rem
- Max: (none)
- Custom: calc(1vw + 0.1rem)
Mobile
- Min: 1rem
- Max: 1.5rem
- Custom: calc(1vw + 0.1rem)
On desktop, the Harbor demo lets the text grow with the browser width but never drop below 0.8rem. There’s no upper cap because Harbor wants headlines to keep scaling up gracefully on wide monitors.
On mobile, the same scaling formula is used, but it’s locked between 1rem and 1.5rem. The minimum keeps body copy readable on small phones, and the maximum prevents text from looking chunky on larger handsets.
With the root configured this way, Harbor sets its individual typography fields like this:
| Field | Size | Line height |
|---|---|---|
| Body | 1rem | 1.6 |
| H1 | 4rem | 1.3 |
| H2 | 2.7rem | 1.3 |
| H3 | 2rem | 1.3 |
| H4 | 1.4rem | 1.3 |
| Navigation | 0.9rem | |
| Labels | 0.9rem | 1 |

Every value is in rem. Every line height is unitless. Because of that, when the root font size flows up and down with the viewport, every heading and every paragraph moves with it in perfect proportion. H1 is always four times the size of body text. H2 is always 2.7 times. The rhythm of the scale stays consistent at every screen size.
If we wanted to make the whole site slightly larger, we wouldn’t have to open seven different heading panels. We can nudge a single number in the Fluid Typography setting and the entire site would rescale.
Tips for setting it up on your own site
- Start by choosing a scaling formula. calc(1vw + 0.1rem) is a good starting point and is what Harbor uses.
- Add a minimum to protect readability on narrow screens, and a maximum if you want to cap how large the text can get on wide screens. You don’t have to use both.
- Configure mobile separately from desktop. Phones usually need a tighter range.
- Switch every font size field in your Typography settings to rem.
- Switch every line height field to em or unitless.
- If something looks slightly off, adjust the root rather than overriding individual headings with pixel values. Pixel overrides break the cascade and you’ll lose the benefit of the system.
The role of the Custom formula
The Custom field is the engine of the whole system. Min and Max are guardrails. The Custom formula is what actually decides how the text scales between them.
It’s typically a calc() expression that mixes a viewport unit with a fixed base, for example calc(1vw + 0.1rem). The viewport part (1vw equals 1% of the browser width) is what makes the text fluid: as the browser gets wider, that part of the calculation grows, and so does the font size. The fixed rem portion gives the formula a sensible starting point so text isn’t tiny on narrow screens before the viewport contribution kicks in.
You can tune the feel of the scaling by changing the formula. A larger viewport multiplier like 1.2vw makes the text grow faster as the browser widens. Adding a larger base like calc(0.8vw + 0.4rem) produces a gentler curve that starts higher and grows more slowly. Use this to match the personality of your design, whether you want type that reacts dramatically to screen size or stays more restrained.
Here’s how the three fields combine into the final CSS:
- Custom + Min + Max produces
clamp(min, custom, max). The text scales by the formula but is locked between the two limits. This is the most common setup. - Custom + Min only produces
max(min, custom). The text scales by the formula but never drops below the minimum. Use this when you want a readable floor but no upper cap, which is what Harbor does on desktop. - Custom + Max only produces
min(max, custom). The text scales by the formula but never exceeds the maximum. Use this when you want to cap how large text can get without enforcing a minimum. - Custom only outputs the formula by itself, with no limits applied.
- Min or Max without a Custom formula produces nothing at all. The Custom field is required for any of the other fields to take effect, because there’s no scaling expression for the limits to clamp.
- All fields blank means Fluid Typography is switched off entirely and the browser default root font size is used.
The takeaway
Fluid Typography turns your type settings into one connected system instead of dozens of independent values to manage. You define the scale once, and the whole site stays in proportion at every screen size. It’s less work to set up, easier to adjust later, and produces a more polished result across devices.