Skip to content
Agentmart
Submit a tool

canopy-icon

Best practices for the Canopy UI Icon component.

Skill by Legal-and-General

IndexedMIT★ 24
Write a review

Chalk Labs

Need help deploying canopy-icon?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/legal-and-general-canopy-icon

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Best practices for the Canopy UI Icon component. Trigger when using lg-icon, LgIconComponent, or adding functional UI icons in an Angular project using Canopy.

Use cases: design, frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/canopy-icon

What's inside

Skill name
canopy-icon
Description
Best practices for the Canopy UI Icon component. Trigger when using lg-icon, LgIconComponent, or adding functional UI icons in an Angular project using Canopy.
License
MIT
Metadata
source: https://github.com/Legal-and-General/canopy/tree/master/projects/canopy/src/lib/icon/docs/guide.mdx
Instructions
87 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: "canopy-icon" does not match folder "icon"

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Canopy UI Icon — Best Practices

This skill provides usage guidance and input reference for the Canopy `lg-icon` component from `@legal-and-general/canopy`.

Apply this skill whenever you use `lg-icon` or `LgIconComponent`.

> See also: the `pictogram` skill for brand/illustrative icons.

---

## Import

```ts
import { LgIconComponent } from '@legal-and-general/canopy';
```

---

## Basic Usage

```html
<lg-icon name="email"></lg-icon>
```

---

## Inputs

| Input | Type | Default | Required | Description |
|-------|------|---------|----------|-------------|
| `name` | `string` | `undefined` | Yes | The name of the icon. |

---

## Sizing

Icons size to `1em` (height and width), inheriting the font-size of their parent. Scale icons on the 4px scale.

---

## Colour

By default, icons use `currentColor` for their `fill`, so they inherit the text colour of their parent element.

```html
<span style="color: var(--colour-green-700)">
  <lg-icon name="email"></lg-icon>
</span>
```

**Note:** The `help` and `query-outline` icons cannot change colour.

---

## Decorative vs. Informative Icons

- For **decorative** icons (pure visual adornment), add `aria-hidden="true"`:
  ```html
  <lg-icon name="arrow-right" aria-hidden="true"></lg-icon>
  ```
- For **informative** icons with no accompanying visible text, provide screen-reader text:
  ```html
  <lg-icon name="link-external" aria-hidden="true"></lg-icon>
  <span class="lg-visually-hidden">opens in a new tab</span>
  ```

---

## Dos and Don'ts

### Do

1. **Do** scale icons on the 4px scale for crisp outlines.
2. **Do** use charcoal or high-contrast colour icons on white backgrounds.
3. **Do** use tinted colours on light backgrounds — minimum contrast ratio 4.5:1.
4. **Do** use white icons on high-contrast backgrounds.
5. **Do** add `aria-hidden="true"` to decorative icons.

### Don't

1. **Don't** scale icons below 16px.
2. **Don't** scale icons above 64px — use pictograms or illustration for more prominent graphics.
3. **Don't** overlay icons on photographic backgrounds.
4. **Don't** use low-contrast colour combinations.

From Legal-and-General/canopy, MIT.

More from Legal-and-General/canopy

Signals

Stars
24
Forks
46
Open issues
11
Last commit (this folder)
Jun 30, 2026 (4 months ago)
Last release
Oct 20, 2026 (15 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Legal-and-General

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get canopy-icon running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying canopy-icon?

CallGet help
Cite this page

canopy-icon skill. Agent Mart. https://agentmart.dev/skills/legal-and-general-canopy-icon (last updated 2026-10-24)