canopy-colour

Standardize lgColour directive usage and theming across Angular components.

23|46|Updated Sep 7, 2020
One-click install
npx skills add https://github.com/Legal-and-General/canopy --skill canopy-colour
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canopy-colour
Source: https://github.com/Legal-and-General/canopy/tree/main/skills/best-practice/colour
Command: npx skills add https://github.com/Legal-and-General/canopy --skill canopy-colour

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent Canopy colour application is reduced by standardising the lgColour directive usage and theming across Angular components, enabling coherent branding and accessible contrast.

Core Features & Use Cases

  • Clear guidelines for selecting semantic colour modes (blue, green, red, yellow) and matching themes (neutral, neutral-inverse, subtle, bold) for consistent UI.
  • Practical examples showing how to apply lgColour and lgColourTheme on common Canopy components (cards, buttons, nav items) to maintain visual coherence.
  • Use Case: ensure form validation states and status messages use consistent colour cues across a page for quick user recognition.

Quick Start

Apply the lgColour directive with a chosen colour mode and theme to a sample component to observe consistent visual behavior.

Frequently Asked Questions about canopy-colour

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardise colour theming across Angular components?

To standardise colour theming across Angular components, apply the lgColour directive with a chosen semantic colour mode and matching theme to ensure predictable visual behaviour and accessible contrast across your UI.

What's the best way to apply accessible colour semantics to Canopy UI cards and buttons?

The best way to apply accessible colour semantics to Canopy UI components is by using the lgColour and lgColourTheme directives on elements like cards and buttons to maintain visual coherence and defined contrast.

How does the lgColour directive work for Angular form validation states?

The lgColour directive works for Angular form validation by assigning semantic colour modes like red for errors or green for success, ensuring consistent colour cues across status messages for quick user recognition.

Which semantic colour modes and themes are available for Canopy design system theming?

Available semantic colour modes for Canopy design system theming include blue, green, red, and yellow, which can be paired with matching themes such as neutral, neutral-inverse, subtle, and bold for consistent UI.

Do I need specific dependencies to use lgColour directives in my Angular project?

No specific external dependencies are required to use lgColour directives in your Angular project, as the Skill provides standalone standardised theming guidelines and usage examples for direct implementation.

Can I use Canopy colour theming for both dark and light UI modes?

Yes, you can use Canopy colour theming for different UI modes by applying matching themes like neutral and neutral-inverse, which provide predictable colour semantics and accessible contrast across varying interface contexts.