Adapt

From nicolaiprodromov/puree · View interactive version

Adapt is an AI agent skill from the GitHub repository nicolaiprodromov/puree. Adapt Puree UI (YAML/SCSS) designs to work across different Blender panel sizes and workspace configurations.

How to use this skill

Skill file

Adapt existing Puree designs to work effectively across different Blender panel sizes, workspace configurations, and monitor resolutions.

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. Additionally gather: target panel sizes and workspace contexts.


Assess Adaptation Challenge

Understand what needs adaptation and why:

  1. Identify the source context:
  1. Understand target context:
  1. Identify adaptation challenges:

CRITICAL: Adaptation is not just scaling — it's rethinking the layout for each panel context. Blender users resize panels constantly.

Plan Adaptation Strategy

Create context-appropriate strategy:

Narrow Panel Adaptation (< 300px)

Layout Strategy:

Content Strategy:

Example SCSS:

@media (max-width: 300px) {
  .sidebar_content {
    flex-direction: column;
  }
  .detail_panel {
    display: none;
  }
  .label_text {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

Medium Panel Adaptation (300-500px)

Layout Strategy:

Content Strategy:

Wide Panel Adaptation (500px+)

Layout Strategy:

Content Strategy:

Example SCSS:

@media (min-width: 500px) {
  .tool_panel {
    display: flex;
    flex-direction: row;
  }
  .tool_list {
    width: 40%;
  }
  .tool_detail {
    width: 60%;
  }
}

High-DPI / 4K Monitor Adaptation

Layout Strategy:

Implement Adaptations

Apply changes systematically:

Content-Driven Breakpoints

Choose breakpoints based on where the design breaks, not arbitrary numbers:

Puree supports @media (min-width: Npx) and @media (max-width: Npx).

Layout Adaptation Techniques

Example — responsive two-column layout:

.settings_panel {
  display: flex;
  flex-direction: column;
}

@media (min-width: 400px) {
  .settings_panel {
    flex-direction: row;
  }
  .settings_sidebar {
    width: 40%;
  }
  .settings_content {
    width: 60%;
  }
}

Text Adaptation

Example — truncating labels in narrow panels:

.control_label {
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

@media (min-width: 400px) {
  .control_label {
    font-size: 14px;
  }
}

Visibility Toggling

Use display: none to hide sections that don't fit:

.help_text {
  display: flex;
}

@media (max-width: 300px) {
  .help_text {
    display: none;
  }
}

Component-Based Adaptation

Use Puree's component system to create variants:

# Compact variant for narrow panels
compact_control:
  data: '[control]'
  show_label: 'false'
  show_description: 'false'

# Full variant for wide panels
full_control:
  data: '[control]'
  show_label: 'true'
  show_description: 'true'

Then toggle visibility in SCSS based on breakpoints.

NEVER:

Verify Adaptations

Test thoroughly across Blender workspace configurations:

Remember: Blender users work in highly customized workspace layouts. Your UI must adapt gracefully to whatever panel size the user gives it. Design for the narrowest comfortable width first, then enhance for wider panels.

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.