Delight

From nicolaiprodromov/puree · View interactive version

Delight is an AI agent skill from the GitHub repository nicolaiprodromov/puree. Add moments of joy, personality, and unexpected touches that make Puree UI (YAML/SCSS/Python) memorable and enjoyable to use. Elevates functional to delightful.

How to use this skill

Skill file

Identify opportunities to add moments of joy, personality, and unexpected polish that transform functional Puree interfaces into delightful experiences.

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: what's appropriate for the domain (playful vs professional vs quirky vs elegant).


Assess Delight Opportunities

Identify where delight would enhance (not distract from) the experience:

  1. Find natural delight moments:
  1. Understand the context:
  1. Define delight strategy:

If any of these are unclear from the codebase, ask the user directly to clarify what you cannot infer.

CRITICAL: Delight should enhance usability, never obscure it. If users notice the delight more than accomplishing their goal, you've gone too far.

Delight Principles

Follow these guidelines:

Delight Amplifies, Never Blocks

Surprise and Discovery

Appropriate to Context

Compound Over Time

Delight Techniques

Add personality and joy through these methods:

Hover & Click Transitions

Puree's transition system is your primary tool for micro-delight:

// Satisfying button feedback via color and opacity
.action_btn {
  background-color: $accent;
  color: #fff;
  opacity: 1.0;
  transition: background-color 0.15s ease-out, opacity 0.1s ease;

  &:hover {
    background-color: lighten($accent, 8%);
  }

  &:active {
    background-color: darken($accent, 12%);
    opacity: 0.85;
  }
}

// Subtle glow on hover via border-color
.card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, background-color 0.25s ease;

  &:hover {
    border-color: rgba($accent, 0.3);
    background-color: rgba($accent, 0.03);
  }
}

State Change Delight

Use Python + transitions for satisfying state changes:

def on_complete(container):
    # Smooth transition to success color (SCSS transition handles the animation)
    container.set_property('background-color', 'rgba(46, 204, 113, 0.15)')
    container.set_property('border-color', 'rgba(46, 204, 113, 0.5)')
    container.text = "Done!"
    container.mark_dirty()
.task_item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease-out, border-color 0.3s ease-out, color 0.3s ease-out;
}

Personality in Copy

Playful error messages (when appropriate for the brand):

"No results found"
→ "Nothing here yet. Time to create something."

"Export failed"
→ "Export hit a snag. Check your file path and try again."

Encouraging empty states:

"No projects"
→ "Your workspace is ready. Create your first project."

IMPORTANT: Match copy personality to brand. Serious tools can be warm without being wacky.

Opacity Reveals

Use opacity transitions for content that appears on demand:

.tooltip_content {
  opacity: 0;
  transition: opacity 0.2s ease-in;
}
def show_tooltip(container):
    tooltip = app.find("tooltip_content")
    tooltip.set_property('opacity', '1.0')
    tooltip.mark_dirty()

Visual Personality

Celebration Moments

Success celebrations using color transitions:

.success_flash {
  background-color: transparent;
  transition: background-color 0.3s ease-out;
}
def celebrate(container):
    container.set_property('background-color', 'rgba(46, 204, 113, 0.2)')
    container.mark_dirty()
    # A separate timer callback could reset it back to transparent

Loading & Waiting States

Make waiting feel intentional:

WARNING: Avoid cliched loading messages like "Herding pixels" or "Teaching robots to dance." Write messages specific to what your product actually does.

NEVER:

Verify Delight Quality

Test that delight actually delights:

Remember: Delight is the difference between a tool and an experience. Add personality, surprise users positively, and create moments worth noticing. But always respect usability — delight should enhance, never obstruct.

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.