Canopy List with Icons - Best Practices
SkillDev toolsBest practices for Canopy list-with-icons usage. Trigger when using lg-list-with-icons, lg-list-with-icons-item, ordered list markers, or list item variant theming in Angular.
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 List with Icons - 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/list/SKILL.md and read by ahel’s review.
Use this skill whenever you build list UI with LgListWithIconsComponent and
LgListWithIconsItemComponent from @legal-and-general/canopy.
Import
import {
LgListWithIconsComponent,
LgListWithIconsItemComponent,
} from '@legal-and-general/canopy';
Add both to a standalone component imports array.
Basic Usage
Apply the directives to native list elements:
<ul lg-list-with-icons>
<li lg-list-with-icons-item iconName="checkmark" variant="mono">List item 1</li>
<li lg-list-with-icons-item iconName="checkmark-spot-filled" variant="mono">
List item 2
</li>
</ul>
Ordered Lists
Use an ol with lg-list-with-icons for ordered lists. Items are numbered automatically via CSS counters:
<ol lg-list-with-icons>
<li lg-list-with-icons-item iconName="checkmark" variant="mono">Step 1</li>
<li lg-list-with-icons-item iconName="checkmark" variant="mono">Step 2</li>
<li lg-list-with-icons-item iconName="checkmark" variant="mono">Step 3</li>
</ol>
Markers are shown as 1., 2., 3. etc. in DOM order, with colour controlled by variant.
Item-Level Theming
Set marker colour per item with variant:
monopositivenegative
variant is item-level and can differ between parent and child items.
variant set on an item controls marker colour.
<ul lg-list-with-icons>
<li lg-list-with-icons-item iconName="checkmark" variant="positive">Included</li>
<li lg-list-with-icons-item iconName="cross" variant="negative">Not included</li>
</ul>
Recommended Icons
Prefer the icon names currently used in stories for consistent list semantics:
checkmarkcheckmark-spot-filledbullet-pointbullet-squarebullet-featurebullet-dashbullet-circleprogress-to-docrosscrossmark-spot-filled
Inputs
LgListWithIconsComponent
| Input | Type | Default | Description |
|---|---|---|---|
size | 'default' | 'large' | 'default' | Controls list typography and marker sizing. |
LgListWithIconsItemComponent
| Input | Type | Default | Description |
|---|---|---|---|
iconName | IconName | — | Icon shown for unordered items. Keep this set for consistency across templates. |
variant | 'mono' | 'positive' | 'negative' | 'mono' | Item-level marker theme (controls both icon and ordered list number colour). |
Do and Don't
Do
- Do apply
lg-list-with-iconstoulorol, andlg-list-with-icons-itemto eachli. - Do use
varianton each item for mixed positive/negative/neutral lists. - Do keep nested lists to parent and one child level.
- Do use
olfor naturally ordered sequences; useulfor unordered content.
Don't
- Don't rely on plain
ulorolexpecting Canopy list marker styling. - Don't use removed APIs such as
iconColour.
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-list- Source
- github.com/legal-and-general/canopy