ui-designerinteraction-specification

Featured

交互规范,定义加载状态、空状态、反馈机制、动效、无障碍等交互细节

Web & Frontend 547 stars 50 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
91
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 交互规范 ## 适用场景 定义用户与界面交互的细节,包括加载状态、空状态、反馈机制、动效、无障碍等,确保交互流畅、友好、可访问。 ## 交互设计原则 1. **及时反馈**:用户操作后立即给予反馈 2. **清晰引导**:明确告诉用户下一步该做什么 3. **容错性**:允许用户撤销、修改操作 4. **一致性**:相同操作在不同场景下行为一致 5. **可访问性**:支持键盘、屏幕阅读器等辅助技术 ## 交互规范 ### 1. 加载状态 #### 加载场景 | 场景 | 处理方式 | 时机 | 视觉表现 | |------|----------|------|----------| | 页面首次加载 | 骨架屏 | 首次进入页面 | 灰色占位块,模拟内容结构 | | 页面刷新 | 顶部进度条 | 刷新页面 | 蓝色进度条,从左到右 | | 按钮提交 | 按钮内 spinner | 点击提交按钮后 | 按钮内显示旋转图标,文字隐藏 | | 列表加载更多 | 底部 spinner | 滚动到底部 | 底部显示"加载中..." | | 局部刷新 | 区域内 spinner | 刷新某个区域 | 区域内显示旋转图标 | | 搜索 | 输入框内 spinner | 输入后延迟搜索 | 输入框右侧显示旋转图标 | #### 骨架屏设计 ``` ┌─────────────────────────────────────┐ │ ████████ │ ← 标题占位 │ █████████��██ │ ← 描述占位 │ │ │ ████ ████████████████ │ ← 列表项占位 │ ████ ████████████████ │ │ ████ ████████████████ │ └─────────────────────────────────────┘ ``` **骨架屏原则**: - 模拟真实内容的结构和布局 - 使用灰色占位块(Gray-200) - 添加微妙的动画(shimmer效果) - 不要显示真实数据的占位符 #### Spinner设计 | 尺寸 | 大小 | 线宽 | 用途 | |------|------|------|------| | sm | 16px | 2px | 按钮内、输入框内 | | md | 24px | 2.5px | 卡片内、区域内 | | lg | 32px | 3px | 页面级加载 | **颜色**: - 主色(Primary):主要操作的加载 - 灰色(Gray-400):次要操作的加载 - 白色(White):深色背景上的加载 ### 2. 空状态 #### 空状态场景 | 场景 | 展示内容 | 操作引导 | |------|----------|----------| | 无数据 | 插图 + "暂无数据" | "创建第一个项目" 按钮 | | 搜索无结果 | 插图 + "未找到相关内容" | "尝试其他关键词" 提示 | | 网络错误 | 插图 + "网络连接失败" | "重试" 按钮 | | 权限不足 | 插图 + "无权访问" | "返回首页" 按钮 | | 404页面 | 插图 ...

Details

Author
echoVic
Repository
echoVic/boss-skill
Created
7 months ago
Last Updated
4 days ago
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

02-

前台 UI 设计规范(设计 Token / 动效库 / 交互模式 / 质量自检)。Use when: 创建公开前台 UI 页面 (落地页 / 产品页 / 注册登录页 / 营销页 / 定价页)、调整视觉风格、做交互细节、设计 token 调整、动效优化、可访问性自检时触发。包含设计 Token 系统 + Tailwind 标准 + 动效库(micro-interactions/入场动画)+ 交互模式(hover/focus/disabled/loading)+ a11y + 质量自检清单(详见 body,目标商业产品水准)。SKIP: 可复用 UI 组件实现细节 → 03 / 管理后台·Admin Dashboard → 11。

2 Updated 2 weeks ago
xcodethink
Web & Frontend Listed

ui-design

Generate the visual and structural UI specification for a product, feature, page, or component from product goals and brand constraints. Use whenever the user asks for a UI design, mockup spec, screen layout, design tokens, component breakdown, state catalog, responsive rules, or accessibility treatment—even if the brief is just "design the screen for X," "build a UI for Y," "mock up the dashboard," "define the visual language," or "style the component." Covers information hierarchy, page layout, components, states, design tokens, color, typography, responsive behavior, accessibility, interaction notes, and handoff specs. Does not replace UX research, task flow, or information architecture—assume those are already decided or produced by `ux-design`.

1 Updated 2 weeks ago
AVA-2568
AI & Automation Listed

html

生成静态 HTML 原型,可视化确认功能与交互后再进入开发

0 Updated 2 weeks ago
chengxuniucode