Canopy Row Gap — Best Practices

SkillDev tools

Best 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.

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-margin and spacing-padding skills.


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

InputTypeDefaultRequiredDescription
lgRowGapSpacingVariant4YesThe row-gap variant from the Canopy spacing scale.

Available spacing variants: 'none', 112.


Design Constraints

  • Use lgRowGap instead of custom CSS row-gap to stay consistent with the Canopy spacing scale.
  • Works on any HTML element that supports the row-gap CSS 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