Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
316 changes: 316 additions & 0 deletions apps/app/.impeccable/design.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
{
"schemaVersion": 2,
"generatedAt": "2026-11-11T19:54:07.567418+00:00",
"title": "Design System: Vibeface Web App",
"extensions": {
"colorMeta": {
"background-light": {
"role": "neutral",
"displayName": "Background Light",
"canonical": "oklch(1 0 0)",
"tonalRamp": [
"oklch(0.150 0.0000 0)",
"oklch(0.260 0.0000 0)",
"oklch(0.380 0.0000 0)",
"oklch(0.500 0.0000 0)",
"oklch(0.620 0.0000 0)",
"oklch(0.740 0.0000 0)",
"oklch(0.860 0.0000 0)",
"oklch(0.950 0.0000 0)"
]
},
"background-dark": {
"role": "neutral",
"displayName": "Background Dark",
"canonical": "oklch(0.175 0.006 270)",
"tonalRamp": [
"oklch(0.150 0.0045 270)",
"oklch(0.260 0.0060 270)",
"oklch(0.380 0.0060 270)",
"oklch(0.500 0.0060 270)",
"oklch(0.620 0.0060 270)",
"oklch(0.740 0.0060 270)",
"oklch(0.860 0.0042 270)",
"oklch(0.950 0.0015 270)"
]
},
"foreground-light": {
"role": "neutral",
"displayName": "Foreground Light",
"canonical": "oklch(0.21 0.012 270)",
"tonalRamp": [
"oklch(0.150 0.0090 270)",
"oklch(0.260 0.0120 270)",
"oklch(0.380 0.0120 270)",
"oklch(0.500 0.0120 270)",
"oklch(0.620 0.0120 270)",
"oklch(0.740 0.0120 270)",
"oklch(0.860 0.0084 270)",
"oklch(0.950 0.0030 270)"
]
},
"foreground-dark": {
"role": "neutral",
"displayName": "Foreground Dark",
"canonical": "oklch(0.955 0.004 270)",
"tonalRamp": [
"oklch(0.150 0.0030 270)",
"oklch(0.260 0.0040 270)",
"oklch(0.380 0.0040 270)",
"oklch(0.500 0.0040 270)",
"oklch(0.620 0.0040 270)",
"oklch(0.740 0.0040 270)",
"oklch(0.860 0.0028 270)",
"oklch(0.950 0.0010 270)"
]
},
"primary-light": {
"role": "primary",
"displayName": "Primary Light",
"canonical": "oklch(0.24 0.016 270)",
"tonalRamp": [
"oklch(0.150 0.0120 270)",
"oklch(0.260 0.0160 270)",
"oklch(0.380 0.0160 270)",
"oklch(0.500 0.0160 270)",
"oklch(0.620 0.0160 270)",
"oklch(0.740 0.0160 270)",
"oklch(0.860 0.0112 270)",
"oklch(0.950 0.0040 270)"
]
},
"primary-foreground-light": {
"role": "primary",
"displayName": "Primary Foreground Light",
"canonical": "oklch(0.985 0.002 270)",
"tonalRamp": [
"oklch(0.150 0.0015 270)",
"oklch(0.260 0.0020 270)",
"oklch(0.380 0.0020 270)",
"oklch(0.500 0.0020 270)",
"oklch(0.620 0.0020 270)",
"oklch(0.740 0.0020 270)",
"oklch(0.860 0.0014 270)",
"oklch(0.950 0.0005 270)"
]
},
"primary-dark": {
"role": "primary",
"displayName": "Primary Dark",
"canonical": "oklch(0.94 0.005 270)",
"tonalRamp": [
"oklch(0.150 0.0037 270)",
"oklch(0.260 0.0050 270)",
"oklch(0.380 0.0050 270)",
"oklch(0.500 0.0050 270)",
"oklch(0.620 0.0050 270)",
"oklch(0.740 0.0050 270)",
"oklch(0.860 0.0035 270)",
"oklch(0.950 0.0013 270)"
]
},
"brand-light": {
"role": "accent",
"displayName": "Brand Light",
"canonical": "oklch(0.53 0.2 280)",
"tonalRamp": [
"oklch(0.150 0.1500 280)",
"oklch(0.260 0.2000 280)",
"oklch(0.380 0.2000 280)",
"oklch(0.500 0.2000 280)",
"oklch(0.620 0.2000 280)",
"oklch(0.740 0.2000 280)",
"oklch(0.860 0.1400 280)",
"oklch(0.950 0.0500 280)"
]
},
"brand-dark": {
"role": "accent",
"displayName": "Brand Dark",
"canonical": "oklch(0.72 0.15 280)",
"tonalRamp": [
"oklch(0.150 0.1125 280)",
"oklch(0.260 0.1500 280)",
"oklch(0.380 0.1500 280)",
"oklch(0.500 0.1500 280)",
"oklch(0.620 0.1500 280)",
"oklch(0.740 0.1500 280)",
"oklch(0.860 0.1050 280)",
"oklch(0.950 0.0375 280)"
]
},
"muted-light": {
"role": "neutral",
"displayName": "Muted Light",
"canonical": "oklch(0.965 0.004 270)",
"tonalRamp": [
"oklch(0.150 0.0030 270)",
"oklch(0.260 0.0040 270)",
"oklch(0.380 0.0040 270)",
"oklch(0.500 0.0040 270)",
"oklch(0.620 0.0040 270)",
"oklch(0.740 0.0040 270)",
"oklch(0.860 0.0028 270)",
"oklch(0.950 0.0010 270)"
]
},
"muted-dark": {
"role": "neutral",
"displayName": "Muted Dark",
"canonical": "oklch(0.245 0.008 270)",
"tonalRamp": [
"oklch(0.150 0.0060 270)",
"oklch(0.260 0.0080 270)",
"oklch(0.380 0.0080 270)",
"oklch(0.500 0.0080 270)",
"oklch(0.620 0.0080 270)",
"oklch(0.740 0.0080 270)",
"oklch(0.860 0.0056 270)",
"oklch(0.950 0.0020 270)"
]
},
"danger-light": {
"role": "accent",
"displayName": "Danger Light",
"canonical": "oklch(0.54 0.2 27)",
"tonalRamp": [
"oklch(0.150 0.1500 27)",
"oklch(0.260 0.2000 27)",
"oklch(0.380 0.2000 27)",
"oklch(0.500 0.2000 27)",
"oklch(0.620 0.2000 27)",
"oklch(0.740 0.2000 27)",
"oklch(0.860 0.1400 27)",
"oklch(0.950 0.0500 27)"
]
},
"danger-dark": {
"role": "accent",
"displayName": "Danger Dark",
"canonical": "oklch(0.72 0.17 25)",
"tonalRamp": [
"oklch(0.150 0.1275 25)",
"oklch(0.260 0.1700 25)",
"oklch(0.380 0.1700 25)",
"oklch(0.500 0.1700 25)",
"oklch(0.620 0.1700 25)",
"oklch(0.740 0.1700 25)",
"oklch(0.860 0.1190 25)",
"oklch(0.950 0.0425 25)"
]
},
"primary-foreground-dark": {
"role": "neutral",
"displayName": "Primary Foreground Dark",
"canonical": "oklch(0.2 0.01 270)",
"tonalRamp": [
"oklch(0.15 0.01 270)",
"oklch(0.26 0.01 270)",
"oklch(0.38 0.01 270)",
"oklch(0.5 0.01 270)",
"oklch(0.62 0.01 270)",
"oklch(0.74 0.01 270)",
"oklch(0.86 0.01 270)",
"oklch(0.95 0.01 270)"
]
}
},
"shadows": [
{
"name": "elevation-xs",
"value": "var(--elevation-xs)",
"purpose": "Existing small surface elevation; resolves to no shadow in dark mode."
}
],
"motion": [
{
"name": "ease-out",
"value": "cubic-bezier(0.23, 1, 0.32, 1)",
"purpose": "Existing shared easing."
}
],
"breakpoints": [
{
"name": "md",
"value": "768px"
}
]
},
"components": [
{
"name": "Default button",
"kind": "button",
"refersTo": "button-primary",
"description": "Default neutral primary action.",
"html": "<button class=\"ds-button\">保存</button>",
"css": ".ds-button{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:var(--primary);color:var(--primary-foreground);font-weight:500;transition:background-color 150ms cubic-bezier(.23,1,.32,1)}.ds-button:hover{background:color-mix(in oklch,var(--primary) 88%,transparent)}.ds-button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ds-button:active{transform:scale(.97)}.ds-button:disabled{opacity:.5}"
},
{
"name": "Outline button",
"kind": "button",
"description": "Secondary action using existing semantic tokens.",
"html": "<button class=\"ds-button ds-outline\">取消</button>",
"css": ".ds-button{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:var(--primary);color:var(--primary-foreground);font-weight:500;transition:background-color 150ms cubic-bezier(.23,1,.32,1)}.ds-button:hover{background:color-mix(in oklch,var(--primary) 88%,transparent)}.ds-button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ds-button:active{transform:scale(.97)}.ds-button:disabled{opacity:.5}.ds-outline{background:var(--background);color:var(--foreground);border-color:var(--border)}.ds-outline:hover{background:var(--muted)}"
},
{
"name": "Ghost button",
"kind": "button",
"description": "Secondary action using existing semantic tokens.",
"html": "<button class=\"ds-button ds-ghost\">取消</button>",
"css": ".ds-button{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:var(--primary);color:var(--primary-foreground);font-weight:500;transition:background-color 150ms cubic-bezier(.23,1,.32,1)}.ds-button:hover{background:color-mix(in oklch,var(--primary) 88%,transparent)}.ds-button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ds-button:active{transform:scale(.97)}.ds-button:disabled{opacity:.5}.ds-ghost{background:transparent;color:var(--foreground);border-color:transparent}.ds-ghost:hover{background:var(--muted)}"
},
{
"name": "Input",
"kind": "input",
"description": "Single-line field.",
"html": "<input class=\"ds-input\" aria-label=\"任务名称\" placeholder=\"任务名称\">",
"css": ".ds-input{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;min-height:36px;padding:4px 12px;border:1px solid var(--input);border-radius:10px;background:transparent;color:var(--foreground)}.ds-input::placeholder{color:var(--muted-foreground)}.ds-input:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ds-input:disabled{opacity:.5}"
},
{
"name": "Navigation row",
"kind": "nav",
"description": "Workspace navigation row.",
"html": "<nav><a class=\"ds-nav\" href=\"#\" aria-current=\"page\">消息</a></nav>",
"css": ".ds-nav{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;color:var(--foreground);text-decoration:none}.ds-nav[aria-current=page],.ds-nav:hover,.ds-nav:active{background:var(--muted)}.ds-nav:focus-visible{outline:2px solid var(--ring)}"
},
{
"name": "List group",
"kind": "card",
"refersTo": "card",
"description": "Grouped settings rows; avoid nested cards.",
"html": "<section class=\"ds-card\">设备设置</section>",
"css": ".ds-card{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;border:1px solid var(--border);border-radius:14px;padding:16px;background:var(--card);color:var(--foreground)}"
},
{
"name": "Status chip",
"kind": "chip",
"description": "Labeled status; color supplements the words.",
"html": "<span class=\"ds-chip\">等待确认</span>",
"css": ".ds-chip{display:inline-flex;padding:2px 8px;border-radius:8px;background:var(--warning-soft);color:var(--warning);font-size:13px;line-height:20px}"
}
],
"narrative": {
"northStar": "Quiet personal workspace",
"overview": "**Creative North Star: \"Quiet personal workspace\"**\n\nThis description records the incumbent interface; the source tokens below define the system.\n\nThe web app is an Operate surface. It keeps attention on the current conversation or task while the sidebar provides stable orientation. Geist, cool neutral surfaces, and a restrained violet brand accent make state changes legible without turning the workspace into a dashboard of competing signals.\n\n**Key Characteristics:** calm, task-first, state-explicit, keyboard-friendly, responsive.",
"keyCharacteristics": [
"calm",
"task-first",
"state-explicit",
"keyboard-friendly",
"responsive"
],
"rules": [],
"dos": [
"Do keep the primary task visible in the middle column.",
"Do make recovery, waiting, and offline states explicit in words.",
"Do reuse `packages/theme/theme.css` and the existing UI primitives.",
"Do preserve keyboard order and 44px mobile hit areas.",
"Do keep task metrics contextual to the task overview; the existing 28px metric masthead is not a conversation pattern.",
"Do retain the existing Bot identity halo and task overview gradient as incumbent patterns; additions require a surface-specific reason."
],
"donts": [
"Don't use color alone for status.",
"Don't create one-off spacing or component variants when an existing primitive fits."
]
}
}
38 changes: 38 additions & 0 deletions apps/app/.impeccable/surfaces/workspace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Web 工作区

## Mode

Operate

## Job

让个人快速看懂当前 Bot/任务状态,并完成下一步操作。

## Reading order

1. 当前上下文(Bot、任务或频道)
2. 需要注意的等待、错误或恢复状态
3. 对话/任务内容
4. 一个明确的下一步动作

## Preserve

- 侧栏导航、键盘顺序、消息与任务的独立上下文
- 未知写入结果先对账的文案和状态
- 现有主题、Bot face、焦点环和响应式断点

## Quieting and layout decisions

- 让标题、上下文和动作共享同一中列对齐线。
- 使用邻近关系和分隔线表达列表分组,避免增加嵌套卡片。
- 保留等待、恢复、离线的颜色,但始终配合文字或图标。
- 页面只保留一个主任务路径;辅助动作进入现有 header action slot。
- 宽屏使用侧栏,窄屏使用返回和抽屉;不引入新的导航模式。

## Required states

loading, empty, offline, waiting, recovery, failed, keyboard focus, narrow viewport, long text.

## Acceptance evidence

浏览器渲染检查需覆盖宽屏、窄屏、深色模式、键盘焦点、长文本和待处理状态。
Loading