@conscience-technology/ovenn 0.7.4 โ†’ 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +43 -4
  2. package/assets/components/AIMessage/AIMessage.module.css +10 -0
  3. package/assets/components/AIMessage/AIMessage.tsx +6 -2
  4. package/assets/components/AttachmentThumb/AttachmentThumb.tsx +1 -0
  5. package/assets/components/Breadcrumb/Breadcrumb.module.css +82 -23
  6. package/assets/components/Breadcrumb/Breadcrumb.tsx +44 -26
  7. package/assets/components/Breadcrumb/index.ts +1 -0
  8. package/assets/components/Button/Button.module.css +2 -4
  9. package/assets/components/Callout/Callout.module.css +44 -18
  10. package/assets/components/Callout/Callout.tsx +9 -4
  11. package/assets/components/Callout/index.ts +1 -1
  12. package/assets/components/Canvas/Canvas.module.css +13 -0
  13. package/assets/components/Canvas/Canvas.tsx +378 -94
  14. package/assets/components/Canvas/clipboard.ts +5 -1
  15. package/assets/components/Canvas/collision.ts +5 -1
  16. package/assets/components/Canvas/graph.ts +14 -5
  17. package/assets/components/Canvas/history.ts +11 -4
  18. package/assets/components/Canvas/index.ts +2 -1
  19. package/assets/components/Canvas/types.ts +36 -1
  20. package/assets/components/CanvasEdge/tokens.css +14 -1
  21. package/assets/components/CanvasNode/tokens.css +13 -10
  22. package/assets/components/ChatComposer/ChatComposer.tsx +1 -1
  23. package/assets/components/ChatInput/ChatInput.tsx +1 -1
  24. package/assets/components/ColorField/ColorField.module.css +6 -1
  25. package/assets/components/ColorPicker/ColorPicker.module.css +3 -0
  26. package/assets/components/CommandPalette/CommandPalette.module.css +114 -0
  27. package/assets/components/CommandPalette/CommandPalette.tsx +206 -21
  28. package/assets/components/CommandPalette/index.ts +1 -0
  29. package/assets/components/Drawer/Drawer.module.css +30 -0
  30. package/assets/components/Drawer/Drawer.tsx +75 -16
  31. package/assets/components/Drawer/index.ts +1 -0
  32. package/assets/components/FileIcon/FileIcon.tsx +1 -0
  33. package/assets/components/FileIcon/fileExtMap.ts +1 -0
  34. package/assets/components/Icon/Icon.tsx +3 -0
  35. package/assets/components/Input/Input.module.css +3 -3
  36. package/assets/components/Onboarding/OnboardingAxisPanel.tsx +1 -1
  37. package/assets/components/Onboarding/OnboardingPage.tsx +13 -11
  38. package/assets/components/Onboarding/actions.ts +9 -9
  39. package/assets/components/Select/Select.module.css +1 -1
  40. package/assets/components/SocialLoginButton/SocialLoginButton.module.css +198 -0
  41. package/assets/components/SocialLoginButton/SocialLoginButton.tsx +86 -0
  42. package/assets/components/SocialLoginButton/assets/amazon.svg +1 -0
  43. package/assets/components/SocialLoginButton/assets/apple.svg +3 -0
  44. package/assets/components/SocialLoginButton/assets/discord.svg +3 -0
  45. package/assets/components/SocialLoginButton/assets/facebook-white.png +0 -0
  46. package/assets/components/SocialLoginButton/assets/facebook.png +0 -0
  47. package/assets/components/SocialLoginButton/assets/github.svg +3 -0
  48. package/assets/components/SocialLoginButton/assets/google-mark.png +0 -0
  49. package/assets/components/SocialLoginButton/assets/kakao.svg +3 -0
  50. package/assets/components/SocialLoginButton/assets/line-icon.png +0 -0
  51. package/assets/components/SocialLoginButton/assets/line-white.png +0 -0
  52. package/assets/components/SocialLoginButton/assets/linkedin-white.png +0 -0
  53. package/assets/components/SocialLoginButton/assets/linkedin.png +0 -0
  54. package/assets/components/SocialLoginButton/assets/microsoft.svg +6 -0
  55. package/assets/components/SocialLoginButton/assets/naver.png +0 -0
  56. package/assets/components/SocialLoginButton/assets/slack.svg +17 -0
  57. package/assets/components/SocialLoginButton/assets/spotify.svg +3 -0
  58. package/assets/components/SocialLoginButton/assets/twitch.svg +21 -0
  59. package/assets/components/SocialLoginButton/assets/wechat.png +0 -0
  60. package/assets/components/SocialLoginButton/assets/x.svg +3 -0
  61. package/assets/components/SocialLoginButton/index.ts +2 -0
  62. package/assets/components/SocialLoginButton/provider-tokens.css +30 -0
  63. package/assets/components/SocialLoginButton/providers.ts +23 -0
  64. package/assets/components/TableRowEdit/TableRowEdit.tsx +2 -2
  65. package/assets/components/ThemeController.tsx +2 -2
  66. package/assets/components/TimelineView/TimelineView.tsx +4 -2
  67. package/assets/components/Tooltip/Tooltip.module.css +1 -0
  68. package/assets/components/_data.ts +1 -1
  69. package/assets/components/_utils.css +1 -0
  70. package/assets/components/component-registry.json +30 -1
  71. package/assets/components/index.ts +1 -0
  72. package/assets/components/side-effect-css.d.ts +5 -0
  73. package/assets/components/themeBootScript.ts +7 -1
  74. package/assets/components/tokens.css +14 -6
  75. package/assets/prompts/ASSEMBLY.md +4 -0
  76. package/assets/prompts/CASCADE.md +2 -2
  77. package/assets/prompts/CATALOG.md +2 -1
  78. package/assets/prompts/PRINCIPLES.md +4 -8
  79. package/assets/prompts/RULES.md +19 -1
  80. package/assets/prompts/SLOTS.md +2 -4
  81. package/assets/prompts/WORKFLOW_DESIGN.md +0 -4
  82. package/assets/prompts/axes/icon.md +1 -1
  83. package/assets/prompts/axes/material.md +4 -4
  84. package/assets/prompts/axes/motion.md +1 -1
  85. package/assets/prompts/axes/shape.md +2 -2
  86. package/assets/prompts/axes/voice.md +1 -1
  87. package/assets/prompts/components/_variants.md +4 -4
  88. package/assets/prompts/components/accordion.md +4 -4
  89. package/assets/prompts/components/ai-message.md +6 -2
  90. package/assets/prompts/components/attachment-item.md +2 -2
  91. package/assets/prompts/components/breadcrumb.md +11 -5
  92. package/assets/prompts/components/button.md +3 -3
  93. package/assets/prompts/components/callout.md +8 -4
  94. package/assets/prompts/components/canvas-edge.md +1 -1
  95. package/assets/prompts/components/canvas-node.md +1 -1
  96. package/assets/prompts/components/canvas.md +24 -8
  97. package/assets/prompts/components/card.md +1 -2
  98. package/assets/prompts/components/chart-bar.md +1 -1
  99. package/assets/prompts/components/chat-input.md +1 -1
  100. package/assets/prompts/components/checkbox.md +5 -5
  101. package/assets/prompts/components/color-field.md +2 -2
  102. package/assets/prompts/components/command-palette.md +55 -47
  103. package/assets/prompts/components/context-menu.md +5 -5
  104. package/assets/prompts/components/date-picker.md +2 -2
  105. package/assets/prompts/components/drawer.md +17 -3
  106. package/assets/prompts/components/dropdown-menu.md +3 -3
  107. package/assets/prompts/components/event-list-item.md +4 -4
  108. package/assets/prompts/components/file-icon.md +2 -2
  109. package/assets/prompts/components/gallery-item.md +1 -1
  110. package/assets/prompts/components/hint.md +3 -3
  111. package/assets/prompts/components/kanban.md +2 -3
  112. package/assets/prompts/components/list-item.md +12 -12
  113. package/assets/prompts/components/menu-item.md +2 -2
  114. package/assets/prompts/components/message-table.md +4 -4
  115. package/assets/prompts/components/onboarding.md +3 -3
  116. package/assets/prompts/components/page-header.md +6 -7
  117. package/assets/prompts/components/quotation-bar.md +1 -1
  118. package/assets/prompts/components/select.md +1 -1
  119. package/assets/prompts/components/shortcut.md +3 -3
  120. package/assets/prompts/components/sidebar.md +5 -4
  121. package/assets/prompts/components/social-login-button.md +117 -0
  122. package/assets/prompts/components/stepper.md +1 -1
  123. package/assets/prompts/components/tab-strip.md +2 -2
  124. package/assets/prompts/components/table-row-edit.md +6 -6
  125. package/assets/prompts/components/table-row-select.md +1 -1
  126. package/assets/prompts/components/tabs.md +5 -2
  127. package/assets/prompts/components/textarea.md +1 -1
  128. package/assets/prompts/components/toast.md +3 -3
  129. package/assets/prompts/components/tooltip.md +3 -3
  130. package/assets/prompts/components/topbar.md +1 -1
  131. package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
  132. package/assets/prompts/design-examples/catalog.json +9 -9
  133. package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +37 -1
  134. package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +113 -18
  135. package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +2 -2
  136. package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +3 -1
  137. package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +99 -51
  138. package/assets/prompts/primitives/scroll.md +1 -1
  139. package/assets/prompts/recipes/README.md +5 -6
  140. package/assets/prompts/recipes/meta-line.md +2 -2
  141. package/assets/prompts/recipes/page-header.md +2 -2
  142. package/assets/prompts/recipes/section-header.md +1 -1
  143. package/assets/prompts/themes/_SCHEMA.md +2 -2
  144. package/assets/prompts/tokens/material.md +5 -2
  145. package/assets/prompts/tokens/radius.md +1 -1
  146. package/assets/prompts/use-cases/chat-chat-input.md +382 -74
  147. package/assets/prompts/use-cases/data-list-item.md +38 -431
  148. package/assets/prompts/use-cases/feedback-drawer.md +112 -33
  149. package/assets/prompts/use-cases/overlay-command-palette.md +2004 -0
  150. package/assets/prompts/use-cases/structure-canvas.md +1016 -0
  151. package/assets/skills/ovenn-validate/SKILL.md +1 -1
  152. package/assets/skills/ovenn-validate/scripts/lib/component-usage.js +7 -1
  153. package/assets/skills/ovenn-validate/scripts/lib/engine.mjs +105 -0
  154. package/assets/skills/ovenn-validate/scripts/lib/engine.test.mjs +46 -0
  155. package/assets/skills/ovenn-validate/scripts/lib/source-utils.mjs +5 -3
  156. package/assets/skills/ovenn-validate/scripts/rules/doc-sync.mjs +28 -5
  157. package/assets/skills/ovenn-validate/scripts/rules/doc-sync.test.mjs +15 -0
  158. package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.mjs +7 -0
  159. package/assets/skills/ovenn-validate/scripts/rules/hardcoded.mjs +61 -30
  160. package/assets/skills/ovenn-validate/scripts/rules/memory-rules.mjs +7 -4
  161. package/assets/skills/ovenn-validate/scripts/rules/memory-rules.test.mjs +3 -0
  162. package/assets/skills/ovenn-validate/scripts/validate.mjs +8 -136
  163. package/assets/skills/ovenn-wireframe/SKILL.md +1 -1
  164. package/bin/ovenn.js +8 -0
  165. package/package.json +2 -2
  166. package/src/commands/check.js +70 -0
  167. package/src/commands/info.js +32 -7
  168. package/src/commands/init.js +26 -30
  169. package/src/commands/setup-checks.js +80 -0
  170. package/src/commands/update.js +90 -18
  171. package/src/data/ctds-releases.json +1 -0
  172. package/src/utils/assets.js +5 -0
  173. package/src/utils/component-usage.js +7 -1
  174. package/src/utils/design-workflow.js +6 -2
  175. package/src/utils/doctor.js +7 -1
  176. package/src/utils/legacy-ctds.js +169 -0
  177. package/src/utils/managed-assets.js +16 -3
  178. package/src/utils/route.js +17 -0
  179. package/src/utils/rules-context.js +91 -0
  180. package/src/utils/update-transaction.js +16 -3
  181. package/assets/prompts/FEEDBACK_PROCESS.md +0 -19
  182. package/assets/prompts/GUIDE.md +0 -307
  183. package/assets/prompts/MEMORY.md +0 -202
  184. package/assets/prompts/TEMPLATE_PREVIEWS.md +0 -21
  185. package/assets/prompts/components/README.md +0 -84
@@ -1,22 +1,31 @@
1
1
  "use client";
2
2
 
3
- import { useRef, useState } from "react";
3
+ import { useEffect, useRef, useState } from "react";
4
+ import type { ChatAttachment } from "@/components/ovenn/ChatInput";
4
5
  import { useDemoTextStream } from "./useDemoTextStream";
5
6
 
6
- export type ChatDemoMessage = { id: string; role: "user" | "assistant"; text: string; isStreaming?: boolean };
7
+ export type ChatDemoMessage = {
8
+ id: string;
9
+ role: "user" | "assistant";
10
+ text: string;
11
+ isStreaming?: boolean;
12
+ interruption?: "failed" | "stopped";
13
+ attachments?: ChatAttachment[];
14
+ };
7
15
  export type ChatDemoThread = {
8
16
  id: string;
9
17
  title: string;
10
18
  draft: string;
19
+ attachments: ChatAttachment[];
11
20
  messages: ChatDemoMessage[];
12
21
  };
13
22
 
14
- export function useChatDemo(getReply: (text: string) => string, getTitle: (text: string) => string) {
23
+ export function useChatDemo(getReply: (text: string, hasAttachments: boolean) => string, getTitle: (text: string) => string, initialMessages: ChatDemoMessage[] = []) {
15
24
  const sequence = useRef(1);
16
25
  const delivery = useDemoTextStream();
17
26
  const pendingThreads = useRef(new Set<string>());
18
27
  const [threads, setThreads] = useState<ChatDemoThread[]>([
19
- { id: "chat-0", title: "", draft: "", messages: [] },
28
+ { id: "chat-0", title: initialMessages.length ? getTitle(initialMessages[0].text) : "", draft: "", attachments: [], messages: initialMessages },
20
29
  ]);
21
30
  const [activeId, setActiveId] = useState("chat-0");
22
31
  const activeThread = threads.find((thread) => thread.id === activeId) ?? threads[0];
@@ -25,41 +34,87 @@ export function useChatDemo(getReply: (text: string) => string, getTitle: (text:
25
34
  setThreads((previous) => previous.map((thread) => thread.id === activeId ? { ...thread, draft } : thread));
26
35
  };
27
36
 
28
- const send = (text: string) => {
29
- const value = text.trim();
30
- if (!value || pendingThreads.current.has(activeId)) return;
31
- const targetId = activeId;
32
- const baseMessages = activeThread.messages;
33
- const messageId = `${targetId}-${baseMessages.length}`;
34
- const assistantId = `${messageId}-assistant`;
35
- pendingThreads.current.add(targetId);
36
- setThreads((previous) => previous.map((thread) => {
37
- if (thread.id !== activeId) return thread;
38
- return {
39
- ...thread,
40
- title: thread.title || getTitle(value),
41
- draft: "",
42
- messages: [
43
- ...baseMessages,
44
- { id: `${messageId}-user`, role: "user", text: value },
45
- { id: `${messageId}-assistant`, role: "assistant", text: "", isStreaming: true },
46
- ],
47
- };
48
- }));
49
- delivery.start(targetId, getReply(value), (reply, isStreaming) => {
50
- if (!isStreaming) pendingThreads.current.delete(targetId);
51
- setThreads((previous) => previous.map((thread) => thread.id === targetId ? {
37
+ const imageUrls = useRef(new Set<string>());
38
+ useEffect(() => {
39
+ const used = new Set<string>();
40
+ for (const thread of threads) {
41
+ for (const attachment of [...thread.attachments, ...thread.messages.flatMap((message) => message.attachments ?? [])]) {
42
+ if (attachment.kind === "image" && attachment.src) used.add(attachment.src);
43
+ }
44
+ }
45
+ for (const url of imageUrls.current) {
46
+ if (used.has(url)) continue;
47
+ URL.revokeObjectURL(url);
48
+ imageUrls.current.delete(url);
49
+ }
50
+ }, [threads]);
51
+ useEffect(() => {
52
+ const urls = imageUrls.current;
53
+ return () => { urls.forEach((url) => URL.revokeObjectURL(url)); urls.clear(); };
54
+ }, []);
55
+
56
+ const attach = (files: File[]) => {
57
+ const attachments = files.map((file): ChatAttachment => {
58
+ const id = `attachment-${sequence.current++}`;
59
+ if (!file.type.startsWith("image/")) return { id, kind: "file", filename: file.name };
60
+ const src = URL.createObjectURL(file);
61
+ imageUrls.current.add(src);
62
+ return { id, kind: "image", src, alt: file.name };
63
+ });
64
+ setThreads((previous) => previous.map((thread) => thread.id === activeId ? {
65
+ ...thread, attachments: [...thread.attachments, ...attachments],
66
+ } : thread));
67
+ };
68
+
69
+ const removeAttachment = (id: string) => {
70
+ setThreads((previous) => previous.map((thread) => thread.id === activeId ? {
71
+ ...thread, attachments: thread.attachments.filter((attachment) => attachment.id !== id),
72
+ } : thread));
73
+ };
74
+
75
+ const streamReply = (threadId: string, assistantId: string, prompt: ChatDemoMessage) => {
76
+ pendingThreads.current.add(threadId);
77
+ delivery.start(threadId, getReply(prompt.text, !!prompt.attachments?.length), (text, isStreaming) => {
78
+ if (!isStreaming) pendingThreads.current.delete(threadId);
79
+ setThreads((previous) => previous.map((thread) => thread.id === threadId ? {
52
80
  ...thread,
53
- messages: thread.messages.map((message) => message.id === assistantId ? { ...message, text: reply, isStreaming } : message),
81
+ messages: thread.messages.map((message) => message.id === assistantId ? {
82
+ ...message, text, isStreaming, interruption: undefined,
83
+ } : message),
54
84
  } : thread));
55
85
  });
56
86
  };
57
87
 
88
+ const send = (text: string, useDraft = true) => {
89
+ const value = text.trim();
90
+ const attachments = useDraft ? activeThread.attachments : [];
91
+ if ((!value && !attachments.length) || pendingThreads.current.has(activeId)) return;
92
+ const messageId = `${activeId}-${activeThread.messages.length}`;
93
+ const assistantId = `${messageId}-assistant`;
94
+ const prompt: ChatDemoMessage = { id: `${messageId}-user`, role: "user", text: value, attachments };
95
+ const failed = value === "/fail";
96
+ const firstFile = attachments[0];
97
+ const title = value || (firstFile?.kind === "file" ? firstFile.filename : firstFile?.alt) || "";
98
+ setThreads((previous) => previous.map((thread) => thread.id === activeId ? {
99
+ ...thread,
100
+ title: thread.title || getTitle(title),
101
+ draft: useDraft ? "" : thread.draft,
102
+ attachments: useDraft ? [] : thread.attachments,
103
+ messages: [...thread.messages, prompt, {
104
+ id: assistantId, role: "assistant", text: "",
105
+ interruption: failed ? "failed" : undefined, isStreaming: !failed,
106
+ }],
107
+ } : thread));
108
+ if (!failed) streamReply(activeId, assistantId, prompt);
109
+ };
110
+
58
111
  const stop = () => {
59
112
  delivery.stop(activeId);
60
113
  pendingThreads.current.delete(activeId);
61
114
  setThreads((previous) => previous.map((thread) => thread.id === activeId ? {
62
- ...thread, messages: thread.messages.map((message) => message.isStreaming ? { ...message, isStreaming: false } : message),
115
+ ...thread, messages: thread.messages.map((message) => message.isStreaming ? {
116
+ ...message, isStreaming: false, interruption: message.text ? undefined : "stopped",
117
+ } : message),
63
118
  } : thread));
64
119
  };
65
120
 
@@ -70,22 +125,22 @@ export function useChatDemo(getReply: (text: string) => string, getTitle: (text:
70
125
  const targetId = activeId;
71
126
  const assistantId = `${targetId}-${index}-assistant`;
72
127
  delivery.stop(targetId);
73
- pendingThreads.current.add(targetId);
74
128
  setThreads((previous) => previous.map((thread) => thread.id === targetId ? {
75
129
  ...thread,
76
130
  messages: [
77
131
  ...thread.messages.slice(0, index),
78
- { id: messageId, role: "user", text: value },
132
+ { ...thread.messages[index], text: value },
79
133
  { id: assistantId, role: "assistant", text: "", isStreaming: true },
80
134
  ],
81
135
  } : thread));
82
- delivery.start(targetId, getReply(value), (reply, streaming) => {
83
- if (!streaming) pendingThreads.current.delete(targetId);
84
- setThreads((previous) => previous.map((thread) => thread.id === targetId ? {
85
- ...thread,
86
- messages: thread.messages.map((message) => message.id === assistantId ? { ...message, text: reply, isStreaming: streaming } : message),
87
- } : thread));
88
- });
136
+ streamReply(targetId, assistantId, { ...activeThread.messages[index], text: value });
137
+ };
138
+
139
+ const retry = (messageId: string) => {
140
+ if (pendingThreads.current.has(activeId)) return;
141
+ const index = activeThread.messages.findIndex((message) => message.id === messageId && message.interruption);
142
+ const prompt = activeThread.messages[index - 1];
143
+ if (prompt?.role === "user") streamReply(activeId, messageId, prompt);
89
144
  };
90
145
 
91
146
  const regenerate = (messageId: string) => {
@@ -94,28 +149,21 @@ export function useChatDemo(getReply: (text: string) => string, getTitle: (text:
94
149
  const prompt = activeThread.messages[index - 1];
95
150
  if (index < 1 || prompt?.role !== "user") return;
96
151
  const targetId = activeId;
97
- pendingThreads.current.add(targetId);
98
152
  setThreads((previous) => previous.map((thread) => thread.id === targetId ? {
99
153
  ...thread,
100
154
  messages: [...thread.messages.slice(0, index), { id: messageId, role: "assistant", text: "", isStreaming: true }],
101
155
  } : thread));
102
- delivery.start(targetId, getReply(prompt.text), (text, streaming) => {
103
- if (!streaming) pendingThreads.current.delete(targetId);
104
- setThreads((previous) => previous.map((thread) => thread.id === targetId ? {
105
- ...thread,
106
- messages: thread.messages.map((message) => message.id === messageId ? { ...message, text, isStreaming: streaming } : message),
107
- } : thread));
108
- });
156
+ streamReply(targetId, messageId, prompt);
109
157
  };
110
158
 
111
159
  const createThread = () => {
112
- const empty = threads.find((thread) => thread.messages.length === 0 && !thread.draft && !thread.title);
160
+ const empty = threads.find((thread) => thread.messages.length === 0 && !thread.draft.trim() && !thread.title && !thread.attachments.length);
113
161
  if (empty) {
114
162
  setActiveId(empty.id);
115
163
  return;
116
164
  }
117
165
  const id = `chat-${sequence.current++}`;
118
- setThreads((previous) => [...previous, { id, title: "", draft: "", messages: [] }]);
166
+ setThreads((previous) => [...previous, { id, title: "", draft: "", attachments: [], messages: [] }]);
119
167
  setActiveId(id);
120
168
  };
121
169
 
@@ -129,11 +177,11 @@ export function useChatDemo(getReply: (text: string) => string, getTitle: (text:
129
177
  pendingThreads.current.delete(id);
130
178
  const remaining = threads.filter((thread) => thread.id !== id);
131
179
  if (!remaining.length) {
132
- remaining.push({ id: `chat-${sequence.current++}`, title: "", draft: "", messages: [] });
180
+ remaining.push({ id: `chat-${sequence.current++}`, title: "", draft: "", attachments: [], messages: [] });
133
181
  }
134
182
  setThreads(remaining);
135
183
  if (activeId === id) setActiveId(remaining[remaining.length - 1].id);
136
184
  };
137
185
 
138
- return { threads, activeThread, setActiveId, createThread, renameThread, deleteThread, setDraft, send, stop, edit, regenerate, isStreaming: activeThread.messages.some((message) => message.isStreaming) };
186
+ return { threads, activeThread, setActiveId, createThread, renameThread, deleteThread, setDraft, attach, removeAttachment, send, stop, edit, regenerate, retry, isStreaming: activeThread.messages.some((message) => message.isStreaming) };
139
187
  }
@@ -46,7 +46,7 @@
46
46
 
47
47
  ### ์Šคํฌ๋กค๋ฐ” ์‹œ๊ฐ ์ •์ฑ… (์ „์—ญ, globals.css)
48
48
 
49
- ํ•ต์‹ฌ์€ **overlay ๋ฐฉ์‹ ์ „์šฉ** โ€” ์Šคํฌ๋กค๋ฐ”๋Š” ์ฝ˜ํ…์ธ  ์œ„์— ๋œจ๊ธฐ๋งŒ ํ•˜๊ณ  **๊ณต๊ฐ„์„ ๋จน์ง€ ์•Š๋Š”๋‹ค**. ๊ณต๊ฐ„์„ ๋จน๋Š” "๊ณ ์ • ์Šคํฌ๋กค๋ฐ”" ๋Š” ๋‹คํฌ ๋ชจ๋“œ์—์„œ OSยท๋ธŒ๋ผ์šฐ์ € ์กฐํ•ฉ์ด ํŠธ๋ž™ยท์ฝ”๋„ˆ๋ฅผ ํฐ์ƒ‰์œผ๋กœ ๊ฐ•์ œ ๋ Œ๋”ํ•ด ๊ทธ ์ž๋ฆฌ๊ฐ€ ํ•˜์–—๊ฒŒ ๋œจ๋Š” ํ•จ์ •์ด ์žˆ์–ด ์˜๊ตฌ ๊ธˆ์ง€ ([[feedback_scrollbar_no_fixed_track]]).
49
+ ํ•ต์‹ฌ์€ **overlay ๋ฐฉ์‹ ์ „์šฉ** โ€” ์Šคํฌ๋กค๋ฐ”๋Š” ์ฝ˜ํ…์ธ  ์œ„์— ๋œจ๊ธฐ๋งŒ ํ•˜๊ณ  **๊ณต๊ฐ„์„ ๋จน์ง€ ์•Š๋Š”๋‹ค**. ๊ณต๊ฐ„์„ ๋จน๋Š” "๊ณ ์ • ์Šคํฌ๋กค๋ฐ”" ๋Š” ๋‹คํฌ ๋ชจ๋“œ์—์„œ OSยท๋ธŒ๋ผ์šฐ์ € ์กฐํ•ฉ์ด ํŠธ๋ž™ยท์ฝ”๋„ˆ๋ฅผ ํฐ์ƒ‰์œผ๋กœ ๊ฐ•์ œ ๋ Œ๋”ํ•ด ๊ทธ ์ž๋ฆฌ๊ฐ€ ํ•˜์–—๊ฒŒ ๋œจ๋Š” ํ•จ์ •์ด ์žˆ์–ด ์˜๊ตฌ ๊ธˆ์ง€.
50
50
 
51
51
  - ํ‰์ƒ์‹œ: thumb ํˆฌ๋ช… โ†’ ์Šคํฌ๋กค๋ฐ” ์ž๋ฆฌ๋Š” ์žˆ์ง€๋งŒ ์•ˆ ๋ณด์ž„ (overlay)
52
52
  - ๋ถ€๋ชจ `:hover` ๋˜๋Š” `:focus-within`: thumb์— `--border-strong` ํŽ˜์ด๋“œ ์ธ
@@ -10,7 +10,7 @@
10
10
 
11
11
  ## ๋ ˆ์‹œํ”ผ ์ž‘์„ฑ ๊ทœ์น™
12
12
 
13
- ๋ ˆ์‹œํ”ผ ํŒŒ์ผ์€ [[GUIDE]]์˜ **๊ณตํ†ต ๊ณจ๊ฒฉ**์„ ๋”ฐ๋ฅด๋˜, ์•„๋ž˜ ์ถ”๊ฐ€ ์„น์…˜์„ ํฌํ•จํ•œ๋‹ค.
13
+ ๋ ˆ์‹œํ”ผ ํŒŒ์ผ์€ ํ”„๋กฌํ”„ํŠธ ๋ฌธ์„œ์˜ **๊ณตํ†ต ๊ณจ๊ฒฉ(`### ์›์น™` ยท `### Do` ยท `### Don't` ยท `### Fallback` ยท `### ๊ด€๋ จ`)**์„ ๋”ฐ๋ฅด๋˜, ์•„๋ž˜ ์ถ”๊ฐ€ ์„น์…˜์„ ํฌํ•จํ•œ๋‹ค.
14
14
 
15
15
  ```markdown
16
16
  # <๋ ˆ์‹œํ”ผ ์ด๋ฆ„>
@@ -60,8 +60,8 @@
60
60
 
61
61
  - **meta-line separator** โ€” ์ดˆ๊ธฐ ๋ ˆ์‹œํ”ผ์˜ `width:1px / height:0.75em`๊ฐ€ check_tokens hook์—์„œ ๋ฆฌํ„ฐ๋Ÿด๋กœ ์ฐจ๋‹จ๋จ โ†’ `border-left: 1px solid var(--border)` + `align-self: stretch`๋กœ ์ˆ˜์ •
62
62
  - **๋ฐฐ๊ฒฝยท๊ฒฝ๊ณ„ ์กฐํ•ฉ** โ€” [[PRINCIPLES]] ยง5b์˜ ๋ฏธ์„ธํ•œ ํ‘œ์‹œ ์ƒ‰ ์ฐจ์ด ๊ธฐ์ค€์„ ๋”ฐ๋ฅธ๋‹ค. ์™„์ „ ํˆฌ๋ช…ํ•œ border๋Š” ๋ณด์ด๋Š” ์ŠคํŠธ๋กœํฌ๊ฐ€ ์•„๋‹ˆ๋ฏ€๋กœ ๋™์‹œ ์‚ฌ์šฉ ์œ„๋ฐ˜์œผ๋กœ ๋ณด์ง€ ์•Š๋Š”๋‹ค. ๋ถˆํ•„์š”ํ•œ ํ…Œ๋‘๋ฆฌ ์„ ์–ธ์€ ์ƒ๋žตํ•œ๋‹ค.
63
- - **๋‚ ์งœ ํฌ๋งท** โ€” ์ดˆ๊ธฐ ์˜ˆ์‹œ๋“ค์˜ "10. 13." ์ˆซ์ž ๋‚ ์งœ๊ฐ€ [[feedback-date-writing]] ๋ฃฐ ์œ„๋ฐ˜ โ†’ "10์›” 13์ผ" ํ‘œ๊ธฐ๋กœ ์ˆ˜์ •
64
- - **Callout ์œ ๋ น ์ฐธ์กฐ** โ€” `[[components/banner]]`๊ฐ€ ์œ ๋ น โ†’ `[[recipes/page-banner]]`๋กœ ๊ต์ฒด
63
+ - **๋‚ ์งœ ํฌ๋งท** โ€” ์ดˆ๊ธฐ ์˜ˆ์‹œ๋“ค์˜ "10. 13." ์ˆซ์ž ๋‚ ์งœ๊ฐ€ ๋ฃฐ ์œ„๋ฐ˜ โ†’ "10์›” 13์ผ" ํ‘œ๊ธฐ๋กœ ์ˆ˜์ •
64
+ - **Callout ์œ ๋ น ์ฐธ์กฐ** โ€” `components/banner`๊ฐ€ ์œ ๋ น โ†’ `recipes/page-banner`๋กœ ๊ต์ฒด
65
65
  - **์•„์ด์ฝ˜ ์ด๋ฆ„ misname** โ€” ๋ ˆ์‹œํ”ผ ์˜ˆ์‹œ์˜ `name="chevron-right" / "refresh" / "share" / "code" / "shield" / "checklist" / "terminal"` ์ค‘ ์–ด๋А ๊ฒƒ๋„ Ovenn Icon ์„ธํŠธ์— **๋“ฑ์žฌ๋˜์ง€ ์•Š์Œ**. ๊ฐ๊ฐ `caret-right / arrow-clockwise / share-network / brackets-square / shield-check / clipboard-text / brackets-square`๋กœ ๊ต์ฒด. **๋ ˆ์‹œํ”ผ์— "์•„์ด์ฝ˜ ์ด๋ฆ„์€ `web/components/Icon/Icon.tsx`์˜ phosphor ์ด๋ฆ„ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ์—์„œ ์ฐพ์„ ๊ฒƒ" ๊ฐ€์ด๋“œ ์ถ”๊ฐ€ ํ•„์š”**
66
66
  - **Badge API prop ์˜ค๋ฅ˜** โ€” ๋ ˆ์‹œํ”ผ๊ฐ€ `tone="warning"`์„ ์ผ์ง€๋งŒ ์‹ค์ œ API๋Š” `status="warning"` + `variant="soft"` ์กฐํ•ฉ. `tone`์€ Callout prop. ๋ ˆ์‹œํ”ผ ์ˆ˜์ • ํ•„์š”
67
67
  - **Vendor prop ์„ ์–ธ ํ™•์ธ ๊ณต๋ฐฑ** โ€” ASSEMBLY ยง1 2๋‹จ๊ณ„ "๊ฐ€์žฅ ๊ฐ€๊นŒ์šด ๋ฒค๋” anatomy ๋ฒ ๋ผ๊ธฐ"๋Š” API๊นŒ์ง€ ํ™•์ธํ•˜์ง€ ์•Š์œผ๋ฉด ๋ณต์ œ๊ฐ€ ๊นจ์ง. ASSEMBLY์— **"vendor propยทํƒ€์ž… ์„ ์–ธ์„ ๋ฐ˜๋“œ์‹œ ํ™•์ธ"** ๋‹จ๊ณ„ ์ถ”๊ฐ€ ํ•„์š”
@@ -80,11 +80,11 @@
80
80
  - **์„น์…˜ header๊ฐ€ "ํ†ต์งœ ๋ผ๋ฒจ"๋งŒ ์žˆ์œผ๋ฉด ์–ด์ƒ‰** โ€” h2๋งŒ ๋– ์žˆ๊ณ  countยท์„ค๋ช…ยทeyebrow ์—†์œผ๋ฉด ์„น์…˜๋ผ๋ฆฌ ๊ตฌ๋ณ„ ์•ˆ ๋จ. count badge ๋˜๋Š” ์„ค๋ช… 1์ค„ **์˜๋ฏธ ์žˆ๋Š” ์ž๋ฆฌ๋ฉด** ๋„ฃ๊ธฐ
81
81
 
82
82
  **๋ธŒ๋ผ์šฐ์ € ๋ Œ๋” 3์ฐจ ํ”ผ๋“œ๋ฐฑ (์œ ์ € ์œก์•ˆ ๊ฒ€์ฆ, 2026-10-14)** โ€” โ˜… ๋ ˆ์ด์•„์›ƒ ์ „๋ฉด ๊ต์ฒด:
83
- - **"margin-top differential rhythm"์€ ํ‹€๋ฆฐ ๊ฒฐ๋ก ์ด์—ˆ์Œ** โ€” 2์ฐจ์—์„œ ์‹œ๋„ํ•œ `A + B { margin-top: ... }`๋„ ๊ทธ๋ฃน ์„ค๊ณ„๊ฐ€ ํ‹€๋ ธ๋‹ค๋Š” ์‹ ํ˜ธ์˜€์Œ. ์ •๋‹ต์€ **wrapper ์ถ”๊ฐ€ + ๊ทธ๋ฃน๋ณ„ flex column + gap**. ๋ ˆ์ด์•„์›ƒ 1์›์น™์€ "**๊ด€๋ จ์žˆ๋Š” ๊ฒƒ๋ผ๋ฆฌ ๋ฌถ๊ธฐ**" โ€” ์ด๊ฒŒ **padding/margin์œผ๋กœ ๊ฐ„๊ฒฉ ์กฐ์ •๋ณด๋‹ค ์„ ํ–‰**ํ•ด์•ผ ํ•จ. โ†’ ASSEMBLY ยง2a ์ „๋ฉด ์žฌ์ž‘์„ฑ, [[feedback-group-first-layout]] ๋ฉ”๋ชจ๋ฆฌ ๊ต์ฒด (๊ธฐ์กด differential rhythm ํ๊ธฐ)
83
+ - **"margin-top differential rhythm"์€ ํ‹€๋ฆฐ ๊ฒฐ๋ก ์ด์—ˆ์Œ** โ€” 2์ฐจ์—์„œ ์‹œ๋„ํ•œ `A + B { margin-top: ... }`๋„ ๊ทธ๋ฃน ์„ค๊ณ„๊ฐ€ ํ‹€๋ ธ๋‹ค๋Š” ์‹ ํ˜ธ์˜€์Œ. ์ •๋‹ต์€ **wrapper ์ถ”๊ฐ€ + ๊ทธ๋ฃน๋ณ„ flex column + gap**. ๋ ˆ์ด์•„์›ƒ 1์›์น™์€ "**๊ด€๋ จ์žˆ๋Š” ๊ฒƒ๋ผ๋ฆฌ ๋ฌถ๊ธฐ**" โ€” ์ด๊ฒŒ **padding/margin์œผ๋กœ ๊ฐ„๊ฒฉ ์กฐ์ •๋ณด๋‹ค ์„ ํ–‰**ํ•ด์•ผ ํ•จ. โ†’ ASSEMBLY ยง2a ์ „๋ฉด ์žฌ์ž‘์„ฑ, ๋ฉ”๋ชจ๋ฆฌ ๊ต์ฒด (๊ธฐ์กด differential rhythm ํ๊ธฐ)
84
84
  - **์œ ๋ น ํ† ํฐ `--font-medium` โ†’ ๋ชจ๋“  ํƒ€์ดํ‹€ ์–‡์Œ์˜ ์ˆจ์€ ์›์ธ** โ€” ์‹ค์ œ ํ† ํฐ์€ `--font-weight-medium`. ๋ ˆ์‹œํ”ผ๋“ค์ด ์ „๋ถ€ `var(--font-medium)` ์ผ๊ณ  **check_tokens hook์ด ์œ ๋ น ํ† ํฐ์€ ๋ชป ์žก์Œ** (๋ฆฌํ„ฐ๋Ÿด๋งŒ ์žก์Œ). ์กฐ์šฉํžˆ ์ƒ์†๋œ 400์œผ๋กœ ๋ Œ๋”๋˜์–ด h1ยทh2ยทcardTitle ์ „๋ถ€ ์–‡์Œ. โ†’ ASSEMBLY ยง1 ์ฒดํฌ๋ฆฌ์ŠคํŠธ "font-weight ํ† ํฐ ์ด๋ฆ„ ์ •ํ™•์„ฑ" ์ถ”๊ฐ€, ์ „์ˆ˜ ๊ต์ฒด
85
85
  - **์„น์…˜ header์˜ `margin-bottom`์€ ํ‹€๋ฆผ** โ€” section ์ž์ฒด๋ฅผ flex column + gap์œผ๋กœ ๋ฌถ์œผ๋ฉด header์™€ body๊ฐ€ ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ๊ฐ„๊ฒฉ์„ ๊ฐ€์ง. margin-bottom์€ ๊ทธ๋ฃน ์„ค๊ณ„ ์‹คํŒจ์˜ ํ”์ 
86
86
  - **3-tier ๋ฆฌ๋“ฌ ํ™•๋ฆฝ**: ๊ทธ๋ฃน ์•ˆ `space-2~3` / ์„น์…˜ ๋ฐ˜๋ณต `space-6` / ๊ทธ๋ฃน ์‚ฌ์ด `space-10`. ์ฝ˜์†” ๋ฆฌ๋“ฌ ๊ธฐ์ค€
87
- - **`<section>` ํƒœ๊ทธ ๊ธˆ์ง€์˜ ์žฌํ™•์ธ** โ€” AppShell์˜ `.content section`์ด `padding-top: var(--space-20)` = **80px**์„ ๋ชจ๋“  `<section>`์— ๊ฝ‚์Œ. ๋ฉ”๋ชจ๋ฆฌ [[feedback-no-semantic-tags-in-components]]๊ฐ€ ์ด๋ฏธ ๋ชป ๋ฐ•์€ ํ•จ์ •์ธ๋ฐ ๋ ˆ์‹œํ”ผ ์˜ˆ์‹œ๊ฐ€ `<section>`์„ ๊ทธ๋Œ€๋กœ ์ผ์Œ. ์ „์ˆ˜ `<div>`๋กœ ๊ต์ฒด + section-header ๋ ˆ์‹œํ”ผ Don't์— ๋ช…์‹œ + ASSEMBLY ยง1 ์ฒดํฌ๋ฆฌ์ŠคํŠธ ์ถ”๊ฐ€
87
+ - **`<section>` ์—ฌ๋ฐฑ ํ•จ์ • ์ •์ •**: 80px ์—ฌ๋ฐฑ์€ Ovenn ๋ฌธ์„œ ์‚ฌ์ดํŠธ์˜ `.content section` ๊ทœ์น™์ด์—ˆ๊ณ  ์„ค์น˜ ํ”„๋กœ์ ํŠธ์—๋Š” ์—†๋‹ค. ์˜๋ฏธ์— ๋งž๋Š” ํƒœ๊ทธ๋ฅผ ์“ฐ๊ณ , ํƒœ๊ทธ ์„ ํƒ์ž ์—ฌ๋ฐฑ์€ wrapper class๋กœ ์ขํžŒ๋‹ค([[tokens/spacing]]).
88
88
  - **๊ทธ๋ฃน ์•ˆ์—์„œ๋„ "๋ฏธ๋‹ˆ ๊ทธ๋ฃน" ํ•„์š”** โ€” introGroup ์•ˆ bannerโ†”headerโ†”hint ์…‹์„ `space-3` ํ•˜๋‚˜๋กœ ํ†ต์ผํ–ˆ๋”๋‹ˆ "๊ฐ™์€ ๊ฑฐ๋ฆฌ๋กœ ๋ญ‰์ณ" ์„ฑ๊ฒฉ ๊ตฌ๋ถ„ ์•ˆ ๋จ. **banner(๋ฉ”ํƒ€)์™€ headerBlock(ํƒ€์ดํ‹€+์„ค๋ช…)**์„ ๋ถ„๋ฆฌํ•˜๋Š” ์ค‘๊ฐ„ wrapper(headerBlock) ์ถ”๊ฐ€ โ†’ introGroup gap์„ `space-6`๋กœ ๋ฒŒ๋ฆฌ๊ณ  headerBlock ์•ˆ์€ `space-2` ์ข๊ฒŒ. ๊ทธ๋ฃน ์„ค๊ณ„๋Š” **์žฌ๊ท€์ **์ด์–ด์•ผ ํ•จ.
89
89
  - **3-tier ๋ฆฌ๋“ฌ ์ˆ˜์น˜ ์ƒํ–ฅ** โ€” ์ดˆ๊ธฐ "์„น์…˜ ๋ฐ˜๋ณต space-6 / ๊ทธ๋ฃน space-10"์€ ์‹ค์ธก์—์„œ ์ข์•˜์Œ. "์„น์…˜ โ†” ์„น์…˜ ๋ฐ˜๋ณต"๊ณผ "๊ทธ๋ฃน โ†” ๊ทธ๋ฃน"์€ ๋‘˜ ๋‹ค `space-20` (80px) ์ˆ˜์ค€์ด ์ž์—ฐ์Šค๋Ÿฌ์›€. space-6์€ "์„น์…˜ ์•ˆ ๋ธ”๋ก ๋‹จ์œ„" ๋˜๋Š” "๊ฐ™์€ ๊ทธ๋ฃน ์•ˆ ์„ฑ๊ฒฉ ๋‹ค๋ฅธ ์š”์†Œ"์—๋งŒ.
90
90
  - **"๊ฐ€๊นŒ์šด ๊ด€๊ณ„์ผ์ˆ˜๋ก ๋” ์ข๊ฒŒ" ์›์น™ ํ™•๋ฆฝ (ASSEMBLY ยง2a ์žฌ์ž‘์„ฑ)** โ€” ์œ ์ € ์ง€์ : section headerโ†”body `space-2` + cardList ์•„์ดํ…œ ๊ฐ„ `space-2`๊ฐ€ **๊ฐ™์€ ๊ฐ’**์ด๋ผ "ํƒ€์ดํ‹€๊ณผ ์•„์ดํ…œ์ด ๊ฐ™์€ ๋ ˆ๋ฒจ"๋กœ ๋ญ‰์ณ ๋ณด์ž„. **์ธ์ ‘ํ•œ ๋‘ ๋ ˆ๋ฒจ์€ ๋ฐ˜๋“œ์‹œ ํ•œ ๋‹จ๊ณ„ ์ด์ƒ ์ฐจ์ด**๊ฐ€ ๋‚˜์•ผ ์œ„๊ณ„ ์„ฑ๋ฆฝ. ์ˆ˜์ •: ์•„์ดํ…œ ๊ฐ„ `space-1`, ์„น์…˜ headerโ†”body `space-3`. ๊ฐ™์€ ์›์น™์œผ๋กœ headerBlock gap๋„ `space-2`โ†’`space-3` ์ƒํ–ฅ (pageHeader ์•ˆ titleโ†”description์ด `space-1`์ด๋ฏ€๋กœ)
@@ -100,5 +100,4 @@
100
100
  ## ๊ด€๋ จ
101
101
 
102
102
  - [[ASSEMBLY]] โ€” ์กฐ๋ฆฝ ์•Œ๊ณ ๋ฆฌ์ฆ˜. ๋ ˆ์‹œํ”ผ๋Š” ๊ทธ 3๋‹จ๊ณ„์—์„œ ์ฐธ์กฐ๋œ๋‹ค
103
- - [[GUIDE]] โ€” ๊ณตํ†ต ๊ณจ๊ฒฉยทN/A ๊ทœ์น™. ๋ ˆ์‹œํ”ผ ํŒŒ์ผ๋„ ์ด๋ฅผ ๋”ฐ๋ฅธ๋‹ค
104
103
  - [[components/_variants]] โ€” ์—ญํ•  ร— variant ๋งคํ•‘. ๋ ˆ์‹œํ”ผ ๋‚ด vendor ์„ ํƒ ์‹œ ์ฐธ์กฐ
@@ -18,10 +18,10 @@
18
18
  - separator๋Š” `aria-hidden="true"` โ€” ์Šคํฌ๋ฆฐ๋ฆฌ๋”์—์„œ ์ฝํžˆ์ง€ ์•Š๊ฒŒ
19
19
  - label ์ค‘ ํ•˜๋‚˜๊ฐ€ **๊ฐ’**(์‚ฌ๋žŒ ์ด๋ฆ„ยท์‹œ๊ฐ)์ด๊ณ  ๋‚˜๋จธ์ง€๊ฐ€ **๊ณ ์ • ๋ผ๋ฒจ**์ด๋ฉด, ๊ฐ’๋งŒ `color: var(--fg)` (์‚ด์ง ์˜ฌ๋ฆผ) โ€” ๋‹จ ํ†ค ์ฐจ์ด๋Š” 1๋‹จ๊ณ„ ์ด๋‚ด
20
20
  - ์ „์ฒด wrapper: `display: flex; align-items: center; gap: var(--space-2);`
21
- - ๋‚ ์งœยท์‹œ๊ฐ„์€ [[feedback-date-writing]] ์ „๋žต ์ค‘ ํ•˜๋‚˜๋กœ (์ƒ๋Œ€์–ด "12๋ถ„ ์ „" / "10์›” 13์ผ") โ€” ์ˆซ์ž ํŒจํ„ด("10. 13") ๊ธˆ์ง€
21
+ - ๋‚ ์งœยท์‹œ๊ฐ„์€ ์ „๋žต ์ค‘ ํ•˜๋‚˜๋กœ (์ƒ๋Œ€์–ด "12๋ถ„ ์ „" / "10์›” 13์ผ") โ€” ์ˆซ์ž ํŒจํ„ด("10. 13") ๊ธˆ์ง€
22
22
 
23
23
  ### Don't
24
- - [HARD] **๊ฐ€์šด๋Žƒ์ (`ยท` `โ€ข` `โˆ™`)ยท์ (`.`)ยทpipe(`|`)ยท์Šฌ๋ž˜์‹œ(`/`)** ๋“ฑ **๋ฌธ์ž ๊ตฌ๋ถ„์ž ๊ธˆ์ง€** โ€” ๋ฉ”๋ชจ๋ฆฌ [no-bullet-separator]. hairline์œผ๋กœ๋งŒ ๋ถ„๋ฆฌ
24
+ - ๋ฌธ์ž ๊ตฌ๋ถ„์ž๋Š” ์“ฐ์ง€ ์•Š๋Š”๋‹ค([[RULES]] ยง3). hairline์œผ๋กœ๋งŒ ๋‚˜๋ˆˆ๋‹ค.
25
25
  - [HARD] separator๋ฅผ label ์•ž๋’ค์—๋„ ๋„ฃ์ง€ ์•Š๋Š”๋‹ค. **"์‚ฌ์ด์—๋งŒ"**. ๋์— ๋˜๋Š” ์ฒ˜์Œ์— ๋‘๋ฉด ๋Š๊ธด ๋А๋‚Œ
26
26
  - [HARD] label ํ•˜๋‚˜ํ•˜๋‚˜๋ฅผ Badge๋กœ ์“ฐ์ง€ ์•Š๋Š”๋‹ค โ€” ๋ฉ”ํƒ€ ๋ผ์ธ์€ ํ†ค์ด ์กฐ์šฉํ•ด์•ผ ํ•œ๋‹ค. Badge๋Š” ์ƒํƒœยท์นดํ…Œ๊ณ ๋ฆฌ **ํ‘œ์‹œ**๊ฐ€ ํ•„์š”ํ•  ๋•Œ๋งŒ, ๋ฉ”ํƒ€ ๋ผ์ธ์— ์„ž์ด์ง€ ์•Š๊ฒŒ ๋ถ„๋ฆฌ
27
27
  - [SOFT] 3๊ฐœ ๋„˜์œผ๋ฉด ๋ฉ”ํƒ€ ๋ผ์ธ์ด ์•„๋‹ˆ๋ผ **๋ณ„๋„ ๋ธ”๋ก**์ด ๋งž๋Š”์ง€ ์žฌ๊ฒ€ํ† . 4๊ฐœ ์ด์ƒ์€ ์‚ฌ์šฉ์ž๊ฐ€ ๋‹ค ๋ชป ์ฝ์Œ
@@ -14,7 +14,7 @@
14
14
 
15
15
  - eyebrow์™€ title ์‚ฌ์ด: `space-1`
16
16
  - title๊ณผ description ์‚ฌ์ด: `space-2`
17
- - **๋ธ”๋ก ์ „์ฒด ์•„๋ž˜ (๋‹ค์Œ ์„น์…˜๊นŒ์ง€)์˜ ๊ฐ„๊ฒฉ์€ ์ƒ์œ„ wrapper ์˜ `gap` ์ด ๋‹ด๋‹น**. `space-6` (์•ฑ ๋ฆฌ๋“ฌ) / `space-10` (๋žœ๋”ฉ ๋ฆฌ๋“ฌ). PageHeader ์ž์ฒด๋Š” `margin-bottom` ์„ ๊ฑธ์ง€ ์•Š๋Š”๋‹ค ([[feedback_page_header_no_bottom_margin]]).
17
+ - **๋ธ”๋ก ์ „์ฒด ์•„๋ž˜ (๋‹ค์Œ ์„น์…˜๊นŒ์ง€)์˜ ๊ฐ„๊ฒฉ์€ ์ƒ์œ„ wrapper ์˜ `gap` ์ด ๋‹ด๋‹น**. `space-6` (์•ฑ ๋ฆฌ๋“ฌ) / `space-10` (๋žœ๋”ฉ ๋ฆฌ๋“ฌ). PageHeader ์ž์ฒด๋Š” `margin-bottom` ์„ ๊ฑธ์ง€ ์•Š๋Š”๋‹ค.
18
18
  - actions๋Š” title๊ณผ ๊ฐ™์€ row โ€” `align-items: center`, `flex: 1 1 auto` title / `flex: 0 0 auto` actions
19
19
 
20
20
  ### Do
@@ -27,7 +27,7 @@
27
27
  ### Don't
28
28
  - [HARD] h1 ์•„๋ž˜ `margin-bottom`์„ ์ž์‹(h1)์ด ๊ฑธ๊ณ  **๋™์‹œ์—** ๋ถ€๋ชจ wrapper๋„ gap์„ ๊ฑธ์ง€ ์•Š๋Š”๋‹ค โ€” ์ด์ค‘ ์—ฌ๋ฐฑ ([[tokens/spacing]] Don't)
29
29
  - [HARD] h1์„ `font-semibold`/`font-bold`๋กœ ์“ฐ์ง€ ์•Š๋Š”๋‹ค โ€” [[tokens/typography]] font weight cap
30
- - [HARD] uppercase + letter-spacing ์กฐํ•ฉ ๊ธˆ์ง€ โ€” ๋ฉ”๋ชจ๋ฆฌ [no-uppercase]
30
+ - uppercase + letter-spacing ์กฐํ•ฉ์€ ์“ฐ์ง€ ์•Š๋Š”๋‹ค(๊ธฐ๋ณธ๊ฐ’).
31
31
  - [SOFT] eyebrow ์—†์ด breadcrumb๋งŒ Topbar leading์— ๋‘๋Š” ํŒจํ„ด์€ ํ”ผํ•œ๋‹ค โ€” ํŽ˜์ด์ง€ ์‹๋ณ„์ด shell๋กœ ์ƒŒ๋‹ค. Topbar leading์—๋Š” workspace/section๋งŒ, ํŽ˜์ด์ง€ ์ด๋ฆ„์€ body๋กœ
32
32
 
33
33
  ### Fallback
@@ -24,7 +24,7 @@
24
24
  - ์•ก์…˜์ด 2๊ฐœ ์ด์ƒ์ด๋ฉด ์„œ๋กœ ๊ฐ„ gap `space-1`
25
25
 
26
26
  ### Don't
27
- - [HARD] `<section>` ํƒœ๊ทธ๋ฅผ ์“ฐ์ง€ ์•Š๋Š”๋‹ค โ€” AppShell์˜ `.content section`์ด `padding-top: space-20`(80px)์„ ๊ฝ‚์•„ "์„น์…˜ ๋จธ๋ฆฌ์— ๊ฑฐ๋Œ€ํ•œ ์—ฌ๋ฐฑ" ํ•จ์ • ๋ฐœ์ƒ. `<div>`๋กœ ์ง ๋‹ค ([[feedback-no-semantic-tags-in-components]])
27
+ - Ovenn ์ปดํฌ๋„ŒํŠธ๋Š” `section`ยท`article` ๊ฐ™์€ ํƒœ๊ทธ์— ์—ฌ๋ฐฑ์„ ๊ฑธ์ง€ ์•Š์œผ๋ฏ€๋กœ ์˜๋ฏธ์— ๋งž๋Š” ํƒœ๊ทธ๋ฅผ ์“ด๋‹ค. ํ”„๋กœ์ ํŠธ ์ „์—ญ CSS๊ฐ€ ํƒœ๊ทธ ์„ ํƒ์ž์— ์—ฌ๋ฐฑ์„ ๊ฑธ์—ˆ๋‹ค๋ฉด ๊ทธ ๊ทœ์น™์„ wrapper class ์•ˆ์œผ๋กœ ์ขํžŒ๋‹ค([[tokens/spacing]]).
28
28
  - [HARD] h2๋ฅผ `font-semibold`/`font-bold`๋กœ ์“ฐ์ง€ ์•Š๋Š”๋‹ค โ€” [[tokens/typography]] font weight cap
29
29
  - [HARD] h2 ์•„๋ž˜์— `border-bottom`์„ ๊น”์ง€ ์•Š๋Š”๋‹ค. ์„น์…˜ ๋ถ„๋ฆฌ๋Š” **gap**์ด ๋‹ด๋‹น. ์„  + ๊ณต๊ฐ„์€ ์ด์ค‘ ๋ถ„๋ฆฌ
30
30
  - [HARD] ์„น์…˜๋ผ๋ฆฌ `space-6` ์ด์ƒ gap์œผ๋กœ ๋ถ„๋ฆฌํ•˜์ง€ ์•Š๋Š”๋‹ค โ€” ๊ฐ ์„น์…˜์ด border/๋ฐฐ๊ฒฝ์œผ๋กœ ๋ถ„๋ฆฌ๋ผ ์žˆ์œผ๋ฉด ๊ณผํ•œ ๊ณต๊ฐ„์€ "๊ตฌ์กฐ๊ฐ€ ๋Š๊ธด" ๊ฒฐ๊ณผ ([[tokens/spacing]] Don't)
@@ -1,7 +1,7 @@
1
1
  # Theme Schema
2
2
 
3
3
  Theme ๋ ˆ์ด์–ด ์ž์ฒด์˜ ๊ทœ์น™. ๊ฐœ๋ณ„ Theme ๋ฌธ์„œ๋Š” ์ด ์Šคํ‚ค๋งˆ๋ฅผ ๋”ฐ๋ฅธ๋‹ค.
4
- [[PRINCIPLES]] ยท [[GUIDE]]์˜ ์ „์ œ๋ฅผ ๋ชจ๋‘ ์ด์–ด๋ฐ›๋Š”๋‹ค.
4
+ [[PRINCIPLES]]์˜ ์ „์ œ๋ฅผ ๋ชจ๋‘ ์ด์–ด๋ฐ›๋Š”๋‹ค.
5
5
 
6
6
  ---
7
7
 
@@ -31,7 +31,7 @@ Theme์€ **6๊ฐœ ์ถ•์˜ preset ๋ฌถ์Œ + ์ถ• ๋ฐ– ์‚ฐ๋ฌธ ๋ ˆ์ด์–ด**๋‹ค. "๋ฃฉ์˜
31
31
  ์ถ• 6๊ฐœ ์ค‘ preset ์„ ํƒ์ด ์• ๋งคํ•˜๋ฉด ๊ฐ ์ถ•์˜ ๊ธฐ๋ณธ๊ฐ’([[axes/mode]] ๋“ฑ ์ฐธ๊ณ )์œผ๋กœ ๋‘”๋‹ค. ๊ทธ๋ž˜๋„ ์• ๋งคํ•˜๋ฉด ์‚ฌ์šฉ์ž์—๊ฒŒ ํ™•์ธ.
32
32
 
33
33
  ### ๊ด€๋ จ
34
- - [[GUIDE]] โ€” Theme๋„ ๊ณตํ†ต ๊ณจ๊ฒฉ ยง2๋ฅผ ๋”ฐ๋ฅธ๋‹ค. ์•„๋ž˜ "Theme ์ „์šฉ ์ถ”๊ฐ€ ํ•ญ๋ชฉ"์ด ยง3์˜ ์ถ•/ํ† ํฐ/์ปดํฌ๋„ŒํŠธ/ํ”„๋ฆฌ๋ฏธํ‹ฐ๋ธŒ ๋‹ค์Œ ๋‹ค์„ฏ ๋ฒˆ์งธ ํƒ€์ž….
34
+ - Theme๋„ ํ”„๋กฌํ”„ํŠธ ๋ฌธ์„œ์˜ ๊ณตํ†ต ๊ณจ๊ฒฉ(`### ์›์น™` ยท `### Do` ยท `### Don't` ยท `### Fallback` ยท `### ๊ด€๋ จ`)์„ ๋”ฐ๋ฅด๊ณ , ์•„๋ž˜ "Theme ์ „์šฉ ์ถ”๊ฐ€ ํ•ญ๋ชฉ"์„ ๋”ํ•œ๋‹ค.
35
35
  - [[themes/_TEMPLATE]] โ€” ๋ณต์‚ฌํ•ด์„œ ์“ฐ๋Š” Theme skeleton.
36
36
 
37
37
  ---
@@ -10,6 +10,8 @@
10
10
  |---|---|
11
11
  | `--surface-glass-bg` | Mode๋ณ„ tint์™€ ๋ถˆํˆฌ๋ช…๋„๋กœ ํ•ฉ์„ฑํ•œ ๋”ค๋“œ ํ‘œ๋ฉด |
12
12
  | `--surface-glass-border` | `--fg` ๋ผ์ดํŠธ5%/๋‹คํฌ10% + `--bg`, `--hairline` ๋‘๊ป˜ |
13
+ | `--surface-glass-field-opacity` | ๋ฐ•์Šค ์ž…๋ ฅ ์ปจํŠธ๋กค๊ณผ ๋ฉ”๋‰ด ๋ฐฐ๊ฒฝ์˜ ๋ถˆํˆฌ๋ช…๋„45% |
14
+ | `--surface-glass-field-bg/filled-bg/active-bg` | ๊ธฐ๋ณธยท์ฑ„์›€ยทํ™œ์„ฑ ์ž…๋ ฅ ๋ฐฐ๊ฒฝ์„45%๋กœ ํ•ฉ์„ฑ |
13
15
  | `--surface-glass-blur` | 8px backdrop blur |
14
16
  | `--surface-glass-radius` | `--radius-lg` |
15
17
  | `--surface-glass-selected-bg` | `--fg` 8% + `--bg` 92% |
@@ -21,12 +23,13 @@
21
23
  | ๋”ค๋“œ ์žˆ์Œ | 72% | 40% | 8px | dim/blur ModalยทDrawer |
22
24
  | CommandPalette | 70% | 70% | 8px | ์ „์—ญ ๋ช…๋ น ์ฐฝ |
23
25
  | ์ผ๋ฐ˜ ๋”ค๋“œ ์—†์Œ | 80% | 58% | 16px | DatePicker, transparent Modalยทnone Drawer |
26
+ | ๋ฐ•์Šค ์ž…๋ ฅ ์ปจํŠธ๋กค | 45% | 45% | ๋ณ„๋„ ์ถ”๊ฐ€ ์—†์Œ | InputยทTextareaยทSelect/Combobox ํŠธ๋ฆฌ๊ฑฐ |
24
27
  | ColorPicker | 42% | 42% | 10px | ์ƒ‰์ƒํŒ/์ž…๋ ฅ์€ ์ฝ์„ ์ˆ˜ ์žˆ๊ฒŒ ์œ ์ง€, ์™ธ๊ณฝ์€ 5% ์ค‘์„ฑ ๊ฒฝ๊ณ„ |
25
- | ๋ฉ”๋‰ด | 92% | 92% | 16px | ContextMenuยทDropdownMenuยทSelect์˜ ๊ณตํ†ต ํ‘œ๋ฉด |
28
+ | ๋ฉ”๋‰ด | 45% | 45% | 16px | ContextMenuยทDropdownMenuยทSelect์˜ ๊ณตํ†ต ํ‘œ๋ฉด |
26
29
 
27
30
  ๋‹คํฌ๋Š” `--surface-glass-tint`๋กœ ์ „๊ฒฝ4%๋ฅผ ๋ฐฐ๊ฒฝ์— ์„ž๊ณ , `--surface-glass-border-contrast`๋ฅผ10%๋กœ ๋†’์—ฌ ๊ฒ€์€ ๋ฐ”ํƒ•๊ณผ ํ‘œ๋ฉด์˜ ๊ฒฝ๊ณ„๋ฅผ ๊ตฌ๋ถ„ํ•œ๋‹ค. ๋ผ์ดํŠธ๋Š” ๊ฐ๊ฐ0%ยท5%๋‹ค. ๋ถˆํˆฌ๋ช…๋„๋Š” `--surface-glass-opacity`ยท`--surface-glass-floating-opacity`์— ์ €์žฅํ•˜๋ฉฐ, ๋กœ์ปฌ Mode/Material scope๋„ ์ด ๊ฐ’์„ ๋”ฐ๋ฅธ๋‹ค.
28
31
 
29
- ๋”ค๋“œ๊ฐ€ ์—†๋Š” ํ™”๋ฉด์€ ๋ฐฐ๊ฒฝ์˜ ์ƒ‰ยทํ…์ŠคํŠธ๊ฐ€ ์ง์ ‘ ๊ฐ„์„ญํ•˜๋ฏ€๋กœ ๋ถˆํˆฌ๋ช…๋„์™€ ๋ธ”๋Ÿฌ๋ฅผ ๋†’์ธ๋‹ค. `--surface-glass-floating-bg`ยท`--surface-glass-floating-blur`์— ๊ฐ’์„ ์ €์žฅํ•˜๊ณ  `--material-floating-bg/filter`๋กœ ํ™œ์„ฑํ™”ํ•œ๋‹ค. ์ƒ‰์ƒํŒยท์ˆ˜์น˜ ์ž…๋ ฅ์€ ๋ถˆํˆฌ๋ช…ํ•˜๊ฒŒ ์œ ์ง€ํ•œ๋‹ค.
32
+ ๋”ค๋“œ๊ฐ€ ์—†๋Š” ํ™”๋ฉด์€ ๋ฐฐ๊ฒฝ์˜ ์ƒ‰ยทํ…์ŠคํŠธ๊ฐ€ ์ง์ ‘ ๊ฐ„์„ญํ•˜๋ฏ€๋กœ ๋ถˆํˆฌ๋ช…๋„์™€ ๋ธ”๋Ÿฌ๋ฅผ ๋†’์ธ๋‹ค. `--surface-glass-floating-bg`ยท`--surface-glass-floating-blur`์— ๊ฐ’์„ ์ €์žฅํ•˜๊ณ  `--material-floating-bg/filter`๋กœ ํ™œ์„ฑํ™”ํ•œ๋‹ค. ColorPicker ์ƒ‰์ƒํŒ๊ณผ ์ƒ‰์ƒ ์ˆ˜์น˜ ์ž…๋ ฅ์€ ๋ถˆํˆฌ๋ช…ํ•˜๊ฒŒ ์œ ์ง€ํ•œ๋‹ค. ๋ฐ•์Šค ์ž…๋ ฅ ์ปจํŠธ๋กค์€ `--material-field-bg/filled-bg/active-bg`๋กœ ํ™œ์„ฑํ™”ํ•˜๋ฉฐ Solidยท๋กœ์ปฌ Solidยทํˆฌ๋ช…๋„ ๊ฐ์†Œ์—์„œ๋Š” ๊ธฐ์กด ๋ถˆํˆฌ๋ช… ํ‘œ๋ฉด์œผ๋กœ ๋Œ์•„๊ฐ„๋‹ค. line๊ณผ readOnly์˜ ํˆฌ๋ช… ๋ฐฐ๊ฒฝ์€ ๊ทธ๋Œ€๋กœ ์œ ์ง€ํ•œ๋‹ค.
30
33
 
31
34
  ### ์‚ฌ์šฉ
32
35
  - ์ „์—ญ ์žฌ์งˆ ์ „ํ™˜์€ [[axes/material]]์˜ `solid | glass`๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. `--surface-glass-*`๋Š” ์žฌ์งˆ ์›๋ณธ์ด๋ฉฐ, ํ™œ์„ฑ ํ‘œ๋ฉด์€ `--material-*` ๋ณ„์นญ์„ ์ฐธ์กฐํ•œ๋‹ค.
@@ -6,7 +6,7 @@ Tooltip < Button < Card < Modal ์ˆœ์„œ๋Š” ์–ด๋–ค ํ”„๋กœ์ ํŠธ์—์„œ๋„ ์œ ์ง€.
6
6
 
7
7
  ๋ชจ์„œ๋ฆฌ ํ˜•ํƒœ๋Š” `corner-shape: var(--corner-shape)`๋กœ ์—ฐ๊ฒฐํ•œ๋‹ค. ๋ฐ˜๊ฒฝ์„ ์ƒ์†ํ•˜๋Š” ๋‚ด๋ถ€ ํ‘œ๋ฉด์€ `corner-shape: inherit`๋„ ํ•จ๊ป˜ ์“ด๋‹ค. ๋ฏธ๋‹ˆ CheckboxยทBadge๋Š” `corner-shape-mini`๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. Switch๋Š” ์ž์ฒด soft/crisp variant์˜ ๋กœ์ปฌ ํ† ํฐ์„ ์œ ์ง€ํ•˜๋ฉฐ ์ „์—ญ Shape์™€ ๋…๋ฆฝ์ ์ด๋‹ค.
8
8
 
9
- Squircle ๋ณด์ • ๋ฐฐ์œจ์€ `radius-scale`(standardยทpill1.8, soft1.72, crisp1)์ด๋‹ค. standard์˜ ๊ธฐ์ค€ ๋ฐ˜๊ฒฝ 10% ์ถ•์†Œ์™€ soft์˜ ํฐ ๋‹จ๊ณ„ ์ถ•์†Œ๋Š” ๋ฐฐ์œจ ์ด์ „ ๊ธฐ์ค€๊ฐ’์— ์œ ์ง€ํ•œ๋‹ค. none/full์€ ๋ฐฐ์œจ์„ ์ ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค. soft์˜ ์•ก์…˜ ์ปจํŠธ๋กค radius-pill-sm/md/lg๋Š” ํ•ด๋‹น control ๋†’์ด์˜ 44%๋ฅผ ์ƒํ•œ์œผ๋กœ ๋‘์–ด pill์ฒ˜๋Ÿผ ์ฐจ๋Š” ๊ฒƒ์„ ๋ง‰๋Š”๋‹ค. ์ž‘์€ ๋ถ€ํ’ˆ์€ ๋†’์ด ์ ˆ๋ฐ˜ ์ •๊ทœํ™” ๋•Œ๋ฌธ์— ๊ฐ™์€ ๋ชจ์–‘์ด ๋  ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ ์‹ค์ œ ํ™”๋ฉด์—์„œ ์ถ•๋ณ„ ๊ณก์„  ์ฐจ์ด๋ฅผ ํ™•์ธํ•œ๋‹ค.
9
+ Squircle ๋ณด์ • ๋ฐฐ์œจ์€ `radius-scale`(standard 1.75, soft 1.72, pill 1.8, crisp 1)์ด๋‹ค. standard์˜ ๊ธฐ์ค€ ๋ฐ˜๊ฒฝ 10% ์ถ•์†Œ์™€ soft์˜ ํฐ ๋‹จ๊ณ„ ์ถ•์†Œ๋Š” ๋ฐฐ์œจ ์ด์ „ ๊ธฐ์ค€๊ฐ’์— ์œ ์ง€ํ•œ๋‹ค. none/full์€ ๋ฐฐ์œจ์„ ์ ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค. soft์˜ ์•ก์…˜ ์ปจํŠธ๋กค radius-pill-sm/md/lg๋Š” ํ•ด๋‹น control ๋†’์ด์˜ 44%๋ฅผ ์ƒํ•œ์œผ๋กœ ๋‘์–ด pill์ฒ˜๋Ÿผ ์ฐจ๋Š” ๊ฒƒ์„ ๋ง‰๋Š”๋‹ค. ์ž‘์€ ๋ถ€ํ’ˆ์€ ๋†’์ด ์ ˆ๋ฐ˜ ์ •๊ทœํ™” ๋•Œ๋ฌธ์— ๊ฐ™์€ ๋ชจ์–‘์ด ๋  ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ ์‹ค์ œ ํ™”๋ฉด์—์„œ ์ถ•๋ณ„ ๊ณก์„  ์ฐจ์ด๋ฅผ ํ™•์ธํ•œ๋‹ค.
10
10
 
11
11
  - ํ‘œ๋ฉด ์œ„ SVG ์™ธ๊ณฝ์„ ์€ CSS์˜ radiusยทcorner-shape์—์„œ ๊ฐ™์€ ๊ฒฝ๋กœ๋ฅผ ์ƒ์„ฑํ•œ๋‹ค. ๋ณ„๋„ rect rx๋กœ ์ผ๋ฐ˜ ์›ํ˜ธ๋ฅผ ๊ฒน์น˜๋ฉด squircle๊ณผ ์–ด๊ธ‹๋‚œ๋‹ค. border/outline ๊ฐ™์€ ๋™์ผ ์š”์†Œ์˜ ๋„ค์ดํ‹ฐ๋ธŒ ๊ฒฝ๊ณ„์™€ ๊ตฌ๋ถ„ํ•œ๋‹ค.
12
12