Column Gap
Set the spacing between columns 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 columns.
A
B
C
<div class="d-g cg-10 gtc-3 c-white"> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">A</div> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">B</div> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">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:cg-*Small≥640px
md:cg-*Medium≥768px
lg:cg-*Large≥1024px
xxl:cg-*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:cg-*Negative Values
Use negative variants to apply negative spacing.
Use the -- syntax to apply negative numeric values.
Syntax:
cg--*