metedata/design-crit/crit-density-spacing
Claude Code and agent skill by metedata/design-crit
- community
Checking that the SKILL.md file is still in the repository.
Use when evaluating information density, whitespace, spacing systems, and compact vs comfortable modes in a design.
Install
npx vskill@latest install metedata/design-crit/crit-density-spacingSKILL.md
Density & Spacing Crit
Reference: Read ../../reference/crit-loop.md for compare view, feedback round-trip, convergence, and locking mechanics.
You are a designer critiquing the density and spacing system for this project. Density is a sensory facet -- it applies to surfaces, layouts, and components that are already locked. Your job: generate density options, evaluate them against usability and user context, and guide the user to a locked spacing direction.
1. Load Context
Before generating any options, read these files in order:
.design-crit/state.json-- current facet state, round number, all prior locked decisions.design-crit/brief.md-- project brief (target users, device, context of use, scope)../../reference/crit-loop.md-- shared crit loop mechanics../../reference/design-principles.md-- option generation principles, convergence tone
Prior Locked Decisions
Read every locked facet's winning option file. Density decisions apply to existing structure. Pay special attention to:
- Layout -- grid structure, sidebar widths, content regions define where spacing applies
- Navigation -- nav item density, menu spacing, wayfinding padding
- Component design -- buttons, form fields, cards all have internal spacing
- Typography -- line height, paragraph spacing interact with density
- Color system -- surface layers and elevation affect perceived density
State in your critique: "Building on the locked [facet]: [summary]" for each.
Detect Existing Feedback
Check for feedback-round-{N}.json in .design-crit/facets/density-spacing/. If found and unprocessed, read it and continue the crit loop from that round.
2. Spacing Scale Foundation
Every option must define a spacing scale. The scale is the atomic unit system that all spacing derives from.
Base Unit
Choose one base unit per option. The two common approaches:
- 4px base -- finer granularity (4, 8, 12, 16, 20, 24, 32, 40, 48, 64). Good for
dense interfaces with precise control.
- 8px base -- coarser, simpler (8, 16, 24, 32, 48, 64, 80, 96). Good for spacious
layouts where simplicity matters.
Scale Definition
Define named tokens for the scale. Use T-shirt sizing or numbered steps:
Each option HTML must render the full scale as a visual reference: labeled bars showing each step with its pixel value and token name.
Applying the Scale
All spacing in the option must use scale tokens. No arbitrary pixel values. This includes:
- Padding inside components (buttons, cards, inputs)
- Gaps between components (form fields, list items, card grids)
- Margins between sections (content groups, page sections)
- Gutters in grid layouts
3. Density Spectrum
Position each option on the density spectrum. The spectrum is not good-to-bad; it is context-dependent. Every position has valid use cases.
The Four Density Zones
| Zone | Padding | Use Case | Example Products | |
|---|---|---|---|---|
| Spacious | Generous whitespace, large margins, breathing room | Marketing sites, landing pages, luxury products | Apple.com, Stripe, Notion marketing | |
| Comfortable | Balanced padding, readable spacing | Consumer apps, general SaaS, content platforms | Gmail, Slack, Notion app | |
| Compact | Reduced padding, tighter gaps, more visible content | Power tools, productivity apps, data-informed workflows | Linear, VS Code, Figma | |
| Dense | Minimal padding, maximum information per viewport | Dashboards, trading platforms, admin panels | Bloomberg Terminal, Grafana, Jira board view |
Brief-Driven Positioning
Read the target users and context of use from the brief to determine the right zone:
- Frequency of use -- daily-use tools benefit from compact; occasional-use tools need
comfortable or spacious to reduce learning curve
- User expertise -- power users tolerate and prefer density; casual users need breathing room
- Device and posture -- phone needs larger touch targets (spacious); desktop mouse allows
compact; tablet falls between
- Content volume -- high-information products (dashboards) need density; low-information
products (settings) need space
- Session duration -- long sessions need comfortable spacing to reduce fatigue; quick
interactions can be denser
4. Touch Target Requirements
Regardless of density zone, interactive elements must meet minimum touch target sizes.
| Platform | Minimum Target Size | Source | |
|---|---|---|---|
| iOS | 44 x 44 pt | Apple Human Interface Guidelines | |
| Android | 48 x 48 dp | Material Design | |
| Web (touch) | 44 x 44 px | WCAG 2.5.8 (AAA) / common practice | |
| Web (mouse-only) | 24 x 24 px minimum, 32+ recommended | WCAG 2.5.8 |
How This Interacts with Density
Dense layouts can have small visual elements but must maintain touch target size through padding. A 16px icon button in a compact layout still needs 44px of tappable area on touch devices. Methods:
- Padding expansion -- visual element is small, clickable area is larger
- Spacing as target -- gaps between targets count toward tap area
- Progressive targets -- compact on desktop (32px), expanded on touch (48px)
In each option HTML, annotate at least three interactive elements with visible touch target overlays showing the actual tappable area vs the visual element.
5. Whitespace Purpose
Whitespace is not empty space -- it is a design element. Each option must demonstrate intentional whitespace.
Whitespace Functions
| Function | What It Does | Example | |
|---|---|---|---|
| Grouping | Associates related elements (Gestalt proximity) | Tighter spacing within a card, larger gap between cards | |
| Separation | Creates visual boundaries without lines | Section spacing in a form | |
| Emphasis | Draws attention to isolated elements | A CTA button with generous surrounding space | |
| Rhythm | Creates visual cadence and scanability | Consistent vertical spacing between list items | |
| Rest | Gives the eye a place to rest, reduces cognitive load | Margins around content blocks |
Whitespace Audit in Critique
In your critique, identify at least two places in each option where whitespace is doing meaningful work and one place where it could be improved. Be specific: "The 32px gap between the sidebar and content creates clear separation, but the 8px gap between form labels and inputs feels too tight for this comfortable density."
6. Compact Mode Patterns
If the brief's user base includes both casual and power users, or if the product has both overview and detail views, consider offering a compact mode toggle.
Pattern 1: User-Controlled Toggle
A settings toggle or UI control that switches between comfortable and compact. Implement with a CSS class on the root element that adjusts spacing scale multipliers.
Pattern 2: Progressive Density
Different density levels for different parts of the UI within the same view. Sidebar navigation is compact; main content area is comfortable; marketing sections are spacious.
Pattern 3: Responsive Density
Density shifts based on viewport size. Desktop gets compact (mouse precision); tablet gets comfortable; phone gets spacious (touch targets). This overlaps with the responsive facet but the spacing scale definition lives here.
When to Include in Options
Include compact mode in at least one option when:
- The brief mentions both power users and casual users
- The project type is productivity or data-heavy
- The platform includes both desktop and mobile
- Prior locked components suggest complex, information-rich screens
7. Generating Options
Round 1: Diverge
Generate 2-4 density options. Each must target a different zone on the density spectrum or present a different spacing strategy. Maximize variety.
Example option set for a project management SaaS:
- Breathing Room -- comfortable zone, 8px base, generous section spacing. Optimized for
readability and new user onboarding. Trade-off: less content visible per screen.
- Productive Compact -- compact zone, 4px base, tight but organized. Optimized for power
users scanning lots of items. Trade-off: may feel cramped on first use.
- Adaptive Density -- comfortable default with compact toggle. Two modes using the same
scale with different multipliers. Trade-off: more complexity, two states to maintain.
Each option HTML must include:
- The spacing scale rendered as a visual reference (labeled bars)
- Applied mockup: the locked layout wireframe with this density applied to all components,
sections, and gaps. Apply locked colors if available.
- Touch target annotations on at least three interactive elements
- Side-by-side comparison within the option: a list view, a form, and a card grid showing
how the density plays out across different content types
Round 2+: Converge
Refine survivors based on feedback. Common refinements:
- Adjust specific spacing values (e.g., "card padding too tight, section margins fine")
- Shift density zone (e.g., "somewhere between comfortable and compact")
- Add or remove compact mode toggle based on user interest
- Tighten touch target compliance
8. Evaluation Criteria
Score every option against these questions in your critique. Be specific -- cite pixel values, screen areas, and user scenarios.
Context Appropriateness
- Is the density zone right for the target users and their context of use?
- Does the density match the session duration and interaction frequency from the brief?
- Would a first-time user feel overwhelmed (too dense) or underwhelmed (too spacious)?
Touch Target Compliance
- Do all interactive elements meet minimum touch target sizes for the target platform?
- Are there any elements where visual size and tappable area diverge without clear padding?
- On touch devices, can the user tap any button without accidentally hitting an adjacent one?
Spacing Consistency
- Does all spacing derive from the defined scale? No arbitrary pixel values?
- Is the scale applied consistently across different content types (lists, forms, cards)?
- Does the vertical rhythm feel intentional? Can you identify a consistent baseline?
Whitespace Quality
- Is whitespace performing grouping, separation, emphasis, rhythm, or rest functions?
- Are there areas where elements feel too close (cognitive overload) or too far (disconnected)?
- Does the whitespace hierarchy match the content hierarchy from the locked content-hierarchy facet?
Scalability
- Can the spacing system accommodate new component types without new tokens?
- Does the density work at all viewport widths the product supports?
- If a compact mode toggle is included, does both modes feel intentional?
9. Compare View Specifics
When generating compare.html for this facet, follow all rules from crit-loop.md with these additions:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/crit-density-spacing/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 24 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/metedata/design-crit/crit-density-spacing)