Fluid gap between grid items:
<div class="grid grid-cols-3 fluid-gap-32-64">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</div>
Fluid margins:
<div class="fluid-m-20-40">Margin example from 20px to 40px.</div>
In order to use negative values you need to use a double dash -- to separate the values.
To add a positive value to a negative value, use the following syntax:
fluid-ml--<px>--<px>fluid-ml-<px>--<px>fluid-ml--<px>-<px>fluid-ml-<px>-<px><div class="h-30 w-30 fluid-ml-50--25" />
<div class="h-30 w-30 fluid-ml--50-25" />
Fluid paddings:
<div class="fluid-p-32-64">Padding example from 32px to 64px.</div>
Using predefined fluid ranges for padding:
export default defineConfig({
presets: [
presetVinicunca({
fluid: {
ranges: {
xs: [5, 15],
sm: [10, 30],
md: [15, 40],
lg: [20, 50],
},
}
}),
],
});
<!-- Fluid padding range from 20px to 50px -->
<div class="fluid-p-lg">Padding example with a small range.</div>
Fluid font-size:
<p class="fluid-text-32-64">
This is an example of a text with a font size scaling from 32px to 64px.
</p>
Fluid width & height:
<div class="fluid-w-100-200 fluid-h-100-200">100px to 200px.</div>