Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

gui-design-principles图形用户界面设计原则

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

190

周安装

8

GitHub Stars

22

下载量

67
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gui-design-principles(图形用户界面设计原则)
来源仓库:https://github.com/bejranonda/llm-autonomous-agent-plugin-for-claude
仓库路径:skills/gui-design-principles
安装命令:
npx skills add https://github.com/bejranonda/llm-autonomous-agent-plugin-for-claude --skill gui-design-principles
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bejranonda/llm-autonomous-agent-plugin-for-claude --skill gui-design-principles

简介

gui-design-principles 用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适合让 Agent 根据产品场景整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合现有品牌、设计系统和用户任务,避免堆砌装饰元素。
  • 涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出和对齐表现。
  • 安装前需确认权限范围和维护状态,注意是否会触发联网或文件读写操作。

SKILL.md

Overview

This skill provides essential design principles, patterns, and guidelines for developing high-quality graphical user interfaces. It encompasses visual design, user experience, accessibility, and modern UI/UX best practices across web, desktop, and mobile platforms.

Design Foundations

Core Design Principles

Visual Hierarchy

  • Establish clear information hierarchy with size, weight, and spacing
  • Use contrast to guide attention to important elements
  • Implement progressive disclosure for complex interfaces
  • Follow the "F-Pattern" and "Z-Pattern" for natural eye movement

Color Theory

  • Use limited color palettes (3-5 primary colors maximum)
  • Ensure sufficient contrast ratios (WCAG AA: 4.5:1, AAA: 7:1)
  • Implement consistent color meanings across the interface
  • Use color purposefully for branding, actions, and feedback

Typography

  • Choose readable fonts optimized for screens
  • Establish clear type scale (h1-h6, body, small, caption)
  • Maintain consistent line spacing (1.4-1.6 for body text)
  • Limit font families to 2-3 maximum for consistency

Spacing & Layout

  • Use consistent spacing units (4px, 8px, 16px grid system)
  • Implement proper visual rhythm with consistent margins/padding
  • Ensure adequate touch targets (44px minimum for mobile)
  • Use white space strategically to reduce cognitive load

Responsive Design Principles

Mobile-First Approach

  • Design for smallest screen first, then enhance for larger screens
  • Use flexible grids and layouts that adapt to screen size
  • Optimize touch interactions for mobile devices
  • Consider content prioritization for different screen sizes

Breakpoint Strategy

  • Mobile: 320px - 768px
  • Tablet: 768px - 1024px
  • Desktop: 1024px - 1440px
  • Large Desktop: 1440px+

Flexible Components

  • Use relative units (%, rem, em, vh, vw)
  • Implement fluid typography with clamp() function
  • Create adaptive layouts with CSS Grid and Flexbox
  • Design components that work across all screen sizes

UI Component Design

Button Design

  • Primary Actions: High contrast, clear call-to-action
  • Secondary Actions: Subtle styling, less emphasis
  • Danger Actions: Red color scheme, clear warnings
  • Disabled States: Clear visual feedback, reduced opacity
  • Loading States: Progress indicators, disabled during action

Form Design

  • Input Fields: Clear labels, helpful placeholders, validation states
  • Error Handling: Inline error messages, clear error indicators
  • Success States: Confirmation messages, positive feedback
  • Accessibility: Proper labels, ARIA attributes, keyboard navigation

Navigation Design

  • Consistent Placement: Same location across all pages
  • Clear Labels: Descriptive, concise navigation labels
  • Visual States: Active, hover, and visited states
  • Breadcrumb Navigation: For hierarchical content

Card & Container Design

  • Consistent Spacing: Uniform padding and margins
  • Visual Separation: Borders, shadows, or background colors
  • Content Hierarchy: Clear title, subtitle, body structure
  • Interactive Elements: Hover states and transitions

Modern Design Systems

Design Tokens

/* Color Tokens */
--color-primary: #3b82f6;
--color-secondary: #64748b;
--color-success: #10b981;
--color-warning: #f59e0b;
--color-danger: #ef4444;
--color-background: #ffffff;
--color-surface: #f8fafc;
--color-text: #1e293b;
--color-text-muted: #64748b;

/* Spacing Tokens */
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
--space-2xl: 48px;

/* Typography Tokens */
--font-size-xs: 12px;
--font-size-sm: 14px;
--font-size-base: 16px;
--font-size-lg: 18px;
--font-size-xl: 20px;
--font-size-2xl: 24px;
--font-size-3xl: 30px;

/* Shadow Tokens */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

Component Library Structure

  • Base Components: Button, Input, Card, Modal
  • Layout Components: Grid, Container, Sidebar, Header
  • Navigation Components: Menu, Breadcrumb, Tabs, Pagination
  • Feedback Components: Alert, Toast, Spinner, Progress
  • Data Display: Table, List, Badge, Avatar

Dashboard Design Best Practices

Data Visualization

  • Chart Selection: Choose appropriate chart types for data

- Line charts: Trends over time - Bar charts: Comparisons between categories - Pie charts: Parts of a whole (max 5-7 segments) - Scatter plots: Correlations and distributions

  • Color Usage: Use color consistently and meaningfully
  • Accessibility: Provide patterns and textures in addition to color
  • Interactivity: Tooltips, zoom, filter capabilities

Layout Patterns

  • Header: Clear title, key metrics, primary actions
  • Sidebar: Navigation, filters, secondary information
  • Main Content: Primary data visualization and insights
  • Footer: Summary, export options, help links

Real-time Updates

  • Smooth Transitions: Animate data changes smoothly
  • Loading States: Clear indicators during data updates
  • Error Handling: Graceful degradation when data unavailable
  • Performance: Optimize for frequent updates without lag

Accessibility Guidelines

WCAG 2.1 Compliance

  • Perceivable: Information must be presentable in ways users can perceive
  • Operable: Interface components must be operable
  • Understandable: Information and UI operation must be understandable
  • Robust: Content must be robust enough for various assistive technologies

Keyboard Navigation

  • Tab Order: Logical tab order through interactive elements
  • Focus Indicators: Clear visible focus states
  • Shortcuts: Keyboard shortcuts for common actions
  • Skip Links: Allow skipping to main content

Screen Reader Support

  • Semantic HTML: Use proper HTML5 semantic elements
  • ARIA Labels: Descriptive labels for complex components
  • Alternative Text: Meaningful alt text for images
  • Announcements: Dynamic content changes announced

Mobile App Design

Touch Interactions

  • Touch Targets: Minimum 44px for comfortable tapping
  • Gesture Support: Swipe, pinch, long press interactions
  • Haptic Feedback: Vibration for important actions
  • Thumb-Friendly Design: Place primary actions in easy reach zones

Platform Guidelines

  • iOS: Human Interface Guidelines compliance
  • Android: Material Design principles
  • Cross-Platform: Consistent experience while respecting platform conventions

Performance Considerations

  • Optimized Assets: Compressed images, efficient code
  • Offline Support: Critical functionality available offline
  • Battery Optimization: Minimize battery drain
  • Network Awareness: Adapt to connection quality

CSS Framework Integration

Tailwind CSS Strategy

  • Utility-First: Rapid development with utility classes
  • Component Abstraction: Create reusable component classes
  • Design System: Consistent design tokens and variants
  • Responsive Design: Mobile-first responsive utilities

Modern CSS Features

  • CSS Grid: Complex layouts with fewer elements
  • Flexbox: Flexible box layouts for components
  • Custom Properties: CSS variables for theming
  • Container Queries: Component-based responsive design

Animation & Micro-interactions

Motion Principles

  • Purposeful Animation: Every animation should have a purpose
  • Natural Movement: Follow physical laws and expectations
  • Performance: Use transform and opacity for smooth 60fps
  • Accessibility: Respect prefers-reduced-motion settings

Common Animations

  • Page Transitions: Smooth navigation between views
  • Loading States: Engaging waiting experiences
  • Hover Effects: Subtle feedback for interactive elements
  • State Changes: Clear feedback for status updates

Implementation Guidelines

File Structure

src/
├── components/          # Reusable UI components
├── layouts/            # Layout templates
├── styles/             # Global styles and utilities
├── assets/             # Images, icons, fonts
├── utils/              # Helper functions
└── types/              # TypeScript definitions

Naming Conventions

  • BEM Methodology: Block__Element--Modifier
  • Consistent Prefixes: Component-specific prefixes
  • Semantic Names: Descriptive, purpose-driven names
  • File Organization: Logical grouping and structure

Testing Strategy

  • Visual Regression: Catch unintended design changes
  • Accessibility Testing: Automated and manual testing
  • Cross-Browser Testing: Ensure consistency
  • Performance Testing: Load times and animation performance

Common Design Patterns

Modal Windows

  • Overlay: Semi-transparent background
  • Focus Management: Trap focus within modal
  • Close Options: X button, overlay click, ESC key
  • Accessibility: Proper ARIA attributes

Dropdown Menus

  • Trigger: Clear button or link to open menu
  • Positioning: Proper placement relative to trigger
  • Keyboard Navigation: Arrow keys, Enter, Escape
  • Outside Click: Close when clicking outside

Form Validation

  • Real-time Validation: Immediate feedback on input
  • Error Messaging: Clear, actionable error messages
  • Success States: Positive confirmation of valid input
  • Accessibility: Associate errors with form controls

Design Review Checklist

Visual Design

  • Consistent color usage throughout interface
  • Proper typography hierarchy and readability
  • Adequate spacing and visual rhythm
  • Appropriate contrast ratios for accessibility
  • Consistent icon style and usage

User Experience

  • Clear navigation and information architecture
  • Intuitive interaction patterns
  • Proper feedback for user actions
  • Error prevention and recovery
  • Responsive design across devices

Accessibility

  • Keyboard navigation support
  • Screen reader compatibility
  • Sufficient color contrast
  • Alternative text for images
  • ARIA labels for complex components

Performance

  • Optimized images and assets
  • Efficient CSS and JavaScript
  • Smooth animations and transitions
  • Fast loading times
  • Minimal layout shifts

Tools and Resources

Design Tools

  • Figma: Collaborative interface design
  • Sketch: Mac-only design tool
  • Adobe XD: Adobe's design platform
  • Framer: Interactive design and prototyping

Development Tools

  • Chrome DevTools: Device simulation and debugging
  • Lighthouse: Performance and accessibility auditing
  • Axe: Accessibility testing extension
  • Color Contrast Analyzer: Contrast ratio validation

Inspiration Resources

  • Dribbble: UI/UX design inspiration
  • Behance: Design portfolio platform
  • Awwwards: Website awards and inspiration
  • Mobbin: Mobile app design patterns

When to Apply

Use these design principles when:

  • Creating new GUI applications (web, desktop, mobile)
  • Redesigning existing interfaces
  • Building dashboards and data visualization tools
  • Developing interactive components and widgets
  • Implementing responsive design
  • Ensuring accessibility compliance
  • Improving user experience and usability
  • Establishing design systems and component libraries

These principles ensure professional, accessible, and user-friendly interfaces that work across all platforms and devices.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.25%
按下载量换算22

Claude

30.35%
按下载量换算20

Cursor

20.02%
按下载量换算13

Gemini CLI

10.43%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills