@eluan/core 0.5.1 → 0.7.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 (417) hide show
  1. package/README.md +41 -3
  2. package/bin/eluan.mjs +75 -0
  3. package/bin/lib/check.mjs +271 -0
  4. package/bin/lib/skill.mjs +123 -0
  5. package/dist/{action-popover-D6K9aVFk.cjs → action-popover-Bt7U0g8y.cjs} +1 -1
  6. package/dist/{action-popover-BVJQBuky.js → action-popover-jEeycwXM.js} +2 -2
  7. package/dist/action-popover.cjs +1 -1
  8. package/dist/action-popover.js +1 -1
  9. package/dist/{avatar-CS5f1irF.js → avatar-C1LUOzjw.js} +1 -1
  10. package/dist/{avatar-Co-k8KqV.cjs → avatar-SwIO4oyt.cjs} +1 -1
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.js +1 -1
  13. package/dist/badge-BLInSFM-.cjs +1 -0
  14. package/dist/{badge-D9NYZFWH.js → badge-Bj7i1Xf5.js} +20 -18
  15. package/dist/badge.cjs +1 -1
  16. package/dist/badge.js +1 -1
  17. package/dist/{banner-CyYFLZXw.js → banner-BqEziMp4.js} +11 -12
  18. package/dist/banner-C8OECYHz.cjs +1 -0
  19. package/dist/banner.cjs +1 -1
  20. package/dist/banner.js +1 -1
  21. package/dist/box-DG-tkaYi.cjs +1 -0
  22. package/dist/box-DKbNgGGG.js +17 -0
  23. package/dist/box.cjs +1 -0
  24. package/dist/box.d.ts +1 -0
  25. package/dist/box.js +5 -0
  26. package/dist/{breadcrumb-NWXeCH5q.cjs → breadcrumb-BGH_YhOZ.cjs} +1 -1
  27. package/dist/{breadcrumb-Cm1nb9Xj.js → breadcrumb-BVXSOA4Z.js} +2 -2
  28. package/dist/breadcrumb.cjs +1 -1
  29. package/dist/breadcrumb.js +1 -1
  30. package/dist/button-BUHQOcAo.cjs +1 -0
  31. package/dist/{button-ANAPDrvs.js → button-fCYiYUPE.js} +69 -60
  32. package/dist/button.cjs +1 -1
  33. package/dist/button.js +1 -1
  34. package/dist/calendar-2s_jGUBa.cjs +76 -0
  35. package/dist/{calendar-BpBsomy5.js → calendar-BN9BkjO_.js} +22 -22
  36. package/dist/calendar.cjs +1 -1
  37. package/dist/calendar.js +1 -1
  38. package/dist/card-CfSvhkGH.js +81 -0
  39. package/dist/card-DlP39QSZ.cjs +1 -0
  40. package/dist/card.cjs +1 -1
  41. package/dist/card.js +1 -1
  42. package/dist/{carousel-DuP0hvF-.js → carousel-BO6KUdP8.js} +1 -1
  43. package/dist/{carousel-BfL7oy_q.cjs → carousel-dypuabh8.cjs} +1 -1
  44. package/dist/carousel.cjs +1 -1
  45. package/dist/carousel.js +1 -1
  46. package/dist/{checkbox-Bi0Kmuut.js → checkbox-CGUTGery.js} +1 -1
  47. package/dist/{checkbox-M8DmWKiC.cjs → checkbox-Cq9sHU_S.cjs} +1 -1
  48. package/dist/{checkbox-group-KBwPhjmW.cjs → checkbox-group-DGXZ4o2-.cjs} +1 -1
  49. package/dist/{checkbox-group-CQMEJnhD.js → checkbox-group-Tkio3IhK.js} +1 -1
  50. package/dist/checkbox-group.cjs +1 -1
  51. package/dist/checkbox-group.js +1 -1
  52. package/dist/checkbox.cjs +1 -1
  53. package/dist/checkbox.js +1 -1
  54. package/dist/{code-block-C9u140Ob.js → code-block-CAXUOKNI.js} +10 -10
  55. package/dist/{code-block-_dFw7Su1.cjs → code-block-Co8uGXiG.cjs} +2 -2
  56. package/dist/code-block.cjs +1 -1
  57. package/dist/code-block.js +1 -1
  58. package/dist/command-C50Jkuv7.js +132 -0
  59. package/dist/command-DqNgPVsf.cjs +9 -0
  60. package/dist/command.cjs +1 -1
  61. package/dist/command.js +1 -1
  62. package/dist/components/box.d.ts +12 -0
  63. package/dist/components/card.d.ts +7 -2
  64. package/dist/components/grid.d.ts +35 -0
  65. package/dist/components/icon.d.ts +26 -0
  66. package/dist/components/input.d.ts +1 -1
  67. package/dist/components/layout-shared.d.ts +307 -0
  68. package/dist/components/navigation-drawer.d.ts +25 -5
  69. package/dist/components/row.d.ts +18 -0
  70. package/dist/components/stack.d.ts +14 -0
  71. package/dist/components/table.d.ts +8 -4
  72. package/dist/components/tone-shared.d.ts +39 -0
  73. package/dist/components/typography.d.ts +22 -2
  74. package/dist/components/visually-hidden.d.ts +11 -0
  75. package/dist/{context-menu-Bd6m1RYU.js → context-menu-CTyczUjx.js} +34 -34
  76. package/dist/context-menu-oQ6xMN6t.cjs +1 -0
  77. package/dist/context-menu.cjs +1 -1
  78. package/dist/context-menu.js +1 -1
  79. package/dist/{credit-card-input-CUqA9CX3.cjs → credit-card-input-C6oNQBAl.cjs} +1 -1
  80. package/dist/{credit-card-input-DN-8vaFj.js → credit-card-input-aYftFdRo.js} +1 -1
  81. package/dist/credit-card-input.cjs +1 -1
  82. package/dist/credit-card-input.js +1 -1
  83. package/dist/{date-picker-ni8td8Ru.js → date-picker-DK-G61Nn.js} +3 -3
  84. package/dist/{date-picker-DGBsfZXx.cjs → date-picker-D_aU_P3A.cjs} +1 -1
  85. package/dist/date-picker.cjs +1 -1
  86. package/dist/date-picker.js +1 -1
  87. package/dist/{datetime-picker-C1d63MaA.cjs → datetime-picker-897BvwxW.cjs} +1 -1
  88. package/dist/{datetime-picker-DsnHYRK-.js → datetime-picker-CECtSobs.js} +4 -4
  89. package/dist/datetime-picker.cjs +1 -1
  90. package/dist/datetime-picker.js +1 -1
  91. package/dist/decimal-input-B7IHYVXP.cjs +1 -0
  92. package/dist/decimal-input-ohejnbQg.js +177 -0
  93. package/dist/decimal-input.cjs +1 -1
  94. package/dist/decimal-input.js +1 -1
  95. package/dist/dialog-DIGW7qln.cjs +1 -0
  96. package/dist/dialog-DVhnZFqE.js +64 -0
  97. package/dist/dialog.cjs +1 -1
  98. package/dist/dialog.js +1 -1
  99. package/dist/dropdown-menu-BV2rX_ow.cjs +1 -0
  100. package/dist/dropdown-menu-C6NPtU9J.js +115 -0
  101. package/dist/dropdown-menu.cjs +1 -1
  102. package/dist/dropdown-menu.js +1 -1
  103. package/dist/{email-input-pX0hlYV3.js → email-input-CRd87a_c.js} +1 -1
  104. package/dist/{email-input-DFI4h_KN.cjs → email-input-Dvj1xSzJ.cjs} +1 -1
  105. package/dist/email-input.cjs +1 -1
  106. package/dist/email-input.js +1 -1
  107. package/dist/{fieldset-5V8wx-KE.js → fieldset-BxINrO_H.js} +6 -6
  108. package/dist/fieldset-C6cahGeV.cjs +1 -0
  109. package/dist/fieldset.cjs +1 -1
  110. package/dist/fieldset.js +1 -1
  111. package/dist/file-input-BzYcnore.cjs +1 -0
  112. package/dist/{file-input-B_aBgxmT.js → file-input-Ch16hNA1.js} +55 -55
  113. package/dist/file-input.cjs +1 -1
  114. package/dist/file-input.js +1 -1
  115. package/dist/{footer-DB0_-IwN.cjs → footer-B-fRLhqP.cjs} +1 -1
  116. package/dist/{footer-B3KUIwXW.js → footer-BiiV6-ZD.js} +9 -9
  117. package/dist/footer.cjs +1 -1
  118. package/dist/footer.js +1 -1
  119. package/dist/grid-BDz4Xs6M.cjs +1 -0
  120. package/dist/grid-BX5vZjDo.js +612 -0
  121. package/dist/grid.cjs +1 -0
  122. package/dist/grid.d.ts +1 -0
  123. package/dist/grid.js +5 -0
  124. package/dist/header-CvhqGcuo.cjs +1 -0
  125. package/dist/{header-CDOWlOAR.js → header-DwvyTpRi.js} +22 -22
  126. package/dist/header.cjs +1 -1
  127. package/dist/header.js +1 -1
  128. package/dist/hover-card-BQpzaazK.js +21 -0
  129. package/dist/{hover-card-C5KsTSZR.cjs → hover-card-V5A1HzEu.cjs} +1 -1
  130. package/dist/hover-card.cjs +1 -1
  131. package/dist/hover-card.js +1 -1
  132. package/dist/icon-BmLOodCQ.cjs +1 -0
  133. package/dist/icon-BwDfkIdR.js +153 -0
  134. package/dist/icon.cjs +1 -0
  135. package/dist/icon.d.ts +1 -0
  136. package/dist/icon.js +5 -0
  137. package/dist/index.cjs +10 -5
  138. package/dist/index.d.ts +6 -0
  139. package/dist/index.js +593 -516
  140. package/dist/input-Dtr0tlf7.cjs +1 -0
  141. package/dist/input-Zs45H33i.js +131 -0
  142. package/dist/input-otp-D-T32R3O.cjs +1 -0
  143. package/dist/{input-otp-DmEGB1nu.js → input-otp-DwdX6VlR.js} +33 -33
  144. package/dist/input-otp.cjs +1 -1
  145. package/dist/input-otp.js +1 -1
  146. package/dist/input.cjs +1 -1
  147. package/dist/input.js +1 -1
  148. package/dist/layout-shared-B_1iX4Hj.js +319 -0
  149. package/dist/layout-shared-CsBZcT4V.cjs +1 -0
  150. package/dist/{menubar-F1_bhmku.js → menubar-CodcV4b7.js} +28 -28
  151. package/dist/menubar-bOYi1jKo.cjs +1 -0
  152. package/dist/menubar.cjs +1 -1
  153. package/dist/menubar.js +1 -1
  154. package/dist/multi-select-ChfbxrG3.js +85 -0
  155. package/dist/multi-select-D573XqUT.cjs +1 -0
  156. package/dist/multi-select.cjs +1 -1
  157. package/dist/multi-select.js +1 -1
  158. package/dist/navigation-drawer-C7YYtBXz.js +198 -0
  159. package/dist/navigation-drawer-Cu2q1NMn.cjs +1 -0
  160. package/dist/navigation-drawer.cjs +1 -1
  161. package/dist/navigation-drawer.js +1 -1
  162. package/dist/{navigation-menu-BjA-PdMY.js → navigation-menu-BEp603xA.js} +16 -16
  163. package/dist/{navigation-menu-BtpLfxHN.cjs → navigation-menu-tw5cD7mL.cjs} +2 -2
  164. package/dist/navigation-menu.cjs +1 -1
  165. package/dist/navigation-menu.js +1 -1
  166. package/dist/number-input-C1RS-p2C.js +66 -0
  167. package/dist/number-input-N3-IvxZT.cjs +1 -0
  168. package/dist/number-input.cjs +1 -1
  169. package/dist/number-input.js +1 -1
  170. package/dist/{pagination-4IuE_APs.cjs → pagination-C6e9oVes.cjs} +1 -1
  171. package/dist/{pagination-DTWRjiOm.js → pagination-XlaE-Plb.js} +32 -32
  172. package/dist/pagination.cjs +1 -1
  173. package/dist/pagination.js +1 -1
  174. package/dist/{password-input-B9V45d3Q.js → password-input-CR6FT6Rh.js} +2 -2
  175. package/dist/{password-input-BwnlHPbX.cjs → password-input-CZ19HPZd.cjs} +1 -1
  176. package/dist/password-input.cjs +1 -1
  177. package/dist/password-input.js +1 -1
  178. package/dist/{phone-input-BQjZj5jI.cjs → phone-input-BZhkLmI6.cjs} +1 -1
  179. package/dist/{phone-input-CSBpGHvI.js → phone-input-CT9W87M7.js} +2 -2
  180. package/dist/phone-input.cjs +1 -1
  181. package/dist/phone-input.js +1 -1
  182. package/dist/popover-CE0n5BQv.cjs +1 -0
  183. package/dist/popover-CguR4kP7.js +70 -0
  184. package/dist/popover.cjs +1 -1
  185. package/dist/popover.js +1 -1
  186. package/dist/{progress-Dz_it5I-.js → progress-BpUNvswZ.js} +8 -7
  187. package/dist/progress-DSy_jRee.cjs +1 -0
  188. package/dist/progress.cjs +1 -1
  189. package/dist/progress.js +1 -1
  190. package/dist/providers/create-theme.d.ts +11 -2
  191. package/dist/providers/eluan-provider.d.ts +8 -6
  192. package/dist/{radio-group-C--1neiq.cjs → radio-group-9gozRouT.cjs} +1 -1
  193. package/dist/{radio-group-CNMPZx_2.js → radio-group-Bs9933bk.js} +6 -6
  194. package/dist/radio-group.cjs +1 -1
  195. package/dist/radio-group.js +1 -1
  196. package/dist/{rich-text-BZSyuYSo.js → rich-text-CuAa5WkV.js} +21 -21
  197. package/dist/{rich-text-DerWxzdn.cjs → rich-text-p7H-0qE7.cjs} +2 -2
  198. package/dist/rich-text.cjs +1 -1
  199. package/dist/rich-text.js +1 -1
  200. package/dist/row-BYAk7G5d.js +37 -0
  201. package/dist/row-Bjn-GQAC.cjs +1 -0
  202. package/dist/row.cjs +1 -0
  203. package/dist/row.d.ts +1 -0
  204. package/dist/row.js +5 -0
  205. package/dist/{search-input-bFNW6oiE.js → search-input-CxKLBmii.js} +53 -53
  206. package/dist/{search-input-Dmmo-BEL.cjs → search-input-XmoL2YjY.cjs} +1 -1
  207. package/dist/search-input.cjs +1 -1
  208. package/dist/search-input.js +1 -1
  209. package/dist/select-BCDam7PR.cjs +1 -0
  210. package/dist/select-QgjG43ye.js +119 -0
  211. package/dist/select.cjs +1 -1
  212. package/dist/select.js +1 -1
  213. package/dist/sheet-BxNmBMti.cjs +1 -0
  214. package/dist/{sheet-D5HWF66e.js → sheet-D0hVuH9a.js} +7 -7
  215. package/dist/sheet.cjs +1 -1
  216. package/dist/sheet.js +1 -1
  217. package/dist/slider-Cv7uIp4z.js +16 -0
  218. package/dist/slider-Dci7KGjg.cjs +1 -0
  219. package/dist/slider.cjs +1 -1
  220. package/dist/slider.js +1 -1
  221. package/dist/stack-Ck1w2iJu.cjs +1 -0
  222. package/dist/stack-D2btWM1t.js +27 -0
  223. package/dist/stack.cjs +1 -0
  224. package/dist/stack.d.ts +1 -0
  225. package/dist/stack.js +5 -0
  226. package/dist/{stepper-D5nDwJUz.cjs → stepper-ByYKX7qw.cjs} +1 -1
  227. package/dist/{stepper-BtlKiHtd.js → stepper-Copsj87A.js} +4 -4
  228. package/dist/stepper.cjs +1 -1
  229. package/dist/stepper.js +1 -1
  230. package/dist/styles.css +1205 -189
  231. package/dist/switch-DQ4R-gjR.cjs +1 -0
  232. package/dist/switch-WaESqUuN.js +9 -0
  233. package/dist/switch.cjs +1 -1
  234. package/dist/switch.js +1 -1
  235. package/dist/table-YKEWGYnI.js +149 -0
  236. package/dist/table-zbkgP43L.cjs +1 -0
  237. package/dist/table.cjs +1 -1
  238. package/dist/table.js +1 -1
  239. package/dist/tabs-BwNIi7Dl.js +22 -0
  240. package/dist/tabs-DItFd2o9.cjs +1 -0
  241. package/dist/tabs.cjs +1 -1
  242. package/dist/tabs.js +1 -1
  243. package/dist/textarea-BWAPWDRt.js +8 -0
  244. package/dist/textarea-CniUTipL.cjs +1 -0
  245. package/dist/textarea.cjs +1 -1
  246. package/dist/textarea.js +1 -1
  247. package/dist/{time-input-BPoFvoeM.js → time-input-CeJVQKWO.js} +68 -68
  248. package/dist/time-input-eVFFYo10.cjs +1 -0
  249. package/dist/time-input.cjs +1 -1
  250. package/dist/time-input.js +1 -1
  251. package/dist/{toast-BK0ulAzi.cjs → toast-84RpQJtn.cjs} +1 -1
  252. package/dist/{toast-hI3pdZ2X.js → toast-BGKaAZwf.js} +1 -1
  253. package/dist/toast.cjs +1 -1
  254. package/dist/toast.js +1 -1
  255. package/dist/{toggle-Dv1VZ5Le.js → toggle-CxHqX2-V.js} +11 -11
  256. package/dist/toggle-DrJJAflI.cjs +1 -0
  257. package/dist/toggle-group-DvoxSJMq.cjs +1 -0
  258. package/dist/{toggle-group-DE8BPZih.js → toggle-group-k-kiBnEe.js} +21 -21
  259. package/dist/toggle-group.cjs +1 -1
  260. package/dist/toggle-group.js +1 -1
  261. package/dist/toggle.cjs +1 -1
  262. package/dist/toggle.js +1 -1
  263. package/dist/{tooltip-DZqn4wKl.js → tooltip-1Biy6A0m.js} +3 -3
  264. package/dist/{tooltip-faf1dIXp.cjs → tooltip-DIerl2vz.cjs} +1 -1
  265. package/dist/tooltip.cjs +1 -1
  266. package/dist/tooltip.js +1 -1
  267. package/dist/{tree-view-CyeJR7cW.js → tree-view-Bswh2RGr.js} +37 -37
  268. package/dist/tree-view-DDX9QjzF.cjs +1 -0
  269. package/dist/tree-view.cjs +1 -1
  270. package/dist/tree-view.js +1 -1
  271. package/dist/visually-hidden-BQMRYGxP.js +14 -0
  272. package/dist/visually-hidden-DzxxOswl.cjs +1 -0
  273. package/dist/visually-hidden.cjs +1 -0
  274. package/dist/visually-hidden.d.ts +1 -0
  275. package/dist/visually-hidden.js +5 -0
  276. package/package.json +12 -8
  277. package/skills/eluan/DESIGN.md +411 -0
  278. package/skills/eluan/SKILL.md +202 -0
  279. package/skills/eluan/components/accordion.md +212 -0
  280. package/skills/eluan/components/action-popover.md +266 -0
  281. package/skills/eluan/components/aspect-ratio.md +169 -0
  282. package/skills/eluan/components/avatar.md +277 -0
  283. package/skills/eluan/components/badge.md +190 -0
  284. package/skills/eluan/components/banner.md +247 -0
  285. package/skills/eluan/components/box.md +166 -0
  286. package/skills/eluan/components/breadcrumb.md +240 -0
  287. package/skills/eluan/components/button.md +214 -0
  288. package/skills/eluan/components/calendar.md +192 -0
  289. package/skills/eluan/components/card.md +271 -0
  290. package/skills/eluan/components/carousel.md +274 -0
  291. package/skills/eluan/components/checkbox-group.md +228 -0
  292. package/skills/eluan/components/checkbox.md +226 -0
  293. package/skills/eluan/components/code-block.md +193 -0
  294. package/skills/eluan/components/collapsible.md +240 -0
  295. package/skills/eluan/components/command.md +359 -0
  296. package/skills/eluan/components/context-menu.md +296 -0
  297. package/skills/eluan/components/credit-card-input.md +217 -0
  298. package/skills/eluan/components/date-picker.md +255 -0
  299. package/skills/eluan/components/date-time-picker.md +196 -0
  300. package/skills/eluan/components/decimal-input.md +232 -0
  301. package/skills/eluan/components/dialog.md +322 -0
  302. package/skills/eluan/components/drawer.md +292 -0
  303. package/skills/eluan/components/dropdown-menu.md +450 -0
  304. package/skills/eluan/components/email-input.md +200 -0
  305. package/skills/eluan/components/fieldset.md +219 -0
  306. package/skills/eluan/components/file-input.md +249 -0
  307. package/skills/eluan/components/footer.md +290 -0
  308. package/skills/eluan/components/form-label.md +254 -0
  309. package/skills/eluan/components/grid.md +192 -0
  310. package/skills/eluan/components/header.md +242 -0
  311. package/skills/eluan/components/hover-card.md +215 -0
  312. package/skills/eluan/components/icon.md +161 -0
  313. package/skills/eluan/components/input-otp.md +227 -0
  314. package/skills/eluan/components/input.md +249 -0
  315. package/skills/eluan/components/kbd.md +216 -0
  316. package/skills/eluan/components/media.md +244 -0
  317. package/skills/eluan/components/menubar.md +300 -0
  318. package/skills/eluan/components/multi-select.md +221 -0
  319. package/skills/eluan/components/navigation-drawer.md +297 -0
  320. package/skills/eluan/components/navigation-menu.md +291 -0
  321. package/skills/eluan/components/number-input.md +190 -0
  322. package/skills/eluan/components/pagination.md +262 -0
  323. package/skills/eluan/components/password-input.md +218 -0
  324. package/skills/eluan/components/phone-input.md +205 -0
  325. package/skills/eluan/components/popover.md +250 -0
  326. package/skills/eluan/components/progress.md +185 -0
  327. package/skills/eluan/components/radio-group.md +232 -0
  328. package/skills/eluan/components/rich-text.md +195 -0
  329. package/skills/eluan/components/row.md +174 -0
  330. package/skills/eluan/components/scroll-area.md +203 -0
  331. package/skills/eluan/components/search-input.md +281 -0
  332. package/skills/eluan/components/segmented-control.md +201 -0
  333. package/skills/eluan/components/select.md +296 -0
  334. package/skills/eluan/components/separator.md +179 -0
  335. package/skills/eluan/components/sheet.md +326 -0
  336. package/skills/eluan/components/skeleton.md +202 -0
  337. package/skills/eluan/components/slider.md +195 -0
  338. package/skills/eluan/components/spinner.md +187 -0
  339. package/skills/eluan/components/stack.md +158 -0
  340. package/skills/eluan/components/stepper.md +236 -0
  341. package/skills/eluan/components/switch.md +218 -0
  342. package/skills/eluan/components/table.md +348 -0
  343. package/skills/eluan/components/tabs.md +277 -0
  344. package/skills/eluan/components/textarea.md +202 -0
  345. package/skills/eluan/components/time-input.md +181 -0
  346. package/skills/eluan/components/toast.md +251 -0
  347. package/skills/eluan/components/toggle-group.md +241 -0
  348. package/skills/eluan/components/toggle.md +198 -0
  349. package/skills/eluan/components/tooltip.md +222 -0
  350. package/skills/eluan/components/tree-view.md +213 -0
  351. package/skills/eluan/components/typography.md +210 -0
  352. package/skills/eluan/components/visually-hidden.md +132 -0
  353. package/skills/eluan/foundations/colour.md +257 -0
  354. package/skills/eluan/foundations/elevation.md +86 -0
  355. package/skills/eluan/foundations/iconography.md +70 -0
  356. package/skills/eluan/foundations/look.md +135 -0
  357. package/skills/eluan/foundations/motion.md +60 -0
  358. package/skills/eluan/foundations/radius.md +73 -0
  359. package/skills/eluan/foundations/spacing.md +98 -0
  360. package/skills/eluan/foundations/theming.md +212 -0
  361. package/skills/eluan/foundations/typography.md +169 -0
  362. package/skills/eluan/patterns/app-shell.md +222 -0
  363. package/skills/eluan/patterns/dashboard.md +249 -0
  364. package/skills/eluan/patterns/empty-states.md +78 -0
  365. package/skills/eluan/patterns/feedback.md +95 -0
  366. package/skills/eluan/patterns/forms.md +138 -0
  367. package/skills/eluan/patterns/navigation.md +96 -0
  368. package/skills/eluan/patterns/page-layout.md +185 -0
  369. package/dist/badge-DXKWztL-.cjs +0 -1
  370. package/dist/banner-COlEFRuK.cjs +0 -1
  371. package/dist/button-Ny6OF8Un.cjs +0 -1
  372. package/dist/calendar-7LX5YGGT.cjs +0 -76
  373. package/dist/card-BC_4C3ns.js +0 -70
  374. package/dist/card-C88--zB4.cjs +0 -1
  375. package/dist/command-BCl0seLL.cjs +0 -9
  376. package/dist/command-Chs5VlBL.js +0 -132
  377. package/dist/context-menu-1WehRCpR.cjs +0 -1
  378. package/dist/decimal-input-BLmifKF2.cjs +0 -1
  379. package/dist/decimal-input-yTk35W_5.js +0 -177
  380. package/dist/dialog-B8eWKqzS.js +0 -64
  381. package/dist/dialog-DWYtFhZl.cjs +0 -1
  382. package/dist/dropdown-menu-_h_fqgvS.cjs +0 -1
  383. package/dist/dropdown-menu-p0NkOoTP.js +0 -115
  384. package/dist/fieldset-C3aAINhi.cjs +0 -1
  385. package/dist/file-input-D62FEnKg.cjs +0 -1
  386. package/dist/header-CiZQY_7S.cjs +0 -1
  387. package/dist/hover-card-C_FCzE41.js +0 -21
  388. package/dist/input-BrGJn-D9.cjs +0 -1
  389. package/dist/input-Cccufiqn.js +0 -128
  390. package/dist/input-otp-DcZ7wyjs.cjs +0 -1
  391. package/dist/menubar-CKWQEl7c.cjs +0 -1
  392. package/dist/multi-select-B6NBbDCW.js +0 -85
  393. package/dist/multi-select-kcoUbSwE.cjs +0 -1
  394. package/dist/navigation-drawer-BbeDYPhu.js +0 -171
  395. package/dist/navigation-drawer-DOOHfbY3.cjs +0 -1
  396. package/dist/number-input-Bc7jUsu-.cjs +0 -1
  397. package/dist/number-input-vICbRc2y.js +0 -66
  398. package/dist/popover-DPc4rRsR.js +0 -70
  399. package/dist/popover-Db6VOysz.cjs +0 -1
  400. package/dist/progress-DpQjGEyn.cjs +0 -1
  401. package/dist/select-1Eb3NSrR.cjs +0 -1
  402. package/dist/select-DDSYjKtj.js +0 -119
  403. package/dist/sheet-7NP1LuHy.cjs +0 -1
  404. package/dist/slider-CZQBAXup.js +0 -16
  405. package/dist/slider-DdEOapYP.cjs +0 -1
  406. package/dist/switch-C7EBLT5H.js +0 -9
  407. package/dist/switch-KzBijHMJ.cjs +0 -1
  408. package/dist/table-DopzfXYj.js +0 -101
  409. package/dist/table-xNu_KUaU.cjs +0 -1
  410. package/dist/tabs-C9NKBmH0.js +0 -22
  411. package/dist/tabs-DztJ2iVc.cjs +0 -1
  412. package/dist/textarea-DXUk1b_-.js +0 -8
  413. package/dist/textarea-Dl-daLHR.cjs +0 -1
  414. package/dist/time-input-DR2snTgB.cjs +0 -1
  415. package/dist/toggle-Bvh1v32T.cjs +0 -1
  416. package/dist/toggle-group-SyHMwO90.cjs +0 -1
  417. package/dist/tree-view-CNvEc1TT.cjs +0 -1
@@ -0,0 +1,411 @@
1
+ ---
2
+ name: Eluan
3
+ description: "Design tokens for apps built with @eluan/core. Token names are the CSS custom properties without the leading dashes."
4
+ source: "the built-in eluan theme, with @eluan/tokens 0.5.0"
5
+ defaults:
6
+ mode: light
7
+ spacing: standard
8
+ curves: sweeping
9
+ typeset: fluid
10
+ colors:
11
+ light:
12
+ container-bg: oklch(1.0000 0.0000 0.00)
13
+ container-bg-alt: oklch(0.9522 0.0070 124.45)
14
+ container-bg-inverse: oklch(0.4767 0.0377 119.25)
15
+ container-border: oklch(0.9522 0.0070 124.45)
16
+ container-border-alt: oklch(0.8827 0.0165 118.16)
17
+ container-border-inverse: "color-mix(in oklch, oklch(0.5744 0.0466 119.64) 65%, oklch(0.4767 0.0377 119.25))"
18
+ container-fg: oklch(0.3738 0.0284 118.54)
19
+ container-fg-alt: oklch(0.4767 0.0377 119.25)
20
+ container-fg-inverse: oklch(1.0000 0.0000 0.00)
21
+ interactive-bg: oklch(1.0000 0.0000 0.00)
22
+ interactive-bg-alt: oklch(0.9868 0.0028 128.49)
23
+ interactive-bg-alt2: oklch(0.9522 0.0070 124.45)
24
+ interactive-bg-disabled: oklch(0.9522 0.0070 124.45)
25
+ interactive-bg-hover: oklch(0.9522 0.0070 124.45)
26
+ interactive-bg-active: oklch(0.6717 0.2205 37.86)
27
+ interactive-bg-selected: oklch(0.6717 0.2205 37.86)
28
+ interactive-bg-inverse: oklch(0.3738 0.0284 118.54)
29
+ interactive-border: oklch(0.9522 0.0070 124.45)
30
+ interactive-border-alt: oklch(0.8827 0.0165 118.16)
31
+ interactive-border-disabled: oklch(0.9522 0.0070 124.45)
32
+ interactive-fg: oklch(0.3738 0.0284 118.54)
33
+ interactive-fg-alt: "color-mix(in oklch, oklch(0.5744 0.0466 119.64) 65%, oklch(0.4767 0.0377 119.25))"
34
+ interactive-fg-readonly: oklch(0.4767 0.0377 119.25)
35
+ interactive-fg-disabled: oklch(0.7378 0.0385 119.16)
36
+ interactive-fg-active: oklch(1.0000 0.0000 0.00)
37
+ interactive-fg-selected: oklch(1.0000 0.0000 0.00)
38
+ interactive-fg-inverse: oklch(1.0000 0.0000 0.00)
39
+ action-primary-bg: oklch(0.6717 0.2205 37.86)
40
+ action-primary-bg-hover: oklch(0.6368 0.2445 31.53)
41
+ action-primary-bg-active: oklch(0.6368 0.2445 31.53)
42
+ action-primary-bg-selected: oklch(0.6368 0.2445 31.53)
43
+ action-primary-bg-disabled: oklch(0.9479 0.0381 69.88)
44
+ action-primary-bg-inverse: oklch(1.0000 0.0000 0.00)
45
+ action-primary-fg: oklch(1.0000 0.0000 0.00)
46
+ action-primary-fg-disabled: oklch(0.7378 0.0385 119.16)
47
+ action-primary-fg-active: oklch(1.0000 0.0000 0.00)
48
+ action-primary-fg-selected: oklch(1.0000 0.0000 0.00)
49
+ action-primary-fg-inverse: oklch(0.6368 0.2445 31.53)
50
+ action-secondary-bg-hover: oklch(0.9522 0.0070 124.45)
51
+ action-secondary-bg-active: oklch(0.8827 0.0165 118.16)
52
+ action-secondary-bg-selected: oklch(0.8827 0.0165 118.16)
53
+ action-secondary-bg-disabled: oklch(0.9522 0.0070 124.45)
54
+ action-secondary-border: oklch(0.8827 0.0165 118.16)
55
+ action-secondary-border-alt: "color-mix(in oklch, oklch(0.6639 0.0492 118.51) 65%, oklch(0.5744 0.0466 119.64))"
56
+ action-secondary-border-disabled: oklch(0.9522 0.0070 124.45)
57
+ action-secondary-border-inverse: oklch(0.9868 0.0028 128.49)
58
+ action-secondary-fg-alt: oklch(0.3738 0.0284 118.54)
59
+ action-secondary-fg-disabled: oklch(0.7378 0.0385 119.16)
60
+ action-secondary-fg-active: oklch(0.3738 0.0284 118.54)
61
+ action-secondary-fg-selected: oklch(0.3738 0.0284 118.54)
62
+ action-secondary-fg-inverse: oklch(0.3738 0.0284 118.54)
63
+ action-secondary-fg: oklch(0.3738 0.0284 118.54)
64
+ action-tertiary-bg: oklch(1.0000 0.0000 0.00)
65
+ action-tertiary-bg-alt: oklch(0.9868 0.0028 128.49)
66
+ action-tertiary-bg-hover: oklch(0.9868 0.0028 128.49)
67
+ action-tertiary-bg-active: oklch(0.9522 0.0070 124.45)
68
+ action-tertiary-bg-selected: oklch(0.9522 0.0070 124.45)
69
+ action-tertiary-bg-disabled: oklch(1.0000 0.0000 0.00)
70
+ action-tertiary-bg-inverse: oklch(1.0000 0.0000 0.00)
71
+ action-tertiary-border: oklch(0.8827 0.0165 118.16)
72
+ action-tertiary-border-alt: oklch(0.9522 0.0070 124.45)
73
+ action-tertiary-border-disabled: oklch(0.9522 0.0070 124.45)
74
+ action-tertiary-border-inverse: oklch(0.9868 0.0028 128.49)
75
+ action-tertiary-fg-alt: oklch(0.3738 0.0284 118.54)
76
+ action-tertiary-fg-disabled: oklch(0.7378 0.0385 119.16)
77
+ action-tertiary-fg-active: oklch(0.3738 0.0284 118.54)
78
+ action-tertiary-fg-selected: oklch(0.3738 0.0284 118.54)
79
+ action-tertiary-fg-inverse: oklch(1.0000 0.0000 0.00)
80
+ action-tertiary-fg: oklch(0.3738 0.0284 118.54)
81
+ action-neutral-bg: oklch(0.9522 0.0070 124.45)
82
+ action-neutral-bg-hover: oklch(0.8827 0.0165 118.16)
83
+ action-neutral-fg: oklch(0.3738 0.0284 118.54)
84
+ destructive-bg: oklch(0.9691 0.0151 17.42)
85
+ destructive-bg-alt: oklch(0.9322 0.0343 17.78)
86
+ destructive-bg-hover: oklch(0.9322 0.0343 17.78)
87
+ destructive-bg-active: oklch(0.4695 0.1927 29.23)
88
+ destructive-bg-selected: oklch(0.4695 0.1927 29.23)
89
+ destructive-bg-disabled: oklch(0.9522 0.0070 124.45)
90
+ destructive-bg-inverse: oklch(0.4695 0.1927 29.23)
91
+ destructive-border: oklch(0.6280 0.2577 29.23)
92
+ destructive-border-alt: oklch(0.4695 0.1927 29.23)
93
+ destructive-border-disabled: oklch(0.9322 0.0343 17.78)
94
+ destructive-border-inverse: oklch(0.9691 0.0151 17.42)
95
+ destructive-fg: oklch(0.5444 0.2234 29.23)
96
+ destructive-fg-alt: oklch(0.3738 0.0284 118.54)
97
+ destructive-fg-disabled: oklch(0.7378 0.0385 119.16)
98
+ destructive-fg-active: oklch(1.0000 0.0000 0.00)
99
+ destructive-fg-selected: oklch(1.0000 0.0000 0.00)
100
+ destructive-fg-inverse: oklch(0.9691 0.0151 17.42)
101
+ cautionary-bg: oklch(0.9852 0.0151 90.23)
102
+ cautionary-bg-alt: oklch(0.9601 0.0401 88.20)
103
+ cautionary-bg-inverse: oklch(0.4724 0.1071 42.23)
104
+ cautionary-border: oklch(0.7516 0.1455 61.95)
105
+ cautionary-border-alt: oklch(0.4724 0.1071 42.23)
106
+ cautionary-border-inverse: oklch(0.9852 0.0151 90.23)
107
+ cautionary-fg: oklch(0.5534 0.1277 44.34)
108
+ cautionary-fg-alt: oklch(0.3738 0.0284 118.54)
109
+ cautionary-fg-inverse: oklch(0.9852 0.0151 90.23)
110
+ positive-bg: oklch(0.9796 0.0247 164.47)
111
+ positive-bg-alt: oklch(0.9488 0.0579 162.90)
112
+ positive-bg-inverse: oklch(0.4389 0.0946 163.18)
113
+ positive-border: oklch(0.7780 0.1777 159.41)
114
+ positive-border-alt: oklch(0.4389 0.0946 163.18)
115
+ positive-border-inverse: oklch(0.9796 0.0247 164.47)
116
+ positive-fg: oklch(0.5180 0.1144 161.56)
117
+ positive-fg-alt: oklch(0.3738 0.0284 118.54)
118
+ positive-fg-inverse: oklch(0.9796 0.0247 164.47)
119
+ informative-bg: oklch(0.9705 0.0142 254.60)
120
+ informative-bg-alt: oklch(0.9322 0.0328 256.76)
121
+ informative-bg-inverse: oklch(0.4225 0.2126 267.93)
122
+ informative-border: oklch(0.6102 0.2112 261.20)
123
+ informative-border-alt: oklch(0.4225 0.2126 267.93)
124
+ informative-border-inverse: oklch(0.9705 0.0142 254.60)
125
+ informative-fg: oklch(0.4867 0.2603 266.61)
126
+ informative-fg-alt: oklch(0.3738 0.0284 118.54)
127
+ informative-fg-inverse: oklch(0.9705 0.0142 254.60)
128
+ important-bg: oklch(0.9761 0.0139 304.14)
129
+ important-bg-alt: oklch(0.9453 0.0311 306.20)
130
+ important-bg-inverse: oklch(0.4379 0.2047 302.40)
131
+ important-border: oklch(0.6255 0.2466 302.49)
132
+ important-border-alt: oklch(0.4379 0.2047 302.40)
133
+ important-border-inverse: oklch(0.9761 0.0139 304.14)
134
+ important-fg: oklch(0.4955 0.2482 300.40)
135
+ important-fg-alt: oklch(0.3738 0.0284 118.54)
136
+ important-fg-inverse: oklch(0.9761 0.0139 304.14)
137
+ tooltip-bg: oklch(1.0000 0.0000 0.00)
138
+ overlay-bg: oklch(0.2257 0.0152 119.03)
139
+ focus-ring: oklch(0.6717 0.2205 37.86)
140
+ dataviz-1-main: oklch(0.6717 0.2205 37.86)
141
+ dataviz-1-tint: oklch(0.9479 0.0381 69.88)
142
+ dataviz-1-shade: oklch(0.4663 0.1768 31.99)
143
+ dataviz-2-main: oklch(0.6102 0.2112 261.20)
144
+ dataviz-2-tint: oklch(0.9322 0.0328 256.76)
145
+ dataviz-2-shade: oklch(0.4225 0.2126 267.93)
146
+ dataviz-3-main: oklch(0.7780 0.1777 159.41)
147
+ dataviz-3-tint: oklch(0.9488 0.0579 162.90)
148
+ dataviz-3-shade: oklch(0.4389 0.0946 163.18)
149
+ dataviz-4-main: oklch(0.6255 0.2466 302.49)
150
+ dataviz-4-tint: oklch(0.9453 0.0311 306.20)
151
+ dataviz-4-shade: oklch(0.4379 0.2047 302.40)
152
+ dataviz-5-main: oklch(0.7516 0.1455 61.95)
153
+ dataviz-5-tint: oklch(0.9601 0.0401 88.20)
154
+ dataviz-5-shade: oklch(0.4724 0.1071 42.23)
155
+ dataviz-6-main: oklch(0.6521 0.2154 2.21)
156
+ dataviz-6-tint: oklch(0.9470 0.0251 352.47)
157
+ dataviz-6-shade: oklch(0.4577 0.1664 8.23)
158
+ dataviz-7-main: oklch(0.8485 0.2093 123.47)
159
+ dataviz-7-tint: oklch(0.9681 0.0792 116.21)
160
+ dataviz-7-shade: oklch(0.4593 0.1121 122.51)
161
+ dataviz-8-main: oklch(0.6823 0.1723 245.16)
162
+ dataviz-8-tint: oklch(0.9483 0.0276 239.65)
163
+ dataviz-8-shade: oklch(0.4439 0.1218 248.78)
164
+ dark:
165
+ container-bg: oklch(0.2982 0.0213 119.11)
166
+ container-bg-alt: "color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54))"
167
+ container-bg-inverse: oklch(0.8111 0.0267 118.99)
168
+ container-border: "color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54))"
169
+ container-border-alt: "color-mix(in oklch, oklch(0.3738 0.0284 118.54), oklch(0.4767 0.0377 119.25))"
170
+ container-border-inverse: oklch(0.7378 0.0385 119.16)
171
+ container-fg: oklch(0.9522 0.0070 124.45)
172
+ container-fg-alt: oklch(0.8111 0.0267 118.99)
173
+ container-fg-inverse: oklch(0.2982 0.0213 119.11)
174
+ interactive-bg: oklch(0.2982 0.0213 119.11)
175
+ interactive-bg-alt: oklch(0.2257 0.0152 119.03)
176
+ interactive-bg-alt2: "color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54))"
177
+ interactive-bg-disabled: oklch(0.3738 0.0284 118.54)
178
+ interactive-bg-hover: oklch(0.3738 0.0284 118.54)
179
+ interactive-bg-active: oklch(0.6717 0.2205 37.86)
180
+ interactive-bg-selected: oklch(0.6717 0.2205 37.86)
181
+ interactive-bg-inverse: oklch(0.9522 0.0070 124.45)
182
+ interactive-border: "color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54))"
183
+ interactive-border-alt: "color-mix(in oklch, oklch(0.3738 0.0284 118.54), oklch(0.4767 0.0377 119.25))"
184
+ interactive-border-disabled: "color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54))"
185
+ interactive-fg: oklch(0.9522 0.0070 124.45)
186
+ interactive-fg-alt: oklch(0.7378 0.0385 119.16)
187
+ interactive-fg-readonly: oklch(0.8111 0.0267 118.99)
188
+ interactive-fg-disabled: oklch(0.5744 0.0466 119.64)
189
+ interactive-fg-active: oklch(1.0000 0.0000 0.00)
190
+ interactive-fg-selected: oklch(1.0000 0.0000 0.00)
191
+ interactive-fg-inverse: oklch(0.2982 0.0213 119.11)
192
+ action-primary-bg: oklch(0.6717 0.2205 37.86)
193
+ action-primary-bg-hover: oklch(0.6368 0.2445 31.53)
194
+ action-primary-bg-active: oklch(0.6368 0.2445 31.53)
195
+ action-primary-bg-selected: oklch(0.6368 0.2445 31.53)
196
+ action-primary-bg-disabled: oklch(0.4063 0.1389 34.11)
197
+ action-primary-bg-inverse: oklch(0.2982 0.0213 119.11)
198
+ action-primary-fg: oklch(1.0000 0.0000 0.00)
199
+ action-primary-fg-disabled: oklch(0.5744 0.0466 119.64)
200
+ action-primary-fg-active: oklch(1.0000 0.0000 0.00)
201
+ action-primary-fg-selected: oklch(1.0000 0.0000 0.00)
202
+ action-primary-fg-inverse: oklch(0.8904 0.0756 64.01)
203
+ action-secondary-bg-hover: oklch(0.3738 0.0284 118.54)
204
+ action-secondary-bg-active: oklch(0.4767 0.0377 119.25)
205
+ action-secondary-bg-selected: oklch(0.4767 0.0377 119.25)
206
+ action-secondary-bg-disabled: oklch(0.3738 0.0284 118.54)
207
+ action-secondary-border: "color-mix(in oklch, oklch(0.3738 0.0284 118.54), oklch(0.4767 0.0377 119.25))"
208
+ action-secondary-border-alt: oklch(0.6639 0.0492 118.51)
209
+ action-secondary-border-disabled: "color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54))"
210
+ action-secondary-border-inverse: oklch(0.2257 0.0152 119.03)
211
+ action-secondary-fg-alt: oklch(0.9522 0.0070 124.45)
212
+ action-secondary-fg-disabled: oklch(0.5744 0.0466 119.64)
213
+ action-secondary-fg-active: oklch(0.9522 0.0070 124.45)
214
+ action-secondary-fg-selected: oklch(0.9522 0.0070 124.45)
215
+ action-secondary-fg-inverse: oklch(0.9522 0.0070 124.45)
216
+ action-secondary-fg: oklch(0.9522 0.0070 124.45)
217
+ action-tertiary-bg: oklch(0.2982 0.0213 119.11)
218
+ action-tertiary-bg-alt: oklch(0.2257 0.0152 119.03)
219
+ action-tertiary-bg-hover: oklch(0.2257 0.0152 119.03)
220
+ action-tertiary-bg-active: oklch(0.3738 0.0284 118.54)
221
+ action-tertiary-bg-selected: oklch(0.3738 0.0284 118.54)
222
+ action-tertiary-bg-disabled: oklch(0.2982 0.0213 119.11)
223
+ action-tertiary-bg-inverse: oklch(0.2982 0.0213 119.11)
224
+ action-tertiary-border: "color-mix(in oklch, oklch(0.3738 0.0284 118.54), oklch(0.4767 0.0377 119.25))"
225
+ action-tertiary-border-alt: "color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54))"
226
+ action-tertiary-border-disabled: "color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54))"
227
+ action-tertiary-border-inverse: oklch(0.2257 0.0152 119.03)
228
+ action-tertiary-fg-alt: oklch(0.9522 0.0070 124.45)
229
+ action-tertiary-fg-disabled: oklch(0.5744 0.0466 119.64)
230
+ action-tertiary-fg-active: oklch(0.9522 0.0070 124.45)
231
+ action-tertiary-fg-selected: oklch(0.9522 0.0070 124.45)
232
+ action-tertiary-fg-inverse: oklch(0.2982 0.0213 119.11)
233
+ action-tertiary-fg: oklch(0.9522 0.0070 124.45)
234
+ action-neutral-bg: oklch(0.3738 0.0284 118.54)
235
+ action-neutral-bg-hover: oklch(0.4767 0.0377 119.25)
236
+ action-neutral-fg: oklch(0.9522 0.0070 124.45)
237
+ destructive-bg: oklch(0.2639 0.1083 29.23)
238
+ destructive-bg-alt: oklch(0.4062 0.1665 28.83)
239
+ destructive-bg-hover: oklch(0.4062 0.1665 28.83)
240
+ destructive-bg-active: oklch(0.8751 0.0665 18.51)
241
+ destructive-bg-selected: oklch(0.8751 0.0665 18.51)
242
+ destructive-bg-disabled: oklch(0.3738 0.0284 118.54)
243
+ destructive-bg-inverse: oklch(0.8751 0.0665 18.51)
244
+ destructive-border: oklch(0.6695 0.2182 21.71)
245
+ destructive-border-alt: oklch(0.8751 0.0665 18.51)
246
+ destructive-border-disabled: oklch(0.4062 0.1665 28.83)
247
+ destructive-border-inverse: oklch(0.2639 0.1083 29.23)
248
+ destructive-fg: oklch(0.8751 0.0665 18.51)
249
+ destructive-fg-alt: oklch(0.9522 0.0070 124.45)
250
+ destructive-fg-disabled: oklch(0.5744 0.0466 119.64)
251
+ destructive-fg-active: oklch(0.2982 0.0213 119.11)
252
+ destructive-fg-selected: oklch(0.2982 0.0213 119.11)
253
+ destructive-fg-inverse: oklch(0.2639 0.1083 29.23)
254
+ cautionary-bg: oklch(0.2758 0.0580 42.34)
255
+ cautionary-bg-alt: oklch(0.4118 0.0860 41.58)
256
+ cautionary-bg-inverse: oklch(0.8686 0.1177 83.38)
257
+ cautionary-border: oklch(0.7516 0.1455 61.95)
258
+ cautionary-border-alt: oklch(0.8686 0.1177 83.38)
259
+ cautionary-border-inverse: oklch(0.2758 0.0580 42.34)
260
+ cautionary-fg: oklch(0.9173 0.0805 86.91)
261
+ cautionary-fg-alt: oklch(0.9522 0.0070 124.45)
262
+ cautionary-fg-inverse: oklch(0.2758 0.0580 42.34)
263
+ positive-bg: oklch(0.2646 0.0515 171.60)
264
+ positive-bg-alt: oklch(0.3827 0.0785 166.91)
265
+ positive-bg-inverse: oklch(0.9488 0.0579 162.90)
266
+ positive-border: oklch(0.7780 0.1777 159.41)
267
+ positive-border-alt: oklch(0.9488 0.0579 162.90)
268
+ positive-border-inverse: oklch(0.2646 0.0515 171.60)
269
+ positive-fg: oklch(0.9052 0.1042 163.78)
270
+ positive-fg-alt: oklch(0.9522 0.0070 124.45)
271
+ positive-fg-inverse: oklch(0.2646 0.0515 171.60)
272
+ informative-bg: oklch(0.2795 0.0978 270.78)
273
+ informative-bg-alt: oklch(0.3775 0.1564 267.71)
274
+ informative-bg-inverse: oklch(0.9322 0.0328 256.76)
275
+ informative-border: oklch(0.6102 0.2112 261.20)
276
+ informative-border-alt: oklch(0.9322 0.0328 256.76)
277
+ informative-border-inverse: oklch(0.2795 0.0978 270.78)
278
+ informative-fg: oklch(0.8800 0.0595 255.47)
279
+ informative-fg-alt: oklch(0.9522 0.0070 124.45)
280
+ informative-fg-inverse: oklch(0.2795 0.0978 270.78)
281
+ important-bg: oklch(0.2898 0.1386 301.20)
282
+ important-bg-alt: oklch(0.3800 0.1656 303.37)
283
+ important-bg-inverse: oklch(0.9453 0.0311 306.20)
284
+ important-border: oklch(0.7125 0.1872 304.45)
285
+ important-border-alt: oklch(0.9453 0.0311 306.20)
286
+ important-border-inverse: oklch(0.2898 0.1386 301.20)
287
+ important-fg: oklch(0.9007 0.0598 304.65)
288
+ important-fg-alt: oklch(0.9522 0.0070 124.45)
289
+ important-fg-inverse: oklch(0.2898 0.1386 301.20)
290
+ tooltip-bg: oklch(0.3738 0.0284 118.54)
291
+ overlay-bg: "color-mix(in oklch, oklch(0.2257 0.0152 119.03) 40%, black)"
292
+ focus-ring: oklch(0.6717 0.2205 37.86)
293
+ dataviz-1-main: oklch(0.6717 0.2205 37.86)
294
+ dataviz-1-tint: oklch(0.4063 0.1389 34.11)
295
+ dataviz-1-shade: oklch(0.9479 0.0381 69.88)
296
+ dataviz-2-main: oklch(0.6102 0.2112 261.20)
297
+ dataviz-2-tint: oklch(0.3775 0.1564 267.71)
298
+ dataviz-2-shade: oklch(0.9322 0.0328 256.76)
299
+ dataviz-3-main: oklch(0.7780 0.1777 159.41)
300
+ dataviz-3-tint: oklch(0.3827 0.0785 166.91)
301
+ dataviz-3-shade: oklch(0.9488 0.0579 162.90)
302
+ dataviz-4-main: oklch(0.7125 0.1872 304.45)
303
+ dataviz-4-tint: oklch(0.3800 0.1656 303.37)
304
+ dataviz-4-shade: oklch(0.9453 0.0311 306.20)
305
+ dataviz-5-main: oklch(0.7516 0.1455 61.95)
306
+ dataviz-5-tint: oklch(0.4118 0.0860 41.58)
307
+ dataviz-5-shade: oklch(0.8686 0.1177 83.38)
308
+ dataviz-6-main: oklch(0.6521 0.2154 2.21)
309
+ dataviz-6-tint: oklch(0.4086 0.1369 6.37)
310
+ dataviz-6-shade: oklch(0.9470 0.0251 352.47)
311
+ dataviz-7-main: oklch(0.8485 0.2093 123.47)
312
+ dataviz-7-tint: oklch(0.4073 0.0978 121.11)
313
+ dataviz-7-shade: oklch(0.9681 0.0792 116.21)
314
+ dataviz-8-main: oklch(0.6823 0.1723 245.16)
315
+ dataviz-8-tint: oklch(0.3898 0.1005 246.39)
316
+ dataviz-8-shade: oklch(0.9483 0.0276 239.65)
317
+ typography:
318
+ families:
319
+ heading: "\"Inter Variable\", \"Inter\", ui-sans-serif, system-ui, sans-serif"
320
+ body: "\"Inter Variable\", \"Inter\", ui-sans-serif, system-ui, sans-serif"
321
+ mono: "\"Paper Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"
322
+ scale:
323
+ step-6:
324
+ size: 41.81px to 68.66px
325
+ lineHeight: "1.2"
326
+ letterSpacing: "-0.03em"
327
+ step-5:
328
+ size: 34.84px to 54.93px
329
+ lineHeight: "1.2"
330
+ letterSpacing: "-0.025em"
331
+ step-4:
332
+ size: 29.03px to 43.95px
333
+ lineHeight: "1.2"
334
+ letterSpacing: "-0.02em"
335
+ step-3:
336
+ size: 24.19px to 35.16px
337
+ lineHeight: "1.2"
338
+ letterSpacing: "-0.015em"
339
+ step-2:
340
+ size: 20.16px to 28.13px
341
+ lineHeight: "1.375"
342
+ letterSpacing: "-0.01em"
343
+ step-1:
344
+ size: 16.8px to 22.5px
345
+ lineHeight: "1.375"
346
+ letterSpacing: 0em
347
+ step-0:
348
+ size: 14px to 18px
349
+ lineHeight: "1.5"
350
+ letterSpacing: 0em
351
+ step-neg1:
352
+ size: 11.67px to 14.4px
353
+ lineHeight: "1.5"
354
+ letterSpacing: 0em
355
+ step-neg2:
356
+ size: 9.72px to 11.52px
357
+ lineHeight: "1.5"
358
+ letterSpacing: 0em
359
+ step-neg3:
360
+ size: 8.1px to 9.22px
361
+ lineHeight: "1.5"
362
+ letterSpacing: 0em
363
+ spacing:
364
+ xxs: 2px
365
+ xs: 4px
366
+ sm: 6px
367
+ md: 10px
368
+ lg: 14px
369
+ xl: 18px
370
+ 2xl: 20px
371
+ 3xl: 32px
372
+ 4xl: 64px
373
+ sizes:
374
+ xxs: 14px
375
+ xs: 18px
376
+ sm: 22px
377
+ md: 28px
378
+ lg: 36px
379
+ xl: 44px
380
+ 2xl: 56px
381
+ 3xl: 80px
382
+ 4xl: 120px
383
+ rounded:
384
+ control: 999px
385
+ surface: 20px
386
+ xxs: 2px
387
+ xs: 4px
388
+ sm: 8px
389
+ md: 12px
390
+ lg: 16px
391
+ xl: 24px
392
+ full: 999px
393
+ ---
394
+
395
+ # Eluan
396
+
397
+ Generated by `scripts/skills/export-design-md.mjs`; don't edit by hand. Run `pnpm skills:build` to refresh it.
398
+
399
+ ## How to read these tokens
400
+
401
+ - Every key under `colors`, `spacing`, `sizes` and `rounded` is a CSS custom property: `container-bg` is `var(--container-bg)`. Use the custom property in code, never the resolved value.
402
+ - Colours are semantic. Pair a background with the foreground of the same family and state (`container-bg` with `container-fg`). Contrast between pairs is checked when a theme is generated, so don't change one side of a pair.
403
+ - `spacing`, `sizes` and `rounded` show the default density (`standard`) and corner style (`sweeping`). Controls are capsules (`control-radius`) in every corner style; `rounded.surface` is the card and dialog radius. `EluanProvider`'s `defaultSpacing` and `defaultCurves` change them app-wide.
404
+ - Type sizes are fluid between 480px and 1024px viewports. Always apply a step's size, line height and letter spacing together, or use the `Typography` component.
405
+ - The look is fixed: cards are flat, controls are raised capsules, fields are recessed, and the primary button is the one accent-lit thing. Depth and corner roles are in `foundations/look.md`, `elevation.md` and `radius.md`. Never write a shadow; there are no motion tokens yet, so don't add transitions.
406
+
407
+ ## Rationale
408
+
409
+ Eluan themes through three layers of custom properties: primitives, modes (light, dim, dark) and the semantic theme layer components read. `eluan` is the only built-in theme: concrete greys with a blaze orange accent. Brand themes are generated from one to three accent colours and a grey with `@eluan/theme-generator` and registered with `createTheme`; they supply the grey ramp and the accent, and the look stays the same. The generator controls colour only. Density, corner style and type scale are Provider settings, so one product can switch them without a new theme.
410
+
411
+ See `SKILL.md` for which component to use, and `foundations/` for the rules behind each token group.
@@ -0,0 +1,202 @@
1
+ ---
2
+ name: eluan
3
+ description: Build UI with the Eluan design system. Use whenever creating, editing or reviewing interface code in a project that depends on Eluan (@eluan/core, @eluan/tokens, @eluan/theme-generator), including pages, forms, layouts, theming, or picking which component to use.
4
+ ---
5
+
6
+ # Eluan
7
+
8
+ Eluan is a React design system: 74 components in `@eluan/core`, styled with StyleX and themed through CSS custom properties from `@eluan/tokens`. Components read semantic tokens; your theme sets them.
9
+
10
+ Install: `pnpm add @eluan/core @eluan/tokens`
11
+ Import: `import { Button } from "@eluan/core"`
12
+
13
+ Set up once at the app entry. An app of app screens (dashboards, tables, settings) also passes `defaultTypeset="app"`, which pins the whole-pixel app type scale; a site of content pages leaves it off.
14
+
15
+ ```tsx
16
+ import "@eluan/core/styles.css";
17
+ import { EluanProvider } from "@eluan/core";
18
+
19
+ export function App({ children }: { children: React.ReactNode }) {
20
+ return <EluanProvider>{children}</EluanProvider>;
21
+ }
22
+ ```
23
+
24
+ ## Rules
25
+
26
+ These always apply.
27
+
28
+ 1. Use tokens for every colour, space, radius and type value. Never write raw hex, rgb, oklch, px or rem values, and never multiply or divide a token with `calc()` to make a value the scale doesn't have.
29
+ 2. Use an existing Eluan component before building anything custom. Check the index below first.
30
+ 3. Never override focus styles, contrast pairs or keyboard behaviour.
31
+ 4. Read a component's file before using it for the first time in a task.
32
+ 5. Read the matching foundation file before making any visual decision.
33
+ 6. The theme is generated. Change the theme, never individual component colours.
34
+ 7. Never pass `className` or `style` to an Eluan component. Most drop them; the few that forward them (Toast, and parts that are plain Radix re-exports such as the Tabs root, menu Group, Portal and Sub parts, NavigationMenuLink) aren't a supported styling path, and on Toast they replace Eluan's styling. Lay components out with Stack, Row, Grid and Box; put anything those don't cover (position, overflow, a fixed width) on a wrapper element you own.
35
+ 8. Use the semantic token layer (`--container-*`, `--interactive-*`, `--action-*`, tone tokens, `--spacing-*`, `--size-*`, `--curves-*`, `--font-size-*`). Never use primitives such as `--color-mono-500` or `--spacing-space-4`.
36
+ 9. Import components and theme helpers from `@eluan/core` only. Don't import `@radix-ui/*` primitives or `@eluan/tokens` when Eluan wraps or re-exports them.
37
+ 10. Depth comes from the look, through components: cards are flat, controls are raised, fields are recessed, and overlays carry their own elevation level. Never write a `box-shadow` value. Eluan has no motion tokens yet: don't add transitions or animations.
38
+
39
+ Lay out with the layout primitives: [Stack](components/stack.md), [Row](components/row.md), [Grid](components/grid.md) and [Box](components/box.md), whose `gap` and `pad` props take `--spacing-*` steps by name, and [Icon](components/icon.md) for icon sizes. For what they don't cover, style your own element with CSS that reads tokens: a stylesheet, CSS modules, StyleX, or an inline style object. Some older examples here lay out with inline-styled `div`s; prefer the primitives.
40
+
41
+ ## The look
42
+
43
+ Eluan has one look, and nothing selects it: the page is a paper ground, cards and tables lie flat on it behind a hairline, controls are raised capsules, fields are recessed, and the primary action is the one lit thing on the screen. A theme changes the greys and the accent, never the look. Read `foundations/look.md` before you lay anything out; its rules override the general patterns where the two differ.
44
+
45
+ | Role | What | How it sits |
46
+ | --- | --- | --- |
47
+ | Ground | The page; navigation sits on it | Paper |
48
+ | Flat | Cards, tables, chips, sidebar items | Fill and hairline, no shadow |
49
+ | Raised | Buttons, select triggers, selected segments | Capsule with a soft shadow |
50
+ | Lit | The primary Button, once per view | The accent, with a glow |
51
+ | Recessed | Inputs; tracks of switches, sliders, segmented controls | Inset |
52
+ | Floating | Menus, popovers, toasts, dialogs | Elevation levels 3 and 4 |
53
+
54
+ Never restyle a component to move it from one role to another.
55
+
56
+ ## How to work
57
+
58
+ 1. Read `foundations/look.md` once per task: it says what is flat, raised, lit and recessed.
59
+ 2. In an existing app, read its shell and one existing screen first, and find the module of shared pieces (page header, section, tiles). Reuse them. Don't copy a screen's markup: if a shared piece breaks a rule here, fix that piece.
60
+ 3. Find the task's intent in the decision tree.
61
+ 4. Read the pattern file it points to, if any. For any page or screen, decide whether it's an app screen or a content page (`patterns/page-layout.md`) before setting text.
62
+ 5. Read each component file you'll use.
63
+ 6. Read foundations for any visual choice the components don't settle.
64
+ 7. Build. Then check your output against each component's Rules and Don'ts.
65
+ 8. Run `npx @eluan/core check` on the files you touched and fix what it reports.
66
+ 9. Render the screen at a desktop width and look at it before you call it done (see Before you finish).
67
+
68
+ ## Before you finish
69
+
70
+ Code that compiles and follows the rules can still look wrong. Open the screen in a browser at about 1440px wide, and again at phone width, and check:
71
+
72
+ 1. **Scale.** The page title is the largest text and no more than about twice the size of the body text on an app screen. Nothing in the content dwarfs the navigation and controls beside it.
73
+ 2. **One ramp.** Every heading of the same level looks the same on this screen and on the screens next to it.
74
+ 3. **Alignment.** Tiles in a row share a height, numbers line up on the right, labels sit on their controls' baseline.
75
+ 4. **Rhythm.** The gaps between sections are equal, and larger than the gaps inside a section.
76
+ 5. **States.** Each region that loads data has been seen loading, empty and failed, not only full.
77
+ 6. **Density and mode.** Switch `data-spacing` to compact and `data-mode` to dark: nothing overlaps, clips or loses contrast.
78
+
79
+ If you can't render the screen, say so plainly in your summary rather than reporting it as checked.
80
+
81
+ ## Decision tree
82
+
83
+ | If the task is to… | Read | Then use |
84
+ | --- | --- | --- |
85
+ | Collect input from the user | `patterns/forms.md` | Input, Textarea, Select, Checkbox, RadioGroup, Switch, Label, Fieldset, Button |
86
+ | Tell the user something happened | `patterns/feedback.md` | Toast for transient confirmation, Banner for persistent or blocking messages, FormMessage for a field |
87
+ | Ask the user to confirm | `components/dialog.md` | Dialog, never a custom modal |
88
+ | Let the user move between views | `patterns/navigation.md` | Tabs, Header, NavigationMenu, NavigationDrawer, Breadcrumb, Pagination |
89
+ | Scaffold an app, or add a screen to one | `patterns/app-shell.md`, then `patterns/page-layout.md` | NavigationDrawerLayout, Stack as `main`, a page header and sections you compose once |
90
+ | Build a dashboard or data screen (figures, charts, tables) | `patterns/dashboard.md` | Card stat tiles in a Grid, Table, SegmentedControl or Select for scope, AspectRatio round a chart |
91
+ | Lay out a content page or show a collection | `patterns/page-layout.md` | Table for comparing, Card for browsing, Accordion for long secondary content |
92
+ | Show that there's nothing yet | `patterns/empty-states.md` | Typography and one Button, composed |
93
+ | Pick a date or time | `components/date-picker.md` | DatePicker, DateRangePicker, DateTimePicker, TimeInput, Calendar |
94
+ | Offer a menu of actions | `components/dropdown-menu.md` | DropdownMenu, ContextMenu, ActionPopover, Menubar |
95
+ | Show more content without leaving the page | `components/sheet.md` | Sheet, Drawer, Popover, HoverCard, Tooltip |
96
+ | Search by a typed query, or run a command | `components/search-input.md` | SearchInput, Command |
97
+ | Filter a list by fields (date range, status, tags) | `patterns/forms.md`, then the field's component | Select, MultiSelect, DateRangePicker, SegmentedControl |
98
+ | Show status or progress | `components/badge.md` | Badge, Progress, Spinner, Skeleton |
99
+ | Set text | `components/typography.md` | Typography |
100
+ | Change the look of the product | `foundations/theming.md` | the theme generator output, `createTheme`, Provider axes |
101
+
102
+ ## Component index
103
+
104
+ <!-- index:start -->
105
+ | Component | Use when | Instead, use | File |
106
+ | --- | --- | --- | --- |
107
+ | Accordion | Stacking several sections of secondary content the user may skip, each expanded from its own header, such as an FAQ or advanced settings. | Collapsible for a single show/hide region; Tabs for switching between peer views; Card or headings for content everyone needs. | `components/accordion.md` |
108
+ | ActionPopover | A table row, list item or card needs a compact "more actions" menu behind a three-dots button. | DropdownMenu when you need separators, groups, submenus, checkable items or a custom trigger; inline Buttons for one or two actions; Popover for a panel with form content. | `components/action-popover.md` |
109
+ | AspectRatio | Content you own (an embed, map, canvas or placeholder) must keep a fixed width-to-height ratio as its container resizes. | Image or Video ratio presets for images and videos; a hard-coded height on your own element. | `components/aspect-ratio.md` |
110
+ | Avatar | Showing a person or account as a small circular image with initials as the fallback, optionally with a presence dot or notification count. | Media or Image for content pictures; Badge for status without a person; a plain img for profile pictures. | `components/avatar.md` |
111
+ | Badge | Labelling the status or category of an item, such as Active, Draft, Failed or Beta. | Toast or Banner for messages; Avatar's AvatarStatus for presence; Button or Toggle for anything clickable; Progress, Spinner or Skeleton for loading. | `components/badge.md` |
112
+ | Banner | A message must stay visible until it's resolved: a form-level error, an account or page notice, or a blocking problem. | Toast for transient confirmation; FormMessage for a single field; Badge for an item's status; Dialog when the user must decide. | `components/banner.md` |
113
+ | Box | One element needs token padding, or needs to take the remaining space in a Row or Stack, without laying out children of its own. | Stack or Row when the element also places several children; Card when the block needs a surface, border or radius. | `components/box.md` |
114
+ | Breadcrumb | A page sits two or more levels deep in a hierarchy and the user needs to see where they are and step back up. | NavigationDrawer or NavigationMenu for primary navigation; Stepper for steps in a process; Button variant link with asChild for a single Back link. | `components/breadcrumb.md` |
115
+ | Button | The user triggers an action, submits a form or opens an overlay. | Link or your router's link for navigation (Button asChild only to style one); Toggle or Switch for on/off state; DropdownMenu for a list of actions. | `components/button.md` |
116
+ | Calendar | A month grid stays visible on the page for picking one date, several dates or a range. | DatePicker or DateRangePicker for a date field in a form or filter bar; DateTimePicker when the time matters too. | `components/calendar.md` |
117
+ | Card | Grouping content about one item or topic on its own surface, such as a project, a plan or a settings group. | Table for items compared across the same attributes; Fieldset for a group of form fields; Dialog or Sheet for content over the page. | `components/card.md` |
118
+ | Carousel | Showing a row of similar slides the user pages through one or a few at a time, such as screenshots, testimonials or featured items. | Card grid when every item should be visible; Tabs for switching views; Stepper for an ordered process. | `components/carousel.md` |
119
+ | CheckboxGroup | The user picks any number of options from a short, visible list, such as notification channels or permissions. | RadioGroup when only one option can be chosen; MultiSelect for long or searchable lists; Switch rows for settings that apply immediately. | `components/checkbox-group.md` |
120
+ | Checkbox | A single yes/no choice the user confirms when they submit a form, such as accepting terms, or a select-all control above a list. | Switch for settings that apply immediately; CheckboxGroup for a labelled list of options; RadioGroup when only one option can be chosen. | `components/checkbox.md` |
121
+ | CodeBlock | Showing a multi-line code sample, config file or command with syntax highlighting and a copy button. | Kbd for keyboard keys; an inline code element with the mono font for code inside a sentence; Textarea for code the user edits. | `components/code-block.md` |
122
+ | Collapsible | One region of the page shows and hides in place behind a single trigger, such as advanced options or extra details. | Accordion for several stacked sections; Tabs for switching views; Popover, Sheet or Drawer for content that should float or slide in. | `components/collapsible.md` |
123
+ | Command | A searchable, keyboard-driven list of commands or options, as a Cmd+K palette (CommandDialog), an inline filterable list or a searchable picker in a Popover. | Select for a short fixed list; MultiSelect for several choices; SearchInput for a plain search field; DropdownMenu for a few actions behind a button. Eluan has no Combobox; Command is that primitive. | `components/command.md` |
124
+ | ContextMenu | Right-click or long-press on a surface (a file tile, canvas or row) should offer actions for that thing. | DropdownMenu or ActionPopover for a visible actions button; Menubar for an app-wide File/Edit bar; Select to pick a value. | `components/context-menu.md` |
125
+ | CreditCardInput | Your app collects card number, expiry and security code in its own fields and needs formatting and brand detection. | Your payment provider's hosted card fields when it offers them; Input for any other text; NumberInput for quantities. | `components/credit-card-input.md` |
126
+ | DatePicker | The user picks one date (DatePicker) or a start and end date (DateRangePicker) in a form or filter bar. | Input type=date or a hand-built Popover and Calendar; DateTimePicker when a time is needed; TimeInput for a time alone; Calendar for an always-visible grid. | `components/date-picker.md` |
127
+ | DateTimePicker | The user picks one moment, a date plus a time of day, such as a scheduled send or a meeting start. | A DatePicker next to a separate TimeInput; DatePicker when the time doesn't matter; TimeInput for a time with no date. | `components/date-time-picker.md` |
128
+ | DecimalInput | The user enters money, a percentage, a measurement or another decimal that should display with fixed decimals and thousands separators. | NumberInput for counts with steppers; Slider for approximate values on a range; Input for text that isn't a number. | `components/decimal-input.md` |
129
+ | Dialog | The user must confirm or finish one short task before going back to the page, including destructive confirmations. | Sheet for long or form-heavy secondary content; Popover for a small non-blocking panel; Toast or Banner to report an outcome; never window.confirm or a custom modal. | `components/dialog.md` |
130
+ | Drawer | A side panel opens beside the main content and pushes it aside, so the user can keep working in the page while it's open. | Sheet for a modal panel that covers the page (and on small screens); NavigationDrawer for app navigation; Popover for small anchored content. | `components/drawer.md` |
131
+ | DropdownMenu | A button opens a short list of actions or view settings, such as a table row's actions menu or an account menu. | Select to pick a form value; ActionPopover for a plain icon-only list of actions; ContextMenu for right-click; Menubar for an app-wide File/Edit bar. | `components/dropdown-menu.md` |
132
+ | EmailInput | The user types an email address, with optional inline format feedback once they leave the field. | Input for any other single-line text; PasswordInput, PhoneInput or SearchInput for those field types. | `components/email-input.md` |
133
+ | Fieldset | Grouping related form fields under one title in a bordered panel, such as an address or notification preferences. | Card for content that isn't a form; CheckboxGroup or RadioGroup alone for one list of options; Separator to divide form sections without a border. | `components/fieldset.md` |
134
+ | FileInput | The user attaches one or more files from their device, such as a receipt, an avatar or a CSV to import. | a bare native file input; ImageInput or DocumentInput (same module) when only images or only documents are allowed. | `components/file-input.md` |
135
+ | Footer | A site page needs a bottom section with grouped links, legal links, a copyright line and social links. | CardFooter, DialogFooter or SheetFooter for the bottom of those surfaces; NavigationDrawerFooter for the bottom of an app sidebar; Header for the top bar. | `components/footer.md` |
136
+ | FormLabel | Naming a form control, adding helper text under it, or showing an error or status message for one field. | FieldsetLegend to title a group of fields; Banner for form-level or server errors; Toast for a saved confirmation; Typography for text that isn't part of a form. | `components/form-label.md` |
137
+ | Grid | Items go in columns, such as a grid of cards or stat tiles, a page split into main and side columns, or a layout whose column count changes with the viewport. | Table for rows users compare across the same attributes; Row with wrap for tags or chips of uneven width; Stack for a single column. | `components/grid.md` |
138
+ | Header | A site or simple app needs a top bar with a logo, a flat list of page links and actions such as search or sign-in, collapsing to a menu on small screens. | NavigationMenu for links with dropdown panels; NavigationDrawer for an app shell with a sidebar; Tabs for switching views inside a page. | `components/header.md` |
139
+ | HoverCard | A pointer user rests on a link or mention and sees a read-only preview of what it points to, such as a profile card. | Popover for anything interactive or essential; Tooltip for a short text hint; a page or Sheet for full details. | `components/hover-card.md` |
140
+ | Icon | A lucide icon (or inline svg) sits next to text, in a list row or inside a Button, and needs sizing to a --size-* token. | Button with an icon size for an icon-only action; Avatar for a person's picture; Spinner for loading; Lucide's numeric size prop or a px width. | `components/icon.md` |
141
+ | InputOTP | The user enters a short numeric one-time code from an email, text message or authenticator app. | Input for codes with letters; PasswordInput for a password or chosen PIN; NumberInput for quantities. | `components/input-otp.md` |
142
+ | Input | The user types a single line of free text: a name, title, URL, code or short answer. | Textarea for more than one line; EmailInput, PasswordInput, SearchInput, PhoneInput or NumberInput when the value has that shape; Select or RadioGroup to pick from known options. | `components/input.md` |
143
+ | Kbd | Show a keyboard key or shortcut as a keycap in help text, a tooltip, a shortcuts list or next to a trigger's label. | CommandShortcut, DropdownMenuShortcut, ContextMenuShortcut or MenubarShortcut inside those menus' rows; CodeBlock for code; plain text like Ctrl-K. | `components/kbd.md` |
144
+ | Media | You show a content image or a video and want a ratio preset, token-rounded corners, a loading state or simple playback controls. | Avatar for profile pictures; AspectRatio for embeds and custom ratios; Carousel for a slideshow; Skeleton before you have a source. | `components/media.md` |
145
+ | Menubar | An editor-style app needs a persistent desktop-style bar of menus such as File, Edit and View. | DropdownMenu for a single menu; NavigationMenu or Header for site navigation; Button or ToggleGroup for a toolbar of direct actions. | `components/menubar.md` |
146
+ | MultiSelect | The user picks several values from a list long enough to need search, such as labels, tags, assignees or filter values. | CheckboxGroup for a short list that should stay visible; Select for one value; ToggleGroup type="multiple" for toolbar states. | `components/multi-select.md` |
147
+ | NavigationDrawer | An app needs persistent side navigation between its main sections, collapsible to an icon rail on desktop and a slide-in sheet on phones. | NavigationMenu or Header for a website's top navigation; Tabs to switch views within a page; Sheet or Drawer for temporary side content. | `components/navigation-drawer.md` |
148
+ | NavigationMenu | A site header needs a row of top-level navigation links, some of which open a panel of further links. | Header for a complete site header with a mobile menu; NavigationDrawer for an app's side navigation; Tabs to switch views within a page; DropdownMenu for actions. | `components/navigation-menu.md` |
149
+ | NumberInput | The user sets a count or small number with a known step, such as a quantity, with optional minus and plus buttons. | DecimalInput for money, percentages and formatted decimals; Slider for approximate values on a range; Input for digits that aren't quantities. | `components/number-input.md` |
150
+ | Pagination | A long list or table is split into numbered pages and the user moves between them. | Tabs to switch views of the same page; Stepper for ordered steps; a "Load more" Button for feeds; Carousel for slides. | `components/pagination.md` |
151
+ | PasswordInput | The user types a password, with an optional strength meter and requirement checklist when they create one. | Input for any other single-line text; InputOTP for one-time codes; EmailInput for the username field. | `components/password-input.md` |
152
+ | PhoneInput | The user enters a phone number and you need its country calling code. | Input type="tel" when the country is fixed; Input for any other text. | `components/phone-input.md` |
153
+ | Popover | A small interactive panel (a short form, a few options) opens from a control and floats next to it without blocking the page. | DropdownMenu or ActionPopover for a list of actions; Tooltip for a text hint; HoverCard for a hover preview; Dialog or Sheet for content that must block the page. | `components/popover.md` |
154
+ | Progress | Showing how far a task with a known amount has got, such as an upload, a sync or setup completion. | Spinner when you can't say how long it will take; Skeleton for content loading into a layout; Stepper for steps in a flow. | `components/progress.md` |
155
+ | RadioGroup | The user picks exactly one option from a short list that should stay visible, such as a plan, density or delivery speed. | Select for long lists or tight space; CheckboxGroup when several options can be chosen; SegmentedControl or Tabs to switch between views. | `components/radio-group.md` |
156
+ | RichText | The user writes formatted long-form content (headings, lists, emphasis) that you store as HTML. | Textarea for plain multi-line text; Input for a single line; CodeBlock for showing code. | `components/rich-text.md` |
157
+ | Row | Items sit side by side in a line, such as a title with its actions, a group of buttons, an icon with its label, or tags that wrap. | Stack for items one above another; Grid when items must line up in columns across rows; ToggleGroup or SegmentedControl for a set of choices. | `components/row.md` |
158
+ | ScrollArea | A bounded box needs its own scrolling region with themed scrollbars, such as a long list in a fixed-height panel. | Letting the page scroll for page-length content; Accordion or Collapsible to shorten secondary content; the built-in scrolling of Command lists and Select menus. | `components/scroll-area.md` |
159
+ | SearchInput | The user types a query to search or filter, in a header, toolbar or above a list; AutocompleteSearch when they pick one result from suggestions. | Command for a command palette; Select or MultiSelect for choosing from a fixed list; Input for text that isn't a query. | `components/search-input.md` |
160
+ | SegmentedControl | The user picks exactly one of two to five short options that set the mode or filter of the current view, such as Day, Week, Month or List, Board. | Tabs when each option has its own content panel; ToggleGroup for toolbar tool options or several values; RadioGroup for a value submitted with a form; Select for longer lists. | `components/segmented-control.md` |
161
+ | Select | The user picks one value from a list too long to show as radio buttons, such as country, time zone or role. | RadioGroup for a few options that fit on screen; SegmentedControl for a mode of the same view; MultiSelect for several values; DropdownMenu for actions. | `components/select.md` |
162
+ | Separator | You need a visible line between sections, list rows or groups of inline items. | A border or spacing-token line on your own element; the separator part of DropdownMenu, ContextMenu, Menubar, Select or Command inside those; BreadcrumbSeparator in a breadcrumb. | `components/separator.md` |
163
+ | Sheet | Secondary content or a longer task (edit a record, filters, details) opens in a modal panel from the edge of the screen. | Drawer for a non-modal panel that pushes the page; Dialog for a short confirmation; Popover, HoverCard or Tooltip for small content anchored to a control. | `components/sheet.md` |
164
+ | Skeleton | Holding the shape of content that's loading into a known layout, such as a list, card grid or table on first load. | Spinner for a short in-place wait or a running action; Progress when the amount is known. | `components/skeleton.md` |
165
+ | Slider | The user sets a value or a range on a bounded scale where the position matters more than the exact number, such as volume, opacity or a price range. | NumberInput or DecimalInput when the exact value matters; SegmentedControl or RadioGroup for a few named steps; Progress to show progress. | `components/slider.md` |
166
+ | Spinner | Showing that something is working when you can't say how long it will take, such as a button action or a panel refreshing. | Progress when the amount is known; Skeleton when content loads into a known layout. | `components/spinner.md` |
167
+ | Stack | Children go one above the other with a token gap, such as page sections, form fields, or a heading over its text. | Row for items side by side; Grid for columns; Fieldset for a labelled group of form fields; margins on the children. | `components/stack.md` |
168
+ | Stepper | Showing where the user is in a fixed sequence of steps, such as a checkout or an onboarding wizard. | Tabs for switching between independent views; Progress for a percentage; Breadcrumb for where a page sits in the site. | `components/stepper.md` |
169
+ | Switch | Turning a setting on or off where the change takes effect immediately, such as notifications or a feature flag. | Checkbox for choices the user submits with a form; Toggle for a pressed toolbar button; RadioGroup or SegmentedControl for more than two options. | `components/switch.md` |
170
+ | Table | Showing items the user compares across the same attributes, such as users, invoices or plan features. | Card for items browsed on their own; TreeView for hierarchical data; your own grid of divs for tabular data. | `components/table.md` |
171
+ | Tabs | One area of a page switches between a few peer views of the same subject, such as Overview, Activity and Settings for one project. | SegmentedControl to switch a value or filter without separate panels; NavigationMenu, NavigationDrawer or links to go to another page; Accordion to stack sections the user can open together. | `components/tabs.md` |
172
+ | Textarea | The user writes free text that can run past one line: a message, description, note or comment. | Input for single-line values; RichText when the text needs formatting such as bold, lists or links. | `components/textarea.md` |
173
+ | TimeInput | The user enters a time of day with no date, such as opening hours or a daily reminder. | Input type=time or a Select of times; DateTimePicker when a date is needed too. | `components/time-input.md` |
174
+ | Toast | Briefly confirming an action that just finished, such as "Settings saved"; mount Toast once, then call toast() from sonner. | Banner for persistent, blocking or form-level messages; FormMessage for a single field; Dialog when the user must decide. | `components/toast.md` |
175
+ | ToggleGroup | A row of related pressable tool options in a toolbar, pressing one (text alignment) or several (bold, italic, underline). | SegmentedControl for a mode or filter of the same view; RadioGroup or CheckboxGroup for a form value; Toggle for a single on/off; Tabs to switch panels. | `components/toggle-group.md` |
176
+ | Toggle | A single button that stays pressed to show a state of the content or view, such as Bold, Mute or Show grid. | Switch for an on/off setting; Button for a one-off action; ToggleGroup for a set of related toggles; Checkbox for a yes/no submitted with a form. | `components/toggle.md` |
177
+ | Tooltip | A short text hint appears when the user hovers or focuses a control, such as the label and shortcut of an icon-only button. | aria-label for naming a control (a tooltip only describes); Popover or HoverCard for rich or interactive content; inline helper text or FormMessage for anything essential. | `components/tooltip.md` |
178
+ | TreeView | Showing hierarchical data the user expands and picks from, such as a file explorer, a folder picker or a category tree. | Accordion for stacked content sections; NavigationDrawer for app navigation; nested lists you build yourself. | `components/tree-view.md` |
179
+ | Typography | Setting any app text (page titles, section headings, paragraphs, labels and captions) on the fluid type scale. | Raw h1–h6, p or span with hand-set font sizes; Label for form labels; CodeBlock or Kbd for code. | `components/typography.md` |
180
+ | VisuallyHidden | Text should reach screen readers but not show, such as a heading sighted users infer from the layout, extra context on a link, or a status announced with a live region. | aria-label on the control itself for an icon-only Button; Tooltip when sighted users need the text too; display none or the hidden attribute, which hide it from everyone. | `components/visually-hidden.md` |
181
+ <!-- index:end -->
182
+
183
+ ## Foundations
184
+
185
+ | File | Read before |
186
+ | --- | --- |
187
+ | `foundations/theming.md` | applying or switching a theme, dark mode, density, corner style |
188
+ | `foundations/colour.md` | choosing any colour |
189
+ | `foundations/typography.md` | setting any text style |
190
+ | `foundations/spacing.md` | any margin, padding, gap or fixed size |
191
+ | `foundations/radius.md` | any corner |
192
+ | `foundations/elevation.md` | any shadow or layering, or a card's elevation |
193
+ | `foundations/motion.md` | any transition or animation (no tokens yet) |
194
+ | `foundations/iconography.md` | adding an icon |
195
+
196
+ ## When nothing fits
197
+
198
+ Compose from existing components and tokens. Add a code comment `// eluan: composed, no component for {intent}`. Never introduce a new colour, radius, shadow or font.
199
+
200
+ Known gaps: Eluan has no Alert (use Banner with `position="inline"`), no EmptyState (see `patterns/empty-states.md`), no Link (use Button `variant="link"` with `asChild`, or your router's link), no IconButton (use Button with an `icon*` size) and no List component.
201
+
202
+ App-level pieces Eluan leaves to you, composed once per app from the patterns: a page header and a section (`patterns/app-shell.md`), a stat tile and a chart frame (`patterns/dashboard.md`). Eluan has no chart component; style your charting library with the `--dataviz-*` tokens.