-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
核心洞察
Lucid UI 的真正价值不是"给人用的组件库",而是 "给 AI 读的设计规范"。
用户场景
传统方式:
用户:"帮我做一个 Agent 聊天界面"
AI:直接生成代码 → 能跑但丑,一眼 AI 味
Lucid UI 方式:
用户:"帮我做一个 Agent 聊天界面,参考 Lucid UI"
AI:读取规范 → 按规范生成 → 专业、一致、有设计感
目标用户
| 用户类型 | 使用方式 |
|---|---|
| 后端程序员 | 让 AI 帮忙写前端,AI 参考 Lucid UI |
| 非技术人群 | 让 AI 生成界面,AI 遵循 Lucid UI 规范 |
| 前端开发者 | 直接使用组件,或让 AI 辅助开发 |
核心定位转变
| 传统组件库 | Lucid UI |
|---|---|
| 给人看的文档 | 给 AI 读的规范 |
| 人学习后使用 | AI 读取后应用 |
| README 写给人 | README 也要 AI 友好 |
| 护城河是代码 | 护城河是规范 |
MVP 定义
MVP = AI 读取后能正确应用的设计系统
1. AI-Readable 规范文档
结构化的规则,不是散文:
## Color Rules
- Primary button: rational-500 (#3B82F6)
- Agent bubble background: gray-100 (#F5F5F5)
- User bubble background: rational-500 (#3B82F6)
- Thinking indicator: sentient-500 (#D4A012)
- Error state: error-500 (#EF4444)
## Layout Rules
- Agent message: left-aligned, with avatar
- User message: right-aligned, no avatar
- Max bubble width: 70%
- Avatar size: 40px (md)
## Typography Rules
- Agent name: font-medium, gray-900
- Message text: text-sm, leading-relaxed
- System message: text-sm, gray-500, no bubble2. 完整代码模板
不是零散 API,是"照抄就对"的完整页面:
// templates/agent-chat-page.tsx
// AI 可以直接复制这个模板,然后根据需求调整3. 约束清单(Do's and Don'ts)
AI 读到这些就不会跑偏:
## ✅ Do's
- Use white background (#FFFFFF)
- Use rational-500 for primary actions
- Use sentient-500 for thinking/processing states
- Use gray-100 for agent message bubbles
- Show avatar for agent messages, hide for user messages
- Use 16px border-radius for bubbles
## ❌ Don'ts
- Never use purple (no AI purple cliché)
- Never use dark/black background
- Never use gradients for backgrounds
- Don't show avatar for user's own messages
- Don't use different colors for different agents (use avatar to distinguish)成功标准
- AI 输出质量:AI 参考 Lucid UI 后生成的界面,看起来像专业设计师做的
- 一致性:不同 AI、不同时间生成的界面,风格一致
- 速度:后端程序员 10 分钟内能通过 AI 跑起来一个专业的 Agent 聊天页面
护城河
代码谁都能写,但"让 AI 遵循的设计规范"是真正的壁垒。
- 别人让 AI 写界面 → AI 味
- 用 Lucid UI 规范 → 专业感
执行计划
- 创建
docs/ai-guide.md- AI 专用的结构化规范 - 创建
templates/目录 - 完整页面模板 - 在 README 添加 "For AI Assistants" 专区
- 创建 Do's and Don'ts 清单
- 测试:让 Claude/GPT 读取后生成界面,验证效果
相关 Issue
- Visual Design Guidelines - 视觉设计规范 #2 Visual Design Guidelines
- AI Agent Components - 核心组件设计需求 #3 AI Agent Components
Metadata
Metadata
Assignees
Labels
No labels