Complete catalog of page layout patterns for SGDS applications. Use this skill whenever a user asks about page layouts, content arrangement, aside panels, split views, sidebar layouts, breadcrumb layouts, or viewport-height layouts — even if they just say 'how should I lay out my page' or 'I need a two-column layout'. Covers Full Width layouts (public-facing pages with sgds-container) and With Sidebar layouts (dashboards/internal tools with sgds-container-sidebar). Trigger on: layout, aside, split view, sidebar layout, two-column, three-column, content arrangement, page structure with aside.
Complete catalog of page layout patterns for SGDS applications. Use this skill whenever a user asks about page layouts, content arrangement, aside panels, split views, sidebar layouts, breadcrumb layouts, or viewport-height layouts — even if they just say 'how should I lay out my page' or 'I need a two-column layout'. Covers Full Width layouts (public-facing pages with sgds-container) and With Sidebar layouts (dashboards/internal tools with sgds-container-sidebar). Trigger on: layout, aside, split view, sidebar layout, two-column, three-column, content arrangement, page structure with aside.
Production-ready page layout patterns that define how content areas are arranged within the Application Shell. Each layout combines SGDS components and utilities to provide a structural starting point — drop in your content blocks and you have a complete page.
What is a layout?
A layout defines the spatial arrangement of content regions on a page:
How many content columns exist (single, split, aside + main)
Where navigation lives (top-only vs sidebar)
How the page scrolls (document flow vs viewport-contained)
Layouts sit between the Application Shell (mandatory page chrome) and Blocks/Templates (the actual content). The shell wraps the layout; blocks fill the layout's content areas.
Step 2: Extract the HTML from the template literal
Story files export a Template function that returns an html template literal:
constTemplate = () => html`<!-- YOUR HTML STARTS HERE --><sgds-masthead></sgds-masthead>
...
<sgds-footer></sgds-footer><!-- YOUR HTML ENDS HERE -->
`;
Step 3: Clean the HTML
Remove the `html`` wrapper and trailing backtick
Remove Lit-specific syntax (${variable} interpolations) — replace with inline HTML
Remove <style> blocks (these are just for Storybook placeholders)
Preserve all SGDS components and utility classes exactly as-is
Format with consistent indentation (2 spaces)
For AI agents
Workflow
Load sgds-utilities skill (for utility class reference)
Load sgds-components skill (for component APIs)
Load this skill
Read the appropriate reference file based on the user's needs
Fetch the raw GitHub story file if you need the complete implementation
Adapt the layout to the user's content
Guidelines
Every layout includes the mandatory Application Shell (<sgds-masthead>, <sgds-mainnav>, <sgds-footer>)
Do not mix Full Width and With Sidebar patterns — pick one based on the use case
For sidebar layouts, always include the viewport-containment classes on the root wrapper
Populate aside panels and content areas with blocks from sgds-blocks or templates from sgds-templates