A Tailwind CSS v4 plugin built entirely in CSS. Every utility scales
proportionally to the viewport using
calc()
and
clamp().
Live demo — resize the window
All boxes use w-* and
h-*
— they scale proportionally with the viewport.
How it works
Every class applies the same formula under the hood, making every property scale fluidly with the viewport.
Generated CSS
value
The number in your class.
100 in
w-100.
1440px
Max viewport cap. Values stop growing above this width.
1440
Your design reference width. Override with
--window-width.
w-100 at different viewports
Values are capped at the base width — no overflow on ultra-wide screens.
Features
No JavaScript. No runtime. Built entirely with native CSS features
—
@utility,
calc() and
clamp(). Pure, zero-overhead
performance.
Design at a fixed reference width and every screen gets a perfectly proportional result. No breakpoints. No media queries. Just math.
Override the reference width with a single CSS variable. Set
--window-width: 1920 and every
utility instantly recalculates to match your design system.
All compatible utilities support negative variants. Use
-mt-20,
-top-40,
-translate-x-50 — all properly
scaled.
Available utilities
Sizing
Padding
Margin + negative
Typography + negative
Positioning + negative
Transform + negative
Gap
Borders & Radius
Misc + negative
Get started
Install the package
Import in your CSS file
That's it. 🎉
All utilities are now available. Use
w-100,
p-24,
text-48
and any other numeric class — they all scale with the viewport.