BrandMark 品牌标志
components/ui/BrandMark.tsx · assets/branding- 用于
- 固定的石墨银灰金属飞鸟:侧栏、登录入口、应用图标和 favicon 使用同一视觉。
- 不要用于
- 不改成单色,不随主题染色,不拉伸鸟形。浅色底板是品牌图片的一部分,在深色主题下也保留。
- 无障碍
- 独立出现时提供 label;旁边已有名称或外层已标注时省略,避免重复朗读。
16px
24px
32px
36px
48px
64px
CoBot 组件画廊
生成于 2026/10/20 22:25:42 · 由 frontend/src/gallery 生成,勿手改
这一页是 CoBot 界面的唯一标准。人或 AI 修改 frontend/ 之前先读本节,再到下面找要用的组件。
颜色、字体、间距、圆角、阴影、层级、动效和焦点。组件只从这里取值;用了规范之外的值,要在代码注释里写清原因。
components/ui/BrandMark.tsx · assets/branding16px
24px
32px
36px
48px
64px
frontend/src/styles/index.cssfrontend/src/styles/index.css · components/ui/foundation.ts#7d8c85产品经理#d8b1fb全栈工程师#9cc8fb测试工程师#fbb271评审员#f2d16b--font-sans · --font-mono24 · 页面大标题(画廊、空状态主标题)
20 · 页面标题
18 · 对话框标题
16 · 分区标题
14 · 正文、控件文字(默认)
12 · 辅助说明、提示、标签
11 · 时间、计数、徽章、元信息(text-2xs)
11 · 分组小标题(全大写)
12 · 等宽:E:\work\todo-app · 1,280 tok
Tailwind 默认 4px 刻度sticky 10 · dropdown/sheet 40 · dialog 50 · toast 60 · tooltip 70(components/ui/foundation.ts 的 layer)
--animate-*index.css 的 :focus-visiblecomponents/ui/icons.ts(Icons)Icons.homeIcons.settingsIcons.teamIcons.memberIcons.leaderIcons.tasksIcons.approvalsIcons.activityIcons.memoryIcons.inboxIcons.rolesIcons.appearanceIcons.generalIcons.engineIcons.modelIcons.addIcons.editIcons.deleteIcons.archiveIcons.restoreIcons.copyIcons.searchIcons.filterIcons.moreIcons.closeIcons.backIcons.sendIcons.sendMessageIcons.stopIcons.refreshIcons.retryIcons.uploadIcons.downloadIcons.openFolderIcons.openExternalIcons.viewIcons.panelLeftOpenIcons.panelLeftCloseIcons.panelRightOpenIcons.panelRightCloseIcons.minimizeIcons.maximizeIcons.expandIcons.collapseIcons.previousIcons.nextIcons.commandIcons.fileChangeIcons.diffIcons.toolIcons.webSearchIcons.planIcons.thinkingIcons.subagentIcons.reasoningEffortIcons.permissionIcons.readOnlyIcons.fullAccessIcons.secretIcons.lockedIcons.durationIcons.notificationIcons.systemIcons.lightIcons.darkIcons.successIcons.errorIcons.warningIcons.infoIcons.helpIcons.done按钮触发动作;表单控件改变一个值。设置类的控件改了就生效(保存成功用 Toast 告知),对话框里的表单点按钮才提交。
components/ui/Button.tsxcomponents/ui/Button.tsxcomponents/ui/Button.tsxcomponents/ui/Field.tsx成员会在团队列表里看到这个名字。
这个目录已经被“设计预览”团队使用了,换一个目录,或先归档那个团队。
components/ui/Input.tsx1–20
components/ui/Select.tsx · Combobox.tsxcomponents/ui/Choice.tsxcomponents/ui/Choice.tsxcomponents/ui/Choice.tsxcomponents/ui/Choice.tsxcomponents/ui/Slider.tsxcomponents/ui/FileDrop.tsxPNG、JPEG 或 WebP,会自动裁成正方形
components/ui/Field.tsx告诉人发生了什么、正在发生什么、接下来做什么;把数据摆清楚;把页面分好区。
components/ui/Toast.tsxcomponents/ui/Feedback.tsx头像库还没下载
本周额度已用 79%
团队目录不见了
components/ui/Feedback.tsxcomponents/ui/Feedback.tsxcomponents/ui/Feedback.tsx还没有任务
和项目经理对齐方案后,任务会出现在这里。
components/ui/Feedback.tsxcomponents/ui/Display.tsx成员头像从这里来。
团子:第 1 版
没有标题的卡片
分隔线可以带文字
components/ui/Display.tsxcomponents/ui/Display.tsx| 项目经理 | 4 | 182,400 |
| 全栈工程师 | 1 | 96,210 |
| 测试工程师 | 2 | 51,877 |
components/ui/Display.tsx本周额度
79%
周一 08:00 重置
缓存命中
95%
cobot serve --profile production
components/ui/Display.tsxcomponents/ui/Layout.tsx设置
浅色、深色或跟随系统,以及界面配色。
成员头像从这里来。
项目经理
待办应用 · E:\work\todo-app
团队列表:展开
CoBot 自己的组件。成员 = 头像 + 名字,在哪里提到成员都一起出现;状态由头像表达(工作中会动、等你处理时睁大眼睛),同时用文字告诉读屏器。
features/avatars/Avatar.tsx · render.tscomponents/ui/Team.tsxcomponents/ui/Team.tsxcomponents/ui/Team.tsxcomponents/ui/Team.tsx14 passed
components/ui/Team.tsx(WaitingCard)测试工程师想在沙箱外运行命令
npx playwright test --headed
需要打开真实浏览器验证页面。
项目经理
数据要不要在刷新后保留?要的话我会用浏览器本地存储。
components/ui/Team.tsx输入后按 Enter 试试。
components/ui/ModelPicker.tsx高
输入框里的样子,点开向上弹出
components/ui/Layout.tsx跨组件的约定。新界面先在这里找做法;这里没有的,先补进画廊再用。
useToast + FieldPanelToggleSkeleton · EmptyState · Alert任务没有加载出来
frontend/src/i18n/locales/*.json—这个目录已经被“设计预览”团队使用了,换一个目录,或先归档那个团队。
error.team.directory_bound