Gestalt Ui 标志

Gestalt Ui

社区
alpham8
gestalt-ui

将格式塔视觉感知原则应用于 UI 设计。适用于以下场景:(1)有效分组和组织 UI 元素;(2)为组件之间建立直观的视觉关系;(3)检查布局的感知清晰度;(4)设计用户一眼就能理解的导航、卡片、表单或仪表板。基于将格式塔心理学研究应用于数字界面的实践。

Add to TypingMind

概览

发布者alpham8
代码仓库agentic-webdev
技能名称gestalt-ui
星标数
4
复刻数
0
附带文件
3
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 alpham8 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Gestalt Ui AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/alpham8/agentic-webdev/tree/master/skills/wondelai/gestalt-ui
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alpham8/agentic-webdev.git /tmp/agentic-webdev
mkdir -p .claude/skills
cp -r /tmp/agentic-webdev/skills/wondelai/gestalt-ui .claude/skills/gestalt-ui
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Gestalt Ui,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Gestalt Ui。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Gestalt Ui 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Gestalt Principles for UI Design

A framework for applying Gestalt psychology to interface design. Gestalt principles describe how humans automatically group, separate, and interpret visual elements -- use them intentionally to make interfaces self-explanatory.

Core Principle

Users don't see individual elements -- they see patterns and relationships. Every spacing decision, border, colour choice, and alignment communicates grouping, hierarchy, and meaning whether you intend it to or not. Gestalt principles are always active. The question is whether you're using them deliberately or accidentally.

Scoring

Goal: 10/10. When reviewing or designing interfaces, rate 0-10 based on deliberate application of Gestalt principles.

  • 9-10: Every grouping is intentional. Proximity, similarity, and common region work together. Visual relationships match semantic relationships perfectly.
  • 7-8: Most groupings are clear. Minor spacing inconsistencies or ambiguous element relationships in secondary areas.
  • 5-6: Groupings partially work but some elements feel disconnected or wrongly associated. Spacing is inconsistent.
  • 3-4: Significant grouping problems. Users must read labels to understand relationships because visual structure doesn't communicate them.
  • 1-2: No discernible visual grouping. Elements scattered without spatial logic. Users are lost.

The Gestalt Framework

1. Proximity -- The Primary Grouping Mechanism

Core concept: Elements positioned close together are perceived as related. Spacing is the most fundamental tool for communicating structure.

Why it works: The brain groups nearby elements automatically, before conscious thought. This is faster than reading labels or borders.

Key insights:

  • Related elements need less space between them than unrelated elements
  • A label must be closer to its input field than to the previous field
  • Section gaps should be noticeably larger than intra-section spacing
  • Equal spacing everywhere makes everything look equally related -- destroying hierarchy

Product applications:

ContextApplicationExample
FormsTighter spacing within field groups, larger gaps between groupsShipping address fields grouped tightly, separated from billing by 2x gap
NavigationClustered items in header menusPrimary nav items grouped, utility links (login, search) spatially separated
DashboardsRelated metrics grouped by proximityRevenue metrics clustered together, user metrics in a separate spatial zone
CardsContent within cards tightly spacedTitle-description-meta as a tight unit, action buttons slightly separated

Common mistake: Equal margins on all elements. If your form has identical gaps between every field, you've removed all visual grouping.

See: references/proximity-similarity.md

2. Similarity -- Visual Consistency Signals Function

Core concept: Elements sharing visual characteristics (colour, shape, size, weight, texture) are perceived as related and functionally equivalent.

Why it works: Once the brain identifies one element's meaning, it transfers that meaning to all visually similar elements. A blue underlined word learned as "clickable" makes all blue underlined words clickable.

Key insights:

  • All interactive elements of the same type must look identical (links, buttons, inputs)
  • Breaking similarity creates emphasis -- the Von Restorff Effect (see laws-of-ux skill)
  • Icon families must use uniform stroke weight, dimensions, and style
  • Typography hierarchy: same size and weight = same level of importance

Product applications:

ContextApplicationExample
NavigationConsistent link styling signals clickabilityAll nav links same colour, weight, and hover behaviour
ButtonsSame-level buttons share visual styleAll secondary actions use outlined style, all primary use filled
Data tablesConsistent cell styling signals data typeAll currency values right-aligned, same font, same colour
Status indicatorsConsistent badge/tag stylingAll "active" badges green, same size and shape

Critical rule: Breaking similarity must be intentional. A red item in a list of blue items demands attention -- use this for CTAs, errors, or critical actions, never accidentally.

See: references/proximity-similarity.md

3. Common Region -- Boundaries Create Groups

Core concept: Elements enclosed within the same boundary are perceived as grouped and related, even if they're otherwise dissimilar.

Why it works: Borders, backgrounds, and cards create explicit containers. Common region can override proximity -- items far apart but within the same card appear more related than close items in different cards.

Key insights:

  • Cards, panels, and bordered sections are common region in action
  • Background colour changes signal section boundaries
  • Common region is stronger than proximity -- use it to override spatial grouping when needed
  • Too many containers create visual noise; use sparingly and with purpose

Product applications:

ContextApplicationExample
FormsFieldsets with visible borders group related inputsAddress fields in a bordered fieldset, payment in another
DashboardsCards containing related metrics"Revenue" card with total, growth, and chart -- visually one unit
SettingsPanels separating configuration areasAccount settings panel, notification preferences panel, privacy panel
PricingPlan cards enclosing features, price, and CTAEach plan visually distinct as a complete unit

See: references/region-connectedness.md

4. Figure-Ground -- Focus vs Context

Core concept: Elements separate into figure (focal element) and ground (background/context). The brain must decide what's foreground and what's behind -- make this decision obvious.

Why it works: Stable figure-ground relationships direct attention. Unstable ones create confusion about what to focus on.

Key insights:

  • High-contrast elements become figure; low-contrast becomes ground
  • Smaller overlapping objects tend to be figure; larger ones ground
  • Shadows and elevation create clear figure-ground separation
  • Modal overlays use dimmed backgrounds to force figure-ground clarity

Product applications:

ContextApplicationExample
CTAsHigh-contrast button against neutral backgroundBright "Sign Up" button on a muted hero section
ModalsDimmed/blurred backdrop establishes overlay as figureDark scrim behind a confirmation dialog
CardsSubtle shadows lift content off the pageCard with box-shadow on flat background
NavigationSidebar visually distinct from main contentDarker sidebar, lighter content area

Ethical boundary: Never use ambiguous figure-ground to hide important information (dark patterns). Pricing, terms, and opt-outs must be clear figure elements.

See: references/figure-ground-closure.md

5. Closure -- The Brain Completes Patterns

Core concept: We fill in missing visual information to perceive complete shapes. Partial information is enough when the pattern is recognisable.

Why it works: The brain wants coherence. Showing "enough" lets users infer the rest without overwhelming them with visual detail.

Key insights:

  • Partially visible carousel items signal "more content available"
  • Progress bars use closure -- an incomplete fill implies a complete target
  • Truncated text with "..." signals expandable content
  • Dotted or dashed lines suggest boundaries without solid visual weight

Product applications:

ContextApplicationExample
CarouselsPartially visible cards at edgesNext card peeking 20% into view signals scrollability
ProgressIncomplete fills show remaining work"3 of 5 steps completed" with partial bar
ListsTruncated items signal more content"Showing 5 of 23 results" with fade-out
IconsSimplified shapes the brain completesAn incomplete circle still reads as "loading"

See: references/figure-ground-closure.md

6. Continuity -- Follow the Line

Core concept: Elements arranged on a line or curve appear related and sequential. The eye follows the path naturally.

Why it works: We continue perceiving shapes and paths beyond their visible endpoints. This creates flow and sequence.

Key insights:

  • Aligned elements along invisible grid lines create order and cohesion
  • Progress steppers guide users through sequences
  • Breadcrumbs follow a linear path showing hierarchy
  • Diagonal or curved layouts guide eye movement through content

Product applications:

ContextApplicationExample
WizardsStep indicators connected by a lineSteps 1-2-3-4 connected, showing progression
TimelinesChronological events along a vertical lineActivity feed with connecting timeline
BreadcrumbsLinear path showing navigation hierarchyHome > Category > Product
Grid alignmentElements aligned to invisible columnsDashboard widgets snapped to a 12-column grid

7. Uniform Connectedness -- The Strongest Grouping

Core concept: Visually connected elements are perceived as most strongly related. This is the most powerful Gestalt grouping principle.

Why it works: Explicit visual connections (lines, arrows, shared containers) create unambiguous relationships that override all other grouping cues.

Key insights:

  • Connecting lines don't need direct contact with elements -- visual alignment is sufficient
  • Stronger than proximity, similarity, and common region
  • Use for explicit relationships that must be unambiguous
  • Process flows, org charts, and data relationships benefit most

Product applications:

ContextApplicationExample
Process flowsLines connecting sequential stepsCheckout: Cart → Shipping → Payment → Confirm
Org chartsLines showing reporting relationshipsTree structure with connecting branches
Data vizLines connecting related data pointsLine charts, node graphs, dependency trees
FormsVisual connectors between conditional fields"If yes" → reveal connected sub-fields

See: references/region-connectedness.md

8. Common Fate -- Movement Creates Grouping

Core concept: Elements moving together or in the same direction are perceived as related, regardless of visual similarity or distance.

Why it works: Shared motion is a powerful grouping signal -- the brain assumes co-moving elements are part of the same system.

Key insights:

  • Animated hover states affecting multiple elements simultaneously group them
  • Parallax layers moving at the same speed appear related
  • Swiping a card group as a unit signals they belong together
  • Scroll-linked animations on multiple elements create perceived unity

Product applications:

ContextApplicationExample
Hover effectsRelated elements react together on hoverHovering a card highlights its image, title, and CTA simultaneously
LoadingGrouped skeleton placeholders shimmer togetherThree related cards pulsing in sync
Scroll effectsCo-moving elements during scrollHeader and subheader sliding up together
Drag and dropSelected items moving as a groupMulti-select files dragging together

9. Focal Points -- What Stands Out Gets Attention

Core concept: Elements with contrast, emphasis, or visual distinction capture attention. The eye is drawn to what differs from its surroundings.

Why it works: Focal points require a baseline of similarity -- without uniform surrounding elements, nothing can stand out. Contrast is relative.

Key insights:

  • A highlighted CTA only works if surrounding elements are visually quieter
  • Larger text draws attention to key information
  • Colour contrast makes specific elements stand out
  • Unique shapes among uniform elements attract the eye
  • If everything is emphasised, nothing is emphasised

Product applications:

ContextApplicationExample
CTAsContrasting colour on primary actionBlue "Submit" button among grey secondary buttons
PricingRecommended plan visually distinct"Popular" plan larger, different colour, highlighted border
AlertsProminent styling for important messagesRed banner for errors among neutral content
DataKey metric highlightedDashboard KPI in large, bold font; supporting data in standard size

10. Pragnanz (Simplicity) -- Simple Wins

Core concept: People perceive complex arrangements in the simplest possible form. We prefer clear, ordered, symmetrical structures because they require less cognitive effort.

Why it works: Simpler interpretations are processed faster and feel safer. This is the meta-principle underlying all other Gestalt principles.

Key insights:

  • Clean, uncluttered interfaces are processed faster
  • Break complex information into simple, scannable components
  • Favour straightforward iconography over detailed illustrations
  • When in doubt, simplify -- if users must think about the structure, it's too complex

Product applications:

ContextApplicationExample
NavigationHierarchical organisation over flat listsCategorised menu instead of 40 links
IconsSimple, recognisable shapesMagnifying glass for search, not a detailed binoculars illustration
LayoutsClean grids over chaotic arrangementsUniform card grid instead of scattered elements
OnboardingStep-by-step over all-at-onceWizard with 4 clear steps instead of one overwhelming form

Principle Interactions

Gestalt principles don't work in isolation. They interact, reinforce, and sometimes conflict.

Reinforcement (Stronger Together)

CombinationEffect
Proximity + SimilarityElements that are close AND look alike are very strongly grouped
Common Region + ProximityCards with tight internal spacing -- double grouping signal
Continuity + Uniform ConnectednessSteps connected by a line AND aligned -- maximum sequence clarity
Figure-Ground + Focal PointsHigh-contrast CTA on dimmed background -- maximum attention

Conflicts (Resolution Required)

ConflictResolution
Proximity suggests group A, but Similarity suggests group BCommon Region overrides both -- use a container
Uniform Connectedness creates unwanted associationIncrease spacing (Proximity) AND change styling (Similarity) to counteract
Closure implies content exists but it doesn'tRemove the visual cue -- don't show a partial card if there's nothing to scroll to

Common Mistakes

MistakeWhy It FailsFix
Equal spacing everywhereRemoves all visual grouping -- everything looks equally relatedUse a spacing scale: tighter within groups, looser between
Too many containers/bordersVisual noise, every element screams "I'm a group"Use proximity and whitespace first; add borders only when needed
Inconsistent interactive stylingUsers can't predict what's clickableAudit all links, buttons, and interactive elements for visual consistency
Ambiguous figure-groundUsers don't know where to focusIncrease contrast on focal elements; dim/blur backgrounds
Accidental similarityUnrelated elements look alike, implying false relationshipsVary colour, size, or shape to differentiate distinct element types

Quick Diagnostic

QuestionIf NoAction
Can you tell which elements are grouped without reading labels?Spacing doesn't communicate structureAdjust proximity: tighter within groups, larger gaps between
Do all interactive elements of the same type look the same?Inconsistent similarityAudit and unify link, button, and input styling
Is there one clear focal point per screen/section?Everything competes for attentionReduce visual weight on secondary elements; increase on primary
Do cards/containers have clear internal hierarchy?Flat visual weight inside containersApply figure-ground and size contrast within cards
Can users predict what happens when they interact with an element?Weak signifiersStrengthen similarity with other interactive elements of the same type

Reference Files

Further Reading

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Gestalt Ui AI 技能有什么作用?

将格式塔视觉感知原则应用于 UI 设计。适用于以下场景:(1)有效分组和组织 UI 元素;(2)为组件之间建立直观的视觉关系;(3)检查布局的感知清晰度;(4)设计用户一眼就能理解的导航、卡片、表单或仪表板。基于将格式塔心理学研究应用于数字界面的实践。

为什么在 TypingMind 中使用 Gestalt Ui?

因为您只需安装一次,就能搭配任何模型使用。Gestalt Ui 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Gestalt Ui?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/alpham8/agentic-webdev/tree/master/skills/wondelai/gestalt-ui。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Gestalt Ui?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Gestalt Ui 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Gestalt Ui 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Gestalt Ui AI 技能免费吗?

是的。alpham8 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇