Logo Gestalt Ui

Gestalt Ui

Cộng đồng
alpham8
gestalt-ui

Áp dụng các nguyên lý Gestalt về nhận thức thị giác vào thiết kế UI. Dùng khi bạn cần: (1) nhóm và sắp xếp các thành phần UI hiệu quả, (2) tạo mối liên hệ trực quan tự nhiên giữa các thành phần, (3) rà soát bố cục để đảm bảo dễ nhận biết, (4) thiết kế menu điều hướng, thẻ, biểu mẫu hoặc bảng điều khiển sao cho người dùng hiểu ngay. Dựa trên nghiên cứu tâm lý học Gestalt ứng dụng vào giao diện số.

Add to TypingMind

Tổng quan

Nhà phát hànhalpham8
Kho mãagentic-webdev
Tên kỹ nănggestalt-ui
Sao
4
Bản fork
0
Tệp đi kèm
3
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được alpham8 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Gestalt Ui trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/alpham8/agentic-webdev/tree/master/skills/wondelai/gestalt-ui
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Gestalt Ui trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Gestalt Ui ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Gestalt Ui với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Gestalt Ui làm được gì?

Áp dụng các nguyên lý Gestalt về nhận thức thị giác vào thiết kế UI. Dùng khi bạn cần: (1) nhóm và sắp xếp các thành phần UI hiệu quả, (2) tạo mối liên hệ trực quan tự nhiên giữa các thành phần, (3) rà soát bố cục để đảm bảo dễ nhận biết, (4) thiết kế menu điều hướng, thẻ, biểu mẫu hoặc bảng điều khiển sao cho người dùng hiểu ngay. Dựa trên nghiên cứu tâm lý học Gestalt ứng dụng vào giao diện số.

Vì sao nên dùng Gestalt Ui trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Gestalt Ui là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Gestalt Ui trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/alpham8/agentic-webdev/tree/master/skills/wondelai/gestalt-ui. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Gestalt Ui?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Gestalt Ui với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Gestalt Ui với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Gestalt Ui có miễn phí không?

Có. Kỹ năng này được alpham8 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇