一、④段整套同步(用户选候选 A)
- 新增 `references/stage-proto-doc/assets/产品文档模板.html`(16 KB/247 行,从备份拷、转 LF)。
- ④段 SKILL.md 换成备份 15:28 那版,并按模板口径改齐:
· 「产品文档框架」从「四块+一附录」改成**六节** —— 页面结构/功能清单/使用场景/操作流程/
跨页与界面状态/待确认与偏离;与模板同构,⛔ 不从空白页重写结构。
· 编号从 R/S/F 改成 **P 页面/S 场景/F 功能/J 二级功能**,各自唯一、按展示顺序通排。
· 保留旧版有价值的要求:每项功能补齐 做什么/入口在哪/输入边界/异常与恢复;重点功能三处标红;
横向流程图每步写清页面/功能/操作/完成判据。
· 完成标准「七节」→「六节」,自查清单同步换掉「需求」那批条目,补模板与配图两条。
· 路径 `designs/<项目>/` → `docs/pm/<项目>/ui/`(2 处)。
· 补回本机那条「每份产出文档开头都要有一张图」的引用(指向主 skill,段内不复述)。
- 主 skill 同步:四段结构表④行、④段沿革、画图小节(④段画页面结构图 + 用户路径)。
二、open-design 移到技能根(用户选候选 A)
- `git mv product-planning/references/stage-delivery/assets/open-design → open-design/`(4178 文件)。
- `.gitignore` 白名单加 `!/open-design/` —— 否则移出去就不再纳入版本控制。
- 引用改 11 处:路径形态 `assets/open-design/...` → `<技能根>/open-design/...`;
「随段携带的自带件」改称「同根技能」;「路径怎么找」那条改成自带件(段内相对路径)与
同根技能(`<技能根>/<技能名>/`)两类分开写。
- open-design 自己的 ATTRIBUTION.md 两处同步(它现在与 oil-ui-pro 同层)。
- 副作用(有益):命名闸门读数由 2063 降到 225 —— 此前它把 open-design 里 919 个第三方 md
当成规则一起扫了;现在只扫本包 23 个 md。已确认④段的 H1 与 4a/4b/4c 子步仍在检查范围内。
三、验收
- check_naming.py --ws E:/ProgramData/AIProject/contentm_agent = 通过 225 / 失败 0 / 提示 27。
- 活文件里 `assets/open-design` 残留 0;工作区 CRLF 文件 0。
201 lines
7.1 KiB
Markdown
201 lines
7.1 KiB
Markdown
# Loom Design System
|
||
|
||
> Category: Themed & Unique
|
||
> Loom async video. Purple primary, friendly surfaces, video-first layout. Clean and professional without being corporate.
|
||
|
||
## 1. Visual Theme & Atmosphere
|
||
|
||
A friendly, fast video-first async communication tool. Loom's design feels like a well-made productivity app — approachable, clean, and professional without being corporate. Purple accent (#625DF5) signals creativity and video without being loud. Information density is moderate, with generous whitespace that lets content breathe.
|
||
|
||
- **Visual style:** clean, friendly, content-first
|
||
- **Color stance:** bright surfaces with purple accent
|
||
- **Design intent:** keep outputs recognizable to this style family while preserving usability and readability
|
||
|
||
## 2. Color Palette & Roles
|
||
|
||
### Surface Palette
|
||
|
||
| Token | Hex | Usage |
|
||
|-------|-----|-------|
|
||
| Background | `#FFFFFF` | Primary canvas |
|
||
| Surface | `#F7F7F8` | Cards, sidebars, elevated panels |
|
||
| Border | `#E4E4E7` | Dividers, input borders |
|
||
|
||
### Data Palette
|
||
|
||
| Token | Hex | Usage |
|
||
|-------|-----|-------|
|
||
| Primary | `#625DF5` | CTAs, active states, video progress |
|
||
| Primary Hover | `#5048E5` | Button hover state |
|
||
| Text | `#1F1F23` | All text |
|
||
| Text Secondary | `#6B6D76` | Timestamps, metadata, captions |
|
||
| Text Tertiary | `#9B9CA3` | Placeholders, disabled states |
|
||
| Error | `#D64770` | Error states |
|
||
| Recording | `#EF440C` | Active recording indicator |
|
||
|
||
### Light Mode
|
||
|
||
Default. A content-first tool used in bright office environments.
|
||
|
||
```css
|
||
:root {
|
||
--color-bg: #FFFFFF;
|
||
--color-surface: #F7F7F8;
|
||
--color-border: #E4E4E7;
|
||
--color-primary: #625DF5;
|
||
--color-primary-hover: #5048E5;
|
||
--color-text: #1F1F23;
|
||
--color-text-secondary: #6B6D76;
|
||
--color-text-tertiary: #9B9CA3;
|
||
--color-error: #D64770;
|
||
--color-recording: #EF440C;
|
||
--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
||
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||
--shadow-card: 0 1px 3px rgba(31, 31, 35, 0.08), 0 4px 12px rgba(31, 31, 35, 0.04);
|
||
--shadow-card-hover: 0 4px 12px rgba(31, 31, 35, 0.12), 0 8px 24px rgba(31, 31, 35, 0.08);
|
||
--shadow-overlay: 0 8px 32px rgba(31, 31, 35, 0.16), 0 2px 8px rgba(31, 31, 35, 0.08);
|
||
--shadow-tooltip: 0 4px 12px rgba(31, 31, 35, 0.12);
|
||
--radius-sm: 4px;
|
||
--radius-md: 6px;
|
||
--radius-lg: 8px;
|
||
--transition-base: 200ms ease-out;
|
||
--transition-fast: 100ms ease-out;
|
||
}
|
||
```
|
||
|
||
## 3. Typography Rules
|
||
|
||
| Role | Size | Weight | Line Height |
|
||
|------|------|--------|-------------|
|
||
| Display | 28px | 700 | 1.2 |
|
||
| H1 | 22px | 600 | 1.3 |
|
||
| H2 | 18px | 600 | 1.4 |
|
||
| Body | 14px | 400 | 1.5 |
|
||
| Body Small | 13px | 400 | 1.5 |
|
||
| Caption | 12px | 400 | 1.4 |
|
||
| Button | 14px | 500 | 1.2 |
|
||
| Micro | 11px | 500 | 1.2 |
|
||
|
||
**Font labels for catalog extraction:**
|
||
|
||
```
|
||
Display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
|
||
H1: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
|
||
H2: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
|
||
Body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
|
||
Body Small: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
|
||
Caption: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
|
||
Button: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
|
||
Micro: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
|
||
Mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace
|
||
```
|
||
|
||
## 4. Component Stylings
|
||
|
||
### Video Thumbnail Card
|
||
|
||
```css
|
||
.thumbnail-card {
|
||
background: var(--color-bg);
|
||
border-radius: var(--radius-lg);
|
||
box-shadow: var(--shadow-card);
|
||
overflow: hidden;
|
||
transition: transform var(--transition-base), box-shadow var(--transition-base);
|
||
}
|
||
|
||
.thumbnail-card:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: var(--shadow-card-hover);
|
||
}
|
||
|
||
.thumbnail-card:focus-visible {
|
||
outline: 2px solid var(--color-primary);
|
||
outline-offset: 2px;
|
||
}
|
||
```
|
||
|
||
### Recording Indicator
|
||
|
||
```css
|
||
@keyframes recording-pulse {
|
||
0%, 100% { opacity: 1; }
|
||
50% { opacity: 0.5; }
|
||
}
|
||
.recording-dot {
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 50%;
|
||
background: var(--color-recording);
|
||
animation: recording-pulse 1.5s ease-in-out infinite;
|
||
}
|
||
```
|
||
|
||
### Input Field
|
||
|
||
```css
|
||
.input-field {
|
||
background: var(--color-bg);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-sm);
|
||
padding: 8px 12px;
|
||
font-size: 14px;
|
||
line-height: 1.4;
|
||
min-height: 44px;
|
||
min-width: 44px;
|
||
color: var(--color-text);
|
||
}
|
||
|
||
.input-field:focus-visible {
|
||
outline: none;
|
||
border-color: var(--color-primary);
|
||
box-shadow: 0 0 0 3px rgba(98, 93, 245, 0.15);
|
||
}
|
||
```
|
||
|
||
### Button Primary
|
||
|
||
```css
|
||
.btn-primary {
|
||
background: var(--color-primary);
|
||
color: #FFFFFF;
|
||
border-radius: var(--radius-md);
|
||
padding: 10px 20px;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
transition: background var(--transition-fast);
|
||
}
|
||
.btn-primary:hover {
|
||
background: var(--color-primary-hover);
|
||
}
|
||
```
|
||
|
||
## 5. Layout Principles
|
||
|
||
Video-first layout. The video thumbnail dominates; metadata and actions cluster below. Clean horizontal rhythm with consistent 16px gaps between elements. Cards use 8px radius for a friendly but professional feel.
|
||
|
||
## 6. Depth & Elevation
|
||
|
||
Elevation is achieved through shadows only. `--shadow-card` for resting state, `--shadow-card-hover` for interactive lift, `--shadow-overlay` for modals and tooltips. No borders on cards — shadow conveys depth.
|
||
|
||
## 7. Do's and Don'ts
|
||
|
||
- Do not use Tertiary `#9B9CA3` for body text — timestamps and metadata only
|
||
- Do not use semantic colors directly as text — always pair with a sufficiently contrasting background
|
||
- Do not mix button variants in a single CSS block — use separate selectors
|
||
- Do not use `line-height: 1.0` on buttons — diacritics, emoji, and CJK glyphs clip; use `1.2` minimum
|
||
- Do not use `#D64770` (Error) for small text under 18px on white — it is 4.2:1, below the 4.5:1 AA threshold for normal text (14px). Use `#D64770` only for large text (18px+) or pair with a darker background surface
|
||
- Do not use white text on `#D64770` background for normal text — white on #D64770 is also 4.2:1 (fails AA). Use `#FDECEE` (light pink) background with dark red text instead
|
||
|
||
## 8. Responsive Behavior
|
||
|
||
Video-first responsive layout. At narrower breakpoints, the video thumbnail stacks above metadata and actions. At ≥768px, a side-by-side layout (video left, actions right) activates. Touch targets minimum 44×44px at all breakpoints.
|
||
|
||
## 9. Agent Prompt Guide
|
||
|
||
When generating a Loom-style interface, prompt the model to:
|
||
- Use Inter for all UI text; ui-monospace for code snippets
|
||
- Apply `--radius-lg` (8px) to cards, `--radius-md` (6px) to buttons, `--radius-sm` (4px) to inputs
|
||
- Use 200ms ease-out for card hover transitions, 100ms for button press
|
||
- Include a recording indicator dot with a 1.5s pulse animation
|
||
- Primary color `#625DF5` for all CTAs and active states
|
||
- Ensure secondary text (#6B6D76) passes 4.5:1 on white before use; tertiary text (#9B9CA3) is for timestamps/metadata only |