Canopy Row Gap — Best Practices
SkillDev toolsBest practices for the Canopy Row Gap directive. Trigger when applying row-gap spacing to flex or grid containers using the Canopy spacing scale in an Angular project.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Canopy Row Gap — Best Practices skill
What this skill tells your AI
The instructions your AI receives, as published by legal-and-general/canopy in skills/best-practice/spacing-row-gap/SKILL.md and read by ahel’s review.
This skill provides usage guidance and input reference for the Canopy lgRowGap directive from @legal-and-general/canopy.
Apply this skill whenever you apply row-gap to a flex or grid container.
See also:
spacing-marginandspacing-paddingskills.
Import
import { LgRowGapDirective } from '@legal-and-general/canopy';
Basic Usage
<!-- Apply spacing variant 8 as row-gap -->
<div lgRowGap="8"></div>
<!-- Apply default row-gap (variant 4) -->
<div lgRowGap></div>
Works well with the Canopy grid:
<div lgContainer>
<div lgRow lgRowGap="6">
<div [lgCol]="12" [lgColMd]="6">Column 1</div>
<div [lgCol]="12" [lgColMd]="6">Column 2</div>
</div>
</div>
Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
lgRowGap | SpacingVariant | 4 | Yes | The row-gap variant from the Canopy spacing scale. |
Available spacing variants: 'none', 1–12.
Design Constraints
- Use
lgRowGapinstead of custom CSSrow-gapto stay consistent with the Canopy spacing scale. - Works on any HTML element that supports the
row-gapCSS property.
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-spacing-row-gap- Source
- github.com/legal-and-general/canopy