Row Gap
Set the spacing between rows in a grid layout.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Define the spacing between grid rows.
A
B
C
<div class="rg-10 d-g gtr-3 c-white"> <div class="bg-indigo p-4 ta-c">A</div> <div class="bg-indigo p-4 ta-c">B</div> <div class="bg-indigo p-4 ta-c">C</div></div>Responsive Design
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:rg-[value]Small≥640px
md:rg-[value]Medium≥768px
lg:rg-[value]Large≥1024px
xxl:rg-[value]Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:rg-[value]