canopy-colour-directive

Standardize colour modes and themes using the Canopy lgColour directive in Angular.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Establishes safe, accessible, and consistent usage of the Canopy lgColour directive across Angular components, avoiding ad-hoc colour choices and semantic drift.

Core Features & Use Cases

  • Usage guidance for applying colour modes and themes with lgColour and lgColourTheme.
  • Accessibility-focused recommendations ensuring WCAG-compliant contrast and token-based theming.
  • Real-world scenarios: apply semantic colours to alerts, cards, and status messages to maintain visual coherence across pages.

Quick Start

Apply the lgColour directive to a component with a chosen mode and theme to enforce consistent styling.

Frequently Asked Questions about canopy-colour-directive

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

FAQPage Schema
How do I apply consistent colour themes across Angular components?

To apply consistent colour themes across Angular components, use the Canopy lgColour directive with a chosen mode and theme, enforcing standardized semantic colour usage and preventing visual drift across your application's UI.

What is the best way to ensure WCAG-compliant colour contrast in Canopy theming?

The best way to ensure WCAG-compliant colour contrast in Canopy theming is by utilizing the lgColour directive's accessibility-focused recommendations, which apply token-based theming to maintain safe visual contrast across semantic UI elements.

How do I use semantic colours for alerts and status messages in Angular?

To use semantic colours for alerts and status messages in Angular, apply the lgColour directive to your components, maintaining visual coherence and consistent styling semantics across different page elements.

Does the lgColour directive prevent ad-hoc colour choices in Angular projects?

Yes, the lgColour directive prevents ad-hoc colour choices in Angular projects by establishing safe, accessible, and consistent usage standards, ensuring developers apply standardized semantic colour modes and themes.

When should I avoid manual colour styling in Angular Canopy components?

You should avoid manual colour styling in Angular Canopy components when consistent semantic theming and WCAG-compliant contrasts are required, relying instead on the lgColour directive to enforce safe visual coherence.