kasaframe 0.1.4 → 0.1.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 (374) hide show
  1. package/NOTICE +311 -0
  2. package/README.md +18 -5
  3. package/docs/AGENTS.md +2 -1
  4. package/package.json +1 -1
  5. package/packages/adapters/src/project.ts +2 -0
  6. package/packages/check/package.json +1 -0
  7. package/packages/check/src/check.ts +8 -2
  8. package/packages/check/src/rules/frames.ts +4 -5
  9. package/packages/cli/src/commands/doctor.ts +15 -2
  10. package/packages/cli/src/commands/fonts.ts +118 -0
  11. package/packages/cli/src/commands/make.ts +15 -5
  12. package/packages/cli/src/commands/render.ts +34 -7
  13. package/packages/cli/src/commands/update.ts +66 -0
  14. package/packages/cli/src/fonts.ts +405 -0
  15. package/packages/cli/src/kf.ts +5 -0
  16. package/packages/cli/src/mix.ts +66 -4
  17. package/packages/cli/src/segments.ts +1 -1
  18. package/packages/cli/src/sfx.ts +429 -0
  19. package/packages/cli/src/update.ts +250 -0
  20. package/packages/core/src/frame.ts +7 -4
  21. package/packages/core/src/index.ts +3 -1
  22. package/packages/core/src/project.ts +19 -0
  23. package/packages/core/src/sfx.ts +70 -0
  24. package/packages/director/src/assemble.ts +7 -4
  25. package/packages/director/src/index.ts +1 -1
  26. package/packages/director/src/pattern.ts +2 -0
  27. package/packages/director/src/scene.ts +14 -5
  28. package/packages/director/src/transitions.ts +21 -8
  29. package/packages/motion/src/enter.ts +7 -1
  30. package/packages/motion/src/impact.ts +5 -2
  31. package/packages/motion/src/moves/dress.ts +15 -2
  32. package/packages/motion/src/moves/menu.ts +11 -5
  33. package/packages/motion/src/transition.ts +3 -1
  34. package/packages/motion/src/transition3d/index.ts +3 -1
  35. package/packages/motion/src/transition3d/live.ts +5 -3
  36. package/packages/patterns/src/bars/rank.ts +6 -7
  37. package/packages/patterns/src/before-after/shrink.ts +3 -4
  38. package/packages/patterns/src/before-after/strike.ts +4 -5
  39. package/packages/patterns/src/code/terminal.ts +25 -16
  40. package/packages/patterns/src/end/lockup.ts +13 -10
  41. package/packages/patterns/src/end/slam.ts +7 -5
  42. package/packages/patterns/src/hook-number/counter.ts +15 -9
  43. package/packages/patterns/src/hook-number/slam.ts +6 -8
  44. package/packages/patterns/src/kit.ts +281 -58
  45. package/packages/patterns/src/limit/gauge.ts +16 -11
  46. package/packages/patterns/src/quote/karaoke.ts +17 -12
  47. package/packages/patterns/src/sfx.ts +80 -0
  48. package/packages/patterns/src/term-reveal/chips.ts +24 -10
  49. package/packages/patterns/src/term-reveal/expand.ts +17 -13
  50. package/packages/patterns/src/title/mask.ts +9 -8
  51. package/packages/patterns/src/title/slam.ts +1 -1
  52. package/packages/patterns/src/types.ts +1 -0
  53. package/packages/plan/src/asks.ts +1 -1
  54. package/packages/plan/src/brief.ts +5 -2
  55. package/packages/plan/src/themes.ts +8 -2
  56. package/packages/themes/kit/THEME-MAKE.md +2 -2
  57. package/packages/themes/kit/fonts/display.json +3517 -0
  58. package/packages/themes/kit/fonts/sans.json +5155 -0
  59. package/packages/themes/kit/fonts/serif.json +5229 -0
  60. package/packages/themes/kit/fonts.json +243 -79
  61. package/packages/themes/package.json +3 -1
  62. package/packages/themes/src/fontfile.ts +183 -0
  63. package/packages/themes/src/fonts.ts +296 -0
  64. package/packages/themes/src/index.ts +32 -2
  65. package/packages/themes/src/look.ts +34 -8
  66. package/packages/themes/src/slots.ts +32 -2
  67. package/packages/themes/src/types.ts +33 -0
  68. package/packages/themes/src/vary.ts +35 -34
  69. package/presets/kawaii-pastel.json +2 -2
  70. package/sfx/README.md +82 -0
  71. package/sfx/click/appear.wav +0 -0
  72. package/sfx/click/burst.wav +0 -0
  73. package/sfx/click/drop.wav +0 -0
  74. package/sfx/click/end.wav +0 -0
  75. package/sfx/click/hop.wav +0 -0
  76. package/sfx/click/land.wav +0 -0
  77. package/sfx/click/select.wav +0 -0
  78. package/sfx/click/stick.wav +0 -0
  79. package/sfx/click/tick.wav +0 -0
  80. package/sfx/click/type.wav +0 -0
  81. package/sfx/click/whoosh.wav +0 -0
  82. package/sfx/pop/appear.wav +0 -0
  83. package/sfx/pop/burst.wav +0 -0
  84. package/sfx/pop/drop.wav +0 -0
  85. package/sfx/pop/end.wav +0 -0
  86. package/sfx/pop/hop.wav +0 -0
  87. package/sfx/pop/land.wav +0 -0
  88. package/sfx/pop/select.wav +0 -0
  89. package/sfx/pop/stick.wav +0 -0
  90. package/sfx/pop/tick.wav +0 -0
  91. package/sfx/pop/type.wav +0 -0
  92. package/sfx/pop/whoosh.wav +0 -0
  93. package/sfx/tags.json +545 -0
  94. package/sfx/ui/appear.wav +0 -0
  95. package/sfx/ui/burst.wav +0 -0
  96. package/sfx/ui/drop.wav +0 -0
  97. package/sfx/ui/end.wav +0 -0
  98. package/sfx/ui/hop.wav +0 -0
  99. package/sfx/ui/land.wav +0 -0
  100. package/sfx/ui/select.wav +0 -0
  101. package/sfx/ui/stick.wav +0 -0
  102. package/sfx/ui/tick.wav +0 -0
  103. package/sfx/ui/type.wav +0 -0
  104. package/sfx/ui/whoosh.wav +0 -0
  105. package/skills/kasaframe/SKILL.md +1 -0
  106. package/themes/blueprint/sample/style.json +5 -5
  107. package/themes/blueprint/style.json +5 -5
  108. package/themes/blueprint/theme.json +3 -1
  109. package/themes/blueprint/variants/deep-rose-suit.json +1 -1
  110. package/themes/blueprint/variants/navy-coral-2.json +1 -1
  111. package/themes/blueprint/variants/navy-coral-suit.json +1 -1
  112. package/themes/blueprint/variants/navy-orange-2.json +1 -1
  113. package/themes/blueprint/variants/navy-orange-suit.json +1 -1
  114. package/themes/cartography/sample/style.json +2 -2
  115. package/themes/cartography/style.json +2 -2
  116. package/themes/cartography/theme.json +3 -1
  117. package/themes/cartography/variants/deep-plum.json +1 -1
  118. package/themes/cartography/variants/frost-teal.json +1 -1
  119. package/themes/cartography/variants/navy-green.json +1 -1
  120. package/themes/circuit-board/sample/style.json +2 -2
  121. package/themes/circuit-board/style.json +2 -2
  122. package/themes/circuit-board/theme.json +3 -1
  123. package/themes/circuit-board/variants/dusk-gold-pretendard.json +1 -1
  124. package/themes/circuit-board/variants/navy-gold-grain.json +1 -1
  125. package/themes/circuit-board/variants/wine-gold-pretendard.json +1 -1
  126. package/themes/clay-toy/sample/style.json +2 -2
  127. package/themes/clay-toy/style.json +2 -2
  128. package/themes/clay-toy/theme.json +3 -1
  129. package/themes/clay-toy/variants/blush-coral-grain.json +1 -1
  130. package/themes/clay-toy/variants/chalk-teal.json +1 -1
  131. package/themes/clay-toy/variants/frost-sky.json +1 -1
  132. package/themes/clay-toy/variants/frost-teal.json +1 -1
  133. package/themes/clay-toy/variants/lilac-plum-round.json +1 -1
  134. package/themes/clay-toy/variants/lilac-plum.json +1 -1
  135. package/themes/clay-toy/variants/sage-indigo.json +1 -1
  136. package/themes/conveyor-factory/sample/style.json +3 -3
  137. package/themes/conveyor-factory/style.json +3 -3
  138. package/themes/conveyor-factory/theme.json +3 -1
  139. package/themes/conveyor-factory/variants/cocoa-gold.json +1 -1
  140. package/themes/conveyor-factory/variants/navy-gold.json +1 -1
  141. package/themes/conveyor-factory/variants/slate-amber-2.json +1 -1
  142. package/themes/conveyor-factory/variants/slate-amber-suit.json +1 -1
  143. package/themes/conveyor-factory/variants/slate-gold-bold.json +1 -1
  144. package/themes/data-journal/theme.json +3 -1
  145. package/themes/data-journal/variants/deep-coral.json +1 -1
  146. package/themes/data-journal/variants/navy-lime.json +1 -1
  147. package/themes/data-journal/variants/wine-indigo.json +1 -1
  148. package/themes/debug-hud/sample/style.json +1 -1
  149. package/themes/debug-hud/style.json +1 -1
  150. package/themes/debug-hud/theme.json +2 -1
  151. package/themes/debug-hud/variants/cocoa-teal.json +2 -2
  152. package/themes/debug-hud/variants/deep-teal-scan.json +2 -2
  153. package/themes/debug-hud/variants/dusk-plum.json +2 -2
  154. package/themes/debug-hud/variants/forest-lime.json +2 -2
  155. package/themes/debug-hud/variants/slate-green.json +2 -2
  156. package/themes/debug-hud/variants/wine-gold.json +2 -2
  157. package/themes/depth-flight/sample/style.json +1 -1
  158. package/themes/depth-flight/style.json +1 -1
  159. package/themes/depth-flight/theme.json +3 -1
  160. package/themes/depth-flight/variants/cocoa-cyan.json +1 -1
  161. package/themes/depth-flight/variants/cocoa-violet.json +1 -1
  162. package/themes/depth-flight/variants/deep-sky.json +1 -1
  163. package/themes/depth-flight/variants/forest-blue.json +1 -1
  164. package/themes/depth-flight/variants/navy-sky-grain.json +1 -1
  165. package/themes/depth-flight/variants/navy-sky.json +1 -1
  166. package/themes/depth-flight/variants/night-teal.json +1 -1
  167. package/themes/depth-flight/variants/slate-indigo.json +1 -1
  168. package/themes/depth-flight/variants/slate-violet.json +1 -1
  169. package/themes/film-reel/sample/style.json +2 -2
  170. package/themes/film-reel/style.json +2 -2
  171. package/themes/film-reel/theme.json +3 -1
  172. package/themes/film-reel/variants/chalk-pink.json +1 -1
  173. package/themes/film-reel/variants/lilac-gold.json +1 -1
  174. package/themes/film-reel/variants/lilac-violet.json +1 -1
  175. package/themes/glass-light/sample/style.json +1 -1
  176. package/themes/glass-light/style.json +1 -1
  177. package/themes/glass-light/theme.json +3 -1
  178. package/themes/glass-light/variants/blush-pink.json +1 -1
  179. package/themes/glass-light/variants/blush-plum.json +1 -1
  180. package/themes/glass-light/variants/cream-violet.json +1 -1
  181. package/themes/glass-light/variants/frost-sky-suit.json +1 -1
  182. package/themes/glass-light/variants/frost-sky.json +1 -1
  183. package/themes/glass-light/variants/sage-green.json +1 -1
  184. package/themes/ink-wash/sample/style.json +3 -3
  185. package/themes/ink-wash/style.json +3 -3
  186. package/themes/ink-wash/theme.json +3 -1
  187. package/themes/iso-diorama/sample/style.json +1 -1
  188. package/themes/iso-diorama/style.json +1 -1
  189. package/themes/iso-diorama/theme.json +3 -1
  190. package/themes/iso-diorama/variants/chalk-plum.json +1 -1
  191. package/themes/iso-diorama/variants/cocoa-indigo.json +1 -1
  192. package/themes/iso-diorama/variants/dusk-blue.json +1 -1
  193. package/themes/iso-diorama/variants/dusk-coral.json +1 -1
  194. package/themes/iso-diorama/variants/dusk-jade.json +1 -1
  195. package/themes/iso-diorama/variants/forest-cyan.json +1 -1
  196. package/themes/iso-diorama/variants/frost-green.json +1 -1
  197. package/themes/iso-diorama/variants/frost-teal.json +1 -1
  198. package/themes/iso-diorama/variants/navy-amber.json +1 -1
  199. package/themes/isotype/sample/style.json +2 -2
  200. package/themes/isotype/style.json +2 -2
  201. package/themes/isotype/theme.json +2 -1
  202. package/themes/isotype/variants/blush-rose.json +1 -1
  203. package/themes/isotype/variants/chalk-coral.json +1 -1
  204. package/themes/isotype/variants/chalk-orange.json +1 -1
  205. package/themes/isotype/variants/frost-amber.json +1 -1
  206. package/themes/isotype/variants/frost-coral.json +1 -1
  207. package/themes/isotype/variants/frost-orange.json +1 -1
  208. package/themes/isotype/variants/sand-amber.json +1 -1
  209. package/themes/kawaii-sticker/effects.ts +15 -3
  210. package/themes/kawaii-sticker/sample/style.json +2 -2
  211. package/themes/kawaii-sticker/style.json +2 -2
  212. package/themes/kawaii-sticker/theme.json +4 -1
  213. package/themes/kawaii-sticker/variants/cream-gold.json +1 -1
  214. package/themes/kawaii-sticker/variants/dusk-green.json +1 -1
  215. package/themes/kawaii-sticker/variants/dusk-indigo.json +1 -1
  216. package/themes/kawaii-sticker/variants/dusk-sky.json +1 -1
  217. package/themes/kawaii-sticker/variants/dusk-teal.json +1 -1
  218. package/themes/kawaii-sticker/variants/frost-blue.json +1 -1
  219. package/themes/kawaii-sticker/variants/frost-plum.json +1 -1
  220. package/themes/kawaii-sticker/variants/lilac-violet.json +1 -1
  221. package/themes/kawaii-sticker/variants/navy-gold.json +1 -1
  222. package/themes/kawaii-sticker/variants/navy-plum.json +1 -1
  223. package/themes/lab-notebook/sample/style.json +3 -3
  224. package/themes/lab-notebook/style.json +3 -3
  225. package/themes/lab-notebook/theme.json +2 -1
  226. package/themes/lab-notebook/variants/blush-orange.json +1 -1
  227. package/themes/lab-notebook/variants/chalk-coral.json +1 -1
  228. package/themes/lab-notebook/variants/chalk-orange.json +1 -1
  229. package/themes/lab-notebook/variants/chalk-rose.json +1 -1
  230. package/themes/lab-notebook/variants/lilac-rose.json +1 -1
  231. package/themes/lab-notebook/variants/sage-rose.json +1 -1
  232. package/themes/lab-notebook/variants/sand-orange.json +1 -1
  233. package/themes/lab-notebook/variants/snow-orange.json +1 -1
  234. package/themes/lab-notebook/variants/snow-rose.json +1 -1
  235. package/themes/manga-panel/sample/style.json +3 -3
  236. package/themes/manga-panel/style.json +3 -3
  237. package/themes/manga-panel/theme.json +3 -1
  238. package/themes/manga-panel/variants/chalk-cyan-dots.json +1 -1
  239. package/themes/manga-panel/variants/chalk-rose.json +1 -1
  240. package/themes/manga-panel/variants/snow-cyan.json +1 -1
  241. package/themes/manga-panel/variants/snow-magenta-dots.json +1 -1
  242. package/themes/marble-run/sample/style.json +2 -2
  243. package/themes/marble-run/style.json +2 -2
  244. package/themes/marble-run/theme.json +3 -1
  245. package/themes/marble-run/variants/slate-orange.json +1 -1
  246. package/themes/neon-sign/sample/style.json +2 -2
  247. package/themes/neon-sign/style.json +2 -2
  248. package/themes/neon-sign/theme.json +2 -1
  249. package/themes/neon-sign/variants/dusk-plum.json +1 -1
  250. package/themes/neon-sign/variants/forest-magenta.json +1 -1
  251. package/themes/neon-sign/variants/night-pink.json +1 -1
  252. package/themes/neon-sign/variants/night-violet.json +1 -1
  253. package/themes/neon-sign/variants/slate-violet.json +1 -1
  254. package/themes/newspaper/sample/style.json +2 -2
  255. package/themes/newspaper/style.json +2 -2
  256. package/themes/newspaper/theme.json +2 -1
  257. package/themes/newspaper/variants/blush-amber.json +1 -1
  258. package/themes/newspaper/variants/chalk-magenta.json +1 -1
  259. package/themes/newspaper/variants/frost-sky.json +1 -1
  260. package/themes/newspaper/variants/lilac-green.json +1 -1
  261. package/themes/newspaper/variants/sage-lime.json +1 -1
  262. package/themes/og-measure/THEME.md +41 -6
  263. package/themes/og-measure/effects.ts +236 -115
  264. package/themes/og-measure/sample/assets/brand/og-logo.svg +11 -11
  265. package/themes/og-measure/sample/lib/data.ts +6 -0
  266. package/themes/og-measure/sample/scenes/end.ts +14 -10
  267. package/themes/og-measure/sample/scenes/gather.ts +4 -1
  268. package/themes/og-measure/sample/scenes/models.ts +5 -2
  269. package/themes/og-measure/sample/scenes/one.ts +9 -6
  270. package/themes/og-measure/sample/scenes/price.ts +8 -3
  271. package/themes/og-measure/sample/style.json +30 -35
  272. package/themes/og-measure/slots.ts +54 -30
  273. package/themes/og-measure/still.png +0 -0
  274. package/themes/og-measure/style.json +30 -35
  275. package/themes/og-measure/theme.json +72 -49
  276. package/themes/og-measure/variants/snow-blue.json +90 -0
  277. package/themes/orbit-system/sample/style.json +3 -3
  278. package/themes/orbit-system/style.json +3 -3
  279. package/themes/orbit-system/theme.json +3 -1
  280. package/themes/orbit-system/variants/cocoa-amber.json +1 -1
  281. package/themes/orbit-system/variants/cocoa-cyan.json +1 -1
  282. package/themes/orbit-system/variants/dusk-magenta.json +1 -1
  283. package/themes/orbit-system/variants/dusk-violet.json +1 -1
  284. package/themes/orbit-system/variants/forest-coral.json +1 -1
  285. package/themes/orbit-system/variants/wine-amber.json +1 -1
  286. package/themes/orbit-system/variants/wine-magenta.json +1 -1
  287. package/themes/origami-fold/sample/style.json +1 -1
  288. package/themes/origami-fold/style.json +1 -1
  289. package/themes/origami-fold/theme.json +3 -1
  290. package/themes/origami-fold/variants/deep-amber-sunflower.json +1 -1
  291. package/themes/origami-fold/variants/deep-orange.json +1 -1
  292. package/themes/origami-fold/variants/forest-coral.json +1 -1
  293. package/themes/origami-fold/variants/forest-pink.json +1 -1
  294. package/themes/origami-fold/variants/frost-amber-paper.json +1 -1
  295. package/themes/origami-fold/variants/sage-coral-sunflower.json +1 -1
  296. package/themes/origami-fold/variants/sage-coral.json +1 -1
  297. package/themes/origami-fold/variants/sage-pink-round.json +1 -1
  298. package/themes/origami-fold/variants/sage-pink.json +1 -1
  299. package/themes/paper-cutout/sample/style.json +2 -2
  300. package/themes/paper-cutout/style.json +2 -2
  301. package/themes/paper-cutout/theme.json +3 -1
  302. package/themes/paper-cutout/variants/blush-violet.json +1 -1
  303. package/themes/paper-cutout/variants/frost-lime.json +1 -1
  304. package/themes/paper-cutout/variants/lilac-gold.json +1 -1
  305. package/themes/paper-cutout/variants/sage-cyan.json +1 -1
  306. package/themes/paper-cutout/variants/sage-green.json +1 -1
  307. package/themes/paper-cutout/variants/sage-pink.json +1 -1
  308. package/themes/paper-cutout/variants/sand-blue.json +1 -1
  309. package/themes/pixel-quest/theme.json +2 -1
  310. package/themes/receipt/sample/style.json +2 -2
  311. package/themes/receipt/style.json +2 -2
  312. package/themes/riso-zine/sample/style.json +2 -2
  313. package/themes/riso-zine/style.json +2 -2
  314. package/themes/riso-zine/theme.json +3 -1
  315. package/themes/riso-zine/variants/chalk-lime.json +1 -1
  316. package/themes/riso-zine/variants/frost-green.json +1 -1
  317. package/themes/riso-zine/variants/lilac-plum.json +1 -1
  318. package/themes/riso-zine/variants/lilac-violet.json +1 -1
  319. package/themes/server-hall/sample/style.json +2 -2
  320. package/themes/server-hall/style.json +2 -2
  321. package/themes/server-hall/theme.json +3 -1
  322. package/themes/server-hall/variants/night-indigo.json +1 -1
  323. package/themes/server-hall/variants/wine-plum.json +1 -1
  324. package/themes/subway-map/sample/style.json +2 -2
  325. package/themes/subway-map/style.json +2 -2
  326. package/themes/subway-map/theme.json +3 -1
  327. package/themes/subway-map/variants/deep-green.json +1 -1
  328. package/themes/subway-map/variants/deep-teal.json +1 -1
  329. package/themes/subway-map/variants/frost-jade.json +1 -1
  330. package/themes/subway-map/variants/frost-teal.json +1 -1
  331. package/themes/subway-map/variants/slate-green.json +1 -1
  332. package/themes/subway-map/variants/snow-jade.json +1 -1
  333. package/themes/swiss-poster/sample/style.json +2 -2
  334. package/themes/swiss-poster/style.json +2 -2
  335. package/themes/swiss-poster/theme.json +3 -1
  336. package/themes/swiss-poster/variants/chalk-plum.json +1 -1
  337. package/themes/swiss-poster/variants/cocoa-cyan.json +1 -1
  338. package/themes/swiss-poster/variants/dusk-magenta.json +1 -1
  339. package/themes/swiss-poster/variants/frost-indigo.json +1 -1
  340. package/themes/swiss-poster/variants/slate-orange.json +1 -1
  341. package/themes/water-works/sample/style.json +1 -1
  342. package/themes/water-works/style.json +1 -1
  343. package/themes/water-works/theme.json +3 -1
  344. package/themes/water-works/variants/chalk-cyan.json +1 -1
  345. package/themes/water-works/variants/frost-indigo.json +1 -1
  346. package/themes/water-works/variants/sand-amber.json +1 -1
  347. package/themes/water-works/variants/sand-plum.json +1 -1
  348. package/themes/whiteboard/sample/style.json +2 -2
  349. package/themes/whiteboard/style.json +2 -2
  350. package/themes/whiteboard/theme.json +3 -1
  351. package/themes/whiteboard/variants/chalk-coral.json +1 -1
  352. package/themes/whiteboard/variants/cream-lime.json +1 -1
  353. package/themes/whiteboard/variants/frost-teal.json +1 -1
  354. package/themes/whiteboard/variants/lilac-indigo.json +1 -1
  355. package/themes/whiteboard/variants/sage-plum.json +1 -1
  356. package/themes/whiteboard/variants/snow-cyan.json +1 -1
  357. package/themes/whiteboard/variants/snow-green.json +1 -1
  358. package/themes/whiteboard/variants/snow-magenta.json +1 -1
  359. package/themes/og-measure/sample/assets/brand/og-logo-full.svg +0 -12
  360. package/themes/og-measure/variants/chalk-orange.json +0 -102
  361. package/themes/og-measure/variants/cocoa-amber.json +0 -138
  362. package/themes/og-measure/variants/cocoa-cyan.json +0 -138
  363. package/themes/og-measure/variants/cocoa-gold.json +0 -129
  364. package/themes/og-measure/variants/cream-lime.json +0 -137
  365. package/themes/og-measure/variants/deep-jade.json +0 -100
  366. package/themes/og-measure/variants/dusk-violet.json +0 -133
  367. package/themes/og-measure/variants/forest-cyan.json +0 -123
  368. package/themes/og-measure/variants/frost-amber.json +0 -129
  369. package/themes/og-measure/variants/frost-cyan.json +0 -133
  370. package/themes/og-measure/variants/lilac-plum.json +0 -127
  371. package/themes/og-measure/variants/lilac-violet.json +0 -139
  372. package/themes/og-measure/variants/sage-green.json +0 -137
  373. package/themes/og-measure/variants/wine-jade.json +0 -127
  374. package/themes/og-measure/variants/wine-plum.json +0 -127
@@ -1,12 +1,12 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg id="_레이어_1" data-name="레이어_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1140 650">
3
- <!-- Generator: Adobe Illustrator 30.6.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 109) -->
4
- <g id="node-in">
5
- <path d="M367,650H125c-68.9,0-125-56.1-125-125V125C0,56.1,56.1,0,125,0h242c68.9,0,125,56.1,125,125v400c0,68.9-56.1,125-125,125ZM125,72c-29.2,0-53,23.8-53,53v400c0,29.2,23.8,53,53,53h242c29.2,0,53-23.8,53-53V125c0-29.2-23.8-53-53-53H125Z"/>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1140 650" width="1140" height="650" fill="none" role="img" aria-label="OpenGateway">
2
+ <title>OpenGateway</title>
3
+ <g id="logo" stroke="currentColor" fill="currentColor">
4
+ <rect id="node-in" x="36" y="36" width="420" height="578" rx="89" fill="none" stroke-width="72"/>
5
+ <rect id="bar-in" x="72" y="272" width="277" height="106" stroke="none"/>
6
+ <path id="node-out" d="M684 213 L684 125 A89 89 0 0 1 773 36 L1015 36 A89 89 0 0 1 1104 125 L1104 525 A89 89 0 0 1 1015 614 L773 614 A89 89 0 0 1 684 525 L684 436" fill="none" stroke-width="72" stroke-linecap="butt"/>
7
+ <g id="arrow">
8
+ <rect id="arrow-shaft" x="420" y="272" width="394" height="106" stroke="none"/>
9
+ <path id="arrow-head" d="M833 220 L970 325 L833 430 Z" stroke-width="38" stroke-linejoin="round"/>
10
+ </g>
6
11
  </g>
7
- <rect id="bar-in" x="72" y="272" width="277" height="106"/>
8
- <g id="node-out">
9
- <path d="M1015,650h-242c-68.9,0-125-56.1-125-125v-89h72v89c0,29.2,23.8,53,53,53h242c29.2,0,53-23.8,53-53V125c0-29.2-23.8-53-53-53h-242c-29.2,0-53,23.8-53,53v88h-72v-88c0-68.9,56.1-125,125-125h242c68.9,0,125,56.1,125,125v400c0,68.9-56.1,125-125,125Z"/>
10
- </g>
11
- <path d="M981.6,309.9l-137-105c-5.7-4.4-13.5-5.2-20-2-6.5,3.2-10.6,9.8-10.6,17v52h-394v106h394v52c0,7.2,4.1,13.8,10.6,17,2.7,1.3,5.5,2,8.4,2,4.1,0,8.2-1.3,11.6-3.9l137-105c4.7-3.6,7.4-9.2,7.4-15.1s-2.8-11.5-7.4-15.1Z"/>
12
- </svg>
12
+ </svg>
@@ -16,6 +16,12 @@ export const best = medians.indexOf(Math.min(...medians));
16
16
  /** 장면 시작 이후의 박 시각(장면 안 초) */
17
17
  export const beatsOf = (beats: { beats: number[] }) => beats.beats.filter((b) => b > -0.01);
18
18
 
19
+ /** 로고 잉크 — 마스터 로고는 한 색이고 어두운 바탕엔 흰색, 밝은 바탕엔 검정 두 가지뿐이다(스타일가이드 7절·BrandFoundation). 브랜드 파랑으로 칠하지 않는다 */
20
+ export const logoInk = (ctx: { style: { scheme: "light" | "dark" } }) => (ctx.style.scheme === "dark" ? "#FFFFFF" : "#000000");
21
+
22
+ /** 마스터 로고 원문을 상자에 채운다 — 루트 <svg> 의 width·height(1140×650)만 걷는다(안쪽 rect 의 width 는 그대로) */
23
+ export const fitSvg = (svg: string) => svg.replace(/<svg\b[^>]*>/, (tag) => tag.replace(/\s(width|height)="[^"]*"/g, "").replace("<svg", '<svg width="100%" height="100%"'));
24
+
19
25
  /** 카메라가 잡는 무대 — 왼쪽 위를 축으로 trackCam 을 붙인다 */
20
26
  export function stageOf(root: HTMLElement): HTMLElement {
21
27
  const stage = document.createElement("div");
@@ -1,8 +1,9 @@
1
1
  import { applyStyle, ease, progress, type SceneCtx } from "@kasaframe/core";
2
2
  import { fx } from "@kasaframe/themes/fx";
3
- import { beatsOf, best, data, medians, stageOf } from "../lib/data.ts";
3
+ import logo from "../assets/brand/og-logo.svg?raw";
4
+ import { beatsOf, best, data, fitSvg, logoInk, medians, stageOf } from "../lib/data.ts";
4
5
 
5
- const { graphPaper, meter, stamp, flag, trackCam } = fx("og-measure");
6
+ const { graphPaper, meter, stamp, flag, pickFly, trackCam } = fx("og-measure");
6
7
 
7
8
  // 실측 숫자 하나(직접 잰 첫 토큰 가운데값) → 끝 도장 → OG 로고 · 주소. 마지막 박까지 카메라가 툭 친다.
8
9
  export default {
@@ -11,9 +12,9 @@ export default {
11
12
  const stage = stageOf(root);
12
13
  const b = beatsOf(ctx.beats);
13
14
  const B = (i: number) => b[i] ?? i * 0.353;
14
- const who = flag(stage, { x: 100, y: 90, text: `${data.models[best]} · 첫 토큰 가운데값`, at: 0, tone: "soft", size: 40 });
15
+ const who = flag(stage, { x: 100, y: 90, text: `${data.models[best]} · 첫 토큰 가운데값`, at: 0, tone: "plain", size: 40 });
15
16
  const big = document.createElement("div");
16
- big.style.cssText = "position:absolute;left:100px;top:150px;font-family:var(--kf-font-display);font-weight:800;font-size:230px;line-height:1;letter-spacing:-0.03em;color:var(--kf-ink);font-variant-numeric:tabular-nums";
17
+ big.style.cssText = "position:absolute;left:100px;top:150px;font-family:var(--kf-font-display);font-weight:800;font-size:230px;line-height:1;letter-spacing:-0.055em;color:var(--kf-ink);font-variant-numeric:tabular-nums";
17
18
  const num = document.createElement("span");
18
19
  const unit = document.createElement("span");
19
20
  unit.textContent = "ms";
@@ -21,11 +22,13 @@ export default {
21
22
  big.append(num, unit);
22
23
  stage.append(big);
23
24
  const seal = stamp(stage, { x: 960, y: 430, at: B(1), date: data.measured_at_kst, calls: data.calls.length, cost: data.cost_usd, size: 30 });
24
- const logo = document.createElement("img");
25
- logo.src = ctx.asset("brand/og-logo-full.svg");
26
- logo.style.cssText = "position:absolute;left:960px;top:560px;height:220px;width:auto;transform-origin:50% 50%";
27
- stage.append(logo);
25
+ const mark = document.createElement("div");
26
+ mark.style.cssText = `position:absolute;left:960px;top:560px;width:${(220 * 1140) / 650}px;height:220px;color:${logoInk(ctx)}`;
27
+ mark.innerHTML = fitSvg(logo);
28
+ stage.append(mark);
28
29
  const site = flag(stage, { x: 600, y: 830, text: "opengateway.ai", at: B(3), tone: "plain", size: 80, mono: true });
30
+ // 읽는 칸 — 잰 값 하나에 내려앉아 머문다(도장 줄·로고로는 내려가지 않는다)
31
+ const read = pickFly(stage, { items: [{ stops: [{ at: B(0) + 0.2, target: num, pad: 8 }] }], size: 40 });
29
32
  const shots = [
30
33
  { at: 0, x: 960, y: 540, kick: 0.08 },
31
34
  { at: B(2), x: 960, y: 560, zoom: 1.02, kick: 0.05 },
@@ -38,9 +41,10 @@ export default {
38
41
  num.textContent = meter(t, { to: medians[best], at: 0, dur: 0.6, decimals: 1 });
39
42
  seal(t);
40
43
  const p = ease.snappy(progress(t, B(2), 0.22));
41
- applyStyle(logo, { opacity: p, y: 30 * (1 - p), scale: 1.3 - 0.3 * p });
42
- logo.style.translate = "-50% 0";
44
+ applyStyle(mark, { opacity: p, y: 6 * (1 - p) });
45
+ mark.style.translate = "-50% 0";
43
46
  site(t);
47
+ read(t);
44
48
  applyStyle(stage, trackCam(t, { shots, scene: ctx.id }));
45
49
  };
46
50
  },
@@ -27,7 +27,7 @@ export default {
27
27
  const SIZE = 62;
28
28
  const label = (i: number) => `${OG.owners[i][0]} ${OG.owners[i][1]}`;
29
29
  // 첫 칩은 0초에 — 첫 박(0.29초)까지 화면이 멈춰 있지 않게
30
- const chips = OG.owners.map((_, i) => flag(stage, { x: SPOTS[i][0], y: SPOTS[i][1], text: label(i), at: i === 0 ? 0 : B(AT[i]), until: B(6), tone: "soft", size: SIZE, mono: true }));
30
+ const chips = OG.owners.map((_, i) => flag(stage, { x: SPOTS[i][0], y: SPOTS[i][1], text: label(i), at: i === 0 ? 0 : B(AT[i]), until: B(6), tone: "plain", size: SIZE, mono: true }));
31
31
  const width = (s: string) => s.length * SIZE * 0.6 + 40;
32
32
  const fly = pickFly(stage, {
33
33
  items: OG.owners.map((o, i) => ({ at: B(6), text: o[0], from: { x: SPOTS[i][0] + width(label(i)) / 2, y: SPOTS[i][1] + SIZE * 0.7 }, to: { x: 960, y: 540 } })),
@@ -35,6 +35,8 @@ export default {
35
35
  size: 52,
36
36
  });
37
37
  const card = callLine(stage, { x: 160, y: 430, w: 1600, at: B(6) + 0.2, size: 84, url: [OG.host, "/v1"], urlAt: [B(6) + 0.24, B(7)] });
38
+ // 읽는 칸 — 공급자 칩을 차례로 짚지 않는다(나타나는 차례일 뿐 짚을 뜻이 없다). 칩이 모여 주소 한 줄이 다 붙으면 그 요점에 내려앉아 머문다
39
+ const read = pickFly(stage, { items: [{ stops: [{ at: B(7), target: card.parts, pad: 12 }] }], size: SIZE });
38
40
  const shots = [
39
41
  { at: 0, x: 960, y: 540 },
40
42
  { at: B(4), x: 920, y: 530, zoom: 1.04, kick: 0.04 },
@@ -45,6 +47,7 @@ export default {
45
47
  for (const c of chips) c(t);
46
48
  fly(t);
47
49
  card(t);
50
+ read(t);
48
51
  applyStyle(stage, trackCam(t, { shots, scene: ctx.id }));
49
52
  };
50
53
  },
@@ -2,7 +2,7 @@ import { applyStyle, type SceneCtx } from "@kasaframe/core";
2
2
  import { fx } from "@kasaframe/themes/fx";
3
3
  import { OG, beatsOf, stageOf } from "../lib/data.ts";
4
4
 
5
- const { graphPaper, callLine, rawLog, flag, trackCam } = fx("og-measure");
5
+ const { graphPaper, callLine, rawLog, flag, pickFly, trackCam } = fx("og-measure");
6
6
 
7
7
  // 같은 주소로 가는 요청 줄 — 박마다 모델 ID 하나, 드롭 앞 마지막 마디는 반 박마다 하나씩 몰아 올린다. 결과는 붙이지 않는다(부르지 않은 호출).
8
8
  export default {
@@ -16,7 +16,9 @@ export default {
16
16
  const lines = OG.requests.map(([path, model]) => `POST ${path.padEnd(24)} ${model}`);
17
17
  const times = lines.map((_, i) => (i < 8 ? B(i) : B(8 + Math.floor((i - 8) / 2)) + ((i - 8) % 2) * half));
18
18
  const log = rawLog(stage, { x: 90, y: 230, w: 1740, rows: 9, lines, times, pick: /([a-z-]+\/[\w.-]+)$/i, size: 40 });
19
- const one = flag(stage, { x: 90, y: 920, text: "주소 1개", at: B(4), tone: "soft", size: 48 });
19
+ const one = flag(stage, { x: 90, y: 920, text: "주소 1개", at: B(4), tone: "accent", size: 48 });
20
+ // 읽는 칸 — 이 장면의 요점(모델이 바뀌어도 주소는 하나)에만 내려앉아 머문다. 줄이 들 때마다 훑지 않는다 — 줄 흐름이 화면을 움직인다
21
+ const read = pickFly(stage, { items: [{ stops: [{ at: B(4), target: one.el }] }], size: 40 });
20
22
  const shots = [
21
23
  { at: 0, x: 960, y: 540, kick: 0.05 },
22
24
  { at: B(4), x: 940, y: 530, zoom: 1.03, kick: 0.03 },
@@ -28,6 +30,7 @@ export default {
28
30
  head(t);
29
31
  log(t);
30
32
  one(t);
33
+ read(t);
31
34
  applyStyle(stage, trackCam(t, { shots, scene: ctx.id }));
32
35
  };
33
36
  },
@@ -2,7 +2,7 @@ import { applyStyle, type SceneCtx } from "@kasaframe/core";
2
2
  import { fx } from "@kasaframe/themes/fx";
3
3
  import { OG, beatsOf, stageOf } from "../lib/data.ts";
4
4
 
5
- const { graphPaper, meter, flag, trackCam } = fx("og-measure");
5
+ const { graphPaper, meter, flag, pickFly, trackCam } = fx("og-measure");
6
6
 
7
7
  // 드롭: 102 가 앞자리부터 멈춰 서며 카메라가 크게 툭 → 박마다 주소 · OpenAI 형식 · Anthropic 형식.
8
8
  export default {
@@ -14,17 +14,19 @@ export default {
14
14
  const big = document.createElement("div");
15
15
  big.style.cssText = "position:absolute;left:100px;top:110px;display:flex;align-items:baseline;gap:40px;font-family:var(--kf-font-display);font-weight:800;color:var(--kf-ink);font-variant-numeric:tabular-nums";
16
16
  const num = document.createElement("span");
17
- num.style.cssText = "font-size:430px;line-height:1.1;letter-spacing:-0.04em";
17
+ num.style.cssText = "font-size:430px;line-height:1.1;letter-spacing:-0.055em";
18
18
  const unit = document.createElement("span");
19
19
  unit.textContent = "모델";
20
20
  unit.style.cssText = "font-family:var(--kf-font-sans);font-size:150px;font-weight:700;color:var(--kf-dim)";
21
21
  big.append(num, unit);
22
22
  stage.append(big);
23
- const host = flag(stage, { x: 100, y: 660, text: `https://${OG.host}/v1`, at: B(1), tone: "plain", size: 80, mono: true });
24
- const a = flag(stage, { x: 100, y: 840, text: "OpenAI 형식", at: B(2), size: 60 });
25
- const c = flag(stage, { x: 560, y: 840, text: "Anthropic 형식", at: B(3), size: 60 });
23
+ const host = flag(stage, { x: 100, y: 660, text: `https://${OG.host}/v1`, at: B(1), tone: "accent", size: 80, mono: true });
24
+ const a = flag(stage, { x: 100, y: 840, text: "OpenAI 형식", at: B(2), tone: "plain", size: 60 });
25
+ const c = flag(stage, { x: 560, y: 840, text: "Anthropic 형식", at: B(3), tone: "plain", size: 60 });
26
+ // 읽는 칸 — 큰 숫자에 앉았다가 이 장면의 핵심 사실(accent 주소 하나)이 서면 그리로 옮겨 머문다. 형식 배지는 곁말이라 짚지 않는다
27
+ const read = pickFly(stage, { items: [{ stops: [{ at: 0, target: num, pad: 10 }, { at: B(1), target: host.el }] }], size: 60 });
26
28
  const shots = [
27
- { at: 0, x: 960, y: 540, kick: 0.16 },
29
+ { at: 0, x: 960, y: 540, kick: 0.06 },
28
30
  { at: B(2), x: 950, y: 560, zoom: 1.02, kick: 0.03 },
29
31
  ];
30
32
  return (t: number) => {
@@ -33,6 +35,7 @@ export default {
33
35
  host(t);
34
36
  a(t);
35
37
  c(t);
38
+ read(t);
36
39
  applyStyle(stage, trackCam(t, { shots, scene: ctx.id }));
37
40
  };
38
41
  },
@@ -2,7 +2,7 @@ import { applyStyle, type SceneCtx } from "@kasaframe/core";
2
2
  import { fx } from "@kasaframe/themes/fx";
3
3
  import { OG, beatsOf, stageOf } from "../lib/data.ts";
4
4
 
5
- const { graphPaper, rankBars, flag, trackCam } = fx("og-measure");
5
+ const { graphPaper, rankBars, flag, pickFly, trackCam } = fx("og-measure");
6
6
 
7
7
  // 시간대 가격 — 한국 00–10시 창에서 같은 모델 ID 가 정가의 10%. 박마다 막대 하나·차이 칩 하나.
8
8
  export default {
@@ -13,8 +13,8 @@ export default {
13
13
  const B = (i: number) => b[i] ?? i * 0.353;
14
14
  const P = OG.price;
15
15
  const off = (a: number, z: number) => `−${Math.round((1 - z / a) * 100)}%`;
16
- const model = flag(stage, { x: 90, y: 50, text: P.model, at: 0, tone: "plain", size: 52, mono: true });
17
- const win = flag(stage, { x: 1300, y: 56, text: "KST 00:00–10:00", at: B(1), tone: "soft", size: 46, mono: true });
16
+ const model = flag(stage, { x: 90, y: 54, text: P.model, at: 0, tone: "plain", size: 48, mono: true });
17
+ const win = flag(stage, { x: 1300, y: 56, text: "KST 00:00–10:00", at: B(1), tone: "accent", size: 46, mono: true });
18
18
  const bars = rankBars(stage, {
19
19
  x: 90,
20
20
  y: 190,
@@ -36,6 +36,10 @@ export default {
36
36
  });
37
37
  const glm = flag(stage, { x: 90, y: 840, text: `${P.glm} · 밤 −70%`, at: B(8), tone: "plain", size: 44, mono: true });
38
38
  const auto = flag(stage, { x: 90, y: 950, text: "신청 없이 · 같은 모델 ID", at: B(9), tone: "soft", size: 44 });
39
+ // 읽는 칸 — 요점에만: 할인 시간대(accent 배지) → 출력 할인 값에 차이 배지가 붙을 때 그 줄 → 입력 할인 값 줄. 정가 줄·곁말 배지는 짚지 않는다.
40
+ // 줄 칸은 이름·막대 한 줄을 통째로(표 행의 고름 칠, rankBars 와 같은 셈)
41
+ const row = (k: number) => ({ x: 960, y: 190 + k * (70 + 26 + 56) + 63, w: 1780, h: 140 });
42
+ const read = pickFly(stage, { items: [{ stops: [{ at: B(1), target: win.el }, { at: B(4), ...row(1) }, { at: B(7), ...row(3) }] }], size: 44 });
39
43
  const shots = [
40
44
  { at: 0, x: 960, y: 540, kick: 0.05 },
41
45
  { at: B(4), x: 940, y: 530, zoom: 1.03, kick: 0.03 },
@@ -50,6 +54,7 @@ export default {
50
54
  bars(t);
51
55
  glm(t);
52
56
  auto(t);
57
+ read(t);
53
58
  applyStyle(stage, trackCam(t, { shots, scene: ctx.id }));
54
59
  };
55
60
  },
@@ -1,29 +1,24 @@
1
1
  {
2
2
  "name": "og-measure",
3
3
  "label": "OG 측정 화면 — 재 온 숫자가 쌓이는 계측기",
4
- "scheme": "light",
4
+ "scheme": "dark",
5
5
  "colors": {
6
- "bg": "#FFFFFF",
7
- "surface": "#F8FAFC",
8
- "raised": "#F1F5F9",
9
- "line": "#E2E8F0",
10
- "ink": "#020817",
11
- "inkSoft": "#1E293B",
12
- "dim": "#64748B",
13
- "accent": "#006FD6",
14
- "accentSoft": "rgba(0, 111, 214, 0.45)",
15
- "accentText": "#01509D",
6
+ "bg": "#090A0C",
7
+ "surface": "#13151B",
8
+ "raised": "#252A37",
9
+ "line": "#394051",
10
+ "ink": "#C5CBD8",
11
+ "inkSoft": "#C5CBD8",
12
+ "dim": "#7C869C",
13
+ "accent": "#0084FF",
14
+ "accentSoft": "rgba(0, 132, 255, 0.45)",
15
+ "accentText": "#3B99F3",
16
16
  "onAccent": "#FFFFFF",
17
- "tint": "rgba(0, 111, 214, 0.08)",
18
- "success": "#22C55E",
19
- "danger": "#EF4444",
17
+ "tint": "rgba(0, 132, 255, 0.1)",
18
+ "success": "#10B981",
19
+ "danger": "#EF4343",
20
20
  "warning": "#F59E0B",
21
- "darkBg": "#090A0C",
22
- "darkSurface": "#13151B",
23
- "darkLine": "#39404F",
24
- "darkInk": "#C6CAD6",
25
- "darkAccent": "#0085FF",
26
- "bar": "rgba(100, 116, 139, 0.28)"
21
+ "bar": "rgba(124, 134, 156, 0.35)"
27
22
  },
28
23
  "fonts": {
29
24
  "sans": "\"Pretendard Variable\", Pretendard, \"Noto Sans KR\", \"Apple SD Gothic Neo\", sans-serif",
@@ -37,12 +32,12 @@
37
32
  },
38
33
  {
39
34
  "family": "Geist",
40
- "src": "https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Variable.woff2",
35
+ "src": "https://cdn.jsdelivr.net/gh/google/fonts@bd8f81ddb5c74d5c8897b36ad88b440266245103/ofl/geist/Geist%5Bwght%5D.ttf",
41
36
  "weight": "100 900"
42
37
  },
43
38
  {
44
39
  "family": "Geist Mono",
45
- "src": "https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2",
40
+ "src": "https://cdn.jsdelivr.net/gh/google/fonts@bd8f81ddb5c74d5c8897b36ad88b440266245103/ofl/geistmono/GeistMono%5Bwght%5D.ttf",
46
41
  "weight": "100 900"
47
42
  }
48
43
  ]
@@ -67,13 +62,11 @@
67
62
  "lift": "none"
68
63
  },
69
64
  "motion": {
70
- "beatPulse": "drops-only",
65
+ "beatPulse": "off",
71
66
  "shake": {
72
- "on": [
73
- "drop"
74
- ],
75
- "maxPerPhrase": 1,
76
- "maxPx": 8
67
+ "on": [],
68
+ "maxPerPhrase": 0,
69
+ "maxPx": 0
77
70
  },
78
71
  "cameraMove": "free",
79
72
  "repeatSameMove": false,
@@ -87,11 +80,13 @@
87
80
  }
88
81
  },
89
82
  "notes": [
90
- "잉크 셋: 흰 종이(bg) · 거의 검정(ink #020817) · OG 파랑 하나(accent #006FD6). 회색 막대(bar)는 비교 대상, 파랑은 가장 좋은 값 하나에만. 빨강은 오류에만.",
91
- "질감: 흰 모눈 종이 + 아주 옅은 파란 주사선. 면은 테두리 없이 색으로 가른다(surface 98% → raised 96%), 그림자 없음, 모서리는 면 12px·칩 알약뿐.",
92
- "숫자·모델 ID·주소·로그는 Geist Mono + tabular-nums, 큰 숫자는 Geist 800 자간 −0.055em. 한글은 Pretendard 로 떨어진다(제목 700).",
93
- "움직임 성격: 220ms 감속(snappy) + 6px 진입. 숫자는 지어내지 않고 들어온 시각에 보인다 — 점이 찍히고, 가운데값이 미끄러지고, 큰 숫자는 앞자리부터 멈춰 선다. 차트 선을 매번 다시 그리지 않는다.",
94
- "출처: opengateway cp-fe-og-styleguide design.md, 쇼츠 mla-swa-remotion devkit(재 봤습니다 연재).",
95
- "쉬지 않는다: 카메라(trackCam)가 늘 조금씩 다가가며 흐르고 마디마다 툭 친다. 박마다 주소 조각·카운터·로그 한 줄·날아가는 숫자·막대·칩 중 하나가 크게 움직인다. 흔들림·섬광은 쓰지 않는다(쇼츠·설명·시연 틀이 끈다)."
83
+ "정본: opengateway cp-fe-og-styleguide(style/og-brand-styleguide-20261007, 46366b8) design.md 1–9절과 src/app/globals.css. 색·움직임 값은 그 코드에서 옮겼다 — 고칠 때도 거기부터 본다.",
84
+ "팔레트는 한 벌씩 두 벌이다: 다크(.dark — 기본)가 이 파일, 라이트(:root)는 theme.json vary.palettes.light. bg=--background, surface=--card, raised=--secondary, line=--border, ink=--foreground, dim=--muted-foreground, accent=--primary, accentText=--on-primary(파랑 70%+글 잉크 30%), onAccent=--primary-foreground, tint=고른 상태 bg-primary/10, success=emerald-500, danger=--destructive, warning=amber-500. 정본에 없는 색은 세우지 않는다.",
85
+ "파랑은 가장 좋은 값 하나에만(차트 칠·고른 상태). 비교 대상은 회색 막대(bar=--muted-foreground 반투명), 빨강은 오류에만. 그림자·그라데이션·네온·섬광 없음.",
86
+ "가두지 않는다: 구획은 제목·여백, 항목은 가는 구분선(line). 틀이 곧 뜻인 것(호출·응답 패널, 원자료 로그 = 코드 블록)만 면(surface)에 12px. 칩·배지는 속을 칠하지 않고 흐린 테두리(파랑 /45, 무채색 line)와 글자색만.",
87
+ "모서리는 역할: 알약(pill) = 칩·고름 칠, 12px(md·lg) = 면, 0(sm) = 그 밖(막대·구분선·눈금). 사이 값은 쓰지 않는다.",
88
+ "글꼴: 한국어·라벨 Pretendard, 큰 숫자·워드마크 Geist 800 자간 −0.055em(한글은 Pretendard 로 떨어진다), 모델 ID·주소·로그·시각은 Geist Mono, 숫자는 tabular-nums.",
89
+ "움직임: 150(색)·220(나타남·상태)·300ms(자리 옮김), 감속 cubic-bezier(.22,1,.36,1)·스프링 cubic-bezier(.34,1.3,.64,1), 나타남은 6px 올라오며. 누르듯 커졌다 줄기·흔들기 없음. 카메라도 300ms 스프링으로 한 번 옮기고 선다.",
90
+ "로고는 마스터 public/logo.svg 하나(sample/assets/brand/og-logo.svg 와 바이트가 같다) — 한 색, 어두운 바탕 흰색·밝은 바탕 검정. 파랑으로 칠하지 않고 og-wave 후보·캠페인 그림은 쓰지 않는다."
96
91
  ]
97
- }
92
+ }
@@ -1,39 +1,36 @@
1
- import { clamp, ease, progress, type Style } from "@kasaframe/core";
1
+ import { bezier, clamp, ease, progress, type Style } from "@kasaframe/core";
2
2
  import { dropBurst } from "@kasaframe/motion";
3
3
  import type { ThemeSlots } from "@kasaframe/themes/slots";
4
4
  import { layer, letters, partial, shownCount, strokePath, traceCanvas } from "@kasaframe/themes/slotkit";
5
5
 
6
- // 장면 문법 패턴이 테마 이름 없이 부르는 자리 — 계측기 화면의 결. 바탕은 서 있는 모눈(뜻 없는 흐름을 두지 않는다),
7
- // 움직임은 값이 찍히고 막대가 서는 쪽만. 감속은 effects.ts 와 같은 snappy
8
- const snappy = ease.snappy;
6
+ // 장면 문법 패턴이 테마 이름 없이 부르는 자리 — 계측기 화면을 OpenGateway 스타일가이드 결로. 바탕은 서 있는 옅은 모눈,
7
+ // 판은 상자가 아니라 구분선(design.md 2절), 움직임은 220ms 감속·6px 나타남과 300ms 자리 옮김뿐(8절). 색은 모두 --kf-* 토큰
8
+ const out = ease.snappy;
9
+ const springy = bezier(0.34, 1.3, 0.64, 1);
10
+ const smooth = (p: number) => p * p * (3 - 2 * p);
11
+ // 짚는 칸 테두리 — 옮겨 가는 동안은 이 두 배 굵기의 한 줄이 된다
12
+ const BORDER = 3;
9
13
 
10
14
  export const slots: ThemeSlots = {
11
15
  surface(el) {
12
- layer(
13
- el,
14
- "inset:0;background:var(--kf-bg);background-image:linear-gradient(rgba(203,213,225,.55) 1px,transparent 1px),linear-gradient(90deg,rgba(203,213,225,.55) 1px,transparent 1px);background-size:56px 56px",
15
- );
16
+ const grid = "color-mix(in srgb, var(--kf-line) 45%, transparent)";
17
+ layer(el, `inset:0;background:var(--kf-bg);background-image:linear-gradient(${grid} 1px,transparent 1px),linear-gradient(90deg,${grid} 1px,transparent 1px);background-size:56px 56px`);
16
18
  return () => {};
17
19
  },
18
20
 
19
- // 흰 카드 — 회색 1px 테두리·12px 모서리, 강조 판은 OG 파랑. 위에서 짧게 내려와 선다
21
+ // 가두지 않는다 — 칠한 면·테두리 상자 대신 위에 구분선 한 줄(구획 = 제목·여백, 항목 = 가는 구분선). 강조 판은 그 선이 파랑
20
22
  panel(el, { at, tone }) {
21
- const card = layer(
22
- el,
23
- `inset:0;border-radius:var(--kf-radius-md);border:1px solid var(--kf-line);box-shadow:0 1px 2px rgba(2,8,23,.06),0 8px 24px rgba(2,8,23,.06);background:${tone === "accent" ? "var(--kf-accent)" : "var(--kf-bg)"}`,
24
- true,
25
- );
23
+ const rule = layer(el, `left:0;right:0;top:0;height:3px;background:${tone === "accent" ? "var(--kf-accent)" : "var(--kf-line)"};transform-origin:0 50%`, true);
26
24
  return (t) => {
27
- const p = snappy(progress(t, at, 0.22));
28
- card.style.visibility = t >= at ? "visible" : "hidden";
29
- card.style.opacity = String(p);
30
- card.style.transform = `translateY(${((1 - p) * -14).toFixed(2)}px)`;
25
+ const p = out(progress(t, at, 0.3));
26
+ rule.style.visibility = t >= at ? "visible" : "hidden";
27
+ rule.style.transform = `scaleX(${p.toFixed(4)})`;
31
28
  };
32
29
  },
33
30
 
34
- // 값이 잡히는 순간 — 넘침 없이 한 번 조이고 선다(계측은 출렁이지 않는다)
31
+ // 값이 앉는 순간 — 크기는 그대로 6px 올라와 선다(누름·도착에 커졌다 줄기 없음)
35
32
  land(_el, { at }) {
36
- return (t): Style => (t < at || t > at + 0.3 ? {} : { scale: 1 + 0.05 * (1 - snappy(progress(t, at, 0.24))) });
33
+ return (t): Style => (t < at || t > at + 0.3 ? {} : { y: 6 * (1 - out(progress(t, at, 0.22))) });
37
34
  },
38
35
 
39
36
  // 계기판처럼 — 글자는 앞에서부터 서고, 숫자 칸은 서기 전까지 돌고 있다(meter 와 같은 결)
@@ -50,11 +47,11 @@ export const slots: ThemeSlots = {
50
47
  };
51
48
  },
52
49
 
53
- // 표본 선 — 파랑 3px 선이 그어지고 꺾이는 점마다 표본 점이 선다
50
+ // 추이 선 — 3px 선이 그어지고 꺾이는 점마다 표본 점이 선다. 다 그은 선을 다시 그리지 않는다
54
51
  trace(el, { points, at, dur, tone }) {
55
52
  const { g, clear } = traceCanvas(el, points);
56
53
  const css = getComputedStyle(el);
57
- const color = (tone === "accent" ? css.getPropertyValue("--kf-accent") : css.getPropertyValue("--kf-ink")).trim() || "#006FD6";
54
+ const color = (tone === "accent" ? css.getPropertyValue("--kf-accent") : css.getPropertyValue("--kf-ink")).trim();
58
55
  return (t) => {
59
56
  clear();
60
57
  const p = clamp((t - at) / Math.max(0.05, dur));
@@ -73,16 +70,43 @@ export const slots: ThemeSlots = {
73
70
  };
74
71
  },
75
72
 
76
- // 드롭 — 파랑 판이 한 번 덮였다 걷히고 고리가 퍼진다(흰 바탕이라 흰 섬광은 안 보인다)
73
+ // 짚는 칸 — 고른 상태 그대로 파랑/10 알약에 파랑/45 테두리(design.md 4절 — 칠한 배지는 없다). 글 뒤에 깔리고 칸 위 글은 --on-primary 파랑.
74
+ // 다음 요점으로 옮길 땐 pickFly 읽는 칸과 같은 길 — 떠나는 칸에서 아래 테두리 한 줄로 내려앉고, 거리만큼 미끄러진 뒤, 그 칸만큼 차올라 선다
75
+ // (칸 크기 그대로 날면 지나는 길의 글을 덮는다). 처음 짚을 땐 그 자리 아래 줄에서 차오른다
76
+ mark(el) {
77
+ const line = BORDER * 2;
78
+ el.style.boxSizing = "border-box";
79
+ el.style.borderRadius = "var(--kf-radius-pill)";
80
+ el.style.border = `${BORDER}px solid color-mix(in srgb, var(--kf-accent) 45%, transparent)`;
81
+ return {
82
+ ink: "var(--kf-accent-text)",
83
+ dwell: true,
84
+ at(from, to, u) {
85
+ const a = from ?? to;
86
+ // 미끄러지는 몫은 거리만큼 — 600px 넘게 가면 옮김의 40%, 같은 칸을 다시 짚으면 0
87
+ const sink = from ? (1 - 0.4 * clamp(Math.hypot(to.x - a.x, to.y + to.h - a.y - a.h) / 600)) / 2 : 0;
88
+ const go = !from ? 1 : sink < 0.5 ? smooth(clamp((u - sink) / (1 - 2 * sink))) : u < 0.5 ? 0 : 1;
89
+ const full = !from ? clamp(u) : u < 0.5 ? 1 - clamp(u / sink) : clamp((u - 1 + sink) / sink);
90
+ const h = line + ((from && u < 0.5 ? a.h : to.h) - line) * full;
91
+ const bottom = a.y + a.h + (to.y + to.h - a.y - a.h) * go;
92
+ // 얇을수록 진한 파랑 — 탭 아래 줄처럼 얇아도 지나가는 게 보이게, 다 차오르면 고른 상태 /10
93
+ el.style.background = `color-mix(in srgb, var(--kf-accent) ${Math.round(10 + 80 * clamp(1 - (h - line) / 40))}%, transparent)`;
94
+ return u >= 1 ? { ...to } : { x: a.x + (to.x - a.x) * go, y: bottom - h, w: a.w + (to.w - a.w) * go, h };
95
+ },
96
+ };
97
+ },
98
+
99
+ // 드롭 — 섬광·고리 대신 파란 구분선 한 줄이 가운데에서 양옆으로 300ms 스프링으로 그어졌다 220ms 로 빠진다(흔들림·섬광 없음)
77
100
  drop(el, { ctx, drop }) {
78
- const flood = layer(el, "inset:0;background:var(--kf-accent);opacity:0");
79
- const ring = layer(el, "left:50%;top:50%;width:40vmin;height:40vmin;margin:-20vmin 0 0 -20vmin;border-radius:50%;border:6px solid var(--kf-accent);opacity:0");
101
+ const at = ctx.beats.drop(drop);
102
+ const line = layer(el, "left:0;right:0;top:50%;height:4px;margin-top:-2px;background:var(--kf-accent);transform:scaleX(0);opacity:0");
80
103
  return (t) => {
81
- const s = dropBurst(t, { beats: ctx.beats, drop, rules: ctx.style.motion, scene: ctx.id, source: "og-drop" });
82
- flood.style.opacity = String(Math.round(s.flash * 0.85 * 100) / 100);
83
- ring.style.opacity = String(s.ring.opacity);
84
- ring.style.transform = `scale(${s.ring.scale.toFixed(3)})`;
85
- return s;
104
+ const s = dropBurst(t, { beats: ctx.beats, drop, rules: ctx.style.motion, scene: ctx.id, source: "og-drop", emit: false });
105
+ const grow = springy(progress(t, at, 0.3));
106
+ const fade = 1 - out(progress(t, at + 0.45, 0.22));
107
+ line.style.transform = `scaleX(${(t >= at ? grow : 0).toFixed(4)})`;
108
+ line.style.opacity = String(t >= at ? fade : 0);
109
+ return { ...s, flash: 0, ring: { scale: 0, opacity: 0 }, punch: {} };
86
110
  };
87
111
  },
88
112
  };
Binary file
@@ -1,29 +1,24 @@
1
1
  {
2
2
  "name": "og-measure",
3
3
  "label": "OG 측정 화면 — 재 온 숫자가 쌓이는 계측기",
4
- "scheme": "light",
4
+ "scheme": "dark",
5
5
  "colors": {
6
- "bg": "#FFFFFF",
7
- "surface": "#F8FAFC",
8
- "raised": "#F1F5F9",
9
- "line": "#E2E8F0",
10
- "ink": "#020817",
11
- "inkSoft": "#1E293B",
12
- "dim": "#64748B",
13
- "accent": "#006FD6",
14
- "accentSoft": "rgba(0, 111, 214, 0.45)",
15
- "accentText": "#01509D",
6
+ "bg": "#090A0C",
7
+ "surface": "#13151B",
8
+ "raised": "#252A37",
9
+ "line": "#394051",
10
+ "ink": "#C5CBD8",
11
+ "inkSoft": "#C5CBD8",
12
+ "dim": "#7C869C",
13
+ "accent": "#0084FF",
14
+ "accentSoft": "rgba(0, 132, 255, 0.45)",
15
+ "accentText": "#3B99F3",
16
16
  "onAccent": "#FFFFFF",
17
- "tint": "rgba(0, 111, 214, 0.08)",
18
- "success": "#22C55E",
19
- "danger": "#EF4444",
17
+ "tint": "rgba(0, 132, 255, 0.1)",
18
+ "success": "#10B981",
19
+ "danger": "#EF4343",
20
20
  "warning": "#F59E0B",
21
- "darkBg": "#090A0C",
22
- "darkSurface": "#13151B",
23
- "darkLine": "#39404F",
24
- "darkInk": "#C6CAD6",
25
- "darkAccent": "#0085FF",
26
- "bar": "rgba(100, 116, 139, 0.28)"
21
+ "bar": "rgba(124, 134, 156, 0.35)"
27
22
  },
28
23
  "fonts": {
29
24
  "sans": "\"Pretendard Variable\", Pretendard, \"Noto Sans KR\", \"Apple SD Gothic Neo\", sans-serif",
@@ -37,12 +32,12 @@
37
32
  },
38
33
  {
39
34
  "family": "Geist",
40
- "src": "https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Variable.woff2",
35
+ "src": "https://cdn.jsdelivr.net/gh/google/fonts@bd8f81ddb5c74d5c8897b36ad88b440266245103/ofl/geist/Geist%5Bwght%5D.ttf",
41
36
  "weight": "100 900"
42
37
  },
43
38
  {
44
39
  "family": "Geist Mono",
45
- "src": "https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2",
40
+ "src": "https://cdn.jsdelivr.net/gh/google/fonts@bd8f81ddb5c74d5c8897b36ad88b440266245103/ofl/geistmono/GeistMono%5Bwght%5D.ttf",
46
41
  "weight": "100 900"
47
42
  }
48
43
  ]
@@ -67,13 +62,11 @@
67
62
  "lift": "none"
68
63
  },
69
64
  "motion": {
70
- "beatPulse": "drops-only",
65
+ "beatPulse": "off",
71
66
  "shake": {
72
- "on": [
73
- "drop"
74
- ],
75
- "maxPerPhrase": 1,
76
- "maxPx": 8
67
+ "on": [],
68
+ "maxPerPhrase": 0,
69
+ "maxPx": 0
77
70
  },
78
71
  "cameraMove": "free",
79
72
  "repeatSameMove": false,
@@ -87,11 +80,13 @@
87
80
  }
88
81
  },
89
82
  "notes": [
90
- "잉크 셋: 흰 종이(bg) · 거의 검정(ink #020817) · OG 파랑 하나(accent #006FD6). 회색 막대(bar)는 비교 대상, 파랑은 가장 좋은 값 하나에만. 빨강은 오류에만.",
91
- "질감: 흰 모눈 종이 + 아주 옅은 파란 주사선. 면은 테두리 없이 색으로 가른다(surface 98% → raised 96%), 그림자 없음, 모서리는 면 12px·칩 알약뿐.",
92
- "숫자·모델 ID·주소·로그는 Geist Mono + tabular-nums, 큰 숫자는 Geist 800 자간 −0.055em. 한글은 Pretendard 로 떨어진다(제목 700).",
93
- "움직임 성격: 220ms 감속(snappy) + 6px 진입. 숫자는 지어내지 않고 들어온 시각에 보인다 — 점이 찍히고, 가운데값이 미끄러지고, 큰 숫자는 앞자리부터 멈춰 선다. 차트 선을 매번 다시 그리지 않는다.",
94
- "출처: opengateway cp-fe-og-styleguide design.md, 쇼츠 mla-swa-remotion devkit(재 봤습니다 연재).",
95
- "쉬지 않는다: 박마다 주소 조각·카운터·로그 한 줄·날아가는 숫자·막대·칩 중 하나가 크게 움직이고, 모눈·주사선이 늘 흐른다. 카메라(trackCam)는 이유가 있을 때만 — 결과가 서는 순간에 한 번 옮기며 툭, 사이에는 선다. 흔들림·섬광은 쓰지 않는다(쇼츠·설명·시연 틀이 끈다)."
83
+ "정본: opengateway cp-fe-og-styleguide(style/og-brand-styleguide-20261007, 46366b8) design.md 1–9절과 src/app/globals.css. 색·움직임 값은 그 코드에서 옮겼다 — 고칠 때도 거기부터 본다.",
84
+ "팔레트는 한 벌씩 두 벌이다: 다크(.dark — 기본)가 이 파일, 라이트(:root)는 theme.json vary.palettes.light. bg=--background, surface=--card, raised=--secondary, line=--border, ink=--foreground, dim=--muted-foreground, accent=--primary, accentText=--on-primary(파랑 70%+글 잉크 30%), onAccent=--primary-foreground, tint=고른 상태 bg-primary/10, success=emerald-500, danger=--destructive, warning=amber-500. 정본에 없는 색은 세우지 않는다.",
85
+ "파랑은 가장 좋은 값 하나에만(차트 칠·고른 상태). 비교 대상은 회색 막대(bar=--muted-foreground 반투명), 빨강은 오류에만. 그림자·그라데이션·네온·섬광 없음.",
86
+ "가두지 않는다: 구획은 제목·여백, 항목은 가는 구분선(line). 틀이 곧 뜻인 것(호출·응답 패널, 원자료 로그 = 코드 블록)만 면(surface)에 12px. 칩·배지는 속을 칠하지 않고 흐린 테두리(파랑 /45, 무채색 line)와 글자색만.",
87
+ "모서리는 역할: 알약(pill) = 칩·고름 칠, 12px(md·lg) = 면, 0(sm) = 그 밖(막대·구분선·눈금). 사이 값은 쓰지 않는다.",
88
+ "글꼴: 한국어·라벨 Pretendard, 큰 숫자·워드마크 Geist 800 자간 −0.055em(한글은 Pretendard 로 떨어진다), 모델 ID·주소·로그·시각은 Geist Mono, 숫자는 tabular-nums.",
89
+ "움직임: 150(색)·220(나타남·상태)·300ms(자리 옮김), 감속 cubic-bezier(.22,1,.36,1)·스프링 cubic-bezier(.34,1.3,.64,1), 나타남은 6px 올라오며. 누르듯 커졌다 줄기·흔들기 없음. 카메라도 300ms 스프링으로 한 번 옮기고 선다.",
90
+ "로고는 마스터 public/logo.svg 하나(sample/assets/brand/og-logo.svg 와 바이트가 같다) — 한 색, 어두운 바탕 흰색·밝은 바탕 검정. 파랑으로 칠하지 않고 og-wave 후보·캠페인 그림은 쓰지 않는다."
96
91
  ]
97
- }
92
+ }