Canopy Page — Best Practices
SkillDev toolsBest practices for the Canopy Page component. Trigger when setting up a full-page layout with a header and footer 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 Page — 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/page/SKILL.md and read by ahel’s review.
This skill provides usage guidance for the Canopy lg-page component from @legal-and-general/canopy.
Apply this skill whenever you use LgPageComponent to lay out a full page.
Import
import {
LgPageComponent,
LgGridContainerDirective,
LgGridRowDirective,
LgGridColDirective,
} from '@legal-and-general/canopy';
Basic Usage
<lg-page>
<header lg-header lgMarginBottom="none">
<!-- header content -->
</header>
<div lgContainer>
<div lgRow>
<div [lgCol]="12" [lgColMd]="8">
<router-outlet></router-outlet>
</div>
</div>
</div>
<footer lg-footer>
<!-- footer content -->
</footer>
</lg-page>
Content Projection Slots
| Slot | Description |
|---|---|
lg-header | Projects into the header area at the top of the page. |
lg-footer | Projects into the footer area at the bottom of the page. |
<default> | Any other content is projected into the central column. |
Wrapping Header and Footer
Use ngProjectAs to use wrapper components while still targeting the correct slots:
<lg-page>
<app-header ngProjectAs="[lg-header]"></app-header>
<router-outlet></router-outlet>
<app-footer ngProjectAs="[lg-footer]"></app-footer>
</lg-page>
Design Constraints
- Combine
lg-pagewith the grid directives (lgContainer,lgRow,lgCol) to create a responsive layout for the main content area. lg-pageautomatically adds a "skip to main content" link for accessibility.
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-page- Source
- github.com/legal-and-general/canopy