A hands-on tool for understanding y = mx + b inside CSS. Adjust the input and see the output change live. Read the accompanying article.
MIN and MAX are floors and ceilings from
your design system. W₁ and W₂ are the
container widths at which the line should hit those bounds.
Four numbers, one line.
1cqi is 1% of the container's inline size. So
5.56cqi is really m·x in disguise — the
coefficient fused with a runtime lookup. The whole middle expression
is b + m·x.
m and b are derived — only one
line passes through two given points. You never tune them directly.
You tune W₁ and W₂ to match your real
container widths.
Never reaches MAX? W₂ is too large —
no real container is that wide.
Overshoots at small end? MIN itself is
too big for the smallest container.