Arrange

From nicolaiprodromov/puree · View interactive version

Arrange is an AI agent skill from the GitHub repository nicolaiprodromov/puree. Improve Puree layout, spacing, and visual rhythm in YAML/SCSS. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

How to use this skill

Skill file

Assess and improve layout and spacing that feels monotonous, crowded, or structurally weak — turning generic arrangements into intentional, rhythmic compositions.

MANDATORY PREPARATION

Use the frontend-design skill — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no design context exists yet, you MUST run teach-impeccable first.


Assess Current Layout

Analyze what's weak about the current spatial design:

  1. Spacing:
  1. Visual hierarchy:
  1. Structure:
  1. Rhythm & variety:
  1. Density:

CRITICAL: Layout problems are often the root cause of interfaces feeling "off" even when colors and fonts are fine. Space is a design material — use it with intention.

Plan Layout Improvements

Create a systematic plan:

Improve Layout Systematically

Establish a Spacing System

Define SCSS spacing variables and apply them consistently:

$space-xs: 4px;
$space-sm: 8px;
$space-md: 16px;
$space-lg: 32px;
$space-xl: 64px;

Create Visual Rhythm

Choose the Right Layout Tool

Puree supports both Flexbox and Grid via the Taffy layout engine:

// Flex row with gap
.toolbar {
  display: flex;
  flex-direction: row;
  gap: $space-sm;
  align-items: center;
}

// Grid for dashboard layout
.dashboard {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 48px 1fr;
  gap: $space-md;
}

Break Card Grid Monotony

Strengthen Visual Hierarchy

Manage Depth & Elevation

$shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.12);
$shadow-md: 0px 4px 12px rgba(0, 0, 0, 0.15);
$shadow-lg: 0px 10px 24px rgba(0, 0, 0, 0.2);

Note: Puree does not support z-index — use visual cues (shadow, color, opacity) to convey depth.

Responsive Layout with @media

Use Puree's @media queries to adapt layout at different panel widths:

.sidebar {
  display: none;
}

@media (min-width: 600px) {
  .sidebar {
    display: flex;
    width: 200px;
  }
}

Note: Puree supports @media (min-width) and @media (max-width) only — no container queries, no clamp(), no viewport units.

Optical Adjustments

NEVER:

Verify Layout Improvements

Remember: Space is the most underused design tool. A layout with the right rhythm and hierarchy can make even simple content feel polished and intentional.

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.