Canopy Promo Card — Best Practices
SkillDev toolsBest practices for the Canopy Promo Card component. Trigger when creating promotional content cards, product showcase cards, or feature highlight sections 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 Promo Card — 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/promo-card/SKILL.md and read by ahel’s review.
This skill provides usage guidance, dos and don'ts, and input reference for the Canopy promo card components from @legal-and-general/canopy.
Apply this skill whenever you use LgPromoCardComponent or lg-promo-card.
Import
import {
LgPromoCardComponent,
LgPromoCardListComponent,
LgPromoCardListTitleComponent,
LgPromoCardTitleComponent,
LgPromoCardContentComponent,
LgPromoCardFooterComponent,
LgPromoCardImageComponent,
} from '@legal-and-general/canopy';
Basic Usage
<lg-promo-card-list>
<lg-promo-card-list-title [headingLevel]="2">Our products</lg-promo-card-list-title>
<lg-promo-card variant="solid-white">
<lg-promo-card-image imageUrl="/assets/product.jpg" alt="Product image">
</lg-promo-card-image>
<lg-promo-card-title [headingLevel]="3">Product name</lg-promo-card-title>
<lg-promo-card-content>A short description of the product.</lg-promo-card-content>
<lg-promo-card-footer>
<a lg-button priority="primary">Find out more</a>
</lg-promo-card-footer>
</lg-promo-card>
</lg-promo-card-list>
Add an lg-separator between the list title and the first card as a visual divider:
<lg-promo-card-list>
<lg-promo-card-list-title [headingLevel]="2">Our products</lg-promo-card-list-title>
<lg-separator></lg-separator>
<lg-promo-card variant="solid-white">...</lg-promo-card>
<lg-promo-card variant="solid-white">...</lg-promo-card>
</lg-promo-card-list>
LgPromoCardComponent Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
variant | 'solid-white' | 'solid-green' | 'solid-yellow' | 'solid-white' | No | Background colour variant. |
LgPromoCardTitleComponent Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | n/a | Yes | Semantic heading level for the card title. |
LgPromoCardImageComponent Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
imageUrl | string | n/a | Yes | URL of the card image. |
alt | string | '' | No | Alt text for the image. |
Content Limits
To maintain consistent layout across cards, keep content within these limits:
| Content | Limit |
|---|---|
| Title | 33 characters |
| Content description | 140 characters |
| Button label | 20 characters |
| Image dimensions | 620 × 620 px |
Dos and Don'ts
Do
- Do keep titles and descriptions concise — respect the character limits above.
- Do use
headingLevelto maintain a logical document heading hierarchy. - Do provide meaningful
alttext for card images. - Do group promo cards inside
lg-promo-card-listfor consistent layout and spacing.
Don't
- Don't use promo cards for general page content — they are designed for promotional, product, or feature highlights.
- Don't mix
solid-greenorsolid-yellowcards with white-background page content without considering the visual hierarchy.
Design Constraints
- All cards in a list should use the same
variantfor visual consistency. - Use the
solid-greenorsolid-yellowvariant only when it is consistent with the surrounding page colour mode. - Card images are expected to be square (620 × 620 px).
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-promo-card- Source
- github.com/legal-and-general/canopy