Layout and composition
1. Apple Yerleşim Formülü
Kaynak: davepoon/claude-code-subagents-collection · MIT
1. Apple Yerleşim Formülü
Kaynak: davepoon/claude-code-subagents-collection · MIT
mkdir -p .claude/skills/layout-and-composition && curl -sL https://www.antrophiclove.com/api/kaynak/layout-and-composition/raw -o .claude/skills/layout-and-composition/SKILL.mdHedef dosya: .claude/skills/layout-and-composition/SKILL.md
Nearly every Apple utility app follows the same structural pattern:
┌─────────────────────────────────────────────────┐
│ Traffic Lights │ Top Bar (Global Actions) │ ← ~50px, draggable
├──────────────────┼──────────────────────────────┤
│ │ │
│ Sidebar │ Main Content │
│ (Navigation) │ (User's Data) │
│ │ │
│ │ │
│ │ │
├──────────────────┴──────────────────────────────┤
│ Bottom Bar (optional) │
└─────────────────────────────────────────────────┘
Apps that use this: Finder, Notes, Reminders, Calendar, Settings, Music, Shortcuts, Mail.
Key insight: Apps are containers for the user's information. Unlike landing pages (pre-generated content that doesn't change), apps hold data the user adds and manipulates. This is why the layout is user-focused with content at center stage.
If navigation is minimal (just browsing + searching), drop the sidebar entirely. This gives extra room for content. The app becomes essentially a single-screen utility — which is how most of Apple's best tools work. They do one thing and do it well, so the UI stays hyperfocused.
The top bar serves global-level actions: search, view toggles, sort, new item.
Rules:
Example top bar structure:
[● ● ●] [< Back] Browse [Search.............] [+ New] [⚙]
Common mistakes:
When your app needs a sidebar:
When NOT to use a sidebar:
The content area is the star. Everything else exists to support it.
Principles:
Grid layout guidelines:
Small window: 2 columns
Medium window: 3 columns
Large window: 4-5 columns
Gap: 12-16px
Padding: 16-24px from edges
Corner radius: 8px on cards
Detail / Preview pattern: Instead of navigating to a new page, slide out a panel from the right. This maintains context — the user can still see the grid behind the preview. Include a floating action bar in the preview for common actions (copy, delete, share, etc.).
Empty state: When there's no content, show a clean, inviting placeholder.
Progressive disclosure: Only show UI when the user needs it.
Ask yourself: What is the minimum UI needed to let the content shine?
Traffic light buttons (close, minimize, maximize):
Window properties:
Simulating in web/React:
.macos-window {
border-radius: 10px;
box-shadow:
0 0 0 0.5px rgba(0,0,0,0.1),
0 2px 8px rgba(0,0,0,0.08),
0 8px 30px rgba(0,0,0,0.12);
overflow: hidden;
}
Native macOS apps don't live only in their main window. Consider:
Popovers: Small floating panels for settings, quick actions, or confirmations. Appear near the triggering element with an arrow pointing to it.
Panels / Sheets: Slide down from the top of the window for modal-ish interactions that don't take over the whole screen.
Quick-access windows: Triggered by global keyboard shortcuts (like Spotlight via Cmd+Space). These float above everything, have no traffic lights, and are minimal — just the essential input + action. They should:
Toast notifications: After an action completes, show a small confirmation that slides away automatically. This is optimistic UI — assume success, process in background.
System tray / Menu bar: Some apps live primarily in the menu bar (like Paste, Bartender). Consider if your app benefits from always-available access without being a full window.
Share sheet: Apple's universal share button (square with up-arrow). Include it for any content that might leave your app.