Canopy Grid — Best Practices

SkillDev tools

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

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

InputTypeDefaultDescription
lgContainerApplies the grid container.
lgRowApplies the row wrapper.
lgCol1–12Number of columns (all screen sizes).
lgColMd1–12Number of columns at medium screen size and above.
lgColLg1–12Number of columns at large screen size and above.
lgColOffset0–11Column offset (all screen sizes).
lgColMdOffset0–11Column offset at medium screen size and above.
lgColLgOffset0–11Column offset at large screen size and above.

Design Constraints

  • Always stack three directives: lgContainerlgRowlgCol.
  • Use [lgCol]="12" as the mobile-first default, then override at lgColMd or lgColLg.
  • Combine with lg-page for 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