@yewdiel21/motion-kit 0.0.0-stage → 0.9.0

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 (391) hide show
  1. package/NOTICE +38 -0
  2. package/README.md +80 -2
  3. package/bin/motion-kit.mjs +242 -0
  4. package/css.d.ts +2 -0
  5. package/dist/auto/index.d.ts +63 -0
  6. package/dist/auto/index.js +207 -0
  7. package/dist/auto/index.js.map +1 -0
  8. package/dist/chunk-2BQGFOA7.js +177 -0
  9. package/dist/chunk-2BQGFOA7.js.map +1 -0
  10. package/dist/chunk-34XYOXHG.js +2374 -0
  11. package/dist/chunk-34XYOXHG.js.map +1 -0
  12. package/dist/chunk-6OJAP6ZL.js +832 -0
  13. package/dist/chunk-6OJAP6ZL.js.map +1 -0
  14. package/dist/chunk-ABNRDDO7.js +28 -0
  15. package/dist/chunk-ABNRDDO7.js.map +1 -0
  16. package/dist/chunk-FS2HJVVY.js +3320 -0
  17. package/dist/chunk-FS2HJVVY.js.map +1 -0
  18. package/dist/chunk-J27KH2A2.js +157 -0
  19. package/dist/chunk-J27KH2A2.js.map +1 -0
  20. package/dist/chunk-KLY5BRRI.js +18 -0
  21. package/dist/chunk-KLY5BRRI.js.map +1 -0
  22. package/dist/chunk-Q4LVFNLN.js +1617 -0
  23. package/dist/chunk-Q4LVFNLN.js.map +1 -0
  24. package/dist/chunk-RFDIZYFX.js +304 -0
  25. package/dist/chunk-RFDIZYFX.js.map +1 -0
  26. package/dist/chunk-TGV27ZWM.js +17 -0
  27. package/dist/chunk-TGV27ZWM.js.map +1 -0
  28. package/dist/confetti-BSX1CLLV.d.ts +41 -0
  29. package/dist/css/components/chat-background.css +87 -0
  30. package/dist/css/components/chat.css +237 -0
  31. package/dist/css/components/cursor.css +178 -0
  32. package/dist/css/components/dialog.css +259 -0
  33. package/dist/css/components/island.css +301 -0
  34. package/dist/css/components/menu.css +105 -0
  35. package/dist/css/components/nav.css +1054 -0
  36. package/dist/css/components/steps.css +50 -0
  37. package/dist/css/components/theme-picker.css +115 -0
  38. package/dist/css/components/toast.css +115 -0
  39. package/dist/css/controls.css +950 -0
  40. package/dist/css/effects.css +587 -0
  41. package/dist/css/fonts.css +3 -0
  42. package/dist/css/themes/black-green.css +126 -0
  43. package/dist/css/themes/black.css +126 -0
  44. package/dist/css/themes/blue.css +126 -0
  45. package/dist/css/themes/brown.css +126 -0
  46. package/dist/css/themes/cold-blue.css +126 -0
  47. package/dist/css/themes/funny.css +126 -0
  48. package/dist/css/themes/gray.css +126 -0
  49. package/dist/css/themes/green.css +126 -0
  50. package/dist/css/themes/modern-1.css +126 -0
  51. package/dist/css/themes/neogreen.css +126 -0
  52. package/dist/css/themes/new.css +126 -0
  53. package/dist/css/themes/new2.css +126 -0
  54. package/dist/css/themes/oled.css +126 -0
  55. package/dist/css/themes/orange.css +126 -0
  56. package/dist/css/themes/pastel-pink.css +126 -0
  57. package/dist/css/themes/pink.css +126 -0
  58. package/dist/css/themes/purple.css +126 -0
  59. package/dist/css/themes/red.css +126 -0
  60. package/dist/css/themes/super-blue.css +126 -0
  61. package/dist/css/themes.css +2431 -0
  62. package/dist/css/tokens.css +452 -0
  63. package/dist/elements/index.d.ts +183 -0
  64. package/dist/elements/index.js +472 -0
  65. package/dist/elements/index.js.map +1 -0
  66. package/dist/engine-CUr9QijM.d.ts +46 -0
  67. package/dist/gl/index.d.ts +61 -0
  68. package/dist/gl/index.js +18 -0
  69. package/dist/gl/index.js.map +1 -0
  70. package/dist/index.css +5296 -0
  71. package/dist/index.d.ts +440 -0
  72. package/dist/index.js +390 -0
  73. package/dist/index.js.map +1 -0
  74. package/dist/react/index.d.ts +476 -0
  75. package/dist/react/index.js +969 -0
  76. package/dist/react/index.js.map +1 -0
  77. package/dist/reduced-BM4Ls0g5.d.ts +566 -0
  78. package/dist/reveal-WFUWDrei.d.ts +416 -0
  79. package/dist/store-Bqy_obnD.d.ts +195 -0
  80. package/dist/theme/generate.d.ts +18 -0
  81. package/dist/theme/generate.js +64 -0
  82. package/dist/theme/generate.js.map +1 -0
  83. package/dist/theme/index.d.ts +17 -0
  84. package/dist/theme/index.js +32 -0
  85. package/dist/theme/index.js.map +1 -0
  86. package/dist/theme-BFMoCzi6.d.ts +158 -0
  87. package/dist/types-BkS_raL8.d.ts +7 -0
  88. package/package.json +114 -3
  89. package/registry.json +469 -0
  90. package/skills/motion-kit/SKILL.md +189 -0
  91. package/skills/motion-kit/reference/components.md +86 -0
  92. package/skills/motion-kit/reference/design.md +92 -0
  93. package/skills/motion-kit/reference/recipes.md +172 -0
  94. package/src/auto/auto-init.ts +151 -0
  95. package/src/auto/index.ts +3 -0
  96. package/src/auto/parse-options.ts +68 -0
  97. package/src/components/chat/README.md +90 -0
  98. package/src/components/chat/chat.css +236 -0
  99. package/src/components/chat/element.ts +98 -0
  100. package/src/components/chat/engine.ts +295 -0
  101. package/src/components/chat/react.tsx +196 -0
  102. package/src/components/chat-background/README.md +50 -0
  103. package/src/components/chat-background/audio.ts +56 -0
  104. package/src/components/chat-background/chat-background.css +86 -0
  105. package/src/components/chat-background/element.ts +31 -0
  106. package/src/components/chat-background/engine.ts +108 -0
  107. package/src/components/chat-background/react.tsx +36 -0
  108. package/src/components/cursor/README.md +53 -0
  109. package/src/components/cursor/cursor.css +177 -0
  110. package/src/components/cursor/element.ts +23 -0
  111. package/src/components/cursor/engine.ts +254 -0
  112. package/src/components/cursor/react.tsx +26 -0
  113. package/src/components/dialog/README.md +106 -0
  114. package/src/components/dialog/dialog.css +258 -0
  115. package/src/components/dialog/element.ts +118 -0
  116. package/src/components/dialog/engine.ts +432 -0
  117. package/src/components/dialog/react.tsx +200 -0
  118. package/src/components/icon.tsx +10 -0
  119. package/src/components/icons.ts +24 -0
  120. package/src/components/island/README.md +91 -0
  121. package/src/components/island/element.ts +45 -0
  122. package/src/components/island/engine.ts +200 -0
  123. package/src/components/island/island.css +300 -0
  124. package/src/components/island/react.tsx +115 -0
  125. package/src/components/menu/README.md +67 -0
  126. package/src/components/menu/element.ts +55 -0
  127. package/src/components/menu/engine.ts +142 -0
  128. package/src/components/menu/menu.css +104 -0
  129. package/src/components/menu/react.tsx +82 -0
  130. package/src/components/nav/README.md +85 -0
  131. package/src/components/nav/element.ts +39 -0
  132. package/src/components/nav/engine.ts +164 -0
  133. package/src/components/nav/nav.css +1053 -0
  134. package/src/components/nav/react.tsx +90 -0
  135. package/src/components/steps/README.md +70 -0
  136. package/src/components/steps/element.ts +43 -0
  137. package/src/components/steps/engine.ts +185 -0
  138. package/src/components/steps/react.tsx +91 -0
  139. package/src/components/steps/steps.css +49 -0
  140. package/src/components/theme-picker/README.md +57 -0
  141. package/src/components/theme-picker/element.ts +20 -0
  142. package/src/components/theme-picker/engine.ts +91 -0
  143. package/src/components/theme-picker/react.tsx +31 -0
  144. package/src/components/theme-picker/theme-picker.css +114 -0
  145. package/src/components/toast/README.md +60 -0
  146. package/src/components/toast/element.ts +25 -0
  147. package/src/components/toast/engine.ts +483 -0
  148. package/src/components/toast/react.tsx +22 -0
  149. package/src/components/toast/store.ts +122 -0
  150. package/src/components/toast/toast.css +114 -0
  151. package/src/core/channels.ts +165 -0
  152. package/src/core/curves.ts +35 -0
  153. package/src/core/frame.ts +12 -0
  154. package/src/core/gsap.ts +65 -0
  155. package/src/core/loop.ts +44 -0
  156. package/src/core/math.ts +9 -0
  157. package/src/core/physics-spring.ts +59 -0
  158. package/src/core/pointer.ts +63 -0
  159. package/src/core/reduced.ts +21 -0
  160. package/src/core/scope.ts +70 -0
  161. package/src/core/scroll-track.ts +106 -0
  162. package/src/core/split.ts +68 -0
  163. package/src/core/spring.ts +22 -0
  164. package/src/core/styles.ts +31 -0
  165. package/src/core/timing.ts +204 -0
  166. package/src/core/types.ts +20 -0
  167. package/src/core/visible.ts +19 -0
  168. package/src/css/base.css +142 -0
  169. package/src/css/controls/README.md +122 -0
  170. package/src/css/controls/burger.css +67 -0
  171. package/src/css/controls/button.css +226 -0
  172. package/src/css/controls/checkbox.css +53 -0
  173. package/src/css/controls/chip.css +85 -0
  174. package/src/css/controls/field.css +124 -0
  175. package/src/css/controls/glass.css +220 -0
  176. package/src/css/controls/icon.css +26 -0
  177. package/src/css/controls/segmented.css +60 -0
  178. package/src/css/controls/switch.css +72 -0
  179. package/src/css/default-theme.css +123 -0
  180. package/src/css/effects/README.md +134 -0
  181. package/src/css/effects/anim.css +224 -0
  182. package/src/css/effects/fade.css +15 -0
  183. package/src/css/effects/float.css +64 -0
  184. package/src/css/effects/frost.css +62 -0
  185. package/src/css/effects/grain.css +58 -0
  186. package/src/css/effects/loading.css +60 -0
  187. package/src/css/effects/success.css +22 -0
  188. package/src/css/effects/text.css +67 -0
  189. package/src/css/fonts.css +3 -0
  190. package/src/css/states.css +51 -0
  191. package/src/css/themes/black-green.css +126 -0
  192. package/src/css/themes/black.css +126 -0
  193. package/src/css/themes/blue.css +126 -0
  194. package/src/css/themes/brown.css +126 -0
  195. package/src/css/themes/cold-blue.css +126 -0
  196. package/src/css/themes/funny.css +126 -0
  197. package/src/css/themes/gray.css +126 -0
  198. package/src/css/themes/green.css +126 -0
  199. package/src/css/themes/modern-1.css +126 -0
  200. package/src/css/themes/neogreen.css +126 -0
  201. package/src/css/themes/new.css +126 -0
  202. package/src/css/themes/new2.css +126 -0
  203. package/src/css/themes/oled.css +126 -0
  204. package/src/css/themes/orange.css +126 -0
  205. package/src/css/themes/pastel-pink.css +126 -0
  206. package/src/css/themes/pink.css +126 -0
  207. package/src/css/themes/purple.css +126 -0
  208. package/src/css/themes/red.css +126 -0
  209. package/src/css/themes/super-blue.css +126 -0
  210. package/src/css/tokens.css +182 -0
  211. package/src/elements/base.ts +76 -0
  212. package/src/elements/index.ts +48 -0
  213. package/src/gl/index.ts +15 -0
  214. package/src/gl/liquid-blend/README.md +23 -0
  215. package/src/gl/liquid-blend/create-liquid-blend.ts +7 -0
  216. package/src/gl/liquid-blend/shader.ts +9 -0
  217. package/src/gl/matcap/README.md +23 -0
  218. package/src/gl/matcap/create-matcap.ts +7 -0
  219. package/src/gl/matcap/shader.ts +16 -0
  220. package/src/gl/particle-hero/README.md +41 -0
  221. package/src/gl/particle-hero/create-particle-hero.ts +544 -0
  222. package/src/gl/particle-hero/particle-hero.css +19 -0
  223. package/src/gl/particle-hero/shaders.ts +84 -0
  224. package/src/gl/shader-blur/README.md +23 -0
  225. package/src/gl/shader-blur/create-shader-blur.ts +7 -0
  226. package/src/gl/shader-blur/shader.ts +11 -0
  227. package/src/gl/shader-grain/README.md +23 -0
  228. package/src/gl/shader-grain/create-shader-grain.ts +7 -0
  229. package/src/gl/shader-grain/shader.ts +6 -0
  230. package/src/gl/shared/create-shader-effect.ts +186 -0
  231. package/src/gl/shared/shader.css +3 -0
  232. package/src/gl/shared/shaders.ts +30 -0
  233. package/src/index.ts +177 -0
  234. package/src/motion/anchor.ts +45 -0
  235. package/src/motion/chat.ts +97 -0
  236. package/src/motion/confetti.ts +130 -0
  237. package/src/motion/count.ts +95 -0
  238. package/src/motion/details.ts +70 -0
  239. package/src/motion/drag-dismiss.ts +231 -0
  240. package/src/motion/effects.ts +81 -0
  241. package/src/motion/entrances.ts +27 -0
  242. package/src/motion/floating.ts +389 -0
  243. package/src/motion/flow.ts +115 -0
  244. package/src/motion/indicator.ts +44 -0
  245. package/src/motion/layout.ts +39 -0
  246. package/src/motion/liquid.ts +227 -0
  247. package/src/motion/morph.ts +540 -0
  248. package/src/motion/reveal.ts +112 -0
  249. package/src/motion/sheet.ts +65 -0
  250. package/src/motion/surface.ts +108 -0
  251. package/src/react/animated-number.tsx +30 -0
  252. package/src/react/flip-group.tsx +44 -0
  253. package/src/react/frost.tsx +33 -0
  254. package/src/react/index.ts +80 -0
  255. package/src/react/slot-text.tsx +44 -0
  256. package/src/react/theme-provider.tsx +42 -0
  257. package/src/react/use-card-dock.ts +9 -0
  258. package/src/react/use-cascade.ts +9 -0
  259. package/src/react/use-contrast.ts +9 -0
  260. package/src/react/use-counter.ts +8 -0
  261. package/src/react/use-curved-carousel.ts +10 -0
  262. package/src/react/use-depth-grid.ts +9 -0
  263. package/src/react/use-details.ts +7 -0
  264. package/src/react/use-dock-pill.ts +10 -0
  265. package/src/react/use-drag-ruler.ts +10 -0
  266. package/src/react/use-fill-text.ts +9 -0
  267. package/src/react/use-fit-text.ts +8 -0
  268. package/src/react/use-flow.ts +8 -0
  269. package/src/react/use-frame-zoom.ts +9 -0
  270. package/src/react/use-infinite-reel.ts +8 -0
  271. package/src/react/use-letters.ts +9 -0
  272. package/src/react/use-liquid-blend.ts +8 -0
  273. package/src/react/use-marquee.ts +9 -0
  274. package/src/react/use-mask-text.ts +9 -0
  275. package/src/react/use-matcap.ts +8 -0
  276. package/src/react/use-parallax.ts +9 -0
  277. package/src/react/use-particle-hero.ts +9 -0
  278. package/src/react/use-pile.ts +8 -0
  279. package/src/react/use-pop.ts +8 -0
  280. package/src/react/use-radial-menu.ts +10 -0
  281. package/src/react/use-recipe.ts +38 -0
  282. package/src/react/use-reflow.ts +9 -0
  283. package/src/react/use-repel-bento.ts +8 -0
  284. package/src/react/use-reveal.ts +8 -0
  285. package/src/react/use-rotator.ts +10 -0
  286. package/src/react/use-shader-blur.ts +8 -0
  287. package/src/react/use-shader-grain.ts +8 -0
  288. package/src/react/use-slot-text.ts +17 -0
  289. package/src/react/use-snap-strip.ts +9 -0
  290. package/src/react/use-sortable.ts +14 -0
  291. package/src/react/use-spring-cards.ts +8 -0
  292. package/src/react/use-stretch-footer.ts +20 -0
  293. package/src/react/use-tabs.ts +10 -0
  294. package/src/react/use-text-roll.ts +9 -0
  295. package/src/react/use-ticket-menu.ts +15 -0
  296. package/src/react/use-words.ts +8 -0
  297. package/src/recipes/card-dock/README.md +36 -0
  298. package/src/recipes/card-dock/card-dock.css +178 -0
  299. package/src/recipes/card-dock/create-card-dock.ts +97 -0
  300. package/src/recipes/cascade/README.md +33 -0
  301. package/src/recipes/cascade/create-cascade.ts +111 -0
  302. package/src/recipes/contrast/README.md +29 -0
  303. package/src/recipes/contrast/create-contrast.ts +68 -0
  304. package/src/recipes/counter/README.md +42 -0
  305. package/src/recipes/counter/create-counter.ts +84 -0
  306. package/src/recipes/curved-carousel/README.md +50 -0
  307. package/src/recipes/curved-carousel/carousel-math.ts +20 -0
  308. package/src/recipes/curved-carousel/create-curved-carousel.ts +257 -0
  309. package/src/recipes/curved-carousel/curved-carousel.css +50 -0
  310. package/src/recipes/depth-grid/README.md +30 -0
  311. package/src/recipes/depth-grid/create-depth-grid.ts +120 -0
  312. package/src/recipes/details/README.md +31 -0
  313. package/src/recipes/details/create-details.ts +27 -0
  314. package/src/recipes/dock-pill/README.md +23 -0
  315. package/src/recipes/dock-pill/create-dock-pill.ts +68 -0
  316. package/src/recipes/dock-pill/dock-pill.css +5 -0
  317. package/src/recipes/drag-ruler/README.md +21 -0
  318. package/src/recipes/drag-ruler/create-drag-ruler.ts +95 -0
  319. package/src/recipes/drag-ruler/drag-ruler.css +16 -0
  320. package/src/recipes/fill-text/README.md +27 -0
  321. package/src/recipes/fill-text/create-fill-text.ts +93 -0
  322. package/src/recipes/fit-text/README.md +37 -0
  323. package/src/recipes/fit-text/create-fit-text.ts +55 -0
  324. package/src/recipes/fit-text/fit-text.css +6 -0
  325. package/src/recipes/flow/README.md +46 -0
  326. package/src/recipes/flow/create-flow.ts +55 -0
  327. package/src/recipes/frame-zoom/README.md +29 -0
  328. package/src/recipes/frame-zoom/create-frame-zoom.ts +91 -0
  329. package/src/recipes/infinite-reel/README.md +23 -0
  330. package/src/recipes/infinite-reel/create-infinite-reel.ts +140 -0
  331. package/src/recipes/infinite-reel/infinite-reel.css +8 -0
  332. package/src/recipes/letters/README.md +30 -0
  333. package/src/recipes/letters/create-letters.ts +113 -0
  334. package/src/recipes/marquee/README.md +32 -0
  335. package/src/recipes/marquee/create-marquee.ts +74 -0
  336. package/src/recipes/marquee/marquee.css +41 -0
  337. package/src/recipes/mask-text/README.md +39 -0
  338. package/src/recipes/mask-text/create-mask-text.ts +134 -0
  339. package/src/recipes/parallax/README.md +31 -0
  340. package/src/recipes/parallax/create-parallax.ts +74 -0
  341. package/src/recipes/pile/README.md +48 -0
  342. package/src/recipes/pile/create-pile.ts +50 -0
  343. package/src/recipes/pile/pile-math.ts +27 -0
  344. package/src/recipes/pile/pile.css +63 -0
  345. package/src/recipes/pill/README.md +30 -0
  346. package/src/recipes/pill/pill.css +48 -0
  347. package/src/recipes/pop/README.md +36 -0
  348. package/src/recipes/pop/create-pop.ts +52 -0
  349. package/src/recipes/radial-menu/README.md +44 -0
  350. package/src/recipes/radial-menu/create-radial-menu.ts +96 -0
  351. package/src/recipes/radial-menu/radial-menu.css +45 -0
  352. package/src/recipes/reflow/README.md +47 -0
  353. package/src/recipes/reflow/create-reflow.ts +49 -0
  354. package/src/recipes/repel-bento/README.md +21 -0
  355. package/src/recipes/repel-bento/create-repel-bento.ts +65 -0
  356. package/src/recipes/repel-bento/repel-bento.css +3 -0
  357. package/src/recipes/reveal/README.md +36 -0
  358. package/src/recipes/reveal/create-reveal.ts +48 -0
  359. package/src/recipes/rotator/README.md +21 -0
  360. package/src/recipes/rotator/create-rotator.ts +66 -0
  361. package/src/recipes/rotator/rotator.css +3 -0
  362. package/src/recipes/slot-text/README.md +44 -0
  363. package/src/recipes/slot-text/create-slot-text.ts +244 -0
  364. package/src/recipes/slot-text/slot-text.css +42 -0
  365. package/src/recipes/snap-strip/README.md +31 -0
  366. package/src/recipes/snap-strip/create-snap-strip.ts +133 -0
  367. package/src/recipes/snap-strip/snap-strip.css +23 -0
  368. package/src/recipes/sortable/README.md +88 -0
  369. package/src/recipes/sortable/create-sortable.ts +863 -0
  370. package/src/recipes/sortable/sortable.css +40 -0
  371. package/src/recipes/spring-cards/README.md +48 -0
  372. package/src/recipes/spring-cards/create-spring-cards.ts +140 -0
  373. package/src/recipes/spring-cards/spring-cards.css +23 -0
  374. package/src/recipes/stretch-footer/README.md +44 -0
  375. package/src/recipes/stretch-footer/create-stretch-footer.ts +69 -0
  376. package/src/recipes/stretch-footer/stretch-footer.css +28 -0
  377. package/src/recipes/tabs/README.md +39 -0
  378. package/src/recipes/tabs/create-tabs.ts +91 -0
  379. package/src/recipes/tabs/tabs.css +19 -0
  380. package/src/recipes/text-roll/README.md +35 -0
  381. package/src/recipes/text-roll/create-text-roll.ts +137 -0
  382. package/src/recipes/text-roll/text-roll.css +21 -0
  383. package/src/recipes/ticket-menu/README.md +24 -0
  384. package/src/recipes/ticket-menu/create-ticket-menu.ts +6 -0
  385. package/src/recipes/words/README.md +43 -0
  386. package/src/recipes/words/create-words.ts +114 -0
  387. package/src/theme/css-format.ts +32 -0
  388. package/src/theme/generate.ts +72 -0
  389. package/src/theme/index.ts +15 -0
  390. package/src/theme/presets.ts +79 -0
  391. package/src/theme/theme.ts +119 -0
@@ -0,0 +1,452 @@
1
+ /* css/tokens.css */
2
+ /* motion-kit tokens — override any of them on :root, on a [data-mk-theme] or on a component. */
3
+ :root {
4
+ /* spencergabor.com elastic curves */
5
+ --mk-ease-elastic: linear(0, 0.5737 7.6%, 0.8382 11.87%, 0.9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, 0.9995 46.99%, 0.9872 51.63%, 0.9842 58.77%, 1.0011 81.26%, 1);
6
+ --mk-ease-elastic-hover: linear(0, 0.2178 2.1%, 1.1144 8.49%, 1.2959 10.7%, 1.3463 11.81%, 1.3705 12.94%, 1.3726, 1.3643 14.48%, 1.3151 16.2%, 1.0317 21.81%, 0.941 24.01%, 0.8912 25.91%, 0.8694 27.84%, 0.8698 29.21%, 0.8824 30.71%, 1.0122 38.33%, 1.0357, 1.046 42.71%, 1.0416 45.7%, 0.9961 53.26%, 0.9839 57.54%, 0.9853 60.71%, 1.0012 68.14%, 1.0056 72.24%, 0.9981 86.66%, 1);
7
+
8
+ /* Stepbro curves. The signature is a multi-point path: CSS gets Stepbro's own linear() sampling of it. */
9
+ --mk-ease-signature: linear(0 0%, .017 2.5%, .037 5%, .061 7.5%, .091 10%, .13 12.5%, .184 15%, .275 17.5%, .562 20%, .733 22.5%, .803 25%, .848 27.5%, .88 30%, .902 32.5%, .942 40%, .97 50%, .985 60%, .993 70%, .998 80%, 1 90%, 1 100%);
10
+ /* Stepbro's backdrop tint uses the same curve. */
11
+ --mk-ease-tint: var(--mk-ease-signature);
12
+ --mk-ease-flow: cubic-bezier(0.25, 0.1, 0.25, 1);
13
+ --mk-ease-close: cubic-bezier(0.56, 0.27, 0, 1);
14
+ --mk-ease-blur-away: cubic-bezier(0.37, 0.35, 0, 1);
15
+ --mk-ease-nav-radius: cubic-bezier(0.38, 0.49, 0, 2);
16
+ --mk-ease-nav-move: cubic-bezier(0.38, 0.49, 0, 1.2);
17
+ --mk-ease-swatch: cubic-bezier(0.38, 0.49, 0, 1.5);
18
+ --mk-ease-swatch-light: cubic-bezier(0.11, 1, 0, 1);
19
+ --mk-ease-slot: cubic-bezier(0.34, 1.56, 0.64, 1);
20
+ /* Dousan Miao / Siena Film Foundation curves */
21
+ --mk-ease-glass: cubic-bezier(0.25, 1, 0.5, 1);
22
+ --mk-ease-sheet: cubic-bezier(0.16, 1, 0.3, 1);
23
+ --mk-ease-siena: cubic-bezier(0.19, 1, 0.22, 1);
24
+ --mk-ease-quint: cubic-bezier(0.23, 1, 0.32, 1);
25
+ /* Dousan's springs (Motion 400/10 press, 260/18 success), sampled by springLinear(); a test keeps them in sync. */
26
+ --mk-ease-press: linear(0, 0.1957, 0.6333, 1.0817, 1.3717, 1.4412, 1.3274, 1.1249, 0.934, 0.8221, 0.808, 0.8691, 0.9612, 1.0413, 1.0833, 1.0824, 1.0513, 1.01, 0.9769, 0.9618, 0.9651, 0.9804, 0.9986, 1.0121, 1.0173, 1.0146, 1.0072, 0.9993, 0.9939, 0.9923, 0.994, 0.9974, 1.0008, 1.003, 1.0034, 1.0024, 1.0008, 0.9994, 0.9986, 0.9985, 1);
27
+ --mk-dur-press: 1.346s;
28
+ --mk-ease-success: linear(0, 0.0437, 0.1533, 0.3004, 0.4617, 0.6197, 0.7624, 0.8825, 0.9767, 1.0451, 1.0895, 1.1133, 1.1208, 1.1161, 1.1032, 1.0856, 1.0662, 1.047, 1.0296, 1.0149, 1.0034, 0.9949, 0.9894, 0.9864, 0.9854, 0.9859, 0.9874, 0.9895, 0.9919, 0.9942, 0.9963, 0.9981, 0.9995, 1.0006, 1.0012, 1.0016, 1.0018, 1.0017, 1.0015, 1.0013, 1);
29
+ --mk-dur-success: 0.779s;
30
+ --mk-dur-fast: 0.25s;
31
+ --mk-dur: 0.45s;
32
+ --mk-dur-slow: 0.7s;
33
+
34
+ /* Layered shadow */
35
+ --mk-shadow: 0 9px 21px rgb(0 0 0 / 0.1), 0 38px 38px rgb(0 0 0 / 0.09), 0 85px 51px rgb(0 0 0 / 0.05);
36
+ --mk-shadow-soft: 0 9px 21px rgb(0 0 0 / 0.05), 0 38px 38px rgb(0 0 0 / 0.045), 0 85px 51px rgb(0 0 0 / 0.025);
37
+
38
+ /* Shape: Stepbro's large capsules */
39
+ --mk-radius-card: 1rem;
40
+ --mk-radius-xs: 8px;
41
+ --mk-radius-sm: 12px;
42
+ --mk-radius-md: 16px;
43
+ --mk-radius-lg: 24px;
44
+ --mk-radius-xl: 32px;
45
+ --mk-radius-2xl: 40px;
46
+ --mk-radius-3xl: 48px;
47
+ --mk-radius-4xl: 64px;
48
+ --mk-radius-full: 999px;
49
+ --mk-radius-bubble: var(--mk-radius-xl);
50
+ --mk-radius-dialog: var(--mk-radius-2xl);
51
+ --mk-radius-chat: var(--mk-radius-3xl);
52
+ --mk-radius-dock: var(--mk-radius-4xl);
53
+
54
+ /* Spacing, 4 px steps. Stepbro's navigation breakpoint is 680px (media queries use it literally). */
55
+ --mk-space-1: 4px;
56
+ --mk-space-2: 8px;
57
+ --mk-space-3: 12px;
58
+ --mk-space-4: 16px;
59
+ --mk-space-5: 20px;
60
+ --mk-space-6: 24px;
61
+ --mk-space-7: 28px;
62
+ --mk-space-8: 32px;
63
+ --mk-space-9: 36px;
64
+ --mk-space-10: 40px;
65
+ --mk-space-11: 44px;
66
+ --mk-space-12: 48px;
67
+ --mk-space-13: 52px;
68
+ --mk-space-14: 56px;
69
+ --mk-space-15: 60px;
70
+ --mk-space-16: 64px;
71
+ --mk-breakpoint: 680px;
72
+
73
+ /* Type: DM Sans, Geist Mono, Material Symbols Rounded (css/fonts.css loads them). */
74
+ --mk-font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
75
+ --mk-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
76
+ /* Material 3 type scale with Stepbro's values (its bundle writes weights as "400px"; here they are numbers). */
77
+ --md-sys-typescale-display-large-font: var(--mk-font);
78
+ --md-sys-typescale-display-large-size: 57px;
79
+ --md-sys-typescale-display-large-line-height: 64px;
80
+ --md-sys-typescale-display-large-weight: 400;
81
+ --md-sys-typescale-display-large-tracking: -0.25px;
82
+ --md-sys-typescale-display-medium-font: var(--mk-font);
83
+ --md-sys-typescale-display-medium-size: 45px;
84
+ --md-sys-typescale-display-medium-line-height: 52px;
85
+ --md-sys-typescale-display-medium-weight: 400;
86
+ --md-sys-typescale-display-medium-tracking: 0px;
87
+ --md-sys-typescale-display-small-font: var(--mk-font);
88
+ --md-sys-typescale-display-small-size: 36px;
89
+ --md-sys-typescale-display-small-line-height: 44px;
90
+ --md-sys-typescale-display-small-weight: 400;
91
+ --md-sys-typescale-display-small-tracking: 0px;
92
+ --md-sys-typescale-headline-large-font: var(--mk-font);
93
+ --md-sys-typescale-headline-large-size: 32px;
94
+ --md-sys-typescale-headline-large-line-height: 40px;
95
+ --md-sys-typescale-headline-large-weight: 400;
96
+ --md-sys-typescale-headline-large-tracking: 0px;
97
+ --md-sys-typescale-headline-medium-font: var(--mk-font);
98
+ --md-sys-typescale-headline-medium-size: 28px;
99
+ --md-sys-typescale-headline-medium-line-height: 36px;
100
+ --md-sys-typescale-headline-medium-weight: 400;
101
+ --md-sys-typescale-headline-medium-tracking: 0px;
102
+ --md-sys-typescale-headline-small-font: var(--mk-font);
103
+ --md-sys-typescale-headline-small-size: 24px;
104
+ --md-sys-typescale-headline-small-line-height: 32px;
105
+ --md-sys-typescale-headline-small-weight: 400;
106
+ --md-sys-typescale-headline-small-tracking: 0px;
107
+ --md-sys-typescale-title-large-font: var(--mk-font);
108
+ --md-sys-typescale-title-large-size: 22px;
109
+ --md-sys-typescale-title-large-line-height: 28px;
110
+ --md-sys-typescale-title-large-weight: 400;
111
+ --md-sys-typescale-title-large-tracking: 0px;
112
+ --md-sys-typescale-title-medium-font: var(--mk-font);
113
+ --md-sys-typescale-title-medium-size: 16px;
114
+ --md-sys-typescale-title-medium-line-height: 24px;
115
+ --md-sys-typescale-title-medium-weight: 500;
116
+ --md-sys-typescale-title-medium-tracking: 0.15px;
117
+ --md-sys-typescale-title-small-font: var(--mk-font);
118
+ --md-sys-typescale-title-small-size: 14px;
119
+ --md-sys-typescale-title-small-line-height: 20px;
120
+ --md-sys-typescale-title-small-weight: 500;
121
+ --md-sys-typescale-title-small-tracking: 0.1px;
122
+ --md-sys-typescale-body-large-font: var(--mk-font);
123
+ --md-sys-typescale-body-large-size: 16px;
124
+ --md-sys-typescale-body-large-line-height: 24px;
125
+ --md-sys-typescale-body-large-weight: 400;
126
+ --md-sys-typescale-body-large-tracking: 0.5px;
127
+ --md-sys-typescale-body-medium-font: var(--mk-font);
128
+ --md-sys-typescale-body-medium-size: 14px;
129
+ --md-sys-typescale-body-medium-line-height: 20px;
130
+ --md-sys-typescale-body-medium-weight: 400;
131
+ --md-sys-typescale-body-medium-tracking: 0.25px;
132
+ --md-sys-typescale-body-small-font: var(--mk-font);
133
+ --md-sys-typescale-body-small-size: 12px;
134
+ --md-sys-typescale-body-small-line-height: 16px;
135
+ --md-sys-typescale-body-small-weight: 400;
136
+ --md-sys-typescale-body-small-tracking: 0.4px;
137
+ --md-sys-typescale-label-large-font: var(--mk-font);
138
+ --md-sys-typescale-label-large-size: 14px;
139
+ --md-sys-typescale-label-large-line-height: 20px;
140
+ --md-sys-typescale-label-large-weight: 500;
141
+ --md-sys-typescale-label-large-tracking: 0.1px;
142
+ --md-sys-typescale-label-medium-font: var(--mk-font);
143
+ --md-sys-typescale-label-medium-size: 12px;
144
+ --md-sys-typescale-label-medium-line-height: 16px;
145
+ --md-sys-typescale-label-medium-weight: 500;
146
+ --md-sys-typescale-label-medium-tracking: 0.5px;
147
+ --md-sys-typescale-label-small-font: var(--mk-font);
148
+ --md-sys-typescale-label-small-size: 11px;
149
+ --md-sys-typescale-label-small-line-height: 16px;
150
+ --md-sys-typescale-label-small-weight: 500;
151
+ --md-sys-typescale-label-small-tracking: 0.5px;
152
+ }
153
+
154
+ /*
155
+ * Semantic colour layer over the Material 3 roles. Declared on every themed
156
+ * element too, so a nested [data-mk-theme] recomputes it from its own roles.
157
+ */
158
+ :root,
159
+ [data-mk-theme] {
160
+ --mk-bg: var(--md-sys-color-background);
161
+ --mk-surface: var(--md-sys-color-surface);
162
+ --mk-surface-1: var(--md-sys-color-surface-container-lowest);
163
+ --mk-surface-2: var(--md-sys-color-surface-container-low);
164
+ --mk-surface-3: var(--md-sys-color-surface-container);
165
+ --mk-surface-4: var(--md-sys-color-surface-container-high);
166
+ --mk-surface-5: var(--md-sys-color-surface-container-highest);
167
+ --mk-text: var(--md-sys-color-on-surface);
168
+ --mk-muted: var(--md-sys-color-on-surface-variant);
169
+ --mk-accent: var(--md-sys-color-primary);
170
+ --mk-on-accent: var(--md-sys-color-on-primary);
171
+ --mk-accent-soft: var(--md-sys-color-primary-container);
172
+ --mk-on-accent-soft: var(--md-sys-color-on-primary-container);
173
+ --mk-secondary-soft: var(--md-sys-color-secondary-container);
174
+ --mk-on-secondary-soft: var(--md-sys-color-on-secondary-container);
175
+ --mk-outline: var(--md-sys-color-outline);
176
+ --mk-outline-soft: var(--md-sys-color-outline-variant);
177
+ --mk-error: var(--md-sys-color-error);
178
+ --mk-on-error: var(--md-sys-color-on-error);
179
+ --mk-error-soft: var(--md-sys-color-error-container);
180
+ --mk-on-error-soft: var(--md-sys-color-on-error-container);
181
+ --mk-scrim: var(--md-sys-color-scrim);
182
+ --mk-shadow-color: var(--md-sys-color-shadow);
183
+ }
184
+
185
+ /* css/default-theme.css */
186
+ /* Default palette (Stepbro "neogreen") with zero specificity: any [data-mk-theme] wins.
187
+ Generated by scripts/import-themes.mjs; do not edit. */
188
+ :where(:root) {
189
+ --md-sys-color-background: #f1fded;
190
+ --md-sys-color-on-background: #141e14;
191
+ --md-sys-color-surface: #f1fded;
192
+ --md-sys-color-surface-dim: #d2ddce;
193
+ --md-sys-color-surface-bright: #f1fded;
194
+ --md-sys-color-surface-container-lowest: #ffffff;
195
+ --md-sys-color-surface-container-low: #ebf7e7;
196
+ --md-sys-color-surface-container: #e6f1e1;
197
+ --md-sys-color-surface-container-high: #e0ecdc;
198
+ --md-sys-color-surface-container-highest: #dae6d6;
199
+ --md-sys-color-on-surface: #141e14;
200
+ --md-sys-color-surface-variant: #d5e8d2;
201
+ --md-sys-color-on-surface-variant: #3b4b3b;
202
+ --md-sys-color-inverse-surface: #293328;
203
+ --md-sys-color-inverse-on-surface: #e8f4e4;
204
+ --md-sys-color-outline: #6b7b69;
205
+ --md-sys-color-outline-variant: #b9cbb7;
206
+ --md-sys-color-shadow: #000000;
207
+ --md-sys-color-scrim: #000000;
208
+ --md-sys-color-surface-tint: #006e2c;
209
+ --md-sys-color-primary: #006e2c;
210
+ --md-sys-color-on-primary: #ffffff;
211
+ --md-sys-color-primary-container: #4dff7e;
212
+ --md-sys-color-on-primary-container: #00521f;
213
+ --md-sys-color-inverse-primary: #00e563;
214
+ --md-sys-color-secondary: #006e2c;
215
+ --md-sys-color-on-secondary: #ffffff;
216
+ --md-sys-color-secondary-container: #9afda6;
217
+ --md-sys-color-on-secondary-container: #005721;
218
+ --md-sys-color-tertiary: #006972;
219
+ --md-sys-color-on-tertiary: #ffffff;
220
+ --md-sys-color-tertiary-container: #7ef1ff;
221
+ --md-sys-color-on-tertiary-container: #004f56;
222
+ --md-sys-color-error: #ba1a1a;
223
+ --md-sys-color-on-error: #ffffff;
224
+ --md-sys-color-error-container: #ffdad6;
225
+ --md-sys-color-on-error-container: #410002;
226
+ }
227
+
228
+ @media (prefers-color-scheme: dark) {
229
+ :where(:root:not([data-mk-mode="light"])) {
230
+ --md-sys-color-background: #0c160d;
231
+ --md-sys-color-on-background: #dae6d6;
232
+ --md-sys-color-surface: #0c160d;
233
+ --md-sys-color-surface-dim: #0c160d;
234
+ --md-sys-color-surface-bright: #313c31;
235
+ --md-sys-color-surface-container-lowest: #071008;
236
+ --md-sys-color-surface-container-low: #141e14;
237
+ --md-sys-color-surface-container: #182218;
238
+ --md-sys-color-surface-container-high: #222c22;
239
+ --md-sys-color-surface-container-highest: #2d372d;
240
+ --md-sys-color-on-surface: #dae6d6;
241
+ --md-sys-color-surface-variant: #3b4b3b;
242
+ --md-sys-color-on-surface-variant: #b9cbb7;
243
+ --md-sys-color-inverse-surface: #dae6d6;
244
+ --md-sys-color-inverse-on-surface: #293328;
245
+ --md-sys-color-outline: #849582;
246
+ --md-sys-color-outline-variant: #3b4b3b;
247
+ --md-sys-color-shadow: #000000;
248
+ --md-sys-color-scrim: #000000;
249
+ --md-sys-color-surface-tint: #00e563;
250
+ --md-sys-color-primary: #ffffff;
251
+ --md-sys-color-on-primary: #003913;
252
+ --md-sys-color-primary-container: #00f46b;
253
+ --md-sys-color-on-primary-container: #004a1b;
254
+ --md-sys-color-inverse-primary: #006e2c;
255
+ --md-sys-color-secondary: #7adb88;
256
+ --md-sys-color-on-secondary: #003913;
257
+ --md-sys-color-secondary-container: #006a2a;
258
+ --md-sys-color-on-secondary-container: #ffffff;
259
+ --md-sys-color-tertiary: #ffffff;
260
+ --md-sys-color-on-tertiary: #00363c;
261
+ --md-sys-color-tertiary-container: #4be8f9;
262
+ --md-sys-color-on-tertiary-container: #00474d;
263
+ --md-sys-color-error: #ffb4ab;
264
+ --md-sys-color-on-error: #690005;
265
+ --md-sys-color-error-container: #93000a;
266
+ --md-sys-color-on-error-container: #ffdad6;
267
+ }
268
+ }
269
+
270
+ :where(:root[data-mk-mode="dark"]) {
271
+ --md-sys-color-background: #0c160d;
272
+ --md-sys-color-on-background: #dae6d6;
273
+ --md-sys-color-surface: #0c160d;
274
+ --md-sys-color-surface-dim: #0c160d;
275
+ --md-sys-color-surface-bright: #313c31;
276
+ --md-sys-color-surface-container-lowest: #071008;
277
+ --md-sys-color-surface-container-low: #141e14;
278
+ --md-sys-color-surface-container: #182218;
279
+ --md-sys-color-surface-container-high: #222c22;
280
+ --md-sys-color-surface-container-highest: #2d372d;
281
+ --md-sys-color-on-surface: #dae6d6;
282
+ --md-sys-color-surface-variant: #3b4b3b;
283
+ --md-sys-color-on-surface-variant: #b9cbb7;
284
+ --md-sys-color-inverse-surface: #dae6d6;
285
+ --md-sys-color-inverse-on-surface: #293328;
286
+ --md-sys-color-outline: #849582;
287
+ --md-sys-color-outline-variant: #3b4b3b;
288
+ --md-sys-color-shadow: #000000;
289
+ --md-sys-color-scrim: #000000;
290
+ --md-sys-color-surface-tint: #00e563;
291
+ --md-sys-color-primary: #ffffff;
292
+ --md-sys-color-on-primary: #003913;
293
+ --md-sys-color-primary-container: #00f46b;
294
+ --md-sys-color-on-primary-container: #004a1b;
295
+ --md-sys-color-inverse-primary: #006e2c;
296
+ --md-sys-color-secondary: #7adb88;
297
+ --md-sys-color-on-secondary: #003913;
298
+ --md-sys-color-secondary-container: #006a2a;
299
+ --md-sys-color-on-secondary-container: #ffffff;
300
+ --md-sys-color-tertiary: #ffffff;
301
+ --md-sys-color-on-tertiary: #00363c;
302
+ --md-sys-color-tertiary-container: #4be8f9;
303
+ --md-sys-color-on-tertiary-container: #00474d;
304
+ --md-sys-color-error: #ffb4ab;
305
+ --md-sys-color-on-error: #690005;
306
+ --md-sys-color-error-container: #93000a;
307
+ --md-sys-color-on-error-container: #ffdad6;
308
+ }
309
+
310
+ /* css/base.css */
311
+ /* Base helpers: visually hidden text, the type scale as classes, and an app shell. */
312
+ .mk-sr-only {
313
+ position: absolute;
314
+ width: 1px;
315
+ height: 1px;
316
+ margin: -1px;
317
+ padding: 0;
318
+ overflow: hidden;
319
+ clip: rect(0 0 0 0);
320
+ clip-path: inset(50%);
321
+ white-space: nowrap;
322
+ border: 0;
323
+ }
324
+
325
+ /* Page colours and font from the theme: put it on <body> (or any root). */
326
+ .mk-app {
327
+ background: var(--mk-bg);
328
+ color: var(--mk-text);
329
+ font-family: var(--mk-font);
330
+ font-size: var(--md-sys-typescale-body-large-size);
331
+ line-height: var(--md-sys-typescale-body-large-line-height);
332
+ }
333
+
334
+ .mk-type-display-large {
335
+ font-family: var(--md-sys-typescale-display-large-font);
336
+ font-size: var(--md-sys-typescale-display-large-size);
337
+ line-height: var(--md-sys-typescale-display-large-line-height);
338
+ font-weight: var(--md-sys-typescale-display-large-weight);
339
+ letter-spacing: var(--md-sys-typescale-display-large-tracking);
340
+ }
341
+
342
+ .mk-type-display-medium {
343
+ font-family: var(--md-sys-typescale-display-medium-font);
344
+ font-size: var(--md-sys-typescale-display-medium-size);
345
+ line-height: var(--md-sys-typescale-display-medium-line-height);
346
+ font-weight: var(--md-sys-typescale-display-medium-weight);
347
+ letter-spacing: var(--md-sys-typescale-display-medium-tracking);
348
+ }
349
+
350
+ .mk-type-display-small {
351
+ font-family: var(--md-sys-typescale-display-small-font);
352
+ font-size: var(--md-sys-typescale-display-small-size);
353
+ line-height: var(--md-sys-typescale-display-small-line-height);
354
+ font-weight: var(--md-sys-typescale-display-small-weight);
355
+ letter-spacing: var(--md-sys-typescale-display-small-tracking);
356
+ }
357
+
358
+ .mk-type-headline-large {
359
+ font-family: var(--md-sys-typescale-headline-large-font);
360
+ font-size: var(--md-sys-typescale-headline-large-size);
361
+ line-height: var(--md-sys-typescale-headline-large-line-height);
362
+ font-weight: var(--md-sys-typescale-headline-large-weight);
363
+ letter-spacing: var(--md-sys-typescale-headline-large-tracking);
364
+ }
365
+
366
+ .mk-type-headline-medium {
367
+ font-family: var(--md-sys-typescale-headline-medium-font);
368
+ font-size: var(--md-sys-typescale-headline-medium-size);
369
+ line-height: var(--md-sys-typescale-headline-medium-line-height);
370
+ font-weight: var(--md-sys-typescale-headline-medium-weight);
371
+ letter-spacing: var(--md-sys-typescale-headline-medium-tracking);
372
+ }
373
+
374
+ .mk-type-headline-small {
375
+ font-family: var(--md-sys-typescale-headline-small-font);
376
+ font-size: var(--md-sys-typescale-headline-small-size);
377
+ line-height: var(--md-sys-typescale-headline-small-line-height);
378
+ font-weight: var(--md-sys-typescale-headline-small-weight);
379
+ letter-spacing: var(--md-sys-typescale-headline-small-tracking);
380
+ }
381
+
382
+ .mk-type-title-large {
383
+ font-family: var(--md-sys-typescale-title-large-font);
384
+ font-size: var(--md-sys-typescale-title-large-size);
385
+ line-height: var(--md-sys-typescale-title-large-line-height);
386
+ font-weight: var(--md-sys-typescale-title-large-weight);
387
+ letter-spacing: var(--md-sys-typescale-title-large-tracking);
388
+ }
389
+
390
+ .mk-type-title-medium {
391
+ font-family: var(--md-sys-typescale-title-medium-font);
392
+ font-size: var(--md-sys-typescale-title-medium-size);
393
+ line-height: var(--md-sys-typescale-title-medium-line-height);
394
+ font-weight: var(--md-sys-typescale-title-medium-weight);
395
+ letter-spacing: var(--md-sys-typescale-title-medium-tracking);
396
+ }
397
+
398
+ .mk-type-title-small {
399
+ font-family: var(--md-sys-typescale-title-small-font);
400
+ font-size: var(--md-sys-typescale-title-small-size);
401
+ line-height: var(--md-sys-typescale-title-small-line-height);
402
+ font-weight: var(--md-sys-typescale-title-small-weight);
403
+ letter-spacing: var(--md-sys-typescale-title-small-tracking);
404
+ }
405
+
406
+ .mk-type-body-large {
407
+ font-family: var(--md-sys-typescale-body-large-font);
408
+ font-size: var(--md-sys-typescale-body-large-size);
409
+ line-height: var(--md-sys-typescale-body-large-line-height);
410
+ font-weight: var(--md-sys-typescale-body-large-weight);
411
+ letter-spacing: var(--md-sys-typescale-body-large-tracking);
412
+ }
413
+
414
+ .mk-type-body-medium {
415
+ font-family: var(--md-sys-typescale-body-medium-font);
416
+ font-size: var(--md-sys-typescale-body-medium-size);
417
+ line-height: var(--md-sys-typescale-body-medium-line-height);
418
+ font-weight: var(--md-sys-typescale-body-medium-weight);
419
+ letter-spacing: var(--md-sys-typescale-body-medium-tracking);
420
+ }
421
+
422
+ .mk-type-body-small {
423
+ font-family: var(--md-sys-typescale-body-small-font);
424
+ font-size: var(--md-sys-typescale-body-small-size);
425
+ line-height: var(--md-sys-typescale-body-small-line-height);
426
+ font-weight: var(--md-sys-typescale-body-small-weight);
427
+ letter-spacing: var(--md-sys-typescale-body-small-tracking);
428
+ }
429
+
430
+ .mk-type-label-large {
431
+ font-family: var(--md-sys-typescale-label-large-font);
432
+ font-size: var(--md-sys-typescale-label-large-size);
433
+ line-height: var(--md-sys-typescale-label-large-line-height);
434
+ font-weight: var(--md-sys-typescale-label-large-weight);
435
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
436
+ }
437
+
438
+ .mk-type-label-medium {
439
+ font-family: var(--md-sys-typescale-label-medium-font);
440
+ font-size: var(--md-sys-typescale-label-medium-size);
441
+ line-height: var(--md-sys-typescale-label-medium-line-height);
442
+ font-weight: var(--md-sys-typescale-label-medium-weight);
443
+ letter-spacing: var(--md-sys-typescale-label-medium-tracking);
444
+ }
445
+
446
+ .mk-type-label-small {
447
+ font-family: var(--md-sys-typescale-label-small-font);
448
+ font-size: var(--md-sys-typescale-label-small-size);
449
+ line-height: var(--md-sys-typescale-label-small-line-height);
450
+ font-weight: var(--md-sys-typescale-label-small-weight);
451
+ letter-spacing: var(--md-sys-typescale-label-small-tracking);
452
+ }
@@ -0,0 +1,183 @@
1
+ import { I as Instance } from '../types-BkS_raL8.js';
2
+ import { T as ThemePickerInstance, a as ToasterInstance, C as ChatInstance, b as ChatRole, N as NavInstance, c as NavStyle, d as CursorInstance, I as IslandInstance } from '../store-Bqy_obnD.js';
3
+ export { t as toast } from '../store-Bqy_obnD.js';
4
+ import { D as DialogInstance, M as MenuInstance } from '../reveal-WFUWDrei.js';
5
+ import { C as ChatBackgroundInstance, S as StepsInstance } from '../engine-CUr9QijM.js';
6
+ import 'gsap/Flip';
7
+
8
+ type OptionType = 'string' | 'number' | 'boolean' | 'list' | 'json';
9
+ /** `HTMLElement` in the browser; an empty class during SSR so importing never throws. */
10
+ declare const SafeHTMLElement: typeof HTMLElement;
11
+ declare abstract class MkElement<I extends Instance = Instance> extends SafeHTMLElement {
12
+ /** Option name (camelCase) → how to read its attribute. */
13
+ static options: Record<string, OptionType>;
14
+ static get observedAttributes(): string[];
15
+ /** The live engine (null while disconnected). */
16
+ instance: I | null;
17
+ protected abstract create(options: Record<string, unknown>): I;
18
+ /** Options read from the attributes now. */
19
+ get options(): Record<string, unknown>;
20
+ connectedCallback(): void;
21
+ disconnectedCallback(): void;
22
+ attributeChangedCallback(_name: string, previous: string | null, next: string | null): void;
23
+ }
24
+ /** customElements.define once; later calls with the same name are ignored. */
25
+ declare function defineElement(name: string, ctor: CustomElementConstructor): void;
26
+
27
+ /**
28
+ * <mk-theme-picker show-hidden themes="neogreen,pink"></mk-theme-picker>
29
+ * Emits `mk:theme` on document when a theme is chosen (from setTheme).
30
+ */
31
+ declare class MkThemePickerElement extends MkElement<ThemePickerInstance> {
32
+ static options: Record<string, OptionType>;
33
+ protected create(options: Record<string, unknown>): ThemePickerInstance;
34
+ select(id: string): void;
35
+ }
36
+
37
+ /**
38
+ * <mk-dialog id="crear" heading="Crear proyecto" [description] [shared="id"] [variant="liquid"]
39
+ * [placement="anchor|side"] [size="sm|lg|xl"] [float="key"] [no-backdrop] [persistent] [no-drag]>…</mk-dialog>
40
+ * Any [data-mk-open="crear"] opens it from that button. On connect its children
41
+ * move into a <dialog class="mk-dialog"> (with `heading`, a header with title and
42
+ * close button and a body are made for them); on disconnect they move back.
43
+ */
44
+ declare class MkDialogElement extends MkElement<Instance> {
45
+ static options: Record<string, OptionType>;
46
+ dialog: DialogInstance | null;
47
+ protected create(options: Record<string, unknown>): Instance;
48
+ open(origin?: HTMLElement | null): void;
49
+ close(): void;
50
+ get isOpen(): boolean;
51
+ }
52
+
53
+ /**
54
+ * <mk-menu id="opciones" [variant="liquid"] [keep-open]>
55
+ * <button data-mk-item data-mk-value="ajustes">Ajustes</button> …
56
+ * </mk-menu>
57
+ * Any [data-mk-open="opciones"] opens it from that button; choosing an option
58
+ * emits `mk:select` (detail.value, detail.item).
59
+ */
60
+ declare class MkMenuElement extends MkElement<Instance> {
61
+ static options: Record<string, OptionType>;
62
+ menu: MenuInstance | null;
63
+ protected create(options: Record<string, unknown>): Instance;
64
+ open(origin?: HTMLElement | null): void;
65
+ close(): void;
66
+ get isOpen(): boolean;
67
+ }
68
+
69
+ /**
70
+ * <mk-toaster dismiss-label="Cerrar"></mk-toaster> — mount once; then call
71
+ * `toast('Copiado', { origin: button })` from anywhere.
72
+ */
73
+ declare class MkToasterElement extends MkElement<ToasterInstance> {
74
+ static options: Record<string, OptionType>;
75
+ protected create(options: Record<string, unknown>): {
76
+ destroy: () => void;
77
+ };
78
+ }
79
+
80
+ /** <mk-chat-background energy="0" scale="1"></mk-chat-background> inside any positioned container. */
81
+ declare class MkChatBackgroundElement extends MkElement<ChatBackgroundInstance> {
82
+ static options: Record<string, OptionType>;
83
+ static get observedAttributes(): string[];
84
+ protected create(): ChatBackgroundInstance;
85
+ attributeChangedCallback(name: string, previous: string | null, next: string | null): void;
86
+ setEnergy(energy: number): void;
87
+ busy(on: boolean): void;
88
+ }
89
+
90
+ /**
91
+ * <mk-chat placeholder="Escribe un mensaje..." [background] [mic] [animate-existing]>
92
+ * (optional) your own [data-mk-part="messages"] / composer markup
93
+ * </mk-chat>
94
+ * Empty, it builds the messages list and the composer. Listen to `mk:send`
95
+ * (detail.text) and answer with `element.reply(text)` after `element.pending()`.
96
+ */
97
+ declare class MkChatElement extends MkElement<Instance> {
98
+ static options: Record<string, OptionType>;
99
+ chat: ChatInstance | null;
100
+ protected create(options: Record<string, unknown>): Instance;
101
+ add(role: ChatRole, text: string): HTMLElement | undefined;
102
+ pending(): void;
103
+ reply(message: HTMLElement | string): HTMLElement | undefined;
104
+ setRecording(on: boolean): void;
105
+ }
106
+
107
+ /**
108
+ * <mk-nav class="mk-nav mk-nav--bonita" nav-style="bonita" [accent] [reveal] [storage-key="mi-app-nav"]>
109
+ * <div class="mk-nav__buttons"><a class="mk-nav__button" href="/">…</a></div>
110
+ * </mk-nav>
111
+ * Emits `mk:navigate` (detail: index, value, item, originalEvent) on click.
112
+ */
113
+ declare class MkNavElement extends MkElement<NavInstance> {
114
+ static options: Record<string, OptionType>;
115
+ protected create(options: Record<string, unknown>): NavInstance;
116
+ attributeChangedCallback(name: string, previous: string | null, next: string | null): void;
117
+ select(target: number | string): void;
118
+ setStyle(style: NavStyle): void;
119
+ }
120
+
121
+ /**
122
+ * <mk-steps index="0">
123
+ * <mk-chat-background></mk-chat-background>
124
+ * <section data-mk-step><h2 data-mk-flow-item>Hola</h2><button data-mk-flow-item data-mk-step-next>Seguir</button></section>
125
+ * <section data-mk-step>…</section>
126
+ * </mk-steps>
127
+ * Emits `mk:step` (detail: index, previous, step) after each change.
128
+ */
129
+ declare class MkStepsElement extends MkElement<StepsInstance> {
130
+ static options: Record<string, OptionType>;
131
+ protected create(options: Record<string, unknown>): StepsInstance;
132
+ attributeChangedCallback(name: string, previous: string | null, next: string | null): void;
133
+ next(): Promise<void> | undefined;
134
+ prev(): Promise<void> | undefined;
135
+ goTo(index: number): Promise<void> | undefined;
136
+ busy(on: boolean): void;
137
+ }
138
+
139
+ /**
140
+ * <mk-cursor></mk-cursor> Dousan's glass chip (once per page)
141
+ * <mk-cursor variant="dot" text="Scroll" arrows="y"></mk-cursor> Siena's dot, inside its parent
142
+ * zone="#hero" picks another zone.
143
+ */
144
+ declare class MkCursorElement extends MkElement<CursorInstance> {
145
+ static options: Record<string, OptionType>;
146
+ protected create(options: Record<string, unknown>): CursorInstance;
147
+ }
148
+
149
+ /**
150
+ * <mk-island [entrance="false|manual"] [close-on-scroll="false"] [close-on-navigate="false"] [focus-on-open="false"]>
151
+ * <button class="mk-island__backdrop" data-mk-island-close tabindex="-1" aria-label="Cerrar"></button>
152
+ * <div class="mk-island__shell">…header with [data-mk-island-toggle="menu"]…
153
+ * <div class="mk-island__content"><div><section data-mk-island-panel="menu">…</section></div></div>
154
+ * </div>
155
+ * </mk-island>
156
+ * Emits `mk:island` (detail: { active }) when a panel opens or closes.
157
+ */
158
+ declare class MkIslandElement extends MkElement<IslandInstance> {
159
+ static options: Record<string, OptionType>;
160
+ protected create(options: Record<string, unknown>): IslandInstance;
161
+ open(name?: string): void;
162
+ close(): void;
163
+ ready(): void;
164
+ }
165
+
166
+ /** Tag name → element class, for every component. */
167
+ declare const ELEMENTS: {
168
+ readonly 'mk-theme-picker': typeof MkThemePickerElement;
169
+ readonly 'mk-dialog': typeof MkDialogElement;
170
+ readonly 'mk-menu': typeof MkMenuElement;
171
+ readonly 'mk-toaster': typeof MkToasterElement;
172
+ readonly 'mk-chat-background': typeof MkChatBackgroundElement;
173
+ readonly 'mk-chat': typeof MkChatElement;
174
+ readonly 'mk-nav': typeof MkNavElement;
175
+ readonly 'mk-steps': typeof MkStepsElement;
176
+ readonly 'mk-cursor': typeof MkCursorElement;
177
+ readonly 'mk-island': typeof MkIslandElement;
178
+ };
179
+ type ElementName = keyof typeof ELEMENTS;
180
+ /** Register every motion-kit element (or the ones named). Safe to call more than once. */
181
+ declare function defineElements(names?: ElementName[]): void;
182
+
183
+ export { ELEMENTS, type ElementName, MkChatBackgroundElement, MkChatElement, MkCursorElement, MkDialogElement, MkElement, MkIslandElement, MkMenuElement, MkNavElement, MkStepsElement, MkThemePickerElement, MkToasterElement, type OptionType, SafeHTMLElement, defineElement, defineElements };