Examples
Examples of fluid utility classes.
Resize the window to see the values change. The badge shows the computed CSS for the highlighted property.
Gap
<div class="grid grid-cols-3 fluid-gap-32/64">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</div>
gap—
Item 1
Item 2
Item 3
Margin
<div class="fluid-m-20/40">Margin from 20px to 40px.</div>
margin—
Margin example from 20px to 40px.
Padding
<div class="fluid-p-32/64">Padding from 32px to 64px.</div>
padding—
Padding example from 32px to 64px.
Theme shortcuts
The built-in lg spacing shortcut maps to 32px at the minimum viewport width and 48px at the maximum.
<div class="fluid-p-lg">Padding from 32px to 48px.</div>
padding—
Padding from 32px to 48px.
Typography
<p class="fluid-text-32/64">
Font size from 32px to 64px.
</p>
fontSize—
This is an example of a text with a font size scaling from 32px to 64px.
Width and height
<div class="fluid-w-100/200 fluid-h-100/200">100px to 200px.</div>
width—