Canopy Layout, Grid and Spacing — Foundation

SkillDev tools

Foundation guidance for Canopy layout, responsive grid, and spacing. Trigger when setting up responsive layouts, choosing breakpoints, or understanding the grid and spacing system in an Angular project using Canopy.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Canopy Layout, Grid and Spacing — Foundation skill

What this skill tells your AI

The instructions your AI receives, as published by legal-and-general/canopy in skills/best-practice/layout-grid-and-spacing/SKILL.md and read by ahel’s review.

This skill provides guidance on the Canopy responsive layout grid and spacing system.

Apply this skill when setting up page layouts, choosing breakpoints, or applying spacing variables.

See also: the grid skill for Angular grid directives (lgContainer, lgRow, lgCol), and spacing-margin, spacing-padding, and spacing-row-gap for directive-based spacing.


Breakpoints

Five mobile-first breakpoints are available:

BreakpointMin-widthMax-widthMarginGutter
SM0767px16px28px
MD768px1023px28px28px
LG1024px1279px32px32px
XL1280px1439px72px32px
XXL1440pxNo max104px32px

Always design mobile-first. Start with the smallest size (360px, ensure reflow at 320px).


Grid

The grid is based on flexbox. Import the Canopy global CSS to use it.

<div lgContainer>
  <div lgRow>
    <div [lgCol]="12" [lgColMd]="6">Left</div>
    <div [lgCol]="12" [lgColMd]="6">Right</div>
  </div>
</div>

Use the grid sparingly. For many layouts, plain flexbox is sufficient.


Spacing Variables

The spacing system uses CSS custom properties. Variables are responsive — they change between SM-MD and LG+ breakpoints.

Key spacing variables used in components:

VariableSM–MDLG+
--component-paddingvar(--space-1)var(--space-6)
--component-marginvar(--space-5)var(--space-6)

Use liberal vertical spacing — whitespace aids comprehension and visual rhythm.


Related Directives

  • lgContainer / lgRow / lgCol — see the grid skill
  • lgMargin / lgPadding — see spacing-margin and spacing-padding skills
  • lgRowGap — see spacing-row-gap skill
  • lgShowAt / lgHideAt — see show-at and hide-at skills

Signals

GitHub stars
23
Forks
46
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
canopy-layout-grid-and-spacing
Source
github.com/legal-and-general/canopy