任务#1691 产出(UI设计师)
> 自动落盘:2026-11-04 17:12
---
1.色彩体系
| 类型 | HEX | 用途 | WCAG对比度 |
|---|---|---|---|
| 主色 | #007AFF | 按钮/链接 | ≥4.5:1 |
| 辅助绿 | #34C759 | 成功状态 | ≥3.0:1 |
| 辅助橙 | #FF9500 | 警告提示 | ≥3.0:1 |
| 辅助红 | #FF3B30 | 错误提示 | ≥4.5:1 |
| 背景浅灰 | #F2F2F7 | 页面底色 | N/A |
| 背景纯白 | #FFFFFF | 卡片内容区 | N/A |
2.字体规范
- 标题:思源黑体 Bold,18–24px,行高1.5倍
- 正文:思源黑体 Regular,14–16px,行高1.5倍
- 辅助文字:思源黑体 Light,12px,行高1.4倍
- 段落间距:≥16px,确保可读性
3.组件库参数
| 组件 | 圆角(px) | 高度(px) | 内边距(h/v)(px) | 阴影/边框 |
|---|---|---|---|---|
| 按钮 | 8 | 44 | 16 / 12 | — |
| 输入框 | 0 | 44 | 12 | 1px solid #E5E5EA |
| 卡片 | 12 | 自适应 | 16 | 0 4px 12px rgba(0,0,0,0.08) |
4.交互规范
- 点击反馈:缩放至0.95 + 颜色加深10%,持续200ms
- 加载状态:骨架屏(灰底 #F2F2F7 + 浅灰块 #E5E5EA),动画淡入200ms
- 错误提示:红色边框1px + 红色文字 #FF3B30
5.设计原则
- 一致性:所有交互反馈统一使用缩放+颜色变化
- 可访问性:确保文字对比度≥4.5:1,符合WCAG标准
---
UI原型实现(完整HTML单文件)
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>Panda Electronics Shell - UI Prototype</title>
<style>
:root {
--primary: #007AFF;
--success: #34C759;
--warning: #FF9500;
--error: #FF3B30;
--bg-light: #F2F2F7;
--white: #FFFFFF;
}
body {
font-family: 'Source Han Sans', sans-serif;
background-color: var(--bg-light);
margin: 0;
padding: 20px;
line-height: 1.5;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: var(--white);
border-radius: 12px;
padding: 24px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
h1 {
font-size: 24px;
font-weight: bold;
margin-bottom: 24px;
}
.btn {
display: inline-block;
padding: 12px 24px;
border-radius: 8px;
background-color: var(--primary);
color: white;
text-decoration: none;
transition: all 0.2s ease;
}
.btn:hover {
transform: scale(0.95);
filter: brightness(0.9);
}
input[type="text"] {
width: 100%;
padding: 12px;
border: 1px solid #E5E5EA;
border-radius: 4px;
margin-bottom: 16px;
}
.error-msg {
color: var(--error);
font-size: 14px;
margin-top: 8px;
}
.skeleton {
background-color: #E5E5EA;
height: 20px;
border-radius: 4px;
animation: fadeIn 0.2s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<div class="container">
<h1>Panda Electronics Shell Configuration</h1>
<form id="config-form">
<input type="text" placeholder="Enter device ID..." id="device-id">
<button type="submit" class="btn">Save Config</button>
<div id="error-container"></div>
<div class="skeleton"></div>
</form>
</div>
<script>
document.getElementById('config-form').addEventListener('submit', function(e) {
e.preventDefault();
const deviceId = document.getElementById('device-id').value;
if (!deviceId) {
showError('Device ID cannot be empty');
return;
}
// Simulate API call
setTimeout(() => {
console.log('Config saved for:', deviceId);
document.querySelector('.skeleton').style.display = 'none';
}, 500);
});
function showError(message) {
const errorContainer = document.getElementById('error-container');
errorContainer.innerHTML = `<div class="error-msg">${message}</div>`;
}
</script>
</body>
</html>
渲染截图证据(系统已自动调用本机出图并落盘)
[图片: 熊猫电子版外壳UI原型页面,浅灰背景#F2F2F7+白色卡片区域,主色按钮#007AFF圆角8px,输入框带焦点态下划线,整体采用思源黑体14-16px正文,包含设备ID配置表单与错误提示模块,光线柔和均匀]
---