@eluan/core 0.6.0 → 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 (302) hide show
  1. package/README.md +14 -8
  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-DrHKPGqw.cjs → action-popover-Bt7U0g8y.cjs} +1 -1
  6. package/dist/{action-popover-NkXDAHJT.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-kDEa0rjF.js → avatar-C1LUOzjw.js} +1 -1
  10. package/dist/{avatar-B-t3ctR4.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-BLZ8V-KC.js → badge-Bj7i1Xf5.js} +12 -10
  15. package/dist/badge.cjs +1 -1
  16. package/dist/badge.js +1 -1
  17. package/dist/{banner-DzSp5WfQ.js → banner-BqEziMp4.js} +3 -4
  18. package/dist/{banner-CNdwDPqA.cjs → banner-C8OECYHz.cjs} +1 -1
  19. package/dist/banner.cjs +1 -1
  20. package/dist/banner.js +1 -1
  21. package/dist/{breadcrumb-BuxXkm6O.cjs → breadcrumb-BGH_YhOZ.cjs} +1 -1
  22. package/dist/{breadcrumb-C6qj-tDx.js → breadcrumb-BVXSOA4Z.js} +2 -2
  23. package/dist/breadcrumb.cjs +1 -1
  24. package/dist/breadcrumb.js +1 -1
  25. package/dist/button-BUHQOcAo.cjs +1 -0
  26. package/dist/{button-DNSNShUc.js → button-fCYiYUPE.js} +52 -45
  27. package/dist/button.cjs +1 -1
  28. package/dist/button.js +1 -1
  29. package/dist/{calendar-DS5821-k.cjs → calendar-2s_jGUBa.cjs} +10 -10
  30. package/dist/{calendar-BA2tSwZD.js → calendar-BN9BkjO_.js} +18 -18
  31. package/dist/calendar.cjs +1 -1
  32. package/dist/calendar.js +1 -1
  33. package/dist/card-CfSvhkGH.js +81 -0
  34. package/dist/card-DlP39QSZ.cjs +1 -0
  35. package/dist/card.cjs +1 -1
  36. package/dist/card.js +1 -1
  37. package/dist/{carousel-Bb7jpzep.js → carousel-BO6KUdP8.js} +1 -1
  38. package/dist/{carousel-4AERgboz.cjs → carousel-dypuabh8.cjs} +1 -1
  39. package/dist/carousel.cjs +1 -1
  40. package/dist/carousel.js +1 -1
  41. package/dist/{code-block-C9u140Ob.js → code-block-CAXUOKNI.js} +10 -10
  42. package/dist/{code-block-_dFw7Su1.cjs → code-block-Co8uGXiG.cjs} +2 -2
  43. package/dist/code-block.cjs +1 -1
  44. package/dist/code-block.js +1 -1
  45. package/dist/command-C50Jkuv7.js +132 -0
  46. package/dist/command-DqNgPVsf.cjs +9 -0
  47. package/dist/command.cjs +1 -1
  48. package/dist/command.js +1 -1
  49. package/dist/components/card.d.ts +7 -2
  50. package/dist/components/input.d.ts +1 -1
  51. package/dist/components/table.d.ts +8 -4
  52. package/dist/components/typography.d.ts +2 -2
  53. package/dist/{context-menu-Bd6m1RYU.js → context-menu-CTyczUjx.js} +34 -34
  54. package/dist/context-menu-oQ6xMN6t.cjs +1 -0
  55. package/dist/context-menu.cjs +1 -1
  56. package/dist/context-menu.js +1 -1
  57. package/dist/{credit-card-input-DppPJBne.cjs → credit-card-input-C6oNQBAl.cjs} +1 -1
  58. package/dist/{credit-card-input-9VPlzvDm.js → credit-card-input-aYftFdRo.js} +1 -1
  59. package/dist/credit-card-input.cjs +1 -1
  60. package/dist/credit-card-input.js +1 -1
  61. package/dist/{date-picker-M5hLx_1s.js → date-picker-DK-G61Nn.js} +3 -3
  62. package/dist/{date-picker-hE7cDg2B.cjs → date-picker-D_aU_P3A.cjs} +1 -1
  63. package/dist/date-picker.cjs +1 -1
  64. package/dist/date-picker.js +1 -1
  65. package/dist/{datetime-picker-BeRUPJ7s.cjs → datetime-picker-897BvwxW.cjs} +1 -1
  66. package/dist/{datetime-picker-CIqBZYMH.js → datetime-picker-CECtSobs.js} +4 -4
  67. package/dist/datetime-picker.cjs +1 -1
  68. package/dist/datetime-picker.js +1 -1
  69. package/dist/decimal-input-B7IHYVXP.cjs +1 -0
  70. package/dist/decimal-input-ohejnbQg.js +177 -0
  71. package/dist/decimal-input.cjs +1 -1
  72. package/dist/decimal-input.js +1 -1
  73. package/dist/dialog-DIGW7qln.cjs +1 -0
  74. package/dist/{dialog-Bsfviqvy.js → dialog-DVhnZFqE.js} +23 -23
  75. package/dist/dialog.cjs +1 -1
  76. package/dist/dialog.js +1 -1
  77. package/dist/dropdown-menu-BV2rX_ow.cjs +1 -0
  78. package/dist/dropdown-menu-C6NPtU9J.js +115 -0
  79. package/dist/dropdown-menu.cjs +1 -1
  80. package/dist/dropdown-menu.js +1 -1
  81. package/dist/{email-input-DIiY9Q3S.js → email-input-CRd87a_c.js} +1 -1
  82. package/dist/{email-input-CehmtNUq.cjs → email-input-Dvj1xSzJ.cjs} +1 -1
  83. package/dist/email-input.cjs +1 -1
  84. package/dist/email-input.js +1 -1
  85. package/dist/{fieldset-5V8wx-KE.js → fieldset-BxINrO_H.js} +6 -6
  86. package/dist/fieldset-C6cahGeV.cjs +1 -0
  87. package/dist/fieldset.cjs +1 -1
  88. package/dist/fieldset.js +1 -1
  89. package/dist/file-input-BzYcnore.cjs +1 -0
  90. package/dist/{file-input-B_aBgxmT.js → file-input-Ch16hNA1.js} +55 -55
  91. package/dist/file-input.cjs +1 -1
  92. package/dist/file-input.js +1 -1
  93. package/dist/{footer-fovIsy-0.cjs → footer-B-fRLhqP.cjs} +1 -1
  94. package/dist/{footer-jWaFq3qk.js → footer-BiiV6-ZD.js} +1 -1
  95. package/dist/footer.cjs +1 -1
  96. package/dist/footer.js +1 -1
  97. package/dist/header-CvhqGcuo.cjs +1 -0
  98. package/dist/{header-Dnf8AnIx.js → header-DwvyTpRi.js} +22 -22
  99. package/dist/header.cjs +1 -1
  100. package/dist/header.js +1 -1
  101. package/dist/hover-card-BQpzaazK.js +21 -0
  102. package/dist/{hover-card-C5KsTSZR.cjs → hover-card-V5A1HzEu.cjs} +1 -1
  103. package/dist/hover-card.cjs +1 -1
  104. package/dist/hover-card.js +1 -1
  105. package/dist/index.cjs +8 -8
  106. package/dist/index.js +490 -484
  107. package/dist/input-Dtr0tlf7.cjs +1 -0
  108. package/dist/{input-CPb9yVU5.js → input-Zs45H33i.js} +32 -29
  109. package/dist/input-otp-D-T32R3O.cjs +1 -0
  110. package/dist/input-otp-DwdX6VlR.js +95 -0
  111. package/dist/input-otp.cjs +1 -1
  112. package/dist/input-otp.js +1 -1
  113. package/dist/input.cjs +1 -1
  114. package/dist/input.js +1 -1
  115. package/dist/{menubar-F1_bhmku.js → menubar-CodcV4b7.js} +28 -28
  116. package/dist/menubar-bOYi1jKo.cjs +1 -0
  117. package/dist/menubar.cjs +1 -1
  118. package/dist/menubar.js +1 -1
  119. package/dist/{multi-select-CVxkWW29.js → multi-select-ChfbxrG3.js} +27 -27
  120. package/dist/multi-select-D573XqUT.cjs +1 -0
  121. package/dist/multi-select.cjs +1 -1
  122. package/dist/multi-select.js +1 -1
  123. package/dist/navigation-drawer-C7YYtBXz.js +198 -0
  124. package/dist/navigation-drawer-Cu2q1NMn.cjs +1 -0
  125. package/dist/navigation-drawer.cjs +1 -1
  126. package/dist/navigation-drawer.js +1 -1
  127. package/dist/{navigation-menu-BjA-PdMY.js → navigation-menu-BEp603xA.js} +16 -16
  128. package/dist/{navigation-menu-BtpLfxHN.cjs → navigation-menu-tw5cD7mL.cjs} +2 -2
  129. package/dist/navigation-menu.cjs +1 -1
  130. package/dist/navigation-menu.js +1 -1
  131. package/dist/number-input-C1RS-p2C.js +66 -0
  132. package/dist/number-input-N3-IvxZT.cjs +1 -0
  133. package/dist/number-input.cjs +1 -1
  134. package/dist/number-input.js +1 -1
  135. package/dist/{pagination-yKmFlFMR.cjs → pagination-C6e9oVes.cjs} +1 -1
  136. package/dist/{pagination-D2tjMpVU.js → pagination-XlaE-Plb.js} +31 -31
  137. package/dist/pagination.cjs +1 -1
  138. package/dist/pagination.js +1 -1
  139. package/dist/{password-input-ljwdGCO6.js → password-input-CR6FT6Rh.js} +2 -2
  140. package/dist/{password-input-CmHubHuU.cjs → password-input-CZ19HPZd.cjs} +1 -1
  141. package/dist/password-input.cjs +1 -1
  142. package/dist/password-input.js +1 -1
  143. package/dist/{phone-input-B8VksCer.cjs → phone-input-BZhkLmI6.cjs} +1 -1
  144. package/dist/{phone-input-qTL6K8rT.js → phone-input-CT9W87M7.js} +2 -2
  145. package/dist/phone-input.cjs +1 -1
  146. package/dist/phone-input.js +1 -1
  147. package/dist/popover-CE0n5BQv.cjs +1 -0
  148. package/dist/popover-CguR4kP7.js +70 -0
  149. package/dist/popover.cjs +1 -1
  150. package/dist/popover.js +1 -1
  151. package/dist/{progress-ChFf9bIq.js → progress-BpUNvswZ.js} +8 -7
  152. package/dist/progress-DSy_jRee.cjs +1 -0
  153. package/dist/progress.cjs +1 -1
  154. package/dist/progress.js +1 -1
  155. package/dist/providers/create-theme.d.ts +1 -1
  156. package/dist/providers/eluan-provider.d.ts +8 -6
  157. package/dist/{rich-text-DImwK9hN.js → rich-text-CuAa5WkV.js} +21 -21
  158. package/dist/{rich-text-DzHLeG7W.cjs → rich-text-p7H-0qE7.cjs} +2 -2
  159. package/dist/rich-text.cjs +1 -1
  160. package/dist/rich-text.js +1 -1
  161. package/dist/{search-input-Dgr9kT1a.js → search-input-CxKLBmii.js} +53 -53
  162. package/dist/{search-input-BKTjebg7.cjs → search-input-XmoL2YjY.cjs} +1 -1
  163. package/dist/search-input.cjs +1 -1
  164. package/dist/search-input.js +1 -1
  165. package/dist/select-BCDam7PR.cjs +1 -0
  166. package/dist/select-QgjG43ye.js +119 -0
  167. package/dist/select.cjs +1 -1
  168. package/dist/select.js +1 -1
  169. package/dist/sheet-BxNmBMti.cjs +1 -0
  170. package/dist/{sheet-uiyHNKEw.js → sheet-D0hVuH9a.js} +2 -2
  171. package/dist/sheet.cjs +1 -1
  172. package/dist/sheet.js +1 -1
  173. package/dist/slider-Cv7uIp4z.js +16 -0
  174. package/dist/slider-Dci7KGjg.cjs +1 -0
  175. package/dist/slider.cjs +1 -1
  176. package/dist/slider.js +1 -1
  177. package/dist/styles.css +260 -120
  178. package/dist/switch-DQ4R-gjR.cjs +1 -0
  179. package/dist/switch-WaESqUuN.js +9 -0
  180. package/dist/switch.cjs +1 -1
  181. package/dist/switch.js +1 -1
  182. package/dist/table-YKEWGYnI.js +149 -0
  183. package/dist/table-zbkgP43L.cjs +1 -0
  184. package/dist/table.cjs +1 -1
  185. package/dist/table.js +1 -1
  186. package/dist/{tabs-TV4_2wi1.js → tabs-BwNIi7Dl.js} +7 -7
  187. package/dist/tabs-DItFd2o9.cjs +1 -0
  188. package/dist/tabs.cjs +1 -1
  189. package/dist/tabs.js +1 -1
  190. package/dist/textarea-BWAPWDRt.js +8 -0
  191. package/dist/textarea-CniUTipL.cjs +1 -0
  192. package/dist/textarea.cjs +1 -1
  193. package/dist/textarea.js +1 -1
  194. package/dist/time-input-CeJVQKWO.js +195 -0
  195. package/dist/time-input-eVFFYo10.cjs +1 -0
  196. package/dist/time-input.cjs +1 -1
  197. package/dist/time-input.js +1 -1
  198. package/dist/{toast-BK0ulAzi.cjs → toast-84RpQJtn.cjs} +1 -1
  199. package/dist/{toast-hI3pdZ2X.js → toast-BGKaAZwf.js} +1 -1
  200. package/dist/toast.cjs +1 -1
  201. package/dist/toast.js +1 -1
  202. package/dist/{toggle-Bx3q15Pu.js → toggle-CxHqX2-V.js} +10 -10
  203. package/dist/toggle-DrJJAflI.cjs +1 -0
  204. package/dist/toggle-group-DvoxSJMq.cjs +1 -0
  205. package/dist/{toggle-group-LaZmOMx_.js → toggle-group-k-kiBnEe.js} +17 -17
  206. package/dist/toggle-group.cjs +1 -1
  207. package/dist/toggle-group.js +1 -1
  208. package/dist/toggle.cjs +1 -1
  209. package/dist/toggle.js +1 -1
  210. package/dist/{tooltip-DZqn4wKl.js → tooltip-1Biy6A0m.js} +3 -3
  211. package/dist/{tooltip-faf1dIXp.cjs → tooltip-DIerl2vz.cjs} +1 -1
  212. package/dist/tooltip.cjs +1 -1
  213. package/dist/tooltip.js +1 -1
  214. package/dist/{tree-view-DRmm6oL6.js → tree-view-Bswh2RGr.js} +38 -38
  215. package/dist/tree-view-DDX9QjzF.cjs +1 -0
  216. package/dist/tree-view.cjs +1 -1
  217. package/dist/tree-view.js +1 -1
  218. package/package.json +6 -2
  219. package/skills/eluan/DESIGN.md +171 -169
  220. package/skills/eluan/SKILL.md +47 -11
  221. package/skills/eluan/components/banner.md +2 -2
  222. package/skills/eluan/components/breadcrumb.md +1 -1
  223. package/skills/eluan/components/card.md +9 -8
  224. package/skills/eluan/components/code-block.md +1 -1
  225. package/skills/eluan/components/context-menu.md +1 -1
  226. package/skills/eluan/components/drawer.md +1 -1
  227. package/skills/eluan/components/dropdown-menu.md +1 -1
  228. package/skills/eluan/components/grid.md +4 -4
  229. package/skills/eluan/components/header.md +4 -4
  230. package/skills/eluan/components/input.md +2 -2
  231. package/skills/eluan/components/menubar.md +2 -2
  232. package/skills/eluan/components/navigation-drawer.md +8 -8
  233. package/skills/eluan/components/navigation-menu.md +1 -1
  234. package/skills/eluan/components/row.md +2 -2
  235. package/skills/eluan/components/segmented-control.md +1 -1
  236. package/skills/eluan/components/separator.md +2 -2
  237. package/skills/eluan/components/skeleton.md +1 -1
  238. package/skills/eluan/components/slider.md +1 -1
  239. package/skills/eluan/components/stack.md +1 -1
  240. package/skills/eluan/components/stepper.md +3 -3
  241. package/skills/eluan/components/table.md +7 -7
  242. package/skills/eluan/components/tabs.md +1 -1
  243. package/skills/eluan/components/toast.md +2 -2
  244. package/skills/eluan/components/typography.md +12 -9
  245. package/skills/eluan/foundations/colour.md +99 -94
  246. package/skills/eluan/foundations/elevation.md +44 -15
  247. package/skills/eluan/foundations/iconography.md +4 -4
  248. package/skills/eluan/foundations/look.md +135 -0
  249. package/skills/eluan/foundations/radius.md +32 -20
  250. package/skills/eluan/foundations/spacing.md +19 -19
  251. package/skills/eluan/foundations/theming.md +48 -33
  252. package/skills/eluan/foundations/typography.md +49 -43
  253. package/skills/eluan/patterns/app-shell.md +222 -0
  254. package/skills/eluan/patterns/dashboard.md +249 -0
  255. package/skills/eluan/patterns/empty-states.md +20 -26
  256. package/skills/eluan/patterns/navigation.md +5 -4
  257. package/skills/eluan/patterns/page-layout.md +104 -20
  258. package/dist/badge-D1A0Tc79.cjs +0 -1
  259. package/dist/button--_WI-fM6.cjs +0 -1
  260. package/dist/card-BNdR5aDa.cjs +0 -1
  261. package/dist/card-BSgN7WSe.js +0 -70
  262. package/dist/command-D02vvta9.cjs +0 -9
  263. package/dist/command-sUMAxm8S.js +0 -132
  264. package/dist/context-menu-1WehRCpR.cjs +0 -1
  265. package/dist/decimal-input-Bg2BPKIr.js +0 -177
  266. package/dist/decimal-input-CkTEjo2J.cjs +0 -1
  267. package/dist/dialog-DRAoumvB.cjs +0 -1
  268. package/dist/dropdown-menu-_h_fqgvS.cjs +0 -1
  269. package/dist/dropdown-menu-p0NkOoTP.js +0 -115
  270. package/dist/fieldset-C3aAINhi.cjs +0 -1
  271. package/dist/file-input-D62FEnKg.cjs +0 -1
  272. package/dist/header-DzItWqW4.cjs +0 -1
  273. package/dist/hover-card-C_FCzE41.js +0 -21
  274. package/dist/input-BcjL2oxv.cjs +0 -1
  275. package/dist/input-otp-BhJ3ERrY.cjs +0 -1
  276. package/dist/input-otp-CTvJztkH.js +0 -95
  277. package/dist/menubar-CKWQEl7c.cjs +0 -1
  278. package/dist/multi-select-DBFINH3F.cjs +0 -1
  279. package/dist/navigation-drawer-BCBFtLEq.cjs +0 -1
  280. package/dist/navigation-drawer-BMyHXhhX.js +0 -198
  281. package/dist/number-input-Cm9YPBOX.js +0 -66
  282. package/dist/number-input-Dr9MbuRV.cjs +0 -1
  283. package/dist/popover-DPc4rRsR.js +0 -70
  284. package/dist/popover-Db6VOysz.cjs +0 -1
  285. package/dist/progress-BpdmBGaX.cjs +0 -1
  286. package/dist/select-Cdh991T-.cjs +0 -1
  287. package/dist/select-Dp5AJ6I-.js +0 -119
  288. package/dist/sheet-CkXjinUG.cjs +0 -1
  289. package/dist/slider-BQmbh0Nl.js +0 -16
  290. package/dist/slider-DK2yk-YK.cjs +0 -1
  291. package/dist/switch-C2OPCq5Z.cjs +0 -1
  292. package/dist/switch-CXBWUZcq.js +0 -9
  293. package/dist/table-DopzfXYj.js +0 -101
  294. package/dist/table-xNu_KUaU.cjs +0 -1
  295. package/dist/tabs-D8p6Tr5i.cjs +0 -1
  296. package/dist/textarea-BnpQmE74.cjs +0 -1
  297. package/dist/textarea-CJRmnazN.js +0 -8
  298. package/dist/time-input-A603mEFQ.js +0 -195
  299. package/dist/time-input-qxljhdEb.cjs +0 -1
  300. package/dist/toggle-Z3t4jPdv.cjs +0 -1
  301. package/dist/toggle-group-BZIW4wJp.cjs +0 -1
  302. package/dist/tree-view-DVQyRQDg.cjs +0 -1
@@ -221,7 +221,7 @@ export function InvoiceHeader({ navigate }: { navigate: (href: string) => void }
221
221
  </BreadcrumbItem>
222
222
  </BreadcrumbList>
223
223
  </Breadcrumb>
224
- <Typography variant="title" as="h1">Invoice INV-1042</Typography>
224
+ <Typography variant="title" size="xl" as="h1">Invoice INV-1042</Typography>
225
225
  </div>
226
226
  );
227
227
  }
@@ -28,9 +28,9 @@ Card is a bordered surface that groups content about one thing. It renders a `<d
28
28
 
29
29
  ## 3. Anatomy
30
30
 
31
- 1. **Card**: the container. Background `--container-bg`, 1px border, `--curves-lg` corners, shadow from `elevation`.
31
+ 1. **Card**: the container. Background `--container-bg`, `--curves-lg` corners, and an edge and shadow from `elevation`.
32
32
  2. **CardHeader** (optional): a column holding the title and description, padded `--spacing-2xl` on all sides.
33
- 3. **CardTitle** (optional): the card's heading text, `--font-size-xl` at weight 600. Renders a `<div>`, not a heading element (see Accessibility).
33
+ 3. **CardTitle** (optional): the card's heading text, `--font-size-xl` at weight 600. Renders a `<div>`, not a heading element (see Accessibility). On an app screen that is the size of the page title, so keep CardTitle for the figure in a stat tile and name other cards with `<Typography variant="subheading" as="h3" size="base">` in the CardHeader (see [dashboard.md](../patterns/dashboard.md)).
34
34
  4. **CardDescription** (optional): muted supporting text under the title, `--font-size-sm`.
35
35
  5. **CardContent**: the body. Padded `--spacing-2xl` on the sides and bottom; no top padding, so it sits under the header (see Rules 3 for cards without one).
36
36
  6. **CardFooter** (optional): a row for actions, padded like CardContent. It has no gap between children.
@@ -41,10 +41,11 @@ Card has no `variant` prop. Its look comes from `elevation` and `clickable`.
41
41
 
42
42
  | Elevation | Use for |
43
43
  | --- | --- |
44
- | `none` | Flat layouts where the border alone separates the card: settings groups, cards on a plain page. |
45
- | `sm` (default) | Most cards. A slight lift off the page. |
46
- | `md` | A card that must stand out from a busy background, or the recommended option in a row. |
47
- | `lg` | Rare. A single prominent card on an otherwise empty area. |
44
+ | `auto` (default) | Almost every card. It lifts one level above the surface it sits in: level 1 on the page, level 2 inside a panel or another card. |
45
+ | `sm`, `md`, `lg` | Pinning level 1, 2 or 3, when one card must stand out from its siblings, such as the recommended option in a row. |
46
+ | `none` | A flat, bordered card that should read as an outline: a drop zone, a placeholder. |
47
+
48
+ The levels are the `--elevation-*` tokens; see [elevation.md](../foundations/elevation.md). A raised card's edge is the token's hairline ring, so only `elevation="none"` shows the border.
48
49
 
49
50
  `clickable` makes the whole card respond to hover: a deeper shadow, a 1px lift and a pointer cursor. It adds no role, focus or keyboard handling (see Rules and Accessibility).
50
51
 
@@ -56,7 +57,7 @@ Card has no size prop. It fills the width of its parent; set width or grid place
56
57
 
57
58
  | State | Looks like | Notes |
58
59
  | --- | --- | --- |
59
- | Default | `--container-bg` surface, border, shadow from `elevation` | Shadows are hardcoded black at low opacity, so raised cards barely show depth in dim and dark modes. Use `elevation="none"` with the border where depth must read in every mode. |
60
+ | Default | `--container-bg` surface, edge and shadow from `elevation` | The shadows are cast in the theme's darkest neutral; dark mode adds a hairline and a light on the top edge, so depth reads in every mode. |
60
61
  | Hover | `clickable` only: deeper shadow and a 1px upward lift | Non-clickable cards don't react. |
61
62
  | Focus | No focus style of its own | A Card is only focusable if you add `tabIndex`; then the browser's default ring shows. Never remove or restyle the focus ring. |
62
63
  | Active | `clickable` only: shadow drops back to `md`, lift resets | |
@@ -174,7 +175,7 @@ Card has no size prop. It fills the width of its parent; set width or grid place
174
175
 
175
176
  | Prop | Type | Default | Description |
176
177
  | --- | --- | --- | --- |
177
- | `elevation` | `"none" \| "sm" \| "md" \| "lg"` | `"sm"` | Shadow depth. |
178
+ | `elevation` | `"auto" \| "none" \| "sm" \| "md" \| "lg"` | `"auto"` | Shadow depth. |
178
179
  | `clickable` | `boolean` | `false` | Adds a hover shadow, lift and pointer cursor. Adds no role, focus or keyboard handling. |
179
180
  | `...props` | `HTMLAttributes<HTMLDivElement>` without `className`, `style` | | Native div attributes: `role`, `aria-*`, `onClick`, `tabIndex`, `onKeyDown`. |
180
181
 
@@ -164,7 +164,7 @@ const providerCode = `import "@eluan/core/styles.css";
164
164
  import { EluanProvider } from "@eluan/core";
165
165
 
166
166
  export function App({ children }: { children: React.ReactNode }) {
167
- return <EluanProvider defaultTheme="minimal">{children}</EluanProvider>;
167
+ return <EluanProvider>{children}</EluanProvider>;
168
168
  }`;
169
169
 
170
170
  export function InstallSteps() {
@@ -140,7 +140,7 @@ ContextMenu has no size prop. Item text is `--font-size-sm` and padding comes fr
140
140
  - Keyboard: the menu opens on the trigger's `contextmenu` event; give keyboard users the visible actions menu (Rule 1). Inside the menu, ArrowUp and ArrowDown move between items, Home and End jump to the ends, typing a letter jumps to a matching item, Enter or Space selects, ArrowRight opens a submenu, ArrowLeft closes it and Escape closes the menu.
141
141
  - Focus: opening moves focus into the menu. The menu is modal by default (`modal`), so outside pointer interaction is blocked while it is open.
142
142
  - Touch: a 700ms long-press opens the menu; moving the finger cancels it.
143
- - Contrast: handled by the theme. Don't override colours. The focused item is shown only by its `--interactive-bg-hover` fill, which is faint in `minimal`; don't patch it per menu.
143
+ - Contrast: handled by the theme. Don't override colours. The focused item is shown only by its `--interactive-bg-hover` fill, which is faint by design; don't patch it per menu.
144
144
 
145
145
  ## 11. Behaviour
146
146
 
@@ -239,7 +239,7 @@ export function OrdersWithDetails({ orderNumber }: { orderNumber: string }) {
239
239
  }}
240
240
  >
241
241
  <div style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}>
242
- <Typography variant="title" as="h1">
242
+ <Typography variant="title" size="xl" as="h1">
243
243
  Orders
244
244
  </Typography>
245
245
  <DrawerTrigger asChild aria-controls="order-details">
@@ -82,7 +82,7 @@ DropdownMenu has no size prop. Item text is `--font-size-sm` and padding comes f
82
82
  | Disabled | `--interactive-bg-disabled` fill, `--interactive-fg-disabled` text, no pointer events | Arrow keys skip disabled items. |
83
83
  | Destructive | `--destructive-fg` text, kept while highlighted | |
84
84
 
85
- Separators currently use `--container-bg-alt`, which is barely visible on the panel in `minimal`. Don't draw your own line; keep using `DropdownMenuSeparator`.
85
+ Separators are a hairline (`--container-bg-alt`, the hairline's shade). Don't draw your own line; keep using `DropdownMenuSeparator`.
86
86
 
87
87
  ## 7. Content guidelines
88
88
 
@@ -159,18 +159,18 @@ export function DashboardOverview() {
159
159
  <Grid cols={{ base: 1, l: "minmax(0, 2fr) minmax(0, 1fr)" }} gap="xl" align="start">
160
160
  <Card>
161
161
  <CardHeader>
162
- <CardTitle>Recent invoices</CardTitle>
162
+ <Typography variant="subheading" as="h3" size="base">Recent invoices</Typography>
163
163
  </CardHeader>
164
164
  <CardContent>
165
- <Typography tone="muted">Two of four paid.</Typography>
165
+ <Typography size="sm" tone="muted">Two of four paid.</Typography>
166
166
  </CardContent>
167
167
  </Card>
168
168
  <Card>
169
169
  <CardHeader>
170
- <CardTitle>Notes</CardTitle>
170
+ <Typography variant="subheading" as="h3" size="base">Notes</Typography>
171
171
  </CardHeader>
172
172
  <CardContent>
173
- <Typography tone="muted">The billing run moves to Friday this month.</Typography>
173
+ <Typography size="sm" tone="muted">The billing run moves to Friday this month.</Typography>
174
174
  </CardContent>
175
175
  </Card>
176
176
  </Grid>
@@ -27,7 +27,7 @@ Header is a responsive top bar. It renders a `<header>` with three slots: a logo
27
27
 
28
28
  ## 3. Anatomy
29
29
 
30
- 1. **Bar**: the `<header>` element, full width, `--container-bg` with a 1px bottom border in `--container-border-alt`. Your extra props land here.
30
+ 1. **Bar**: the `<header>` element, full width, `--container-bg`, no border. Your extra props land here.
31
31
  2. **Container**: centres the content up to `80rem`, with `--spacing-md` side padding and a height of 1.5 × `--size-xl`.
32
32
  3. **Logo** (`logo`): your node at the start of the bar.
33
33
  4. **Nav** (`items`): a `<nav>` of small Buttons, one per NavItem. Items with `href` render links; items without render buttons.
@@ -41,8 +41,8 @@ Header has no `variant` prop. Two booleans change the look:
41
41
 
42
42
  | Prop | Use for |
43
43
  | --- | --- |
44
- | default | An opaque bar with a bottom border, in normal page flow. |
45
- | `transparent` | A bar laid over a hero image or coloured section: no background and no border. |
44
+ | default | An opaque bar with no border, in normal page flow. |
45
+ | `transparent` | A bar laid over a hero image or coloured section: no background. |
46
46
  | `sticky` | A bar that stays pinned to the top of its scrolling container (`z-index: 50`). Combine with either look. |
47
47
 
48
48
  ## 5. Sizes
@@ -166,7 +166,7 @@ Header has no size prop. The bar height is 1.5 × `--size-xl`, so it follows den
166
166
  | `items` | `NavItem[]` | `[]` | Nav links, in order. |
167
167
  | `actions` | `ReactNode` | | Elements at the end of the bar (search, sign-in, call to action). Also rendered in the mobile menu. |
168
168
  | `sticky` | `boolean` | `false` | Pins the bar to the top of its scrolling container. |
169
- | `transparent` | `boolean` | `false` | Removes the background and bottom border. |
169
+ | `transparent` | `boolean` | `false` | Removes the background. |
170
170
  | `mobileBreakpoint` | `"sm" \| "md" \| "lg"` | `"md"` | Viewport width below which the nav collapses into the menu (640, 768, 1024px). |
171
171
  | `...props` | `HTMLAttributes<HTMLElement>` without `className`, `style` | | Applied to the `<header>`: `id`, `aria-*`, `data-*`. Children are dropped. `className` and `style` are omitted. |
172
172
 
@@ -89,7 +89,7 @@ There's no hover style.
89
89
  2. Don't add an icon for `type` search, email, password, tel or url; it's automatic. Pass `icon` to replace it and `icon={false}` to remove it. `icon={null}` does not remove it.
90
90
  3. Read the value with the native `onChange` event. Input has no `onValueChange`.
91
91
  4. Mark errors with `aria-invalid={true}` and a FormMessage the Input points to with `aria-describedby`. `validationTone` alone changes only the colour.
92
- 5. Size a custom `icon` yourself: Input renders your node as is. Set its width and height to `--size-xxs` and `aria-hidden="true"`.
92
+ 5. Don't size a custom `icon`: Input fits it to the field's icon size (`--size-xxs`). Give it `aria-hidden="true"`.
93
93
  6. Keep `trailing` to one small element: an icon, or a Button with `size="iconXs"` and an `aria-label`. It's ignored when `type="password"`.
94
94
  7. Never pass `className` or `style`; they're dropped. Input fills its container, so set width on a wrapper.
95
95
 
@@ -197,7 +197,7 @@ export function WorkspaceFields({ apiKey }: { apiKey: string }) {
197
197
  name="slug"
198
198
  required
199
199
  textStyle="mono"
200
- icon={<Globe aria-hidden="true" style={iconSize} />}
200
+ icon={<Globe aria-hidden="true" />}
201
201
  placeholder="acme-design"
202
202
  value={slug}
203
203
  onChange={(event) => setSlug(event.target.value)}
@@ -60,7 +60,7 @@ Menubar has no size prop. Text is `--font-size-sm` and padding comes from `--spa
60
60
 
61
61
  Known issues:
62
62
 
63
- - Separators use `--container-bg-alt`, which is barely visible on the panel in `minimal`. Keep using `MenubarSeparator`; don't draw your own line.
63
+ - Separators are a hairline (`--container-bg-alt`, the hairline's shade). Keep using `MenubarSeparator`; don't draw your own line.
64
64
  - `MenubarSubContent` has no shadow, so a submenu sits flat on the panel beneath it. Don't add one.
65
65
 
66
66
  ## 7. Content guidelines
@@ -126,7 +126,7 @@ Known issues:
126
126
  - Keyboard: Tab reaches the bar as one stop. ArrowLeft and ArrowRight move between triggers and wrap at the ends (`loop`). Enter, Space or ArrowDown opens a menu. Inside a menu, ArrowUp and ArrowDown move, Home and End jump to the ends, typing a letter jumps to a match, Enter or Space selects, ArrowRight opens a submenu or moves to the next menu, ArrowLeft closes a submenu or moves to the previous menu, and Escape closes the menu.
127
127
  - Focus: opening moves focus into the menu; Escape returns it to the trigger.
128
128
  - Pointer: a click opens a menu; while one is open, pointing at another trigger switches to it. To open on hover from rest, control `value` on `Menubar` and set it from each trigger's `onPointerEnter`, as the docs demo does.
129
- - Contrast: handled by the theme. Don't override colours. Focus on triggers and items is shown only by the `--interactive-bg-hover` fill, which is faint in `minimal`; don't patch it per component.
129
+ - Contrast: handled by the theme. Don't override colours. Focus on triggers and items is shown only by the `--interactive-bg-hover` fill, which is faint by design; don't patch it per component.
130
130
 
131
131
  ## 11. Behaviour
132
132
 
@@ -9,7 +9,7 @@ source: packages/core/src/components/navigation-drawer.tsx
9
9
 
10
10
  ## 1. Overview
11
11
 
12
- NavigationDrawer is an app's primary side navigation. On screens 768px and wider it's a 16rem sidebar that collapses to an icon-only rail; below 768px it becomes a left [Sheet](./sheet.md) behind a menu button, which closes when the user picks an item. `NavigationDrawerLayout` gives you the whole shell: the provider, the sidebar, a bar with the collapse toggle and a scrolling content column.
12
+ NavigationDrawer is an app's primary side navigation. On screens 768px and wider it's a 14rem sidebar that collapses to an icon-only rail; below 768px it becomes a left [Sheet](./sheet.md) behind a menu button, which closes when the user picks an item. `NavigationDrawerLayout` gives you the whole shell: the provider, the sidebar on the page colour, and the content as a raised panel with a bar for the collapse toggle and a scrolling column.
13
13
 
14
14
  ## 2. When to use
15
15
 
@@ -27,12 +27,12 @@ NavigationDrawer is an app's primary side navigation. On screens 768px and wider
27
27
 
28
28
  1. **Provider** (`NavigationDrawerProvider`): holds the collapsed state, the phone breakpoint check and the phone sheet's open state. Every other part reads it.
29
29
  2. **Layout** (`NavigationDrawerLayout`, optional): provider + sidebar + main column. Puts a `NavigationDrawerToggle` in a `--size-xl` bar above your content, outside the sidebar, so it stays visible when collapsed. Fills its parent's height.
30
- 3. **Drawer** (`NavigationDrawer`): on desktop an `<aside>` on `--container-bg` with a `--container-border-alt` right border, 16rem wide or a rail when collapsed. On phones, a menu button fixed at the top-left that opens a left Sheet wrapping the children in a `<nav>`.
31
- 4. **Header** (`NavigationDrawerHeader`): a `--size-xl` row with a bottom border for the logo or app name. Its children are hidden while collapsed.
32
- 5. **Content** (`NavigationDrawerContent`): the scrolling middle area for groups and items, padded `--spacing-xs`. The scrollbar appears on hover.
33
- 6. **Footer** (`NavigationDrawerFooter`): pinned to the bottom with a top border, for the account, help or sign out.
30
+ 3. **Drawer** (`NavigationDrawer`): on desktop an `<aside>`, 14rem wide or a rail when collapsed. It has no border. On its own it sits on `--container-bg`; inside NavigationDrawerLayout it sits straight on the page colour. On phones, a menu button fixed at the top-left that opens a left Sheet wrapping the children in a `<nav>`.
31
+ 4. **Header** (`NavigationDrawerHeader`): a `--size-xl` row for the logo or app name, with no border. Its children are hidden while collapsed.
32
+ 5. **Content** (`NavigationDrawerContent`): the scrolling middle area for groups and items, padded `--spacing-md`. The scrollbar appears on hover.
33
+ 6. **Footer** (`NavigationDrawerFooter`): pinned to the bottom, with no border, for the account, help or sign out.
34
34
  7. **Group** (`NavigationDrawerGroup`): a column of items with an optional `label`, rendered as an `<h4>` at `--font-size-xs`, weight 600.
35
- 8. **Item** (`NavigationDrawerItem`): a link row, `--size-md` tall, `--font-size-xs` at weight 500 in `--interactive-fg-alt`. A `--size-xxs` icon slot, then the label, which truncates with an ellipsis. Use `asChild` to render your router's link.
35
+ 8. **Item** (`NavigationDrawerItem`): a link row, `--size-md` tall, `--font-size-sm` at weight 500 in `--interactive-fg-alt`. A `--size-xxs` icon slot, then the label, which truncates with an ellipsis. Use `asChild` to render your router's link.
36
36
  9. **Toggle** (`NavigationDrawerToggle`): a ghost `iconSm` Button with a chevron that collapses or expands the drawer. Renders nothing on phones.
37
37
  10. **Hook** (`useNavigationDrawer`): reads `collapsed`, `setCollapsed`, `isMobile`, `mobileOpen` and `setMobileOpen`.
38
38
 
@@ -42,7 +42,7 @@ NavigationDrawer has no variant prop. Its look changes with state: expanded, col
42
42
 
43
43
  ## 5. Sizes
44
44
 
45
- NavigationDrawer has no size prop. Expanded it is 16rem wide; collapsed it is one `--size-md` item plus `--spacing-xs` on each side. Items and bars use `--size-*` tokens, so they follow the density axis.
45
+ NavigationDrawer has no size prop. Expanded it is 14rem wide; collapsed it is one `--size-md` item plus `--spacing-md` on each side. Items and bars use `--size-*` tokens, so they follow the density axis.
46
46
 
47
47
  ## 6. States
48
48
 
@@ -51,7 +51,7 @@ NavigationDrawer has no size prop. Expanded it is 16rem wide; collapsed it is on
51
51
  | Default | Item text `--interactive-fg-alt`, no fill | |
52
52
  | Hover | `--interactive-bg-hover` fill, `--interactive-fg` text | |
53
53
  | Focus | 1px ring drawn as a `box-shadow` in `--focus-ring` | Never remove or restyle the focus ring. |
54
- | Active | `--interactive-bg-active` fill, `--interactive-fg-active` text, unchanged on hover | `active` is visual only; also set `aria-current="page"` (Rule 3). |
54
+ | Active | A raised chip: `--container-bg` fill, `--interactive-fg` text and `--elevation-control`, unchanged on hover | `active` is visual only; also set `aria-current="page"` (Rule 3). |
55
55
  | Collapsed | A rail of square icon items; labels and header contents removed; group labels fade to transparent but keep their space | Item labels are removed from the DOM, so give items an `aria-label` (Rule 4). |
56
56
  | Phone | Menu button at the top-left; the drawer opens as a left Sheet | Picking an item closes the sheet, even when a client-side router prevents the native navigation. |
57
57
 
@@ -131,7 +131,7 @@ The indicator arrow is filled with `--container-bg-alt` while the panel is `--co
131
131
  - Keyboard: Tab moves through triggers and top-level links. Enter or Space toggles a panel. ArrowLeft and ArrowRight move between top-level items, Home and End jump to the ends, and ArrowDown moves focus into an open panel. Escape closes the panel and returns focus to its trigger.
132
132
  - Focus: a panel doesn't trap focus; tabbing past its last link moves on through the page. Selecting a link closes the panel.
133
133
  - Current page: `active` on `NavigationMenuLink` adds `aria-current="page"`.
134
- - Contrast: handled by the theme. Don't override colours. Trigger focus is shown only by the `--interactive-bg-hover` fill, identical to hover and faint in `minimal`; don't patch it per component.
134
+ - Contrast: handled by the theme. Don't override colours. Trigger focus is shown only by the `--interactive-bg-hover` fill, identical to hover and faint by design; don't patch it per component.
135
135
 
136
136
  ## 11. Behaviour
137
137
 
@@ -74,7 +74,7 @@ Row has no size prop. `gap` sets the space between children (and between lines w
74
74
 
75
75
  ```tsx
76
76
  <Row justify="between" gap="lg" wrap>
77
- <Typography variant="heading" as="h2">Members</Typography>
77
+ <Typography variant="heading" size="lg" as="h2">Members</Typography>
78
78
  <Button>Invite</Button>
79
79
  </Row>
80
80
  ```
@@ -137,7 +137,7 @@ export function MembersHeader() {
137
137
  return (
138
138
  <Stack gap="lg">
139
139
  <Row justify="between" gap="lg" wrap>
140
- <Typography variant="title" as="h1">Members</Typography>
140
+ <Typography variant="title" size="xl" as="h1">Members</Typography>
141
141
  <Row gap="sm">
142
142
  <Button variant="outline">Export</Button>
143
143
  <Button>Invite</Button>
@@ -171,7 +171,7 @@ export function TasksHeader() {
171
171
  return (
172
172
  <section style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-md)" }}>
173
173
  <div style={{ display: "flex", alignItems: "center", justifyContent: "space-between", gap: "var(--spacing-md)" }}>
174
- <Typography variant="heading" as="h2">
174
+ <Typography variant="heading" size="lg" as="h2">
175
175
  Tasks
176
176
  </Typography>
177
177
  <SegmentedControl size="sm" value={view} onValueChange={(next) => setView(next as View)}>
@@ -74,7 +74,7 @@ Separator has no size prop. Thickness is fixed at 1px; `orientation` and `varian
74
74
 
75
75
  ```tsx
76
76
  <div style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-lg)" }}>
77
- <Typography variant="heading" as="h2">Billing</Typography>
77
+ <Typography variant="heading" size="lg" as="h2">Billing</Typography>
78
78
  <Separator />
79
79
  <Typography>Your plan renews on 1 March.</Typography>
80
80
  </div>
@@ -141,7 +141,7 @@ export function AccountSummary() {
141
141
  return (
142
142
  <section style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-lg)" }}>
143
143
  <div style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-xs)" }}>
144
- <Typography variant="heading" as="h2">Account</Typography>
144
+ <Typography variant="heading" size="lg" as="h2">Account</Typography>
145
145
  <Typography tone="muted">Manage your plan, invoices and team seats.</Typography>
146
146
  </div>
147
147
 
@@ -159,7 +159,7 @@ export function TeammateList({ teammates }: { teammates: Teammate[] | undefined
159
159
 
160
160
  return (
161
161
  <section aria-busy={loading} aria-labelledby="teammates-heading">
162
- <Typography variant="heading" id="teammates-heading">Teammates</Typography>
162
+ <Typography variant="heading" size="lg" id="teammates-heading">Teammates</Typography>
163
163
  {loading ? (
164
164
  <>
165
165
  <span role="status" style={visuallyHidden}>Loading teammates…</span>
@@ -45,7 +45,7 @@ Slider has no size prop. It fills its container's width; the track and thumb siz
45
45
 
46
46
  | State | Looks like | Notes |
47
47
  | --- | --- | --- |
48
- | Default | Pale track, dark range, light thumb with a dark border | The thumb renders as a circle on the `slight` and `sweeping` corner styles and as a square on `sharp`. |
48
+ | Default | Recessed track, range in the accent, raised round thumb | The thumb is a circle in every corner style. |
49
49
  | Focus | 1px outline in `--focus-ring`, 1px offset, on the focused thumb | Never remove or restyle the focus ring. |
50
50
  | Disabled | Range turns `--interactive-fg-disabled`; thumb fills with `--interactive-bg-disabled` and its border turns `--interactive-fg-disabled` | Set `disabled`. Thumbs get `data-disabled`, not the native attribute, and leave the Tab order. |
51
51
 
@@ -130,7 +130,7 @@ export function InviteForm() {
130
130
  return (
131
131
  <Stack as="section" gap="2xl" pad="xl" aria-labelledby="invite-heading">
132
132
  <Stack gap="xs">
133
- <Typography variant="heading" as="h2" id="invite-heading">
133
+ <Typography variant="heading" size="lg" as="h2" id="invite-heading">
134
134
  Invite a teammate
135
135
  </Typography>
136
136
  <Typography tone="muted">They get an email with a sign-up link.</Typography>
@@ -199,13 +199,13 @@ export function CheckoutWizard({ onPlaceOrder }: { onPlaceOrder: () => void }) {
199
199
  </nav>
200
200
 
201
201
  <StepperContent step={0} currentStep={current}>
202
- <Typography variant="heading">Shipping address</Typography>
202
+ <Typography variant="heading" size="lg">Shipping address</Typography>
203
203
  </StepperContent>
204
204
  <StepperContent step={1} currentStep={current}>
205
- <Typography variant="heading">Payment method</Typography>
205
+ <Typography variant="heading" size="lg">Payment method</Typography>
206
206
  </StepperContent>
207
207
  <StepperContent step={2} currentStep={current}>
208
- <Typography variant="heading">Review your order</Typography>
208
+ <Typography variant="heading" size="lg">Review your order</Typography>
209
209
  </StepperContent>
210
210
 
211
211
  <div style={{ display: "flex", justifyContent: "flex-end", gap: "var(--spacing-sm)" }}>
@@ -44,11 +44,12 @@ Table has no `variant` prop. Cell props control the look:
44
44
  | Prop | On | Use for |
45
45
  | --- | --- | --- |
46
46
  | `align="center"` | TableHead, TableCell | Short centred values: check marks, icons, status dots in a comparison table. |
47
+ | `align="right"` | TableHead, TableCell | A numeric column: amounts, counts, percentages. Set it on the heading and on every cell in the column. |
47
48
  | `highlighted` | TableHead, TableCell | The recommended plan's column in a comparison table (`--interactive-bg-alt2` background). Set it on every cell in that column. |
48
49
  | `weight="medium"` | TableCell | The identifying column of each row: invoice number, user name. |
49
50
  | `width="feature"` | TableHead | The feature-name column of a comparison table (fixed wider column). |
50
51
 
51
- There is no right or end alignment. For numbers, wrap the cell content in `<div style={{ textAlign: "right" }}>`, as the stories do.
52
+ Table sets its text in tabular figures, so digits in a right-aligned column line up without anything more. Headings are one type step smaller than the rows.
52
53
 
53
54
  ## 5. Sizes
54
55
 
@@ -123,12 +124,11 @@ Table has no size prop. Header cells are `--size-xl` tall and data cells pad `--
123
124
  </Table>
124
125
  ```
125
126
 
126
- **Do:** align figures with a wrapper inside the cell.
127
+ **Do:** right-align figures with the prop, on the heading and the cells.
127
128
 
128
129
  ```tsx
129
- <TableCell>
130
- <div style={{ textAlign: "right" }}>$1,750.00</div>
131
- </TableCell>
130
+ <TableHead scope="col" align="right">Amount</TableHead>
131
+ <TableCell align="right">$1,750.00</TableCell>
132
132
  ```
133
133
 
134
134
  **Don't:** style the cell itself.
@@ -180,7 +180,7 @@ Table has no size prop. Header cells are `--size-xl` tall and data cells pad `--
180
180
 
181
181
  | Prop | Type | Default | Description |
182
182
  | --- | --- | --- | --- |
183
- | `align` | `"left" \| "center"` | `"left"` | Text alignment. |
183
+ | `align` | `"left" \| "center" \| "right"` | `"left"` | Text alignment. |
184
184
  | `highlighted` | `boolean` | `false` | Highlights the column with `--interactive-bg-alt2`. |
185
185
  | `width` | `"auto" \| "feature"` | `"auto"` | `"feature"` fixes a wider first column for comparison tables. |
186
186
  | `aria-sort` | `"ascending" \| "descending" \| "none" \| "other"` | | Set on sortable columns. |
@@ -190,7 +190,7 @@ Table has no size prop. Header cells are `--size-xl` tall and data cells pad `--
190
190
 
191
191
  | Prop | Type | Default | Description |
192
192
  | --- | --- | --- | --- |
193
- | `align` | `"left" \| "center"` | `"left"` | Text alignment. |
193
+ | `align` | `"left" \| "center" \| "right"` | `"left"` | Text alignment. |
194
194
  | `highlighted` | `boolean` | `false` | Highlights the column with `--interactive-bg-alt2`. |
195
195
  | `weight` | `"normal" \| "medium"` | `"normal"` | `"medium"` for the identifying column. |
196
196
  | `...props` | `TdHTMLAttributes` without `className`, `style` | | Native `<td>` attributes: `colSpan`, `rowSpan`. |
@@ -228,7 +228,7 @@ export function ProjectDetails({
228
228
  }) {
229
229
  return (
230
230
  <div style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-lg)" }}>
231
- <Typography variant="title" as="h1">Apollo redesign</Typography>
231
+ <Typography variant="title" size="xl" as="h1">Apollo redesign</Typography>
232
232
  <Tabs defaultValue="overview">
233
233
  <TabsList aria-label="Project sections">
234
234
  <TabsTrigger value="overview">Overview</TabsTrigger>
@@ -95,7 +95,7 @@ Toast has no size prop. The global stylesheet sets the text to `--font-size-sm`,
95
95
 
96
96
  ```tsx
97
97
  // Root layout
98
- <EluanProvider defaultTheme="minimal">
98
+ <EluanProvider>
99
99
  {children}
100
100
  <Toast />
101
101
  </EluanProvider>
@@ -190,7 +190,7 @@ import { toast } from "sonner";
190
190
 
191
191
  export function App({ children }: { children: React.ReactNode }) {
192
192
  return (
193
- <EluanProvider defaultTheme="minimal">
193
+ <EluanProvider>
194
194
  {children}
195
195
  <Toast />
196
196
  </EluanProvider>
@@ -57,6 +57,8 @@ The variant sets the size. `step` moves any variant to another of the ten steps
57
57
 
58
58
  Steps don't change with the spacing density. For app UI text that should move with `data-spacing` like the controls beside it (table cells, form hints, toolbar labels), use `size` instead: `"xs"` to `"5xl"`, the `--font-size-*` aliases, one step lower in compact and one higher in wide. `size` takes precedence over `step`.
59
59
 
60
+ On an app screen (a dashboard, a table view, settings, anything inside an app shell) every heading takes `size`, so it sits on the scale of the controls and tables beside it: `title` with `size="xl"`, `heading` with `size="lg"`, `subheading` with `size="base"`, body text with `size="sm"`. Without `size`, the variants are content-page sizes, for marketing pages, docs and articles. With the app typeset pinned those four are 20, 16, 14 and 13 pixels, and `title`, `heading` and `subheading` are semibold: their default weight reads `--font-weight-heading`, 500 on the fluid scale and 600 on the app typeset. The full table is in [page-layout.md](../patterns/page-layout.md).
61
+
60
62
  ## 6. States
61
63
 
62
64
  Typography has no interactive states. With `asChild` around a link or button, the child keeps its own behaviour, but its colour becomes the Typography tone.
@@ -78,13 +80,13 @@ Typography has no interactive states. With `asChild` around a link or button, th
78
80
 
79
81
  1. Set app text with Typography. Pick the `variant` for the role of the text, not its size.
80
82
  2. Use `as` to fix the heading level for the document outline; keep the variant for the look.
81
- 3. Use one `title` or `display` per page.
83
+ 3. Use one `title` or `display` per page. On an app screen, give `title`, `heading` and `subheading` a `size` and don't use `display` or `lead`; see Sizes.
82
84
  4. Keep heading levels in order: one `h1`, then `h2` sections, then `h3`. Don't skip a level to get a smaller look; change the variant instead.
83
85
  5. Use `tone="inverse"` only on a `--container-bg-inverse` surface.
84
86
  6. Don't wrap other components' text in Typography. Typography always sets a colour, so it overrides the colour a Button, Badge or Banner gives its content.
85
87
  7. If you style text yourself, apply all three tokens of one step together, for example `--font-size-step-1`, `--line-height-step-1` and `--letter-spacing-step-1` (or, density-aware, `--font-size-sm`, `--line-height-sm` and `--letter-spacing-sm`). Never write a font size, line height or letter spacing in px, rem or em.
86
88
  8. Change fonts only in the theme. Use `family` to pick `heading`, `body` or `mono`, never a font name.
87
- 9. Don't pin `data-typeset` unless a region must not resize (for example a fixed-size canvas).
89
+ 9. An app of app screens pins `defaultTypeset="app"` on EluanProvider. Don't pin `small`, `medium` or `large` unless a region must not resize (for example a fixed-size canvas).
88
90
  10. Never pass `className` or `style`; they're dropped, even through a cast.
89
91
 
90
92
  ## 9. Dos and don'ts
@@ -92,9 +94,9 @@ Typography has no interactive states. With `asChild` around a link or button, th
92
94
  **Do:** pick variants by role and set the level with `as`.
93
95
 
94
96
  ```tsx
95
- <Typography variant="title" as="h1">Account settings</Typography>
96
- <Typography variant="lead">Manage your profile, notifications and billing.</Typography>
97
- <Typography variant="heading" as="h2">Notifications</Typography>
97
+ <Typography variant="title" size="xl" as="h1">Account settings</Typography>
98
+ <Typography size="sm" tone="muted">Manage your profile, notifications and billing.</Typography>
99
+ <Typography variant="heading" size="lg" as="h2">Notifications</Typography>
98
100
  ```
99
101
 
100
102
  **Don't:** size text by hand or pick a heading tag for its size.
@@ -176,8 +178,8 @@ export function ProjectsHeader({ count, updated }: { count: number; updated: str
176
178
  <header style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-md)" }}>
177
179
  <div style={{ display: "flex", alignItems: "flex-start", justifyContent: "space-between", gap: "var(--spacing-md)" }}>
178
180
  <div style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-xs)" }}>
179
- <Typography variant="title" as="h1">Projects</Typography>
180
- <Typography variant="lead" tone="muted">
181
+ <Typography variant="title" size="xl" as="h1">Projects</Typography>
182
+ <Typography size="sm" tone="muted">
181
183
  Everything your team is building, sorted by last activity.
182
184
  </Typography>
183
185
  </div>
@@ -185,7 +187,7 @@ export function ProjectsHeader({ count, updated }: { count: number; updated: str
185
187
  </div>
186
188
 
187
189
  <section aria-labelledby="active-projects" style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-xs)" }}>
188
- <Typography id="active-projects" variant="heading" as="h2">Active</Typography>
190
+ <Typography id="active-projects" variant="heading" size="lg" as="h2">Active</Typography>
189
191
  <Typography variant="caption" tone="muted">
190
192
  {count} projects · updated {updated}
191
193
  </Typography>
@@ -204,4 +206,5 @@ export function ProjectsHeader({ count, updated }: { count: number; updated: str
204
206
 
205
207
  ## 15. Common agent mistakes
206
208
 
207
- _Filled from evals._
209
+ - Using `title`, `lead` and `heading` without `size` on an app screen, so the headings are several steps larger than the tables and controls under them.
210
+ - Shrinking a heading with `step` or a smaller variant. Keep the variant for the role and set `size`.