Canopy Pictogram — Best Practices
SkillDev toolsBest practices for the Canopy Pictogram component. Trigger when using lg-pictogram, LgPictogramComponent, or adding illustrative pictograms 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 Pictogram — 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/pictogram/SKILL.md and read by ahel’s review.
This skill provides usage guidance and input reference for the Canopy lg-pictogram component from @legal-and-general/canopy.
Apply this skill whenever you use lg-pictogram or LgPictogramComponent.
See also: the
iconskill for UI icons (UI icons are smaller, functional; pictograms are larger, illustrative).
Import
import { LgPictogramComponent } from '@legal-and-general/canopy';
Basic Usage
<!-- Default size, no fill -->
<lg-pictogram name="sun"></lg-pictogram>
<!-- With fill enabled (self-service applications only) -->
<lg-pictogram name="sun" [hasFill]="true"></lg-pictogram>
<!-- With a specific size -->
<lg-pictogram name="sun" size="md"></lg-pictogram>
Sizes
Always use one of these predefined sizes to ensure outlines look crisp:
| Size token | rem | px |
|---|---|---|
--content-pictogram-size-md | 2 | 32 |
--content-pictogram-size-lg | 5 | 80 |
--content-pictogram-size-xl | 10 | 160 |
The size input accepts: md, lg, xl.
Pictograms should not be used below 32px.
Fill Behaviour
By default pictograms render without fill (outlines only). Use [hasFill]="true" to make the fill colour visible on neutral backgrounds. Only enable fill in self-service applications — do not set [hasFill]="true" in highly-branded scenarios such as the Dotcom CMS.
To apply a custom fill colour, use the colour input with a CSS variable name:
<lg-pictogram name="sun" colour="var(--colour-green-400)"></lg-pictogram>
Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | undefined | Yes | The name of the pictogram. |
size | PictogramSize | 'md' | No | The size of the pictogram (see sizes table). |
hasFill | boolean | false | No | Applies the fill colour. Only use in self-service applications. |
colour | string | undefined | No | CSS variable for the pictogram fill colour, e.g. var(--colour-green-400). |
Dos and Don'ts
Do
- Do scale pictograms according to the sizing chart — minimum 32px.
- Do use pictograms to support messages, empty states, or end-of-journey screens.
- Do enable
[hasFill]="true"when using a pictogram in a self-service application to make the fill visible on neutral backgrounds.
Don't
- Don't use a pictogram in place of a UI icon.
- Don't use pictograms below 32px — use UI icons instead.
- Don't set
[hasFill]="true"in highly-branded scenarios such as the Dotcom CMS.
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-pictogram- Source
- github.com/legal-and-general/canopy