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="d-g rg-10 gtr-3 c-white">
<div class="p-4 bg-indigo ta-c">A</div>
<div class="p-4 bg-indigo ta-c">B</div>
<div class="p-4 bg-indigo ta-c">C</div>
</div>

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:rg-*
Small640px
md:rg-*
Medium768px
lg:rg-*
Large1024px
xxl:rg-*
Extra Large1536px

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-*

Negative Values

Use negative variants to apply negative spacing.

Use the -- syntax to apply negative numeric values.

Syntax:rg--*