@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,122 @@
1
+ # controls
2
+
3
+ Controles en CSS puro con la línea de Stepbro, sobre la capa `--mk-*` de los tokens (cambian con el tema). Funcionan en HTML/Astro y React sin JavaScript.
4
+
5
+ Origen: Stepbro usa Material Web; estos estilos reproducen sus ajustes (`tasks/source/frontend.css`): botones rellenos con `primary-container`, botones pequeños de 32 px con radio 12, campos rellenos `surface-container-high` con radio 16 y sin indicador inferior, chips de filtro en cápsula que toman `primary-container`, checkbox con radio 6, menús con radio 16.
6
+
7
+ ## Botón
8
+
9
+ ```html
10
+ <button class="mk-button">Guardar</button>
11
+ <button class="mk-button mk-button--primary">Crear</button>
12
+ <button class="mk-button mk-button--tonal mk-button--sm">Filtrar</button>
13
+ <button class="mk-button mk-button--outlined">Cancelar</button>
14
+ <button class="mk-button mk-button--text">Ver más</button>
15
+ <button class="mk-button mk-button--icon" aria-label="Ajustes"><span class="mk-icon">settings</span></button>
16
+ ```
17
+
18
+ Variables: `--mk-button-bg`, `--mk-button-fg`, `--mk-button-height` (40), `--mk-button-padding` (24), `--mk-button-radius` (cápsula). Capa de estado Material: 8 % al pasar el ratón, 10 % con foco o pulsado.
19
+
20
+ ## Campo
21
+
22
+ ```html
23
+ <label class="mk-field">
24
+ <span class="mk-field__label">Nombre</span>
25
+ <input placeholder="Proyecto nuevo">
26
+ <span class="mk-field__hint">Máximo 40 caracteres</span>
27
+ </label>
28
+ ```
29
+
30
+ Vale para `input`, `textarea` y `select`. `aria-invalid="true"` lo pinta con `error-container` y la ayuda en `error`. Variables: `--mk-field-bg`, `--mk-field-radius`.
31
+
32
+ ## Switch y checkbox
33
+
34
+ ```html
35
+ <input type="checkbox" role="switch" class="mk-switch" aria-label="Notificaciones">
36
+ <label><input type="checkbox" class="mk-checkbox"> Recordarme</label>
37
+ ```
38
+
39
+ ## Chip
40
+
41
+ ```html
42
+ <button class="mk-chip mk-chip--filter" aria-pressed="true">Hoy</button>
43
+ <span class="mk-chip mk-chip--input">Diseño <button class="mk-chip__remove" aria-label="Quitar">×</button></span>
44
+ ```
45
+
46
+ ## Segmentado
47
+
48
+ ```html
49
+ <div class="mk-segmented" data-mk="tabs">
50
+ <button data-mk-tab aria-selected="true">Día</button>
51
+ <button data-mk-tab>Semana</button>
52
+ <span data-mk-indicator></span>
53
+ </div>
54
+ ```
55
+
56
+ El indicador lo mueve la receta `tabs`.
57
+
58
+ ## Icono
59
+
60
+ ```html
61
+ <span class="mk-icon">home</span>
62
+ <span class="mk-icon mk-icon--fill">favorite</span>
63
+ ```
64
+
65
+ Necesita la fuente Material Symbols Rounded (`@yewdiel21/motion-kit/css/fonts`). `--mk-icon-fill` (0–1) y `--mk-icon-weight` controlan los ejes.
66
+
67
+ ## Cristal (Dousan Miao)
68
+
69
+ ```html
70
+ <button class="mk-button mk-glass">Copiar email</button>
71
+
72
+ <!-- con la sombra de gradiente de Dousan -->
73
+ <button class="mk-button mk-glass">
74
+ <span class="mk-glass__shadow" aria-hidden="true"></span>
75
+ Copiar email
76
+ </button>
77
+
78
+ <span class="mk-chip mk-glass">Shipped</span>
79
+ ```
80
+
81
+ El cristal de Dousan en un solo elemento, sin JS: superficie translúcida con `backdrop-filter: blur(4px)` y sombras interiores; un aro óptico (`::before`, degradado cónico enmascarado al borde) que gira de −75° a −125° al pasar el ratón (0.5 s); un brillo especular (`::after`, `mix-blend-mode: screen`) que se desliza al pasar y se inclina al presionar (0.5 s `cubic-bezier(.25,1,.5,1)`). Al pasar, el blur casi desaparece y la sombra se ajusta (0.4 s). Al presionar, `scale(.95)` con el resorte de Dousan (Motion 400/10, en CSS con `linear()`: `--mk-ease-press`, `--mk-dur-press`).
82
+
83
+ - Funciona en cualquier elemento: botón, enlace, chip. Necesita algo detrás (foto, color, degradado) para que se note el cristal.
84
+ - Claro u oscuro según el `color-scheme` del tema (`light-dark()`).
85
+ - `<span class="mk-glass__shadow">` añade la sombra de gradiente de Dousan bajo el botón. En Dousan es una capa hermana detrás de la superficie; aquí va dentro y una máscara deja ver solo su parte inferior.
86
+ - Sin `backdrop-filter`, el fondo pasa a ser casi opaco.
87
+ - Variables: `--mk-glass-blur` (4px), `--mk-glass-border` (ancho del aro), `--mk-glass-tint` (color del brillo), `--mk-glass-fg` (texto; por defecto `#121212` en claro y blanco en oscuro, como Dousan).
88
+ - Comprueba el contraste del texto sobre fondos claros, oscuros y fotos: el blur no sustituye a un color legible.
89
+
90
+ Origen: `dousanmiao.com`, botón `glass-btn` (CSS público analizado en `REA - Dousan OFFFICE Siena/dousan`). No es refracción: es una composición de capas, como en el original.
91
+
92
+ ## Hamburguesa (Siena)
93
+
94
+ ```html
95
+ <button class="mk-burger" aria-expanded="false" aria-label="Menú"><span></span><span></span><span></span></button>
96
+ ```
97
+
98
+ Tres líneas que se pliegan en una X cuando `aria-expanded="true"`: las de fuera giran ±45° y se acortan a .8, la del centro desaparece; 1.1 s con la curva de Siena (`cubic-bezier(.19,1,.22,1)`, `--mk-ease-siena`) y 50 ms de desfase. Cambia `aria-expanded` tu app (o el menú que abre). Siempre con `aria-label`. Variables: `--mk-burger-size` (24px), `--mk-burger-line` (1.5px), `--mk-burger-gap` (5px).
99
+
100
+ Origen: `siena.film`, `[data-menu=iconline]`.
101
+
102
+ ## Botón con texto que rueda (Siena)
103
+
104
+ ```html
105
+ <button class="mk-button mk-button--roll">
106
+ <span class="mk-roll" data-text="Explorar">Explorar</span>
107
+ <span class="mk-roll__arrow"><span class="mk-icon" data-icon="arrow_forward">arrow_forward</span></span>
108
+ </button>
109
+ ```
110
+
111
+ Al pasar el ratón, el texto sube (−150 %) y entra su copia (`data-text`), la flecha sale por la derecha y entra su copia (`data-icon`), y el botón se rellena con el color del texto (0.8 s, `--mk-ease-quint`, el texto 0.1 s después). En pantallas táctiles no cambia. Con movimiento reducido solo cambia el color.
112
+
113
+ Origen: `siena.film`, `[data-btn=explore]`.
114
+
115
+ ## Squash y vibración (Stepbro)
116
+
117
+ - `.mk-button` se aplasta un instante al recibir el foco por puntero (`scaleX(.95) scaleY(.9)`, 0.5 s `cubic-bezier(.37,1.42,.37,1)`). Stepbro lo hacía en todo `:focus`; aquí no rebota al tabular.
118
+ - Un campo `.mk-field` vibra (±5 px, 0.3 s) cada vez que pasa a `aria-invalid="true"`.
119
+
120
+ Origen: Stepbro `buttonClickAnimation` y `error-vibration`.
121
+
122
+ Todos quitan sus transiciones con `prefers-reduced-motion: reduce`.
@@ -0,0 +1,67 @@
1
+ /* .mk-burger — Siena's menu icon: three lines that fold into an X when aria-expanded="true" (1.1 s, Siena's curve). */
2
+ .mk-burger {
3
+ --mk-burger-size: 24px;
4
+ --mk-burger-line: 1.5px;
5
+ --mk-burger-gap: 5px;
6
+ display: inline-grid;
7
+ place-items: center;
8
+ width: calc(var(--mk-burger-size) + 16px);
9
+ height: calc(var(--mk-burger-size) + 16px);
10
+ padding: 0;
11
+ border: 0;
12
+ border-radius: var(--mk-radius-full);
13
+ background: transparent;
14
+ color: inherit;
15
+ cursor: pointer;
16
+ -webkit-tap-highlight-color: transparent;
17
+ }
18
+
19
+ .mk-burger > span {
20
+ grid-area: 1 / 1;
21
+ width: var(--mk-burger-size);
22
+ height: var(--mk-burger-line);
23
+ border-radius: var(--mk-burger-line);
24
+ background: currentColor;
25
+ transition: transform 1.1s var(--mk-ease-siena);
26
+ }
27
+
28
+ .mk-burger > span:nth-child(1) {
29
+ transform: translate3d(0, calc(var(--mk-burger-gap) * -1), 0);
30
+ transition-delay: 0s;
31
+ }
32
+
33
+ .mk-burger > span:nth-child(2) {
34
+ transform: translateZ(0);
35
+ transition-delay: 0.05s;
36
+ }
37
+
38
+ .mk-burger > span:nth-child(3) {
39
+ transform: translate3d(0, var(--mk-burger-gap), 0);
40
+ transition-delay: 0s;
41
+ }
42
+
43
+ .mk-burger[aria-expanded='true'] > span:nth-child(1) {
44
+ transform: translateZ(0) rotate(-45deg) scaleX(0.8);
45
+ transition-delay: 0.05s;
46
+ }
47
+
48
+ .mk-burger[aria-expanded='true'] > span:nth-child(2) {
49
+ transform: translateZ(0) scaleX(0);
50
+ transition-delay: 0s;
51
+ }
52
+
53
+ .mk-burger[aria-expanded='true'] > span:nth-child(3) {
54
+ transform: translateZ(0) rotate(45deg) scaleX(0.8);
55
+ transition-delay: 0.05s;
56
+ }
57
+
58
+ .mk-burger:focus-visible {
59
+ outline: 2px solid var(--mk-accent);
60
+ outline-offset: 2px;
61
+ }
62
+
63
+ @media (prefers-reduced-motion: reduce) {
64
+ .mk-burger > span {
65
+ transition: none;
66
+ }
67
+ }
@@ -0,0 +1,226 @@
1
+ /* .mk-button — Stepbro capsules. Default is the tonal primary container Stepbro uses on filled buttons. */
2
+ .mk-button {
3
+ --mk-button-bg: var(--mk-accent-soft);
4
+ --mk-button-fg: var(--mk-on-accent-soft);
5
+ --mk-button-height: 40px;
6
+ --mk-button-padding: 24px;
7
+ --mk-button-radius: var(--mk-radius-full);
8
+ position: relative;
9
+ display: inline-flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ gap: 8px;
13
+ min-height: var(--mk-button-height);
14
+ padding: 0 var(--mk-button-padding);
15
+ border: 0;
16
+ border-radius: var(--mk-button-radius);
17
+ background: var(--mk-button-bg);
18
+ color: var(--mk-button-fg);
19
+ font-family: var(--md-sys-typescale-label-large-font);
20
+ font-size: var(--md-sys-typescale-label-large-size);
21
+ line-height: var(--md-sys-typescale-label-large-line-height);
22
+ font-weight: var(--md-sys-typescale-label-large-weight);
23
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
24
+ text-decoration: none;
25
+ white-space: nowrap;
26
+ cursor: pointer;
27
+ isolation: isolate;
28
+ -webkit-tap-highlight-color: transparent;
29
+ transition:
30
+ transform 0.2s var(--mk-ease-signature),
31
+ border-radius 0.3s var(--mk-ease-signature),
32
+ background-color 0.25s ease,
33
+ color 0.25s ease;
34
+ }
35
+
36
+ /* Material state layer: the label colour at 8 % on hover, 10 % on focus and press. */
37
+ .mk-button::before {
38
+ position: absolute;
39
+ inset: 0;
40
+ z-index: -1;
41
+ border-radius: inherit;
42
+ background: currentColor;
43
+ content: '';
44
+ opacity: 0;
45
+ pointer-events: none;
46
+ transition: opacity 0.15s linear;
47
+ }
48
+
49
+ @media (hover: hover) {
50
+ .mk-button:hover::before {
51
+ opacity: 0.08;
52
+ }
53
+ }
54
+
55
+ .mk-button:focus-visible::before,
56
+ .mk-button:active::before {
57
+ opacity: 0.1;
58
+ }
59
+
60
+ .mk-button:active {
61
+ transform: scale(0.97);
62
+ }
63
+
64
+ .mk-button:focus-visible {
65
+ outline: 2px solid var(--mk-accent);
66
+ outline-offset: 2px;
67
+ }
68
+
69
+ .mk-button:disabled,
70
+ .mk-button[aria-disabled='true'] {
71
+ opacity: 0.38;
72
+ pointer-events: none;
73
+ }
74
+
75
+ .mk-button .mk-icon {
76
+ font-size: 18px;
77
+ }
78
+
79
+ .mk-button--primary {
80
+ --mk-button-bg: var(--mk-accent);
81
+ --mk-button-fg: var(--mk-on-accent);
82
+ }
83
+
84
+ .mk-button--tonal {
85
+ --mk-button-bg: var(--mk-secondary-soft);
86
+ --mk-button-fg: var(--mk-on-secondary-soft);
87
+ }
88
+
89
+ .mk-button--outlined {
90
+ --mk-button-bg: transparent;
91
+ --mk-button-fg: var(--mk-accent);
92
+ box-shadow: inset 0 0 0 1px var(--mk-outline-soft);
93
+ }
94
+
95
+ .mk-button--text {
96
+ --mk-button-bg: transparent;
97
+ --mk-button-fg: var(--mk-accent);
98
+ --mk-button-padding: 12px;
99
+ }
100
+
101
+ .mk-button--icon {
102
+ --mk-button-padding: 0;
103
+ width: var(--mk-button-height);
104
+ aspect-ratio: 1;
105
+ }
106
+
107
+ .mk-button--icon .mk-icon {
108
+ font-size: 24px;
109
+ }
110
+
111
+ /* Stepbro's small buttons: 32 px, 16 px sides, radius 12. */
112
+ .mk-button--sm {
113
+ --mk-button-height: 32px;
114
+ --mk-button-padding: 16px;
115
+ --mk-button-radius: var(--mk-radius-sm);
116
+ }
117
+
118
+ .mk-button--lg {
119
+ --mk-button-height: 48px;
120
+ --mk-button-padding: 32px;
121
+ }
122
+
123
+ @media (prefers-reduced-motion: reduce) {
124
+ .mk-button,
125
+ .mk-button::before {
126
+ transition: none;
127
+ }
128
+
129
+ .mk-button:active {
130
+ transform: none;
131
+ }
132
+ }
133
+
134
+ /* Stepbro's press squash (buttonClickAnimation), on pointer focus only so tabbing does not bounce. */
135
+ .mk-button:focus:not(:focus-visible) {
136
+ animation: mk-press 0.5s cubic-bezier(0.37, 1.42, 0.37, 1);
137
+ }
138
+
139
+ @keyframes mk-press {
140
+ 0% {
141
+ transform: scaleX(1) scaleY(1);
142
+ }
143
+
144
+ 50% {
145
+ transform: scaleX(0.95) scaleY(0.9);
146
+ }
147
+
148
+ to {
149
+ transform: scaleX(1);
150
+ }
151
+ }
152
+
153
+ /* Rolling label (Siena's Explore button): the text and its copy roll up, the arrow slides on, the fill inverts. */
154
+ .mk-button--roll {
155
+ overflow: hidden;
156
+ background: transparent;
157
+ box-shadow: inset 0 0 0 1px currentColor;
158
+ color: var(--mk-text);
159
+ transition:
160
+ background-color 0.8s var(--mk-ease-quint),
161
+ color 0.8s var(--mk-ease-quint) 0.1s;
162
+ }
163
+
164
+ .mk-button--roll::before {
165
+ display: none;
166
+ }
167
+
168
+ .mk-roll {
169
+ position: relative;
170
+ display: inline-block;
171
+ transition: transform 0.8s var(--mk-ease-quint) 0.1s;
172
+ }
173
+
174
+ .mk-roll::after {
175
+ position: absolute;
176
+ inset: 150% 0 auto;
177
+ content: attr(data-text);
178
+ }
179
+
180
+ .mk-roll__arrow {
181
+ position: relative;
182
+ display: inline-flex;
183
+ overflow: hidden;
184
+ }
185
+
186
+ .mk-roll__arrow > * {
187
+ position: relative;
188
+ transition: transform 0.8s var(--mk-ease-quint);
189
+ }
190
+
191
+ .mk-roll__arrow > *::before {
192
+ position: absolute;
193
+ right: 100%;
194
+ content: attr(data-icon);
195
+ }
196
+
197
+ @media (hover: hover) {
198
+ .mk-button--roll:hover {
199
+ background-color: var(--mk-text);
200
+ color: var(--mk-bg);
201
+ }
202
+
203
+ .mk-button--roll:hover .mk-roll {
204
+ transform: translateY(-150%);
205
+ }
206
+
207
+ .mk-button--roll:hover .mk-roll__arrow > * {
208
+ transform: translateX(100%);
209
+ }
210
+ }
211
+
212
+ @media (prefers-reduced-motion: reduce) {
213
+ .mk-button:focus:not(:focus-visible) {
214
+ animation: none;
215
+ }
216
+
217
+ .mk-roll,
218
+ .mk-roll__arrow > * {
219
+ transition: none;
220
+ }
221
+
222
+ .mk-button--roll:hover .mk-roll,
223
+ .mk-button--roll:hover .mk-roll__arrow > * {
224
+ transform: none;
225
+ }
226
+ }
@@ -0,0 +1,53 @@
1
+ /* .mk-checkbox — <input type="checkbox" class="mk-checkbox">: 18 px, radius 6 (Stepbro), check drawn in on-accent. */
2
+ .mk-checkbox {
3
+ position: relative;
4
+ display: inline-grid;
5
+ flex: none;
6
+ place-content: center;
7
+ width: 18px;
8
+ height: 18px;
9
+ margin: 0;
10
+ border-radius: 6px;
11
+ box-shadow: inset 0 0 0 2px var(--mk-outline);
12
+ cursor: pointer;
13
+ appearance: none;
14
+ transition:
15
+ background-color 0.2s ease,
16
+ box-shadow 0.2s ease;
17
+ }
18
+
19
+ .mk-checkbox::before {
20
+ width: 12px;
21
+ height: 12px;
22
+ background: var(--mk-on-accent);
23
+ clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
24
+ content: '';
25
+ transform: scale(0);
26
+ transition: transform 0.2s var(--mk-ease-signature);
27
+ }
28
+
29
+ .mk-checkbox:checked {
30
+ background: var(--mk-accent);
31
+ box-shadow: none;
32
+ }
33
+
34
+ .mk-checkbox:checked::before {
35
+ transform: scale(1);
36
+ }
37
+
38
+ .mk-checkbox:focus-visible {
39
+ outline: 2px solid var(--mk-accent);
40
+ outline-offset: 2px;
41
+ }
42
+
43
+ .mk-checkbox:disabled {
44
+ opacity: 0.38;
45
+ cursor: default;
46
+ }
47
+
48
+ @media (prefers-reduced-motion: reduce) {
49
+ .mk-checkbox,
50
+ .mk-checkbox::before {
51
+ transition: none;
52
+ }
53
+ }
@@ -0,0 +1,85 @@
1
+ /* .mk-chip — capsules on container-high; a pressed filter chip takes the primary container (Stepbro filter chips). */
2
+ .mk-chip {
3
+ position: relative;
4
+ display: inline-flex;
5
+ align-items: center;
6
+ gap: 8px;
7
+ height: 32px;
8
+ padding: 0 16px;
9
+ border: 0;
10
+ border-radius: var(--mk-radius-full);
11
+ background: var(--mk-surface-4);
12
+ color: var(--mk-text);
13
+ font-family: var(--md-sys-typescale-label-large-font);
14
+ font-size: var(--md-sys-typescale-label-large-size);
15
+ line-height: var(--md-sys-typescale-label-large-line-height);
16
+ font-weight: var(--md-sys-typescale-label-large-weight);
17
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
18
+ white-space: nowrap;
19
+ cursor: pointer;
20
+ isolation: isolate;
21
+ transition:
22
+ background-color 0.25s ease,
23
+ color 0.25s ease;
24
+ }
25
+
26
+ .mk-chip::before {
27
+ position: absolute;
28
+ inset: 0;
29
+ z-index: -1;
30
+ border-radius: inherit;
31
+ background: currentColor;
32
+ content: '';
33
+ opacity: 0;
34
+ pointer-events: none;
35
+ transition: opacity 0.15s linear;
36
+ }
37
+
38
+ @media (hover: hover) {
39
+ .mk-chip:hover::before {
40
+ opacity: 0.08;
41
+ }
42
+ }
43
+
44
+ .mk-chip:focus-visible {
45
+ outline: 2px solid var(--mk-accent);
46
+ outline-offset: 2px;
47
+ }
48
+
49
+ .mk-chip .mk-icon {
50
+ font-size: 18px;
51
+ }
52
+
53
+ .mk-chip--filter[aria-pressed='true'] {
54
+ background: var(--mk-accent-soft);
55
+ color: var(--mk-on-accent-soft);
56
+ }
57
+
58
+ /* Input chip: the remove button sits at the end. */
59
+ .mk-chip--input {
60
+ padding-right: 6px;
61
+ }
62
+
63
+ .mk-chip__remove {
64
+ display: grid;
65
+ place-items: center;
66
+ width: 22px;
67
+ height: 22px;
68
+ padding: 0;
69
+ border: 0;
70
+ border-radius: 50%;
71
+ background: transparent;
72
+ color: inherit;
73
+ cursor: pointer;
74
+ }
75
+
76
+ .mk-chip__remove:hover {
77
+ background: color-mix(in srgb, currentColor 12%, transparent);
78
+ }
79
+
80
+ @media (prefers-reduced-motion: reduce) {
81
+ .mk-chip,
82
+ .mk-chip::before {
83
+ transition: none;
84
+ }
85
+ }
@@ -0,0 +1,124 @@
1
+ /*
2
+ * .mk-field — Stepbro's filled fields: container-high background, radius 16,
3
+ * no bottom indicator; focus draws a ring in the accent colour.
4
+ * <label class="mk-field"><span class="mk-field__label">…</span><input>…<span class="mk-field__hint">…</span></label>
5
+ */
6
+ .mk-field {
7
+ --mk-field-bg: var(--mk-surface-4);
8
+ --mk-field-radius: var(--mk-radius-md);
9
+ display: grid;
10
+ gap: 6px;
11
+ min-width: 0;
12
+ }
13
+
14
+ .mk-field__label {
15
+ color: var(--mk-muted);
16
+ font-family: var(--md-sys-typescale-label-medium-font);
17
+ font-size: var(--md-sys-typescale-label-medium-size);
18
+ line-height: var(--md-sys-typescale-label-medium-line-height);
19
+ font-weight: var(--md-sys-typescale-label-medium-weight);
20
+ letter-spacing: var(--md-sys-typescale-label-medium-tracking);
21
+ }
22
+
23
+ .mk-field :is(input, textarea, select) {
24
+ width: 100%;
25
+ min-height: 56px;
26
+ margin: 0;
27
+ padding: 16px;
28
+ border: 0;
29
+ border-radius: var(--mk-field-radius);
30
+ background-color: var(--mk-field-bg);
31
+ color: var(--mk-text);
32
+ font-family: var(--md-sys-typescale-body-large-font);
33
+ font-size: var(--md-sys-typescale-body-large-size);
34
+ line-height: var(--md-sys-typescale-body-large-line-height);
35
+ letter-spacing: var(--md-sys-typescale-body-large-tracking);
36
+ outline: none;
37
+ appearance: none;
38
+ transition:
39
+ box-shadow 0.2s ease,
40
+ background-color 0.25s ease;
41
+ }
42
+
43
+ .mk-field textarea {
44
+ min-height: 96px;
45
+ resize: vertical;
46
+ }
47
+
48
+ /* A caret drawn with gradients so it follows the text colour. */
49
+ .mk-field select {
50
+ padding-right: 44px;
51
+ background-image:
52
+ linear-gradient(45deg, transparent 50%, currentColor 50%),
53
+ linear-gradient(135deg, currentColor 50%, transparent 50%);
54
+ background-position:
55
+ calc(100% - 22px) 50%,
56
+ calc(100% - 17px) 50%;
57
+ background-size: 5px 5px;
58
+ background-repeat: no-repeat;
59
+ }
60
+
61
+ .mk-field :is(input, textarea, select)::placeholder {
62
+ color: var(--mk-muted);
63
+ opacity: 0.7;
64
+ }
65
+
66
+ .mk-field :is(input, textarea, select):focus-visible {
67
+ box-shadow: inset 0 0 0 2px var(--mk-accent);
68
+ }
69
+
70
+ .mk-field :is(input, textarea, select):disabled {
71
+ opacity: 0.38;
72
+ }
73
+
74
+ .mk-field :is(input, textarea, select)[aria-invalid='true'] {
75
+ background-color: var(--mk-error-soft);
76
+ color: var(--mk-on-error-soft);
77
+ animation: mk-vibrate 0.3s;
78
+ }
79
+
80
+ /* Stepbro's error vibration: plays each time the field becomes invalid. */
81
+ @keyframes mk-vibrate {
82
+ 0% {
83
+ transform: translate(0);
84
+ }
85
+
86
+ 20% {
87
+ transform: translate(-5px);
88
+ }
89
+
90
+ 40% {
91
+ transform: translate(5px);
92
+ }
93
+
94
+ 60% {
95
+ transform: translate(-5px);
96
+ }
97
+
98
+ 80% {
99
+ transform: translate(5px);
100
+ }
101
+
102
+ to {
103
+ transform: translate(0);
104
+ }
105
+ }
106
+
107
+ .mk-field__hint {
108
+ color: var(--mk-muted);
109
+ font-family: var(--md-sys-typescale-body-small-font);
110
+ font-size: var(--md-sys-typescale-body-small-size);
111
+ line-height: var(--md-sys-typescale-body-small-line-height);
112
+ letter-spacing: var(--md-sys-typescale-body-small-tracking);
113
+ }
114
+
115
+ .mk-field:has([aria-invalid='true']) .mk-field__hint {
116
+ color: var(--mk-error);
117
+ }
118
+
119
+ @media (prefers-reduced-motion: reduce) {
120
+ .mk-field :is(input, textarea, select) {
121
+ transition: none;
122
+ animation: none;
123
+ }
124
+ }