A heading that looks right at 1440 pixels wide wraps badly at 360. The usual cure is a stack of breakpoint overrides: 48 pixels on desktop, 40 on tablet, 32 on mobile landscape, 28 on mobile portrait, repeated for every heading level, every section padding and every gap. It works, and it ages badly. Between two breakpoints nothing moves, then the size jumps. A new element needs the same four values typed again. A client who wants slightly bigger headings edits forty places. Meanwhile the visitor on a 1100 pixel window sees a size that was chosen for neither the tablet nor the desktop.
The idea that replaces all of that is small. A fluid value is a straight line between two points: the size you want at a small screen and the size you want at a large one. The browser draws the line, and outside the two end points the size stays flat. CSS has a function for exactly this, clamp(), with three arguments: a minimum, a preferred value that changes with the viewport, and a maximum. Write one expression and a heading grows smoothly from its mobile size to its desktop size with no breakpoint at all. Write it as a CSS variable, give the variable a step name, and every heading, gap and section padding on the site can share one scale.
Bricks Builder is well suited to this. Its Style Manager can generate fluid typography and spacing scales as CSS variables, theme styles accept those variables for headings, body text and section padding, and the variable picker puts them one click away on every size control. This guide explains what is going on underneath, so that you can use the generator with confidence, or write the same values by hand, and so that you can fix the scale when something looks wrong.
It starts with the problem breakpoints cannot solve and what clamp() does, then the maths: viewport units, rem, and the slope and intercept that turn two sizes into one expression, with a calculator you can run in the browser console. It covers how to choose a scale, a ready-made text, heading and spacing scale with a token table and a paste-ready CSS file, and how to apply it in Bricks through theme styles, classes and contextual spacing. After that come container query units for components that live in different widths, then accessibility, which is where fluid type most often goes wrong: zoom, text resizing and the rem floor. The last sections cover the common mistakes, line height and line length, how to test, and how to migrate a site that currently uses breakpoint values.
Two honest notes. This is a general guide built from the public Bricks documentation and from standard CSS behaviour, not a test report, and WPresident has not used Bricks to build the examples. The numbers in the scales are illustrative, calculated from the formulas shown, and meant to be adapted. Bricks changes between versions, so where a control name or a default might have moved, check the current Bricks documentation, and try changes on a staging copy first, because type and spacing touch every page.
Key points
- A fluid value is a line between two sizes at two viewport widths: write it as clamp(min, intercept plus slope times viewport, max) and the size stays flat outside the range.
- Compute it from four numbers: the min and max size and the min and max viewport width; the slope is the size change divided by the width change, and the intercept goes in rem.
- Always put rem in the floor and in the intercept, never vw alone, so browser zoom and the user’s default font size still change the text.
- Keep the maximum within about two and a half times the minimum for any text token, so that zooming in can still make the text at least twice as large.
- Store the scale as CSS variables, apply it once in a Bricks theme style, and clear element-level sizes that would override it.
- Use fluid values for continuous things such as size, padding and gap, keep breakpoints for layout changes, and use container query units only where a component lives in different widths.
What breakpoints cannot do, and what clamp() does instead
Breakpoints are the right tool for layout decisions. A two-column hero should become one column on a phone, a navigation should collapse into a menu, a sidebar should drop below the content. Those are discrete changes, and Bricks handles them well with its breakpoint chain. The default breakpoints are Desktop as the base, then Tablet portrait below 992 pixels, Mobile landscape below 768 and Mobile portrait below 478, with the option to customise them or switch to a mobile-first order. Styles set on the base are inherited by the smaller breakpoints, and a value set on a smaller breakpoint applies there and below.
Sizes and spaces are a different kind of decision. A heading does not need to change at 767 pixels. It needs to be a little smaller on a narrow screen than on a wide one, and every width in between should get a proportionate size. Forcing that into four stepped values has three costs. The values are copied for every element and heading level. The visitor between two breakpoints sees the size of the wrong one. And every future tweak is multiplied by the number of breakpoints. The Bricks responsive guidance names the alternative directly: hard values at each breakpoint are explicit and good for layout, while fluid scaling, where you define a range and let the browser do the calculation, suits typography and spacing.
The CSS function is clamp(MIN, PREFERRED, MAX). The browser computes the preferred value, which usually depends on the viewport width, then limits the result so it is never below MIN and never above MAX. It is equivalent to max(MIN, min(PREFERRED, MAX)). That gives the characteristic shape of a fluid size: flat at the minimum for small viewports, a straight ramp as the viewport grows, and flat at the maximum for large ones. Nothing else changes: it is an ordinary length that you can use for font-size, padding, margin, gap, width and almost any property that takes a length. It cannot be used inside a media query condition, which is one reason it complements breakpoints rather than replacing them.
Fluid values remove a whole class of decisions. There is no tablet size, because the tablet is simply a point on the line. There is no jump, because the line is continuous. And the values are written once, as variables, so a rebrand or a change of mind is one edit. What they do not remove is the need to choose the two end points carefully, and the need to protect users who zoom or enlarge their default text, which later sections cover in detail.
The figure below makes the shape concrete. It plots, as bars, the size of a large heading token at a series of viewport widths between a phone and a wide monitor. The token runs from 34 pixels to 50 pixels between 360 and 1440 pixels wide. Below 360 and above 1440 it does not move, and in the middle it grows steadily. The values are computed from the formula explained in the next section and rounded for display.

The maths: viewport units, rem, and the slope and intercept
Everything in a fluid scale comes from one equation, and it is worth understanding once so that you never have to trust a generator blindly. First the units. A pixel is a fixed CSS length. A rem is a multiple of the root element’s font size, which in browsers defaults to 16 pixels unless the visitor has changed their default text size, so 1rem is usually 16 pixels but is not guaranteed to be. A vw is one percent of the viewport width, so 1vw is 14.4 pixels when the viewport is 1440 pixels wide. The viewport width here includes the space taken by a classic vertical scrollbar where one exists, which matters for full-width layouts and not for type. And em is relative to the font size of the element it is used on, which makes it handy inside components and confusing at the root.
A fluid size is a straight line: size = intercept + slope × viewport width. You want that line to pass through two points: the minimum size at the minimum viewport width, and the maximum size at the maximum viewport width. Call them (w1, s1) and (w2, s2). The slope is the change in size divided by the change in width, (s2 − s1) ÷ (w2 − w1). The intercept is what is left when you subtract the slope’s contribution at the first point, s1 − slope × w1. Then you write the intercept in rem, and the slope as a percentage of the viewport, which is the slope multiplied by 100, in vw. The clamp keeps the result between s1 and s2.
Take a body text token that should run from 16 pixels on a 360 pixel viewport to 18 pixels on a 1440 pixel one. The slope is 2 ÷ 1080, which is 0.001852 pixels per pixel, or 0.185vw. The intercept is 16 − 0.001852 × 360, which is 15.333 pixels, or 0.958rem. The minimum is 1rem and the maximum is 1.125rem. The finished value is clamp(1rem, 0.958rem + 0.185vw, 1.125rem). Check it at a viewport of 900 pixels, halfway between the two: 15.333 plus 0.001852 × 900 is 17.0, which is exactly halfway between 16 and 18. At 360 pixels the preferred value is 16, and at 1440 it is 18, so the clamp has nothing to correct inside the range and holds the values flat outside it.
The browser console is the easiest calculator, because you can paste it, change the numbers and copy the result. This function takes the two sizes in pixels, the two viewport widths and the root size, and returns the CSS value.
function fluid(minPx, maxPx, minVw, maxVw, root) {
minVw = minVw || 360;
maxVw = maxVw || 1440;
root = root || 16;
var slope = (maxPx - minPx) / (maxVw - minVw);
var intercept = minPx - slope * minVw;
var round = function (n) { return Number(n.toFixed(3)); };
return 'clamp(' + round(minPx / root) + 'rem, ' + round(intercept / root) + 'rem + ' + round(slope * 100) + 'vw, ' + round(maxPx / root) + 'rem)';
}
console.log(fluid(16, 18));
// clamp(1rem, 0.958rem + 0.185vw, 1.125rem)
console.log(fluid(34, 50));
// clamp(2.125rem, 1.792rem + 1.481vw, 3.125rem)
The function does exactly the arithmetic above. The slope is the size change over the width change, the intercept subtracts the slope’s share at the minimum width, and everything is converted to rem by dividing by the root size, with the slope multiplied by 100 to give vw. Defaults of 360 and 1440 pixels and a 16 pixel root are used when you leave the optional arguments out. The Bricks Style Manager performs the same kind of calculation for its generated scales, with its own minimum and maximum screen widths and an HTML font-size setting for the rem conversion, so a hand-written value and a generated one should agree when the inputs agree.
Two practical notes. Round the rem and vw numbers to three or four decimals, since more digits add no visible precision. And keep the intercept in rem, not pixels, because that is the half of the formula that lets the visitor’s own text size settings take part. Section nine returns to why.
From two sizes to one clamp() value
- Pick the two pointsThe minimum size at the minimum viewport width, and the maximum size at the maximum viewport width.
- Compute the slopeSize change divided by width change, in pixels per pixel.
- Compute the interceptMinimum size minus the slope times the minimum width.
- Convert unitsIntercept and bounds divided by the root size for rem; slope times 100 for vw.
- Write the clampclamp(min in rem, intercept in rem plus slope in vw, max in rem).
Choosing a scale: end points, baseline and ratio
You could compute a clamp for every font size you ever need. A scale does it for you consistently. A modular type scale starts from a baseline size, usually the body text, and defines each step as the baseline multiplied or divided by a ratio. With a baseline of 16 pixels and a ratio of 1.25, the next size up is 20 pixels, then 25, then 31. Fluid scales add a second dimension: the baseline and ratio can be different at the small end and the large end, so the scale itself stretches as the viewport grows.
The Bricks Fluid Typography generator in the Style Manager exposes exactly these inputs. Each category you create is one scale, for example one for headings and one for text, and it stores its own settings. You choose a prefix for the variable names, such as text- or heading-, and a scale type: t-shirt names such as 2xs to 2xl, numeric steps, or a custom list of names. You choose the baseline step, which directly reflects the minimum and maximum sizes you set, with every other step computed from it. For the minimum, labelled mobile, and the maximum, labelled desktop, you enter a base font size and a type scale ratio. At the time of writing, the documentation lists defaults of 16 pixels with a ratio of 1.25 for the minimum and 20 pixels with 1.333 for the maximum. The minimum and maximum screen widths are set once, in the Style Manager settings, and apply to every scale, with defaults of 360 and 1440 pixels. Outside those widths, sizes stay constant. The same settings screen holds the HTML font-size that the generator uses for rem conversion: you can set it to 10 or 16 pixels or leave it on auto. Treat these defaults as something to check in the current documentation, since they can change.
How should you choose the numbers? Start from the content, not from the maths. Decide the smallest body size you are willing to show on a phone and the largest you want on a wide screen. For most reading text that is a small range, about 16 to 18 pixels, because body text that grows a lot makes line lengths and layouts unpredictable. Headings can span a much wider range. Then choose the ratios. A smaller ratio gives gentle steps, good for body text and interface sizes. A larger one gives bigger contrast between levels, good for headings. Because the minimum and maximum each have their own ratio, a common pattern is a smaller ratio at the mobile end so headings stay compact on a phone, and a larger one on desktop for stronger hierarchy. The documentation points out a side effect: steps below the baseline shrink more on large screens when the larger ratio is applied, so for the smallest steps the maximum value can end up below the minimum. Look at the generated list and correct such a step by hand if it happens.
Two checks protect you from a scale that is technically correct and practically poor. First, look at the extremes, not just the middle: open the page at the minimum width and at the maximum and read the smallest and largest steps in context. Second, look at the ratio between each token’s maximum and minimum. The accessibility section explains why a ratio above roughly two and a half for text is risky. The scales in this guide all stay well below that.
If you want to see what a baseline and a pair of ratios produce before you commit to them, the same arithmetic can generate a whole scale. Each step is the baseline multiplied by the ratio raised to the step’s power, separately at the small end and at the large end, and then each step goes through the slope and intercept calculation from the previous section. Paste this into the browser console, change the numbers and read the result.
function fluidScale(opts) {
var root = opts.root || 16;
var minVw = opts.minVw || 360;
var maxVw = opts.maxVw || 1440;
var round = function (n) { return Number(n.toFixed(3)); };
return opts.steps.map(function (step) {
var min = opts.minBase * Math.pow(opts.minRatio, step.power);
var max = opts.maxBase * Math.pow(opts.maxRatio, step.power);
var slope = (max - min) / (maxVw - minVw);
var intercept = min - slope * minVw;
return '--' + opts.prefix + step.name + ': clamp(' + round(min / root) + 'rem, ' + round(intercept / root) + 'rem + ' + round(slope * 100) + 'vw, ' + round(max / root) + 'rem);';
}).join('\n');
}
console.log(fluidScale({
prefix: 'heading-',
minBase: 22, minRatio: 1.25,
maxBase: 28, maxRatio: 1.333,
steps: [
{ name: 'm', power: 0 },
{ name: 'l', power: 1 },
{ name: 'xl', power: 2 },
{ name: '2xl', power: 3 }
]
}));
// --heading-m: clamp(1.375rem, 1.25rem + 0.556vw, 1.75rem);
// --heading-l: clamp(1.719rem, 1.514rem + 0.91vw, 2.333rem);
// --heading-xl: clamp(2.148rem, 1.828rem + 1.424vw, 3.11rem);
// --heading-2xl: clamp(2.686rem, 2.199rem + 2.162vw, 4.145rem);
What the pieces do. The options object holds the prefix for the variable names, the baseline size and ratio for the small end, the baseline size and ratio for the large end, and the list of steps. A step’s power says how far it sits from the baseline: zero is the baseline itself, one is a step up, and a negative number is a step down, so a text scale could use powers of minus one, zero, one and two. The three optional values at the top default to a 16 pixel root and a 360 to 1440 pixel viewport range. For every step the function computes the minimum and maximum size in pixels, then the slope and the intercept exactly as before, and prints a ready-to-paste variable line. The numbers it prints differ slightly from the whole-pixel token table in this guide, which was rounded for readability, and that is expected: the table is the contract for this guide, and the generator is for exploring other baselines and ratios.
The figure arranges the common named ratios from subtle to dramatic as editorial positions, to help you choose a starting point. Pick one for text, perhaps a different one for headings, and adjust by eye.
Type scale ratios from subtle to dramatic
How to read this: each row is one option, and its dot shows where it sits between Subtle steps and Dramatic steps. Placement is an editorial judgement, not a measurement.
- 1Major second, 1.125Very close steps, good for dense interfaces.
- 2Minor third, 1.2A calm, readable default for body text scales.
- 3Major third, 1.25Clear hierarchy without shouting.
- 4Perfect fourth, 1.333Strong hierarchy, good for headings.
- 5Perfect fifth, 1.5Dramatic jumps, best for marketing headlines and spacing.
A ready-made scale and its token table
Here is a complete scale you can adopt or adapt: four text steps, six heading steps and eight spacing steps. It was calculated with the formula from the previous section for a viewport range of 360 to 1440 pixels and a 16 pixel root, then rounded to whole pixels, and half pixels for one text step, so that the table is easy to read. The text scale runs from a 16 pixel baseline with a ratio of 1.125 at the small end to an 18 pixel baseline with a ratio of 1.2 at the large end. The heading scale uses a 22 pixel baseline with a ratio of 1.25 growing to 28 pixels with a ratio of 1.333. The spacing scale uses a 16 pixel baseline growing to 20 pixels, with a ratio of 1.5 at both ends, because spacing benefits from bigger jumps than text. These are starting points, not recommendations for every site.
Read the table by role. Text steps: text-s for captions, meta lines and small print, text-m for body copy, text-l for lead paragraphs, text-xl for large introductory text. Heading steps: heading-s for the smallest headings and card titles, heading-m to heading-2xl for heading levels from four down to one, and heading-3xl for a display headline in a hero. Spacing steps: the two smallest for tight pairs such as an icon and its label, space-s and space-m for control and card padding and everyday gaps, space-l and space-xl for gaps between blocks, and space-2xl and space-3xl for the vertical padding of full-width sections.
A few properties of the numbers are worth noticing. Every heading step stays under a 1.7 ratio between its maximum and its minimum, and every spacing step stays under 1.3, which keeps both comfortably inside the accessibility guideline discussed later. The largest text size, text-xl, goes from 20 to 26 pixels, and a 26 pixel line of intro text is large but still reads as text. The body token barely moves, from 16 to 18 pixels, and that is deliberate: reading text that changes a lot with the window makes line lengths and wrapping unpredictable. The spacing scale grows by roughly a quarter from the smallest to the largest screen at every step, so a layout keeps the same proportions at any width.
Use the table as a contract between design and build. A designer who wants a different heading size for a section should pick another step, not a new number. A developer who needs a value that is not in the table should ask whether a new step is justified, and add it to the scale instead of typing a one-off. When a step must change, change its two end points here, recompute the clamp with the calculator, and the whole site follows, because every consumer refers to the variable.
If you generate the scales with the Bricks Style Manager instead of pasting these values, enter the same baselines, ratios and viewport range and compare the output to the table. Small differences are normal: the generator uses its own rounding and calculates each step from the ratio, while the table above is rounded to whole pixels.

A paste-ready fluid scale in CSS
This is the same scale as a block of CSS variables. It includes a few supporting tokens: line heights, a line length and aliases for section padding and the page gutter. Paste it into the global custom CSS area under Bricks, Settings, Custom code, where the documentation says global custom CSS is added at the end of the document head. Or, if you want the variables in the builder’s variable picker, paste only the name and value lines into the variables manager’s manual text import, which expects a semicolon-separated list of definitions and adds variables that do not already exist by name.
:root {
/* Text */
--text-s: clamp(0.875rem, 0.854rem + 0.093vw, 0.938rem);
--text-m: clamp(1rem, 0.958rem + 0.185vw, 1.125rem);
--text-l: clamp(1.125rem, 1.052rem + 0.324vw, 1.344rem);
--text-xl: clamp(1.25rem, 1.125rem + 0.556vw, 1.625rem);
/* Headings */
--heading-s: clamp(1.125rem, 1.063rem + 0.278vw, 1.313rem);
--heading-m: clamp(1.375rem, 1.25rem + 0.556vw, 1.75rem);
--heading-l: clamp(1.75rem, 1.563rem + 0.833vw, 2.313rem);
--heading-xl: clamp(2.125rem, 1.792rem + 1.481vw, 3.125rem);
--heading-2xl: clamp(2.688rem, 2.208rem + 2.13vw, 4.125rem);
--heading-3xl: clamp(3.375rem, 2.667rem + 3.148vw, 5.5rem);
/* Spacing */
--space-2xs: clamp(0.313rem, 0.292rem + 0.093vw, 0.375rem);
--space-xs: clamp(0.438rem, 0.396rem + 0.185vw, 0.563rem);
--space-s: clamp(0.688rem, 0.646rem + 0.185vw, 0.813rem);
--space-m: clamp(1rem, 0.917rem + 0.37vw, 1.25rem);
--space-l: clamp(1.5rem, 1.375rem + 0.556vw, 1.875rem);
--space-xl: clamp(2.25rem, 2.063rem + 0.833vw, 2.813rem);
--space-2xl: clamp(3.375rem, 3.083rem + 1.296vw, 4.25rem);
--space-3xl: clamp(5.063rem, 4.646rem + 1.852vw, 6.313rem);
/* Supporting tokens */
--leading-heading: 1.15;
--leading-body: 1.6;
--measure: 65ch;
--space-section: var(--space-2xl);
--gutter: var(--space-m);
}
What the pieces are. Each fluid token is a clamp() with a rem minimum, a preferred value made of a rem intercept plus a vw slope, and a rem maximum. The line heights are unitless on purpose, because a unitless number scales with whatever font size the element has, so a fluid heading keeps proportional leading without a second clamp. The measure is a line length in ch units, roughly the width of a character, which keeps paragraphs readable at wide sizes. The two aliases at the end give the theme style stable names for section padding and the page gutter, so you can move the section padding from one step to another by editing a single line.
Choose one owner for each scale. If you paste this file, do not also generate a scale with the same prefix in the Style Manager. A new spacing scale in Bricks starts with the prefix space-, which is the prefix used here, and two definitions of the same name make the later one in the cascade win without any warning. The managers refuse duplicate names between the colour manager and the variables manager, but a variable that lives only in custom CSS is outside that check. Also remember what regenerating does inside the generator: it deletes and replaces all variables in that category, so manual edits are lost, although the names stay the same as long as the number of steps and the scale type stay the same, so existing references keep working.
The figure shows the type tokens as they render at the two ends of the range, using the computed minimum and maximum sizes. The left column is what a visitor sees at 360 pixels or narrower, and the right column is what a visitor sees at 1440 pixels or wider. Everything between is the ramp.

Applying the scale in Bricks: theme styles, classes and clearing overrides
Variables do nothing until something uses them, and in Bricks the right place for most of them is the theme style. Open the Style Manager from the builder toolbar, choose Theme styles and select or create your site-wide style. For headings, the documentation gives the path: in the theme style, open the typography group, pick the heading level, then Typography, then Font size, and choose the variable with the variable picker. Set the first four or five levels to the heading steps, for example var(--heading-2xl) for the top-level heading and var(--heading-xl), var(--heading-l) and var(--heading-m) below it. Set the body text size to var(--text-m) and the line height to var(--leading-body). Every size control in Bricks has the variable picker, a small CSS icon at the end of the field, and you can also type the reference by hand.
Spacing works the same way. The Elements group of the theme style holds the defaults for sections and containers. Set the section padding there, with the opposite sides linked so that setting the top also sets the bottom and setting the left also sets the right, for example the section padding token for top and bottom and the gutter for left and right. The container group in the same theme style has its own padding, row gap and column gap, which is the natural home for the everyday gap tokens. The documentation notes that you can make a whole site tighter or roomier later by changing the step in the theme style, say one step smaller for the section padding, and every section that follows the theme style updates on every page.
The step that people forget is clearing overrides. Bricks documents that a font size set directly on an element, including one set on a breakpoint, takes precedence over the theme style, and the same applies to padding. A heading that still carries the 48 pixel value somebody typed last year will ignore your scale. Clear those values on the elements that should follow the theme style. To do it in bulk, select several sections in the Structure panel, clicking the first and shift-clicking the last, or holding the command or control key to add single elements. The panel switches to bulk edit and shows how many elements are selected, and clearing a field clears it on all of them. If the sections have their own padding on a breakpoint, switch to that breakpoint and clear it there as well. For an element that should differ on purpose, such as a larger hero headline, choose another step of the same scale instead of typing a value, so the exception is still part of the system.
Classes cover the cases that a theme style cannot. The Style Manager can generate utility classes from a scale, using a pattern whose name and CSS property you choose, such as a class pattern with the font-size property for a text scale. The documentation says to generate only the classes you actually use, because every generated class is another entry in the class list. Hand-written classes are often better: a lead paragraph class that sets the font size to the lead token and the line height to the body token, a display class for the hero headline, an eyebrow class for small labels. In a class, write the value as a variable reference, as in font-size: var(--text-l), and never as a clamp, so the scale stays in one place.
Keep breakpoints for what they are good at. A container that is a row on desktop and a column on mobile still needs a breakpoint, and so does hiding an element. What should disappear are the size overrides: if a section’s padding or a heading’s size has a value on the tablet and mobile breakpoints, that is a sign it should be a token. The responsive control indicator in the Bricks builder settings can help you find controls that have values on other breakpoints. And use the canvas preview toggle in the Style Manager header, the eye icon, to watch the page while you change a scale, together with the width field in the toolbar to try widths between the standard breakpoints.
Fluid spacing: section padding, gaps and contextual spacing
Spacing is where fluid values pay off fastest, because spacing is the most repeated setting on a page. Every section has vertical padding, every container has a gap, every card has padding, and every block of text has space around it. With breakpoints each of those carries up to four values. With a scale each carries one variable.
Start with the section padding, because it is the largest and the one most often wrong. The Bricks documentation makes a point worth remembering: with its default spacing scale, the largest step ends at roughly 47 pixels, which is usually too small for the padding of a full-width section. The cure is to add larger steps to the scale, so that a step further up gives a padding in the range of 60 to 110 pixels. The scale in this guide already includes two such steps. Using space-2xl, a section runs from 54 pixels of vertical padding on a phone to 68 on a wide screen. Using space-3xl, it runs from 81 to 101. Choose one as the default in the theme style, through the section alias, and use the other for hero sections or for pages that need to breathe.
For gaps between children, use the gap controls of the container, not margins on every child. In Bricks layouts, spacing is typically handled with the gap property between containers and blocks, which keeps the spacing rule in one place, the parent, so a new child needs no spacing of its own. Put the gap token into the container defaults of the theme style, and override it on a class when a particular layout needs a tighter or looser rhythm. Card padding follows the same logic: a card class sets its padding to a token, and every card on the site shares it.
Text inside embedded content is a separate case, and Bricks has a dedicated feature for it: contextual spacing. In rich text, in the Post Content element when its source is the WordPress editor, and in WooCommerce embedded content, headings and paragraphs come from content that people edit, not from elements you arranged. Contextual spacing lives in the theme style, in its own group, and lets you define the vertical margin between those blocks. You can remove the default margins and paddings on selected HTML tags first, and then set a heading spacing, a paragraph spacing, a fallback spacing for anything else, and extra target elements such as lists, list items, figures and blockquotes. The fields accept variables, so you can use spacing tokens, for example a larger step for headings and a smaller step for paragraphs. When the variables come from a fluid scale, the spacing between text blocks grows and shrinks with the screen like the rest of the layout.
Three details from the documentation save time. The margins apply only when an element is preceded by another, so there is no stray gap at the top of the content. The reset selectors are output exactly as selected, so choosing a broad selector such as all paragraphs or all headings resets every matching element in the generated theme style CSS and not only those inside embedded content. And the fallback spacing applies to every element that follows another one, including list items, so if the items of a list drift apart after you set a fallback, add a target for list items and set the top margin to zero. You can also extend contextual spacing to wrappers you build yourself, with the Apply spacing inside option and a class such as a contextual spacing class on the wrapper. Margins then add to the wrapper’s own gap, so clear the gap, or the space between elements becomes gap plus margin.
The figure shows the spacing steps at both ends of the range, light bars for 360 pixels and dark bars for 1440. Notice that every step grows by about the same proportion, so the relationships between steps hold at every width. That is what keeps a layout looking the same, only larger.

Container query units: when the component, not the window, should decide
Viewport units answer the question “how wide is the window?”. That is the right question for page-level rhythm, such as a section’s padding or a hero headline. It is the wrong question for a component that lives in different places. A card can sit in a three-column grid, in a narrow sidebar and in a full-width feature row, all in the same viewport. A title sized by the window is the same size in all three, and it is too big in the sidebar. Container query units let the component size itself by the width of the box it sits in.
The mechanism has two parts. First, an ancestor is declared a container with container-type: inline-size. Second, descendants use container query length units. The useful one is cqi, one percent of the container’s inline size, the width in a horizontal writing mode, and there are siblings for other axes. The unit resolves against the nearest ancestor container, and the container’s own properties never use their own container, so the declaration and the units must be on different elements. If there is no eligible container, the specification falls back to the small viewport size, so a missing container degrades to something close to viewport units instead of failing. One side effect to plan for: inline-size containment means the container’s width cannot depend on its content, so give it a width from its parent, as a block child or grid item, and do not make it a shrink-to-fit element.
The same clamp rules apply, with the same cautions: keep a rem floor and a rem term so that zoom and text settings still work. Compute the value as you would for viewport units, with container widths as the two points. As a rough example, a card title between 1rem and 1.75rem that grows over a container range of a few hundred pixels could be written clamp(1rem, 0.6rem + 4cqi, 1.75rem), which sits at its 16 pixel floor in containers up to about 160 pixels wide, ramps as the container grows, and reaches its 28 pixel ceiling at about 460 pixels. The numbers in that example are illustrative, so compute your own from the two end widths you care about.
Bricks does not need a special control for this. The documented way to write your own CSS for a class is the Custom CSS editor for a global class, or the CSS group of an element, with the %root% placeholder standing for the class or element you are editing. Check the current Bricks documentation for any dedicated container settings in your version. The following pattern uses three classes: a wrapper that is the container, a title and a body area. Add the container class to the element that should define the width, and the other two classes to elements inside it.
/* Class: fluid-card (the container) */
%root% {
container-type: inline-size;
}
/* Class: fluid-card__title (inside the container) */
%root% {
font-size: clamp(1rem, 0.6rem + 4cqi, 1.75rem);
line-height: var(--leading-heading, 1.15);
}
/* Class: fluid-card__body (inside the container) */
%root% {
padding: clamp(0.75rem, 0.4rem + 3cqi, 1.5rem);
}
What it does. The first class turns its element into a query container along the inline axis. The title and body classes use cqi in the preferred part of a clamp, so their size follows the container’s width, with a rem floor and ceiling. The line height reads the unitless token and falls back to 1.15 when the token is not defined. Put the title and body classes on children, never on the container itself, because the container’s own properties cannot use its own container.
A decision rule keeps this tidy. Use viewport-based tokens for things that belong to the page: section padding, page gutters, headline sizes. Use container units for things that belong to a component which can appear in different widths: card titles and padding, widget headings, compact lists. Do not convert everything, because every container adds a layer of reasoning, and nested containers can surprise you. If a component always lives in one kind of place, a viewport token is simpler.

Accessibility: zoom, text resizing and the rem floor
Fluid type is the part of this technique with real accessibility consequences, and the details matter. This section is general guidance, not legal advice, and passing a success criterion depends on the whole page, so test your own pages and read the official WCAG documents for the exact wording. Three success criteria are relevant. Resize text, 1.4.4, asks that text can be resized without assistive technology up to 200 percent without loss of content or functionality. Reflow, 1.4.10, asks that content reflows at a width equivalent to 320 CSS pixels, which is a 400 percent zoom on a 1280 pixel window, without needing scrolling in two directions. Text spacing, 1.4.12, asks that content survives user overrides of line height, paragraph spacing, letter spacing and word spacing. Separately, many people simply raise the default text size in their browser settings, and a good site respects it.
The vw-only failure. The most common mistake is a size written in viewport units alone, such as font-size: 2.5vw. Think about what browser zoom does. Zooming in does not enlarge the window. It reduces the number of CSS pixels in the viewport, so 1vw becomes a smaller number of CSS pixels, while each CSS pixel is drawn larger. The two effects cancel, and the text stays the same size on screen however far the visitor zooms. A default text size set in the browser does not change it either, since it affects rem and not vw. A size that cannot be enlarged is the exact thing 1.4.4 exists to prevent.
The rem fix. The cure is to make rem part of the expression in two places. The minimum and maximum are written in rem, so the visitor’s default text size moves the floor and the ceiling. And the preferred value has a rem intercept plus a small vw slope, so under zoom the rem part grows while the vw part shrinks in CSS pixels, with a net increase. Every token in this guide has that shape. A floor written in pixels is the quiet cousin of the same bug: it ignores the visitor’s text size setting, so write bounds in rem.
The ceiling rule. Even with rem terms, a clamp limits how large the text can get. A way to reason about it: major desktop browsers such as Chrome and Firefox let people zoom to 500 percent, and a reasonable expectation is that at the largest zoom the text can reach at least double its normal size. At a wide viewport, zoomed far in, the viewport shrinks into the minimum plateau, where the on-screen size is the zoom factor times the minimum. For that to be at least twice the normal maximum, the zoom factor times the minimum must be at least two times the maximum, and with a zoom of five that means the maximum can be at most two and a half times the minimum. This is derived from the clamp’s shape, not quoted from a standard, so treat it as a guideline and test. Every text and heading token in this guide has a maximum to minimum ratio of 1.63 or lower.
Other habits. Do not set the root font size in pixels, which overrides the visitor’s preference. If you want a root size that makes rem arithmetic easy, use a percentage instead, and check what the Bricks control accepts. Do not give text containers fixed heights, because text spacing overrides and zoom will overflow them. Keep interactive targets generous: fluid padding on buttons should never shrink a target below the 24 by 24 CSS pixel minimum that WCAG 2.2 sets for pointer targets, with its exceptions. And test the real thing: zoom a page to 200 percent and then to 400, raise the browser’s default text size, and apply a text spacing override, checking that nothing is clipped, overlapped or hidden.
The figure compares three ways to size text and shows why the third is the one to choose.
Three ways to size text
| Fixed rem | vw only | clamp with rem bounds | |
|---|---|---|---|
| Scales with the window | No | Yes | Yes, between the bounds |
| Grows when the visitor zooms | Yes | No, cancels out | Yes, through the rem parts |
| Follows the default text size | Yes | No | Yes, through the rem parts |
| Has a floor and a ceiling | Not needed | No | Yes |
| Main risk | Jumps at breakpoints | Fails text resizing | A maximum far above the minimum |
Common mistakes and how to recognise them
Most fluid scale problems come from a short list of mistakes. Each has a visible symptom, which makes them quick to find once you know what to look for.
A size written in vw alone. The symptom is text that does not grow when you zoom the browser, and that is far too small on a phone or far too large on a wide monitor. Add a rem floor and ceiling and a rem intercept, as in the maths section. The accessibility section explains why it matters.
No intercept. A value such as clamp(1rem, 2vw, 3rem) looks reasonable and has a dead zone. At a 360 pixel viewport the preferred value is 7.2 pixels, far below the 16 pixel floor, so the floor wins. The preferred value does not reach 16 pixels until the viewport is 800 pixels wide, and it does not reach the 48 pixel ceiling until 2400. For most of the range the size sits at the floor, then ramps slowly across the widths where you probably wanted the movement to happen. The intercept moves the ramp to where you want it.
/* No intercept: sits at the 16px floor until the window is 800px wide */
.title-flat {
font-size: clamp(1rem, 2vw, 3rem);
}
/* With an intercept: 16px at 360px wide, 40px at 1440px wide */
.title-fluid {
font-size: clamp(1rem, 0.5rem + 2.222vw, 2.5rem);
}
The first rule is the mistake. Its preferred value, 2vw, is below the 16 pixel floor on every window narrower than 800 pixels, so the floor wins there and the size does not move at all, and the 48 pixel ceiling is not reached until the window is 2400 pixels wide. The second rule uses the slope and intercept calculation for the range you actually care about: an intercept of 0.5rem, which is 8 pixels, plus 2.222vw gives 16 pixels at 360 and 40 pixels at 1440, and the maximum of 2.5rem keeps the ratio between the largest and smallest size at two and a half, inside the guideline from the accessibility section. The figure plots both rules at eight window widths so you can see the dead zone on the left.
Bounds in pixels. A floor of 16 pixels ignores the visitor’s text size setting. Write bounds, and the intercept, in rem.
Arguments in the wrong order. The function is minimum, preferred, maximum. If the minimum is larger than the maximum, the minimum wins, because clamp() is defined as the larger of the minimum and the smaller of the preferred value and the maximum. A typo that swaps them produces a flat size and no error.
A maximum far above the minimum. A heading that runs from 24 pixels to 96 is a ratio of four, which is dramatic at the wide end and, as the accessibility section shows, hard to enlarge further by zooming. Keep text tokens within about two and a half times, and consider whether a very large display size is worth it at all.
Element-level overrides. The symptom is a heading that ignores the scale. Bricks documents that a font size set directly on an element, including one set on a breakpoint, takes precedence over the theme style. Select the element, look at the size field at every breakpoint, and clear it so that the theme style or the class applies.
Two owners for one name. If the Style Manager generates a scale and your custom CSS defines the same variable names, the later definition silently wins. And regenerating a Bricks scale deletes and replaces all variables in its category, so manual edits are lost, although the names stay the same while the number of steps and scale type stay the same. Decide which one owns each scale and keep the other out.
Fluid everything. Not every size should move. Icon sizes in buttons, borders, focus outlines and tap targets usually should not shrink below a safe size. Keep a floor on anything a finger or a pointer has to hit.
Pixel line heights. A line height written in pixels does not follow a fluid font size, and the leading looks wrong at one end of the range. Use unitless values, as in the supporting tokens above.
Breakpoints still setting sizes. If the tablet and mobile breakpoints still carry size values, they override the scale in a stepped way and defeat the point. The migration section shows how to find and remove them. Keep breakpoints for layout.

Line height, line length and the rest of the type system
A fluid font size does not make a type system by itself. Three companion decisions decide whether the text is actually comfortable to read, and each should also be a token.
Line height. Use unitless values. A unitless line height is multiplied by the element’s own font size, so as a heading grows from 34 to 50 pixels its leading grows with it, with no extra clamp. Body text usually wants a generous value, around one and a half to one and three-quarters times the size, and large headings want a tighter one, around one and a tenth to one and a quarter. The supporting tokens in the paste-ready file hold one of each. Remember the text spacing criterion: users may override line height to 1.5 times the font size, so containers around text must not clip or overlap when it does.
Line length. Readability studies are consistent that very long lines tire readers, and the commonly quoted comfortable range is somewhere around 45 to 75 characters per line. The ch unit is roughly the width of a zero in the element’s font, which makes it a convenient length for this job, and it moves with the font size, so a fluid size keeps the same number of characters per line. Apply the measure to the wrapper that holds body text, because the unit uses the font size of the element it is on. Put it on a heading and the same value becomes wider in pixels than on the body.
Balanced wrapping. Fluid headings wrap at different places at different widths, and short orphan words look careless. The CSS text-wrap property with the value balance asks the browser to even out line lengths in short blocks such as headings, and the value pretty avoids a single orphan word at the end of a paragraph. They are progressive enhancements: browsers that do not support them ignore them and wrap normally, so they are safe to add. Create them as small global classes using the placeholder for the class selector, as in the design system tutorial in this series.
/* Class: measure */
%root% {
max-width: var(--measure, 65ch);
}
/* Class: balance */
%root% {
text-wrap: balance;
}
/* Class: prose */
%root% {
font-size: var(--text-m);
line-height: var(--leading-body, 1.6);
max-width: var(--measure, 65ch);
}
The first two classes are single-purpose helpers. The third is a pattern class for long-form content: it sets the body size and leading from the tokens and limits the line length, and each declaration has a fallback so the class still works if a token is missing. In Bricks you can apply such a class to a Rich Text element or to a wrapper around post content. Contextual spacing, covered earlier, then handles the vertical space between the headings and paragraphs inside it.
One more habit: set heading and text sizes with variables in the theme style and the classes, never with inline pixel sizes in a rich text editor. An editor who pastes content with a hard-coded size on a span will bypass the scale, and on a site that many people edit, that is the most common way for a scale to erode. If you see it in a template, clear it, and if it keeps happening, the content workflow is the real fix.
Testing fluid values in the builder and in the browser
Fluid values are easy to test because they are predictable: given a width, you can compute the expected size. Use that. A test that compares a measured size with the formula’s answer finds typos, wrong units and overrides in minutes.
In the Bricks builder, the toolbar shows the breakpoint icons, and next to them inputs for the canvas width, height and scale. Type a width to look at the page between the standard breakpoints, and drag the edges of the canvas to watch the sizes move continuously. The Style Manager header has a toggle for a canvas preview, the eye icon, so you can edit a scale and watch the page update beside it. The responsive basics documentation recommends testing in the browser as well. Click Preview in the toolbar to open the frontend, then open the browser’s developer tools and use responsive design mode. The builder is an approximation, and real devices reveal things emulation misses, such as touch target size and legibility on slower phones.
Check the end points first. At a viewport of 360 pixels or narrower, every token should show its minimum, and at 1440 or wider, its maximum. In developer tools, select a heading and read its computed font size. For the scale in this guide, heading-xl should read 34 pixels at 360 and 50 at 1440. Then check a few widths in between against the formula. text-m should read 17 pixels at 900. heading-xl should read about 40.5 pixels at 800, 43.5 at 1000 and 46.4 at 1200. If a value is off, the cause is almost always one of three: an element-level size overriding the token, a typo in the clamp, or a stale generated stylesheet.
That last one matters if Bricks loads its CSS as external files, a performance option in the Bricks settings. After you change a scale or a theme style, use the Regenerate CSS files button, shown there once external files are selected, and clear any caching plugin, so that the browser is not testing old CSS.
Reading computed sizes from the developer tools one element at a time gets tedious, so here is a console helper that does the comparison for you. It computes the size a token should have at the current window width, reads the size the browser actually applied to an element, and tells you whether they agree.
function expectedSize(minPx, maxPx, minVw, maxVw, viewport) {
var t = (viewport - minVw) / (maxVw - minVw);
t = Math.min(Math.max(t, 0), 1);
return minPx + (maxPx - minPx) * t;
}
function checkFluid(selector, minPx, maxPx, minVw, maxVw) {
var el = document.querySelector(selector);
if (!el) {
console.log('No element found for ' + selector);
return;
}
var viewport = window.innerWidth;
var actual = parseFloat(getComputedStyle(el).fontSize);
var expected = expectedSize(minPx, maxPx, minVw || 360, maxVw || 1440, viewport);
var status = Math.abs(actual - expected) < 0.1 ? 'ok' : 'DIFFERENT';
console.log(selector + ' at ' + viewport + 'px: actual ' + actual.toFixed(2) + 'px, expected ' + expected.toFixed(2) + 'px, ' + status);
}
checkFluid('h1', 43, 66);
checkFluid('body', 16, 18);
What it does: expectedSize turns the window width into a position between 0 and 1 along the ramp, clamps that position so the size stays flat outside the range, and interpolates between the minimum and maximum size. checkFluid finds the first element that matches the selector, reads its computed font size in pixels and compares it with the expected value, allowing a tenth of a pixel for rounding in the rem and vw numbers. The viewport width comes from window.innerWidth, which is the width that viewport units use. The two calls at the bottom assume the scale in this guide, where a level one heading uses the 43 to 66 pixel step and the body uses the 16 to 18 pixel step, so change the selectors and sizes to match your own tokens. Run it on the frontend preview at several window widths, using responsive design mode or by resizing the window. A line that says DIFFERENT points at the three usual suspects: an element-level size, a typo in the clamp, or a stale stylesheet. The check assumes the default 16 pixel root size, so if you changed the browser’s default text size for the test, the actual values will legitimately be larger.
Then test accessibility on purpose. Zoom the page to 200 percent and then to 400 and confirm that text grows and nothing is clipped, hidden or overlapping. Raise the browser’s default text size and reload, and confirm that body text and headings follow. Apply a text spacing override, using a developer tools snippet or an extension that sets line height to 1.5 times, paragraph spacing to twice the font size, letter spacing to 0.12 times and word spacing to 0.16 times, and check that content still fits. Do these on the templates that matter most: the header, a long article, a form and a page with a hero.
Keep the routine as a short written checklist in the project, so that anyone who changes a token runs the same tests. A token change is a site-wide change, and it deserves a site-wide check.
A short testing routine for a fluid scale
Migrating a site from breakpoint values to a scale
An existing site rarely starts from a blank page. It has headings with explicit sizes on four breakpoints, sections with their own padding, and a handful of exceptions nobody remembers. Migrate in an order that lets you check every step, and do it on a staging copy.
1. Audit. List the distinct font sizes and paddings used on your main templates, with their breakpoint values. You will usually find fewer meaningful values than you feared: five or six sizes that were retyped many times with small differences.
2. Map to tokens. Pair each distinct value with the nearest step of your scale. A 46 pixel heading becomes the step that reaches 50 on desktop and 34 on mobile, which is a change, so look at how it affects the design and decide on purpose. Where a value does not match any step, either accept the nearest step or add a step to the scale if the value is a real part of the design. Do not add a step for every oddity.
3. Add the variables. Paste the CSS file, import the variables, or generate the scales in the Style Manager, choosing one owner for each scale.
4. Set the theme style. Put the tokens in the theme style for body text, headings, section padding and container gaps, as described earlier. At this point, pages with no element-level overrides already follow the scale.
5. Find and clear overrides. This is the real work. Use the Structure panel’s bulk edit to clear sizes and paddings on groups of elements, selecting a range or adding single elements with the command or control key, and switch to each breakpoint to clear its values too. To find the controls that have values on other breakpoints, use the responsive control indicator, which you can configure under Bricks, Settings, Builder, in the control panel options. One of its modes shows an indicator only when a control has a value on a non-base breakpoint, which is exactly the list you need.
6. Keep what is layout. Do not clear column stacking, hidden elements or alignment changes. Those are legitimate breakpoint settings. Only sizes, paddings and gaps should become tokens.
7. Compare and document. Open key pages at 360, 768, 1024 and 1440 pixels before and after, and check the accessibility tests from the previous section. Write down the token list, the two end points, and who owns the scale.
Two final reminders. A migration changes the look slightly everywhere, which is the price of consistency, so agree the visible changes with whoever owns the design before you start. And the scale is a living thing: when you decide that the body text should be a little larger, change one token’s end points and recompute its clamp. The whole site follows. That one-edit change is the reason to do the work.
Checklist
- Decide the two viewport widths for the ramp, such as 360 and 1440 pixels, and use the same pair for every token.
- Compute each preferred value as a rem intercept plus a vw slope, using the slope and intercept formula or the console calculator.
- Write the minimum and maximum of every clamp in rem, never in pixels.
- Never size text with vw alone; always keep a rem term so zoom and the default text size still change it.
- Keep the maximum within about two and a half times the minimum for every text and heading token.
- Name tokens by step, such as text-m, heading-xl and space-l, and keep the scale small.
- Choose one owner for each scale, either the Bricks Style Manager generator or your own CSS, and never define the same name twice.
- Set body text, heading levels, section padding and container gaps in a theme style using variable references.
- Clear element-level font sizes and paddings, on every breakpoint, so the theme style and classes can apply.
- Keep breakpoints for layout changes such as stacking columns and hiding elements, and not for sizes.
- Add larger spacing steps for section padding if your scale tops out too low.
- Use unitless line heights and a measure in ch, and apply the measure on the body text wrapper.
- Use contextual spacing for rich text and post content, and clear wrapper gaps when you extend it with a class.
- Use container query units only for components that appear in different widths, and keep a rem floor there too.
- Test at the end points, at three widths in between and on a real phone, comparing computed sizes with the formula.
- Zoom to 200 and 400 percent, raise the default text size and apply a text spacing override before releasing.
- Regenerate Bricks CSS files if you load them externally, and purge caches after changing a scale.
Read this next
About this guide. This is general guidance written by WPresident Editorial from documentation and widely used practice. WPresident has not benchmarked the products or methods described. Interfaces and plan limits change, so check the vendor’s current documentation before you act. Not legal, tax or financial advice. See our editorial policy.
Frequently asked questions
What does clamp() do and how do I read it?
clamp(MIN, PREFERRED, MAX) returns the preferred value unless it falls below the minimum or above the maximum, in which case it returns that bound. For fluid sizes the preferred value is a rem intercept plus a vw slope, so the result is flat at the minimum for small viewports, ramps steadily in the middle and is flat at the maximum for large ones. It works for any length: font size, padding, margin and gap.
How do I calculate the preferred value?
Pick the minimum and maximum size and the two viewport widths. The slope is the size change divided by the width change. The intercept is the minimum size minus the slope times the minimum width. Convert the intercept to rem by dividing by the root size, and the slope to vw by multiplying by 100. The browser console function in this guide does the arithmetic and gives a value you can paste.
Which minimum and maximum viewport widths should I use?
They only define where the ramp starts and ends, so choose widths that match your audience. The Bricks Style Manager documents defaults of 360 and 1440 pixels for its generated scales, which suit many sites, and you set them once in the Style Manager settings for all scales. Pick one pair and use it everywhere, so the tokens move together instead of reaching their limits at different widths.
Is fluid type bad for accessibility?
It can be, if it is written badly. A size in vw alone ignores zoom and the default text size, which fails text resizing. A clamp with rem bounds and a rem intercept still responds to both, and keeping the maximum within about two and a half times the minimum leaves room for zoom. This is general guidance, not legal advice, so test with 200 percent zoom, 400 percent reflow and larger default text.
Why use rem and not px inside clamp()?
Rem follows the root font size, which includes the visitor's default text size setting, and pixels do not. A pixel floor means a person who has enlarged their browser text still gets the fixed minimum. Rem in the bounds and in the intercept lets zoom and text settings work with the fluid part. The slope stays in vw, since it is the part that tracks the window.
Can I type clamp() directly into a Bricks control?
Bricks size controls accept CSS values, and the variables documentation uses a clamp typed into a control as the example of what a variable replaces. It works, but repeating the same clamp in many controls recreates the problem fluid scales solve. Create a variable, such as one called text-m, and pick it with the variable picker so the value is defined once.
Should I generate the scale in the Style Manager or paste CSS?
Either works, and the choice is about ownership. The generator gives you scale controls, naming schemes and optional utility classes, and regenerating replaces all variables in the category. A pasted CSS file gives you complete control and version history. Pick one owner per scale and never define the same variable names in both places, because the later definition in the cascade will win silently.
Why does my heading ignore the scale?
A font size set directly on the element, including a size on a breakpoint, takes precedence over the theme style, so the token never applies. Select the element, check the size field on each breakpoint and clear it. Also check for a global class that sets the size, and for custom CSS with a stronger selector. A deliberate exception should use another step of the same scale.
Do I still need breakpoints with fluid values?
Yes, for layout. Stacking columns, collapsing navigation and hiding elements are discrete changes that a continuous ramp cannot express. Fluid values replace the size, padding and gap overrides that were repeated on each breakpoint. The Bricks documentation describes the two approaches side by side: explicit values at each breakpoint for layout, and fluid scaling for typography and spacing.
What happens if I regenerate a Bricks scale?
Generating variables deletes the existing variables in that category and replaces them, and Bricks asks you to confirm first. Manual edits to names or values are lost. As long as the number of steps and the scale type stay the same, the names stay the same too, so every place that references a variable picks up the new value. Make a note of any hand-tuned values before regenerating.
When should I use container query units instead of vw?
Use vw-based tokens for things that belong to the page, such as section padding and headline sizes. Use container query units for a component that appears in different widths, such as a card in a grid, a sidebar and a full-width row. Mark an ancestor with container-type inline-size and use cqi inside the component, keeping a rem floor and ceiling in every clamp.



