Layout designer

From eddiebelaval/squire · View interactive version

Layout designer is an AI agent skill from the GitHub repository eddiebelaval/squire. Expert page layout and grid system design

How to use this skill

Skill file

Layout Designer

A layout expert that creates beautiful, functional page compositions using grid systems, spacing, and visual hierarchy principles. This skill combines design theory, responsive design patterns, and modern CSS capabilities to build layouts that work across all devices and content types.

Whether you need a landing page hero, a dashboard interface, or an editorial layout, this skill provides structured approaches to composition that balance aesthetics with usability.

Core Workflows

Workflow 1: Landing Page Layout

  1. Define page sections:
  1. Design each section:
  1. Create responsive breakpoints:
  1. Specify component placement and sizing
  2. Generate HTML/CSS structure

Workflow 2: Dashboard/App Layout

  1. Map information architecture:
  1. Choose layout system:
  1. Define grid and spacing:
  1. Plan responsive behavior:
  1. Provide Tailwind/CSS Grid code

Workflow 3: Editorial/Content Layout

  1. Understand content:
  1. Design reading experience:
  1. Choose composition:
  1. Design special elements:
  1. Ensure readability across devices

Workflow 4: Grid System Creation

  1. Define requirements:
  1. Create grid specification:
  1. Build spacing scale:
  1. Document layout patterns:
  1. Generate framework config

Quick Reference

| Action | Command/Trigger |

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

| Landing page layout | "Design a landing page for [product]" |

| Dashboard layout | "Create dashboard layout for [use case]" |

| Blog/article layout | "Design a blog post layout" |

| Grid system | "Build a grid system for [project]" |

| Fix layout | "Improve the layout of [page/section]" |

| Responsive strategy | "Make this layout responsive" |

Layout Patterns Library

Hero Sections

Full-Width Hero

Split Hero

Asymmetric Hero

Content Sections

Centered Stack

Card Grid

Alternating Rows

Bento Grid

App Layouts

Sidebar Navigation

+-----+----------------+
| Nav |    Content     |
|     |                |
|     |                |
+-----+----------------+

Top Navigation

+---------------------+
|        Nav          |
+---------------------+
|      Content        |
|                     |
+---------------------+

Holy Grail

+---------------------+
|       Header        |
+-----+--------+------+
| L   |  Main  |  R   |
| e   |Content | i    |
| f   |        | g    |
| t   |        | h    |
|     |        | t    |
+-----+--------+------+
|       Footer        |
+---------------------+

Design Principles

Visual Hierarchy

Whitespace

Alignment

Proximity

Balance

Contrast

Best Practices

Grid Systems

12-Column Grid

16-Column Grid

Modular Grid

Baseline Grid

Spacing Scale (8px base)

0:   0px    (none)
1:   4px    (0.25rem) - tight
2:   8px    (0.5rem)  - base
3:   12px   (0.75rem)
4:   16px   (1rem)    - comfortable
5:   20px   (1.25rem)
6:   24px   (1.5rem)  - loose
8:   32px   (2rem)    - section spacing
10:  40px   (2.5rem)
12:  48px   (3rem)
16:  64px   (4rem)    - hero spacing
20:  80px   (5rem)
24:  96px   (6rem)
32:  128px  (8rem)    - dramatic spacing

Responsive Breakpoints

Common breakpoints:

Content-first breakpoints:

Add breakpoints where YOUR content breaks, not arbitrary device sizes.

Deliverables Format

LAYOUT SPECIFICATION
Project: [Name]
Page: [Landing / Dashboard / Article]

STRUCTURE
[ASCII diagram of layout]

GRID SYSTEM
Columns: 12
Gutter: 24px (1.5rem)
Margin: 16px mobile, 24px tablet, 40px desktop
Max-width: 1280px (80rem)

SECTIONS
1. Hero
   - Height: 100vh on desktop, auto on mobile
   - Grid: Full-width background, centered content
   - Content max-width: 600px
   - Padding: py-20 md:py-32

2. Features
   - Grid: 1 col mobile, 2 col tablet, 3 col desktop
   - Card spacing: gap-8
   - Section padding: py-16 md:py-24

[... more sections ...]

SPACING SYSTEM
Base: 8px
Scale: [0, 0.5, 1, 1.5, 2, 3, 4, 6, 8, 12, 16, 20, 24, 32]
Section spacing: 64px (py-16)
Component spacing: 32px (py-8)

RESPONSIVE BEHAVIOR
Mobile (<768px):
  - Single column stack
  - Sidebar becomes hamburger menu
  - Reduce section spacing 50%
  - Hero height: auto

Tablet (768-1024px):
  - 2-column hybrid
  - Partial sidebar collapse
  - Moderate spacing

Desktop (>1024px):
  - Full multi-column
  - All content visible
  - Maximum spacing

CODE STRUCTURE
[HTML/React component structure]
[Tailwind classes or CSS Grid code]

DESIGN NOTES
- F-pattern reading flow
- CTA buttons right-aligned to guide eye
- Ample whitespace between sections
- Cards use 4:3 aspect ratio for consistency

Tools Integration

Common Requests

SaaS Landing Page: Hero + features grid + pricing + CTA

Blog: Centered column + sidebar + featured images

Portfolio: Masonry grid + project detail pages

Dashboard: Sidebar nav + table/chart grid

E-commerce: Product grid + filters + detail view

Documentation: Sidebar nav + content + right sidebar TOC

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.