Utils

From Legal-and-General/canopy · View interactive version

Utils is an AI agent skill from the GitHub repository Legal-and-General/canopy. Reference for Canopy CSS utility classes. Trigger when using lg-visually-hidden, lg-unstyled-link, or other Canopy utility CSS classes in an Angular project.

How to use this skill

Skill file

Canopy CSS Utilities — Reference

This skill provides reference for the Canopy CSS utility classes available globally in applications that import the Canopy styles.


Available Classes

| Class | Description |

|-------|-------------|

| lg-visually-hidden | Hides content visually but keeps it accessible to screen readers. |

| lg-unstyled-link | Reverts link styles to a more default (unstyled) state. |


Usage

`lg-visually-hidden`

Use to provide context for screen reader users without showing text visually:

<span class="lg-visually-hidden">opens in a new tab</span>

`lg-unstyled-link`

Apply as a class to revert Canopy link styles on a custom element:

<a href="#" class="lg-unstyled-link">Custom styled link</a>

Or use the SCSS mixin in your component styles (see the mixins skill).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.