Chuyển đến nội dung
Skillpedia
Giao diện (UI/UX)19k · #10483

gpui-kit-design-guides

Skill này làm gì

Cung cấp hướng dẫn thiết kế để xây dựng ứng dụng desktop với framework GPUI Kit. Dành cho lập trình viên tạo giao diện và muốn lựa chọn bố cục, màu sắc và tương tác nhất quán.

Khi nào nên dùng

  • ✓Khi bạn chuẩn bị thiết kế hoặc thay đổi một màn hình trong ứng dụng GPUI Kit.
  • ✓Khi bạn cần xem lại giao diện desktop về chất lượng thiết kế.
  • ✓Khi bạn muốn biết các quy tắc thiết kế nói gì về mật độ hoặc lớp phủ.

Liên kết skill

https://github.com/longbridge/gpui-kit/blob/main/skills/gpui-kit-design-guides/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/longbridge/gpui-kit/blob/main/skills/gpui-kit-design-guides/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết kế một màn hình cài đặt cho ứng dụng GPUI Kit của tôi, theo đúng các quy tắc thiết kế.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill yêu cầu agent đọc toàn bộ hướng dẫn thiết kế trước khi làm bất kỳ việc UI nào, thay vì dựa vào trí nhớ hoặc các màn hình có sẵn. Hướng dẫn bao gồm luận đề thiết kế, thứ bậc nhiệm vụ, ngôn ngữ thị giác, màu sắc, mật độ, trạng thái và lớp phủ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

GPUI Kit Design Guides

The guide is references/design-guides.md. It is a requirement, not inspiration. Read the guide file itself before doing UI work. Do not answer from this page, from an existing screen in the codebase, or from training data.

If the file is missing, fetch https://gpui-kit.com/docs/design-guides.md. The guide is a verbatim copy of that page, so its link to ./coding-guides.md means the Coding Guides in the gpui-kit skill (or https://gpui-kit.com/docs/coding-guides.md).

How to read it

Read the whole guide for a new screen or a redesign. For a narrow change, read "Design thesis" and "Start from the task" first, then the section for the change. Sections, in order (grep -n '^## ' references/design-guides.md):

Section Read when
Design thesis Always
Learning from Shadcn Choosing what to borrow from web component libraries
Start from the task Always; task hierarchy, interaction promise, what to leave out
Visual language Color, typography, spacing, radius, borders, elevation, density, icons
Layout patterns Window structure, sidebars, toolbars, panels, forms, resizable regions
Components and composition Picking a component, composing parts, when to build a new one
Interaction states Hover, focus, pressed, selected, disabled, loading, validation, danger
Feedback and overlays Dialog, sheet, popover, menu, notification, tooltip, dismissal, focus
Motion Any animation or transition
Designing data-heavy interfaces Tables, lists, trees, dashboards, dense inspectors
Interface language Any user-facing text: labels, buttons, titles, errors, empty states
Internationalization and platform fit Multi-locale copy, Chinese terminology, macOS/Windows conventions
Guidance for AI-generated interfaces Always when an agent produces UI
Accessibility checklist Before finishing
Design review checklist Before finishing; run every item against the work

Non-negotiables

A floor, not a substitute for the guide.

  • Desktop before web convention. Keyboard access, window chrome, menus, dense data views, resizable regions, persistent navigation.
  • Button vs Link. Button for every in-app command, ghost or outline when it should read quietly. Link only for external URLs and email addresses.
  • Tokens before values. No raw hex or rgb(...); use cx.theme() semantic tokens and rem-based helpers. Any spacing number quoted in the guide is the current default scale, not a literal to repeat.
  • State must be visible. Hover, focus, selection, disabled, loading, validation, and destructive states each need distinct, consistent treatment.
  • Overlays. Escape dismisses the topmost surface and returns focus to its trigger.
  • Copy. Name the object and the verb: Delete "Roadmap"? with a Delete button, not Are you sure? with OK.

Finish by running the Design review checklist against the work.

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

Agent có thể bỏ qua hướng dẫn không?

Không. Skill yêu cầu đọc hướng dẫn trước.

Nếu tệp hướng dẫn bị thiếu thì sao?

Skill yêu cầu tải một bản mới từ trang tài liệu của dự án.

Nó có bao gồm việc chọn thành phần không?

Có. Nó bao gồm thành phần nào phù hợp với nhiệm vụ và các trạng thái tương tác nên trông như thế nào.

Chi tiết

Mô tả gốc của tác giả

The normative Design Guides for GPUI Kit desktop applications. Read in full before designing or changing any screen, layout, spacing, visual hierarchy, color, density, component choice, interaction state, overlay, motion, data-heavy view, or interface copy in a GPUI Kit (gpui-kit / gpui-component) application, and before reviewing UI work for design quality. Also use when asked what the design rules are, or whether a UI decision follows them.

repo: longbridge/gpui-kit

Độ phổ biến

Sao GitHub
19k
Vị trí xếp hạng
#10483
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự