Canopy Grid — Best Practices
SkillDev toolsBest practices for the Canopy Grid directives. Trigger when building responsive multi-column layouts, applying column spans, or offsetting columns in an Angular project using Canopy.
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 Grid — 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/grid/SKILL.md and read by ahel’s review.
This skill provides usage guidance and input reference for the Canopy grid directives from @legal-and-general/canopy.
Apply this skill whenever you use lgContainer, lgRow, or lgCol.
Import
import {
LgGridContainerDirective,
LgGridRowDirective,
LgGridColDirective,
} from '@legal-and-general/canopy';
Basic Usage
The grid uses a 12-column layout. Apply the three directives to any HTML element or Canopy component.
<div lgContainer>
<div lgRow>
<div [lgCol]="12" [lgColMd]="6">Column 1</div>
<div [lgCol]="12" [lgColMd]="6">Column 2</div>
</div>
</div>
Inputs
| Input | Type | Default | Description |
|---|---|---|---|
lgContainer | — | — | Applies the grid container. |
lgRow | — | — | Applies the row wrapper. |
lgCol | 1–12 | — | Number of columns (all screen sizes). |
lgColMd | 1–12 | — | Number of columns at medium screen size and above. |
lgColLg | 1–12 | — | Number of columns at large screen size and above. |
lgColOffset | 0–11 | — | Column offset (all screen sizes). |
lgColMdOffset | 0–11 | — | Column offset at medium screen size and above. |
lgColLgOffset | 0–11 | — | Column offset at large screen size and above. |
Design Constraints
- Always stack three directives:
lgContainer→lgRow→lgCol. - Use
[lgCol]="12"as the mobile-first default, then override atlgColMdorlgColLg. - Combine with
lg-pagefor full-page layouts.
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-grid- Source
- github.com/legal-and-general/canopy