@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
@@ -12,12 +12,13 @@ Tokens come in families, and each family has matching background, foreground and
12
12
 
13
13
  | Family | For |
14
14
  | --- | --- |
15
- | `--container-*` | surfaces: page, cards, panels, popovers, table rows |
15
+ | `--container-*` | surfaces: cards, panels, popovers, table rows |
16
16
  | `--interactive-*` | inputs, selectable rows, hoverable items |
17
17
  | `--focus-ring` | the keyboard focus outline; components draw it, so you rarely need it |
18
18
  | `--action-primary-*` | the main action (Button `default`) |
19
19
  | `--action-secondary-*` | outline actions (Button `outline`) |
20
20
  | `--action-tertiary-*` | ghost actions (Button `ghost`) |
21
+ | `--action-neutral-*` | the grey filled action (Button `secondary`) |
21
22
  | `--destructive-*` | errors and destructive actions |
22
23
  | `--cautionary-*` | warnings; the `caution` tone in component props |
23
24
  | `--positive-*` | success |
@@ -35,6 +36,8 @@ Tokens come in families, and each family has matching background, foreground and
35
36
  6. Never use primitives (`--color-*`, `--blazeorange-*`) or the mode layer (`--backgrounds-*`, `--foregrounds-*`) in app code.
36
37
  7. Never override one side of a pair. Contrast is checked at theme generation; change the theme instead.
37
38
  8. Never mix states: don't put a `-hover` background behind a resting foreground.
39
+ 9. The accent (`--action-primary-bg`) is for the primary action. Don't use it as a text colour on a surface, a border or a decoration; white on it is held to 3:1, not the 4.5:1 of body text.
40
+ 10. For the page ground, a surface, a divider or a selected row, read the look's tokens (`--shell-ground`, `--surface-bg`, `--surface-border`, `--item-selected-bg`; see [look.md](./look.md)) rather than picking a container step yourself.
38
41
 
39
42
  ## Tokens
40
43
 
@@ -43,94 +46,94 @@ Values show the mode alias each token points to, then the resolved value in ligh
43
46
  <!-- tokens:start -->
44
47
  | Token | Value (default theme) | Use for |
45
48
  | --- | --- | --- |
46
- | `--container-bg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Surfaces (cards, panels, popovers): background |
47
- | `--container-bg-alt` | `--backgrounds-secondary` → oklch(0.9702 0.0000 0.00) / dark oklch(0.2046 0.0000 0.00) | Surfaces (cards, panels, popovers): subtle alternate background |
48
- | `--container-bg-inverse` | `--foregrounds-secondary` → oklch(0.2686 0.0000 0.00) / dark oklch(0.9702 0.0000 0.00) | Surfaces (cards, panels, popovers): background on an inverse surface |
49
- | `--container-border` | `--backgrounds-tertiary` → oklch(0.9219 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Surfaces (cards, panels, popovers): border |
50
- | `--container-border-alt` | `--backgrounds-quaternary` → oklch(0.8699 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Surfaces (cards, panels, popovers): subtle border |
51
- | `--container-border-inverse` | `--foregrounds-tertiary` → oklch(0.4386 0.0000 0.00) / dark oklch(0.9219 0.0000 0.00) | Surfaces (cards, panels, popovers): border on an inverse surface |
52
- | `--container-fg` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Surfaces (cards, panels, popovers): text and icons |
53
- | `--container-fg-alt` | `--foregrounds-secondary` → oklch(0.2686 0.0000 0.00) / dark oklch(0.9702 0.0000 0.00) | Surfaces (cards, panels, popovers): muted text and icons |
54
- | `--container-fg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Surfaces (cards, panels, popovers): text on an inverse surface |
55
- | `--interactive-bg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Inputs and selectable items: background |
56
- | `--interactive-bg-alt` | `--backgrounds-secondary` → oklch(0.9702 0.0000 0.00) / dark oklch(0.2046 0.0000 0.00) | Inputs and selectable items: subtle alternate background |
57
- | `--interactive-bg-alt2` | `--backgrounds-secondary` → oklch(0.9702 0.0000 0.00) / dark oklch(0.2046 0.0000 0.00) | Inputs and selectable items: second alternate background |
58
- | `--interactive-bg-disabled` | `--backgrounds-tertiary` → oklch(0.9219 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Inputs and selectable items: background when disabled |
59
- | `--interactive-bg-hover` | `--backgrounds-tertiary` → oklch(0.9219 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Inputs and selectable items: background on hover |
60
- | `--interactive-bg-active` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Inputs and selectable items: background while pressed |
61
- | `--interactive-bg-selected` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Inputs and selectable items: background when selected |
62
- | `--interactive-bg-inverse` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Inputs and selectable items: background on an inverse surface |
63
- | `--interactive-border` | `--backgrounds-tertiary` → oklch(0.9219 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Inputs and selectable items: border |
64
- | `--interactive-border-alt` | `--backgrounds-quaternary` → oklch(0.8699 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Inputs and selectable items: subtle border |
65
- | `--interactive-border-disabled` | `--backgrounds-quaternary` → oklch(0.8699 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Inputs and selectable items: border when disabled |
66
- | `--interactive-fg` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Inputs and selectable items: text and icons |
67
- | `--interactive-fg-alt` | `--foregrounds-tertiary` → oklch(0.4386 0.0000 0.00) / dark oklch(0.9219 0.0000 0.00) | Inputs and selectable items: muted text and icons |
68
- | `--interactive-fg-readonly` | `--foregrounds-secondary` → oklch(0.2686 0.0000 0.00) / dark oklch(0.9702 0.0000 0.00) | Inputs and selectable items: text when read-only |
69
- | `--interactive-fg-disabled` | `--foregrounds-quinary` → oklch(0.7090 0.0000 0.00) | Inputs and selectable items: text when disabled |
70
- | `--interactive-fg-active` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Inputs and selectable items: text while pressed |
71
- | `--interactive-fg-selected` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Inputs and selectable items: text when selected |
72
- | `--interactive-fg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Inputs and selectable items: text on an inverse surface |
73
- | `--action-primary-bg` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Primary actions: background |
74
- | `--action-primary-bg-hover` | `--foregrounds-tertiary` → oklch(0.4386 0.0000 0.00) / dark oklch(0.9219 0.0000 0.00) | Primary actions: background on hover |
75
- | `--action-primary-bg-active` | `--foregrounds-secondary` → oklch(0.2686 0.0000 0.00) / dark oklch(0.9702 0.0000 0.00) | Primary actions: background while pressed |
76
- | `--action-primary-bg-selected` | `--foregrounds-secondary` → oklch(0.2686 0.0000 0.00) / dark oklch(0.9702 0.0000 0.00) | Primary actions: background when selected |
77
- | `--action-primary-bg-disabled` | `--foregrounds-quinary` → oklch(0.7090 0.0000 0.00) | Primary actions: background when disabled |
78
- | `--action-primary-bg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Primary actions: background on an inverse surface |
79
- | `--action-primary-fg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Primary actions: text and icons |
80
- | `--action-primary-fg-disabled` | `--backgrounds-quaternary` → oklch(0.8699 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Primary actions: text when disabled |
81
- | `--action-primary-fg-active` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Primary actions: text while pressed |
82
- | `--action-primary-fg-selected` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Primary actions: text when selected |
83
- | `--action-primary-fg-inverse` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Primary actions: text on an inverse surface |
84
- | `--action-secondary-bg-hover` | `--backgrounds-tertiary` → oklch(0.9219 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Secondary (outline) actions: background on hover |
85
- | `--action-secondary-bg-active` | `--mono-background` → oklch(0.1448 0.0000 0.00) / dark oklch(0.9851 0.0000 0.00) | Secondary (outline) actions: background while pressed |
86
- | `--action-secondary-bg-selected` | `--mono-background` → oklch(0.1448 0.0000 0.00) / dark oklch(0.9851 0.0000 0.00) | Secondary (outline) actions: background when selected |
87
- | `--action-secondary-bg-disabled` | `--backgrounds-tertiary` → oklch(0.9219 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Secondary (outline) actions: background when disabled |
88
- | `--action-secondary-border` | `--mono-background` → oklch(0.1448 0.0000 0.00) / dark oklch(0.9851 0.0000 0.00) | Secondary (outline) actions: border |
89
- | `--action-secondary-border-alt` | `--mono-shade` → oklch(0.3715 0.0000 0.00) / dark oklch(0.9702 0.0000 0.00) | Secondary (outline) actions: subtle border |
90
- | `--action-secondary-border-disabled` | `--mono-tint` → oklch(0.9702 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Secondary (outline) actions: border when disabled |
91
- | `--action-secondary-border-inverse` | `--backgrounds-secondary` → oklch(0.9702 0.0000 0.00) / dark oklch(0.2046 0.0000 0.00) | Secondary (outline) actions: border on an inverse surface |
92
- | `--action-secondary-fg-alt` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Secondary (outline) actions: muted text and icons |
93
- | `--action-secondary-fg-disabled` | `--foregrounds-quinary` → oklch(0.7090 0.0000 0.00) | Secondary (outline) actions: text when disabled |
94
- | `--action-secondary-fg-active` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Secondary (outline) actions: text while pressed |
95
- | `--action-secondary-fg-selected` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Secondary (outline) actions: text when selected |
96
- | `--action-secondary-fg-inverse` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Secondary (outline) actions: text on an inverse surface |
97
- | `--action-secondary-fg` | `--mono-background` → oklch(0.1448 0.0000 0.00) / dark oklch(0.9851 0.0000 0.00) | Secondary (outline) actions: text and icons |
98
- | `--action-tertiary-bg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Tertiary (ghost) actions: background |
99
- | `--action-tertiary-bg-alt` | `--backgrounds-secondary` → oklch(0.9702 0.0000 0.00) / dark oklch(0.2046 0.0000 0.00) | Tertiary (ghost) actions: subtle alternate background |
100
- | `--action-tertiary-bg-hover` | `--backgrounds-secondary` → oklch(0.9702 0.0000 0.00) / dark oklch(0.2046 0.0000 0.00) | Tertiary (ghost) actions: background on hover |
101
- | `--action-tertiary-bg-active` | `--mono-tint` → oklch(0.9702 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Tertiary (ghost) actions: background while pressed |
102
- | `--action-tertiary-bg-selected` | `--mono-tint` → oklch(0.9702 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Tertiary (ghost) actions: background when selected |
103
- | `--action-tertiary-bg-disabled` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Tertiary (ghost) actions: background when disabled |
104
- | `--action-tertiary-bg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Tertiary (ghost) actions: background on an inverse surface |
105
- | `--action-tertiary-border` | `--backgrounds-quaternary` → oklch(0.8699 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Tertiary (ghost) actions: border |
106
- | `--action-tertiary-border-alt` | `--mono-tint` → oklch(0.9702 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Tertiary (ghost) actions: subtle border |
107
- | `--action-tertiary-border-disabled` | `--backgrounds-quaternary` → oklch(0.8699 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Tertiary (ghost) actions: border when disabled |
108
- | `--action-tertiary-border-inverse` | `--backgrounds-secondary` → oklch(0.9702 0.0000 0.00) / dark oklch(0.2046 0.0000 0.00) | Tertiary (ghost) actions: border on an inverse surface |
109
- | `--action-tertiary-fg-alt` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Tertiary (ghost) actions: muted text and icons |
110
- | `--action-tertiary-fg-disabled` | `--foregrounds-quinary` → oklch(0.7090 0.0000 0.00) | Tertiary (ghost) actions: text when disabled |
111
- | `--action-tertiary-fg-active` | `--mono-shade` → oklch(0.3715 0.0000 0.00) / dark oklch(0.9702 0.0000 0.00) | Tertiary (ghost) actions: text while pressed |
112
- | `--action-tertiary-fg-selected` | `--mono-shade` → oklch(0.3715 0.0000 0.00) / dark oklch(0.9702 0.0000 0.00) | Tertiary (ghost) actions: text when selected |
113
- | `--action-tertiary-fg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Tertiary (ghost) actions: text on an inverse surface |
114
- | `--action-tertiary-fg` | `--mono-background` → oklch(0.1448 0.0000 0.00) / dark oklch(0.9851 0.0000 0.00) | Tertiary (ghost) actions: text and icons |
115
- | `--action-neutral-bg` | `--backgrounds-tertiary` → oklch(0.9219 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Neutral actions (the `secondary` button): background |
116
- | `--action-neutral-bg-hover` | `--backgrounds-quaternary` → oklch(0.8699 0.0000 0.00) / dark oklch(0.3715 0.0000 0.00) | Neutral actions (the `secondary` button): background on hover |
117
- | `--action-neutral-fg` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Neutral actions (the `secondary` button): text and icons |
49
+ | `--container-bg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Surfaces (cards, panels, popovers): background |
50
+ | `--container-bg-alt` | `--borders-primary` → oklch(0.9522 0.0070 124.45) / dark color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54)) | A quiet fill inside a surface: table foot, skeleton, avatar, neutral chip, menu separator |
51
+ | `--container-bg-inverse` | `--foregrounds-secondary` → oklch(0.4767 0.0377 119.25) / dark oklch(0.8111 0.0267 118.99) | Surfaces (cards, panels, popovers): background on an inverse surface |
52
+ | `--container-border` | `--borders-primary` → oklch(0.9522 0.0070 124.45) / dark color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54)) | Surfaces (cards, panels, popovers): border |
53
+ | `--container-border-alt` | `--borders-secondary` → oklch(0.8827 0.0165 118.16) / dark color-mix(in oklch, oklch(0.3738 0.0284 118.54), oklch(0.4767 0.0377 119.25)) | Surfaces (cards, panels, popovers): subtle border |
54
+ | `--container-border-inverse` | `--foregrounds-tertiary` → color-mix(in oklch, oklch(0.5744 0.0466 119.64) 65%, oklch(0.4767 0.0377 119.25)) / dark oklch(0.7378 0.0385 119.16) | Surfaces (cards, panels, popovers): border on an inverse surface |
55
+ | `--container-fg` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Surfaces (cards, panels, popovers): text and icons |
56
+ | `--container-fg-alt` | `--foregrounds-secondary` → oklch(0.4767 0.0377 119.25) / dark oklch(0.8111 0.0267 118.99) | Surfaces (cards, panels, popovers): muted text and icons |
57
+ | `--container-fg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Surfaces (cards, panels, popovers): text on an inverse surface |
58
+ | `--interactive-bg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Inputs and selectable items: background |
59
+ | `--interactive-bg-alt` | `--backgrounds-secondary` → oklch(0.9868 0.0028 128.49) / dark oklch(0.2257 0.0152 119.03) | Inputs and selectable items: subtle alternate background |
60
+ | `--interactive-bg-alt2` | `--borders-primary` → oklch(0.9522 0.0070 124.45) / dark color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54)) | Inputs and selectable items: second alternate background |
61
+ | `--interactive-bg-disabled` | `--backgrounds-tertiary` → oklch(0.9522 0.0070 124.45) / dark oklch(0.3738 0.0284 118.54) | Inputs and selectable items: background when disabled |
62
+ | `--interactive-bg-hover` | `--backgrounds-tertiary` → oklch(0.9522 0.0070 124.45) / dark oklch(0.3738 0.0284 118.54) | Inputs and selectable items: background on hover |
63
+ | `--interactive-bg-active` | `--action-primary-bg` → oklch(0.6717 0.2205 37.86) | The accent, for a switch, check, radio, slider or progress that is on |
64
+ | `--interactive-bg-selected` | `--action-primary-bg` → oklch(0.6717 0.2205 37.86) | The accent, for a checked control or the chosen day. Rows use `--item-selected-bg` |
65
+ | `--interactive-bg-inverse` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Inputs and selectable items: background on an inverse surface |
66
+ | `--interactive-border` | `--borders-primary` → oklch(0.9522 0.0070 124.45) / dark color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54)) | Inputs and selectable items: border |
67
+ | `--interactive-border-alt` | `--borders-secondary` → oklch(0.8827 0.0165 118.16) / dark color-mix(in oklch, oklch(0.3738 0.0284 118.54), oklch(0.4767 0.0377 119.25)) | Inputs and selectable items: subtle border |
68
+ | `--interactive-border-disabled` | `--borders-primary` → oklch(0.9522 0.0070 124.45) / dark color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54)) | Inputs and selectable items: border when disabled |
69
+ | `--interactive-fg` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Inputs and selectable items: text and icons |
70
+ | `--interactive-fg-alt` | `--foregrounds-tertiary` → color-mix(in oklch, oklch(0.5744 0.0466 119.64) 65%, oklch(0.4767 0.0377 119.25)) / dark oklch(0.7378 0.0385 119.16) | Inputs and selectable items: muted text and icons |
71
+ | `--interactive-fg-readonly` | `--foregrounds-secondary` → oklch(0.4767 0.0377 119.25) / dark oklch(0.8111 0.0267 118.99) | Inputs and selectable items: text when read-only |
72
+ | `--interactive-fg-disabled` | `--foregrounds-quinary` → oklch(0.7378 0.0385 119.16) / dark oklch(0.5744 0.0466 119.64) | Inputs and selectable items: text when disabled |
73
+ | `--interactive-fg-active` | `--action-primary-fg` → oklch(1.0000 0.0000 0.00) | Text and icons on the accent |
74
+ | `--interactive-fg-selected` | `--action-primary-fg` → oklch(1.0000 0.0000 0.00) | Text and icons on the accent |
75
+ | `--interactive-fg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Inputs and selectable items: text on an inverse surface |
76
+ | `--action-primary-bg` | `--color-blazeorange-500` → oklch(0.6717 0.2205 37.86) | Primary actions: the accent as picked, the same in every mode |
77
+ | `--action-primary-bg-hover` | `--color-blazeorange-600` → oklch(0.6368 0.2445 31.53) | Primary actions: background on hover |
78
+ | `--action-primary-bg-active` | `--color-blazeorange-600` → oklch(0.6368 0.2445 31.53) | Primary actions: background while pressed |
79
+ | `--action-primary-bg-selected` | `--color-blazeorange-600` → oklch(0.6368 0.2445 31.53) | Primary actions: background when selected |
80
+ | `--action-primary-bg-disabled` | `--blazeorange-tint` → oklch(0.9479 0.0381 69.88) / dark oklch(0.4063 0.1389 34.11) | Primary actions: background when disabled |
81
+ | `--action-primary-bg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Primary actions: background on an inverse surface |
82
+ | `--action-primary-fg` | `--color-neutral-0` → oklch(1.0000 0.0000 0.00) | Primary actions: text on the accent, white (held to 3:1) |
83
+ | `--action-primary-fg-disabled` | `--foregrounds-quinary` → oklch(0.7378 0.0385 119.16) / dark oklch(0.5744 0.0466 119.64) | Primary actions: text when disabled |
84
+ | `--action-primary-fg-active` | `--color-neutral-0` → oklch(1.0000 0.0000 0.00) | Primary actions: text while pressed |
85
+ | `--action-primary-fg-selected` | `--color-neutral-0` → oklch(1.0000 0.0000 0.00) | Primary actions: text when selected |
86
+ | `--action-primary-fg-inverse` | `--blazeorange-foreground` → oklch(0.6368 0.2445 31.53) / dark oklch(0.8904 0.0756 64.01) | Primary actions: text on an inverse surface |
87
+ | `--action-secondary-bg-hover` | `--backgrounds-tertiary` → oklch(0.9522 0.0070 124.45) / dark oklch(0.3738 0.0284 118.54) | Secondary (outline) actions: background on hover |
88
+ | `--action-secondary-bg-active` | `--backgrounds-quaternary` → oklch(0.8827 0.0165 118.16) / dark oklch(0.4767 0.0377 119.25) | Secondary (outline) actions: background while pressed |
89
+ | `--action-secondary-bg-selected` | `--backgrounds-quaternary` → oklch(0.8827 0.0165 118.16) / dark oklch(0.4767 0.0377 119.25) | Secondary (outline) actions: background when selected |
90
+ | `--action-secondary-bg-disabled` | `--backgrounds-tertiary` → oklch(0.9522 0.0070 124.45) / dark oklch(0.3738 0.0284 118.54) | Secondary (outline) actions: background when disabled |
91
+ | `--action-secondary-border` | `--borders-secondary` → oklch(0.8827 0.0165 118.16) / dark color-mix(in oklch, oklch(0.3738 0.0284 118.54), oklch(0.4767 0.0377 119.25)) | Secondary (outline) actions: border |
92
+ | `--action-secondary-border-alt` | `--foregrounds-quaternary` → color-mix(in oklch, oklch(0.6639 0.0492 118.51) 65%, oklch(0.5744 0.0466 119.64)) / dark oklch(0.6639 0.0492 118.51) | Secondary (outline) actions: subtle border |
93
+ | `--action-secondary-border-disabled` | `--borders-primary` → oklch(0.9522 0.0070 124.45) / dark color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54)) | Secondary (outline) actions: border when disabled |
94
+ | `--action-secondary-border-inverse` | `--backgrounds-secondary` → oklch(0.9868 0.0028 128.49) / dark oklch(0.2257 0.0152 119.03) | Secondary (outline) actions: border on an inverse surface |
95
+ | `--action-secondary-fg-alt` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Secondary (outline) actions: muted text and icons |
96
+ | `--action-secondary-fg-disabled` | `--foregrounds-quinary` → oklch(0.7378 0.0385 119.16) / dark oklch(0.5744 0.0466 119.64) | Secondary (outline) actions: text when disabled |
97
+ | `--action-secondary-fg-active` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Secondary (outline) actions: text while pressed |
98
+ | `--action-secondary-fg-selected` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Secondary (outline) actions: text when selected |
99
+ | `--action-secondary-fg-inverse` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Secondary (outline) actions: text on an inverse surface |
100
+ | `--action-secondary-fg` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Secondary (outline) actions: text and icons |
101
+ | `--action-tertiary-bg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Tertiary (ghost) actions: background |
102
+ | `--action-tertiary-bg-alt` | `--backgrounds-secondary` → oklch(0.9868 0.0028 128.49) / dark oklch(0.2257 0.0152 119.03) | Tertiary (ghost) actions: subtle alternate background |
103
+ | `--action-tertiary-bg-hover` | `--backgrounds-secondary` → oklch(0.9868 0.0028 128.49) / dark oklch(0.2257 0.0152 119.03) | Tertiary (ghost) actions: background on hover |
104
+ | `--action-tertiary-bg-active` | `--backgrounds-tertiary` → oklch(0.9522 0.0070 124.45) / dark oklch(0.3738 0.0284 118.54) | Tertiary (ghost) actions: background while pressed |
105
+ | `--action-tertiary-bg-selected` | `--backgrounds-tertiary` → oklch(0.9522 0.0070 124.45) / dark oklch(0.3738 0.0284 118.54) | Tertiary (ghost) actions: background when selected |
106
+ | `--action-tertiary-bg-disabled` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Tertiary (ghost) actions: background when disabled |
107
+ | `--action-tertiary-bg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Tertiary (ghost) actions: background on an inverse surface |
108
+ | `--action-tertiary-border` | `--borders-secondary` → oklch(0.8827 0.0165 118.16) / dark color-mix(in oklch, oklch(0.3738 0.0284 118.54), oklch(0.4767 0.0377 119.25)) | Tertiary (ghost) actions: border |
109
+ | `--action-tertiary-border-alt` | `--borders-primary` → oklch(0.9522 0.0070 124.45) / dark color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54)) | Tertiary (ghost) actions: subtle border |
110
+ | `--action-tertiary-border-disabled` | `--borders-primary` → oklch(0.9522 0.0070 124.45) / dark color-mix(in oklch, oklch(0.2982 0.0213 119.11), oklch(0.3738 0.0284 118.54)) | Tertiary (ghost) actions: border when disabled |
111
+ | `--action-tertiary-border-inverse` | `--backgrounds-secondary` → oklch(0.9868 0.0028 128.49) / dark oklch(0.2257 0.0152 119.03) | Tertiary (ghost) actions: border on an inverse surface |
112
+ | `--action-tertiary-fg-alt` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Tertiary (ghost) actions: muted text and icons |
113
+ | `--action-tertiary-fg-disabled` | `--foregrounds-quinary` → oklch(0.7378 0.0385 119.16) / dark oklch(0.5744 0.0466 119.64) | Tertiary (ghost) actions: text when disabled |
114
+ | `--action-tertiary-fg-active` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Tertiary (ghost) actions: text while pressed |
115
+ | `--action-tertiary-fg-selected` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Tertiary (ghost) actions: text when selected |
116
+ | `--action-tertiary-fg-inverse` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Tertiary (ghost) actions: text on an inverse surface |
117
+ | `--action-tertiary-fg` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Tertiary (ghost) actions: text and icons |
118
+ | `--action-neutral-bg` | `--backgrounds-tertiary` → oklch(0.9522 0.0070 124.45) / dark oklch(0.3738 0.0284 118.54) | Neutral actions (the `secondary` button): background |
119
+ | `--action-neutral-bg-hover` | `--backgrounds-quaternary` → oklch(0.8827 0.0165 118.16) / dark oklch(0.4767 0.0377 119.25) | Neutral actions (the `secondary` button): background on hover |
120
+ | `--action-neutral-fg` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Neutral actions (the `secondary` button): text and icons |
118
121
  | `--destructive-bg` | `--torchred-background` → oklch(0.9691 0.0151 17.42) / dark oklch(0.2639 0.1083 29.23) | Destructive status and actions: background |
119
122
  | `--destructive-bg-alt` | `--torchred-tint` → oklch(0.9322 0.0343 17.78) / dark oklch(0.4062 0.1665 28.83) | Destructive status and actions: subtle alternate background |
120
123
  | `--destructive-bg-hover` | `--torchred-tint` → oklch(0.9322 0.0343 17.78) / dark oklch(0.4062 0.1665 28.83) | Destructive status and actions: background on hover |
121
124
  | `--destructive-bg-active` | `--torchred-shade` → oklch(0.4695 0.1927 29.23) / dark oklch(0.8751 0.0665 18.51) | Destructive status and actions: background while pressed |
122
125
  | `--destructive-bg-selected` | `--torchred-shade` → oklch(0.4695 0.1927 29.23) / dark oklch(0.8751 0.0665 18.51) | Destructive status and actions: background when selected |
123
- | `--destructive-bg-disabled` | `--backgrounds-tertiary` → oklch(0.9219 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Destructive status and actions: background when disabled |
126
+ | `--destructive-bg-disabled` | `--backgrounds-tertiary` → oklch(0.9522 0.0070 124.45) / dark oklch(0.3738 0.0284 118.54) | Destructive status and actions: background when disabled |
124
127
  | `--destructive-bg-inverse` | `--torchred-shade` → oklch(0.4695 0.1927 29.23) / dark oklch(0.8751 0.0665 18.51) | Destructive status and actions: background on an inverse surface |
125
128
  | `--destructive-border` | `--torchred-main` → oklch(0.6280 0.2577 29.23) / dark oklch(0.6695 0.2182 21.71) | Destructive status and actions: border |
126
129
  | `--destructive-border-alt` | `--torchred-shade` → oklch(0.4695 0.1927 29.23) / dark oklch(0.8751 0.0665 18.51) | Destructive status and actions: subtle border |
127
130
  | `--destructive-border-disabled` | `--torchred-tint` → oklch(0.9322 0.0343 17.78) / dark oklch(0.4062 0.1665 28.83) | Destructive status and actions: border when disabled |
128
131
  | `--destructive-border-inverse` | `--torchred-background` → oklch(0.9691 0.0151 17.42) / dark oklch(0.2639 0.1083 29.23) | Destructive status and actions: border on an inverse surface |
129
- | `--destructive-fg` | `--torchred-foreground` → oklch(0.5444 0.2234 29.23) / dark oklch(0.9691 0.0151 17.42) | Destructive status and actions: text and icons |
130
- | `--destructive-fg-alt` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Destructive status and actions: muted text and icons |
131
- | `--destructive-fg-disabled` | `--foregrounds-quinary` → oklch(0.7090 0.0000 0.00) | Destructive status and actions: text when disabled |
132
- | `--destructive-fg-active` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Destructive status and actions: text while pressed |
133
- | `--destructive-fg-selected` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2686 0.0000 0.00) | Destructive status and actions: text when selected |
132
+ | `--destructive-fg` | `--torchred-foreground` → oklch(0.5444 0.2234 29.23) / dark oklch(0.8751 0.0665 18.51) | Destructive status and actions: text and icons |
133
+ | `--destructive-fg-alt` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Destructive status and actions: muted text and icons |
134
+ | `--destructive-fg-disabled` | `--foregrounds-quinary` → oklch(0.7378 0.0385 119.16) / dark oklch(0.5744 0.0466 119.64) | Destructive status and actions: text when disabled |
135
+ | `--destructive-fg-active` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Destructive status and actions: text while pressed |
136
+ | `--destructive-fg-selected` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.2982 0.0213 119.11) | Destructive status and actions: text when selected |
134
137
  | `--destructive-fg-inverse` | `--torchred-background` → oklch(0.9691 0.0151 17.42) / dark oklch(0.2639 0.1083 29.23) | Destructive status and actions: text on an inverse surface |
135
138
  | `--cautionary-bg` | `--maitai-background` → oklch(0.9852 0.0151 90.23) / dark oklch(0.2758 0.0580 42.34) | Caution status (the `caution` tone): background |
136
139
  | `--cautionary-bg-alt` | `--maitai-tint` → oklch(0.9601 0.0401 88.20) / dark oklch(0.4118 0.0860 41.58) | Caution status (the `caution` tone): subtle alternate background |
@@ -138,8 +141,8 @@ Values show the mode alias each token points to, then the resolved value in ligh
138
141
  | `--cautionary-border` | `--maitai-main` → oklch(0.7516 0.1455 61.95) | Caution status (the `caution` tone): border |
139
142
  | `--cautionary-border-alt` | `--maitai-shade` → oklch(0.4724 0.1071 42.23) / dark oklch(0.8686 0.1177 83.38) | Caution status (the `caution` tone): subtle border |
140
143
  | `--cautionary-border-inverse` | `--maitai-background` → oklch(0.9852 0.0151 90.23) / dark oklch(0.2758 0.0580 42.34) | Caution status (the `caution` tone): border on an inverse surface |
141
- | `--cautionary-fg` | `--maitai-foreground` → oklch(0.5534 0.1277 44.34) / dark oklch(0.9852 0.0151 90.23) | Caution status (the `caution` tone): text and icons |
142
- | `--cautionary-fg-alt` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Caution status (the `caution` tone): muted text and icons |
144
+ | `--cautionary-fg` | `--maitai-foreground` → oklch(0.5534 0.1277 44.34) / dark oklch(0.9173 0.0805 86.91) | Caution status (the `caution` tone): text and icons |
145
+ | `--cautionary-fg-alt` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Caution status (the `caution` tone): muted text and icons |
143
146
  | `--cautionary-fg-inverse` | `--maitai-background` → oklch(0.9852 0.0151 90.23) / dark oklch(0.2758 0.0580 42.34) | Caution status (the `caution` tone): text on an inverse surface |
144
147
  | `--positive-bg` | `--seagreen-background` → oklch(0.9796 0.0247 164.47) / dark oklch(0.2646 0.0515 171.60) | Positive status: background |
145
148
  | `--positive-bg-alt` | `--seagreen-tint` → oklch(0.9488 0.0579 162.90) / dark oklch(0.3827 0.0785 166.91) | Positive status: subtle alternate background |
@@ -147,8 +150,8 @@ Values show the mode alias each token points to, then the resolved value in ligh
147
150
  | `--positive-border` | `--seagreen-main` → oklch(0.7780 0.1777 159.41) | Positive status: border |
148
151
  | `--positive-border-alt` | `--seagreen-shade` → oklch(0.4389 0.0946 163.18) / dark oklch(0.9488 0.0579 162.90) | Positive status: subtle border |
149
152
  | `--positive-border-inverse` | `--seagreen-background` → oklch(0.9796 0.0247 164.47) / dark oklch(0.2646 0.0515 171.60) | Positive status: border on an inverse surface |
150
- | `--positive-fg` | `--seagreen-foreground` → oklch(0.5180 0.1144 161.56) / dark oklch(0.9796 0.0247 164.47) | Positive status: text and icons |
151
- | `--positive-fg-alt` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Positive status: muted text and icons |
153
+ | `--positive-fg` | `--seagreen-foreground` → oklch(0.5180 0.1144 161.56) / dark oklch(0.9052 0.1042 163.78) | Positive status: text and icons |
154
+ | `--positive-fg-alt` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Positive status: muted text and icons |
152
155
  | `--positive-fg-inverse` | `--seagreen-background` → oklch(0.9796 0.0247 164.47) / dark oklch(0.2646 0.0515 171.60) | Positive status: text on an inverse surface |
153
156
  | `--informative-bg` | `--blueribbon-background` → oklch(0.9705 0.0142 254.60) / dark oklch(0.2795 0.0978 270.78) | Informative status: background |
154
157
  | `--informative-bg-alt` | `--blueribbon-tint` → oklch(0.9322 0.0328 256.76) / dark oklch(0.3775 0.1564 267.71) | Informative status: subtle alternate background |
@@ -156,8 +159,8 @@ Values show the mode alias each token points to, then the resolved value in ligh
156
159
  | `--informative-border` | `--blueribbon-main` → oklch(0.6102 0.2112 261.20) | Informative status: border |
157
160
  | `--informative-border-alt` | `--blueribbon-shade` → oklch(0.4225 0.2126 267.93) / dark oklch(0.9322 0.0328 256.76) | Informative status: subtle border |
158
161
  | `--informative-border-inverse` | `--blueribbon-background` → oklch(0.9705 0.0142 254.60) / dark oklch(0.2795 0.0978 270.78) | Informative status: border on an inverse surface |
159
- | `--informative-fg` | `--blueribbon-foreground` → oklch(0.4867 0.2603 266.61) / dark oklch(0.9705 0.0142 254.60) | Informative status: text and icons |
160
- | `--informative-fg-alt` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Informative status: muted text and icons |
162
+ | `--informative-fg` | `--blueribbon-foreground` → oklch(0.4867 0.2603 266.61) / dark oklch(0.8800 0.0595 255.47) | Informative status: text and icons |
163
+ | `--informative-fg-alt` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Informative status: muted text and icons |
161
164
  | `--informative-fg-inverse` | `--blueribbon-background` → oklch(0.9705 0.0142 254.60) / dark oklch(0.2795 0.0978 270.78) | Informative status: text on an inverse surface |
162
165
  | `--important-bg` | `--electricviolet-background` → oklch(0.9761 0.0139 304.14) / dark oklch(0.2898 0.1386 301.20) | Important status: background |
163
166
  | `--important-bg-alt` | `--electricviolet-tint` → oklch(0.9453 0.0311 306.20) / dark oklch(0.3800 0.1656 303.37) | Important status: subtle alternate background |
@@ -165,12 +168,12 @@ Values show the mode alias each token points to, then the resolved value in ligh
165
168
  | `--important-border` | `--electricviolet-main` → oklch(0.6255 0.2466 302.49) / dark oklch(0.7125 0.1872 304.45) | Important status: border |
166
169
  | `--important-border-alt` | `--electricviolet-shade` → oklch(0.4379 0.2047 302.40) / dark oklch(0.9453 0.0311 306.20) | Important status: subtle border |
167
170
  | `--important-border-inverse` | `--electricviolet-background` → oklch(0.9761 0.0139 304.14) / dark oklch(0.2898 0.1386 301.20) | Important status: border on an inverse surface |
168
- | `--important-fg` | `--electricviolet-foreground` → oklch(0.4955 0.2482 300.40) / dark oklch(0.9761 0.0139 304.14) | Important status: text and icons |
169
- | `--important-fg-alt` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) / dark oklch(1.0000 0.0000 0.00) | Important status: muted text and icons |
171
+ | `--important-fg` | `--electricviolet-foreground` → oklch(0.4955 0.2482 300.40) / dark oklch(0.9007 0.0598 304.65) | Important status: text and icons |
172
+ | `--important-fg-alt` | `--foregrounds-primary` → oklch(0.3738 0.0284 118.54) / dark oklch(0.9522 0.0070 124.45) | Important status: muted text and icons |
170
173
  | `--important-fg-inverse` | `--electricviolet-background` → oklch(0.9761 0.0139 304.14) / dark oklch(0.2898 0.1386 301.20) | Important status: text on an inverse surface |
171
- | `--tooltip-bg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.1448 0.0000 0.00) | Tooltip background |
172
- | `--overlay-bg` | `--foregrounds-primary` → oklch(0.1448 0.0000 0.00) | Scrim behind modal overlays |
173
- | `--focus-ring` | `--foregrounds-quaternary` → oklch(0.5555 0.0000 0.00) / dark oklch(0.7090 0.0000 0.00) | Keyboard focus outline; components draw it, don't restyle it |
174
+ | `--tooltip-bg` | `--backgrounds-primary` → oklch(1.0000 0.0000 0.00) / dark oklch(0.3738 0.0284 118.54) | Tooltip background |
175
+ | `--overlay-bg` | `--color-neutral-950` → oklch(0.2257 0.0152 119.03) / dark color-mix(in oklch, oklch(0.2257 0.0152 119.03) 40%, black) | Scrim behind modal overlays |
176
+ | `--focus-ring` | `--action-primary-bg` → oklch(0.6717 0.2205 37.86) | Keyboard focus outline; components draw it, don't restyle it |
174
177
  | `--dataviz-1-main` | `--blazeorange-main` → oklch(0.6717 0.2205 37.86) | Charts only: series colour |
175
178
  | `--dataviz-1-tint` | `--blazeorange-tint` → oklch(0.9479 0.0381 69.88) / dark oklch(0.4063 0.1389 34.11) | Charts only: series colour |
176
179
  | `--dataviz-1-shade` | `--blazeorange-shade` → oklch(0.4663 0.1768 31.99) / dark oklch(0.9479 0.0381 69.88) | Charts only: series colour |
@@ -201,8 +204,10 @@ Values show the mode alias each token points to, then the resolved value in ligh
201
204
 
202
205
  | If you need… | Use |
203
206
  | --- | --- |
204
- | the page or a panel background | `--container-bg` with `--container-fg` |
205
- | a subtle section background or a zebra row | `--container-bg-alt` |
207
+ | the page behind everything | `--shell-ground`; NavigationDrawerLayout sets it |
208
+ | a card or panel background | `--surface-bg` (it is `--container-bg`) with `--container-fg` |
209
+ | a quiet fill inside a surface: a table foot, a skeleton, a neutral chip | `--container-bg-alt` |
210
+ | a selected row or item | `--item-selected-bg` with `--item-selected-fg` |
206
211
  | secondary or helper text | `--container-fg-alt` |
207
212
  | a divider or panel border | `--container-border`; or the Separator component |
208
213
  | an input-like or hoverable surface you compose | `--interactive-bg`, `--interactive-bg-hover`, `--interactive-fg` |
@@ -216,7 +221,7 @@ Values show the mode alias each token points to, then the resolved value in ligh
216
221
  **Do:** pair tokens from one family.
217
222
 
218
223
  ```tsx
219
- <section style={{ backgroundColor: "var(--container-bg-alt)", color: "var(--container-fg)" }}>
224
+ <section style={{ backgroundColor: "var(--surface-bg)", color: "var(--container-fg)" }}>
220
225
  <p style={{ color: "var(--container-fg-alt)" }}>Last updated 2 hours ago</p>
221
226
  </section>
222
227
  ```
@@ -245,7 +250,7 @@ Values show the mode alias each token points to, then the resolved value in ligh
245
250
 
246
251
  ## Known issues
247
252
 
248
- - `--interactive-bg-selected` is near-black in `minimal`. It reads well on a checkbox but heavy across a whole table row.
253
+ - `--interactive-bg-selected` and `--interactive-bg-active` are the accent: right for a checkbox, a switch or a slider, wrong across a table row. Rows and items use `--item-selected-bg`.
249
254
 
250
255
  ## Common agent mistakes
251
256
 
@@ -6,52 +6,81 @@ name: elevation
6
6
 
7
7
  ## Overview
8
8
 
9
- Eluan has no elevation or shadow tokens yet. Depth comes from components: Card has an `elevation` prop (`none`, `sm`, `md`, `lg`), and floating surfaces (Popover, DropdownMenu, Select, Tooltip, HoverCard, Dialog, Sheet) draw their own shadow. Until tokens exist, layering is something you choose a component for, not something you style.
9
+ Depth in Eluan comes from one light, above the page. What is in the page flow barely uses it: cards and tables are flat, with a hairline and no shadow. Depth belongs to two things.
10
+
11
+ **Controls.** A raised control (a button, a select trigger, the selected segment) carries a hairline ring, a contact shadow and a soft drop. A recessed one (an input, the track of a switch or slider) carries an inset shadow instead. The primary button adds a glow of the accent. Components draw all of this; see [look.md](./look.md).
12
+
13
+ **What floats.** Four levels, each a hairline ring for the edge, a tight shadow under the surface, and wider, softer shadows as it lifts:
14
+
15
+ | Level | What uses it |
16
+ | --- | --- |
17
+ | 1 to 2 | A card you raise on purpose with `elevation="sm"` or `"md"`; a clickable card on hover |
18
+ | 3 | Menus, popovers and toasts |
19
+ | 4 | Dialogs, sheets and anything over a scrim |
20
+
21
+ The shadows are cast in the theme's own darkest neutral (`--elevation-shade`), so a generated theme's tint carries into them. Dark mode swaps the ring for a hairline in the foreground colour, because a shadow barely reads on a dark page, and gives recessed tracks a ring so an empty one stays visible.
10
22
 
11
23
  ## Rules
12
24
 
13
- 1. Never write `box-shadow` in app code.
14
- 2. For a raised surface, use Card with `elevation`. For a floating surface, use the overlay component that fits.
15
- 3. Use `elevation="none"` (with the card's border) for flat layouts, and a raised level only to separate a surface from a busy background.
16
- 4. Never stack z-index values to layer things yourself. Overlay components portal and layer correctly; for scoped themes pass `portalContainer` (see [theming.md](./theming.md)).
25
+ 1. Never write a `box-shadow` value in app code. If an element you own must float, give it `--elevation-3` or `--elevation-4` and `--surface-bg` behind.
26
+ 2. Leave Card on its default elevation: flat. Pin `elevation="sm"` or `"md"` only to make one card stand out among others.
27
+ 3. Use `elevation="none"` for a card that should read as an outline, not a surface: a dashed drop zone, a placeholder.
28
+ 4. Don't nest more than two cards, and don't use shadows to separate things in the page flow. Use the hairline.
29
+ 5. Never stack z-index values to layer things yourself. Overlay components portal and layer correctly; for scoped themes pass `portalContainer` (see [theming.md](./theming.md)).
30
+ 6. Never set `--elevation-shade` or the shadow colours yourself. They follow the theme.
31
+ 7. Don't put the control shadows (`--elevation-control`, `-thumb`, `-well`, `-field`) on your own elements to imitate a control. Use the component.
17
32
 
18
33
  ## Tokens
19
34
 
20
35
  <!-- tokens:start -->
21
36
  | Token | Value (default theme) | Use for |
22
37
  | --- | --- | --- |
23
- | _No tokens yet_ | | Follow the rules above |
38
+ | `--elevation-1` | ring, contact shadow, one soft shadow | A card you raise on purpose with `elevation="sm"` |
39
+ | `--elevation-2` | ring, contact shadow, two soft shadows | A card raised further, or a clickable card on hover |
40
+ | `--elevation-3` | ring and three shadows, the widest 40px | Menus, popovers and toasts |
41
+ | `--elevation-4` | ring and three shadows, the widest 72px | Dialogs, sheets and anything over a scrim |
42
+ | `--elevation-control` | ring, contact shadow, a soft drop | A raised control: buttons, select triggers, the selected segment |
43
+ | `--elevation-control-solid` | light on the top edge, contact shadow, a soft drop | A filled control: the destructive button |
44
+ | `--elevation-thumb` | ring, a tight contact shadow and drop | The knob of a switch or slider |
45
+ | `--elevation-well` | inset contact shadow; an inset ring in dark | A sunken track: segmented control, slider, switch |
46
+ | `--elevation-field` | a light inset contact shadow | A sunken field you type into |
47
+ | `--elevation-shade` | `--foregrounds-primary` / dark: `--color-neutral-950`, darkened | The colour every shadow is cast in; follows the theme's neutral ramp |
24
48
  <!-- tokens:end -->
25
49
 
26
50
  ## Choosing a value
27
51
 
28
52
  | If you need… | Use |
29
53
  | --- | --- |
30
- | a flat grouped surface | Card with `elevation="none"` |
31
- | a surface lifted off the page | Card with `elevation="sm"` or `"md"` |
32
- | a clickable card | Card with `clickable` (adds hover elevation) |
54
+ | a grouped surface on a screen | Card, default elevation (flat) |
55
+ | the frame of an app | NavigationDrawerLayout, which draws the ground and the divider |
56
+ | one card to stand out in a row | Card with `elevation="md"` |
57
+ | an outlined, empty region | Card with `elevation="none"` |
58
+ | a clickable card | Card with `clickable` (lifts on hover) |
33
59
  | content floating over the page | Popover, HoverCard, DropdownMenu or Tooltip |
34
60
  | a blocking layer | Dialog; a side layer: Sheet |
61
+ | a floating element you own | `box-shadow: var(--elevation-3)` on it, and `--surface-bg` behind |
35
62
 
36
63
  ## Dos and don'ts
37
64
 
38
- **Do:** choose a component for depth.
65
+ **Do:** leave cards flat.
39
66
 
40
67
  ```tsx
41
- <Card elevation="md">
68
+ <Card>
42
69
  <CardHeader>
43
- <CardTitle>Quarterly revenue</CardTitle>
70
+ <CardDescription>Quarterly revenue</CardDescription>
71
+ <CardTitle>$48,210</CardTitle>
44
72
  </CardHeader>
45
- <CardContent>Up 12% on last quarter.</CardContent>
46
73
  </Card>
47
74
  ```
48
75
 
49
- **Don't:** add your own shadow.
76
+ **Don't:** raise every card, or add your own shadow.
50
77
 
51
78
  ```tsx
79
+ <Card elevation="md">…</Card>
52
80
  <div style={{ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.15)" }}>Quarterly revenue</div>
53
81
  ```
54
82
 
55
83
  ## Common agent mistakes
56
84
 
57
- _Filled from evals._
85
+ - Passing `elevation="sm"` or `"md"` to every Card "for depth". Cards are flat here.
86
+ - Drawing a border and a shadow on an element you own. The elevation tokens include the edge; drop the border.
@@ -26,10 +26,10 @@ Icon boxes are sized with `--size-*` tokens, so they scale with density. Compone
26
26
  <!-- tokens:start -->
27
27
  | Token | Value (default theme) | Use for |
28
28
  | --- | --- | --- |
29
- | `--size-xxs` | 14px (compact 12px, wide 20px) | Control height, icon size |
30
- | `--size-xs` | 18px (compact 16px, wide 24px) | Control height, icon size |
31
- | `--size-sm` | 22px (compact 20px, wide 32px) | Control height, icon size |
32
- | `--size-md` | 28px (compact 24px, wide 40px) | Control height, icon size |
29
+ | `--size-xxs` | 14px (compact 12px, wide 16px) | Control height, icon size |
30
+ | `--size-xs` | 18px (compact 16px, wide 20px) | Control height, icon size |
31
+ | `--size-sm` | 22px (compact 18px, wide 28px) | Control height, icon size |
32
+ | `--size-md` | 28px (compact 22px, wide 36px) | Control height, icon size |
33
33
  <!-- tokens:end -->
34
34
 
35
35
  ## Choosing a value
@@ -0,0 +1,135 @@
1
+ ---
2
+ name: look
3
+ ---
4
+
5
+ # The look
6
+
7
+ ## Overview
8
+
9
+ Eluan has one look. There is no style to choose and nothing to configure: the tokens are the look, and every component reads them. A theme changes the colours (the grey ramp and the accent); the look stays the same.
10
+
11
+ Everything on a screen is one of six things, and you can tell which by how it sits on the page:
12
+
13
+ | Role | What it is | How it looks |
14
+ | --- | --- | --- |
15
+ | Ground | The page itself. Navigation sits straight on it, with no border | Paper: a tinted off-white, near-black in dark (`--shell-ground`) |
16
+ | Flat | Things you read: cards, tables, chips, the sidebar and its items | The surface fill and a hairline border. No shadow |
17
+ | Raised | Things you press: buttons, select triggers, the selected segment, thumbs | The surface colour with a soft shadow, as a capsule |
18
+ | Lit | The primary action, and only that | Raised, in the accent, with a light on its top edge and a glow of its own colour |
19
+ | Recessed | Things you fill or slide: inputs, and the tracks of segmented controls, switches and sliders | Cut into the page: an inset shadow |
20
+ | Floating | Things over the page: menus, popovers, toasts, dialogs | The surface fill, a hairline and an elevation level (see [elevation.md](./elevation.md)) |
21
+
22
+ Shape follows the same split. Controls are capsules in every corner style (`--control-radius`); surfaces take `--surface-radius`, which the corner style and the density set. See [radius.md](./radius.md).
23
+
24
+ The accent is spent in few places: the primary action, switches, checks, radios, sliders, progress, the chosen day in a calendar and the focus ring. A chosen row, tree node, page or pressed toggle is quiet instead (`--item-selected-bg`).
25
+
26
+ ## Rules
27
+
28
+ 1. Don't restyle a component to change its role. A Button is raised, an Input is recessed, a Card is flat. If you want a different role, use a different component.
29
+ 2. One primary Button per view or region. It is the only lit thing on the screen; two of them cancel each other.
30
+ 3. Put content on the ground or in a Card. Don't wrap the whole content area in one big card, and don't nest more than two cards.
31
+ 4. Leave Card flat. Raise one (`elevation="sm"` or `"md"`) only to make a single card stand out among others, never every card.
32
+ 5. Divide with the hairline: `--surface-border` around a surface, or the Separator component. Never a shadow to separate things in the page flow. Navigation takes no line at all: the sidebar and the top bar sit on the ground, and the cards beside them mark where content starts.
33
+ 6. Never use the accent for a selected row, a current navigation item or a pressed toggle. Components already use `--item-selected-bg` and `--nav-active-bg`.
34
+ 7. Never write a `box-shadow`, a gradient or an inset by hand to imitate a raised, lit or recessed control. Use the component.
35
+ 8. When you build an element of your own, give it one role and read that role's tokens: a surface reads `--surface-bg` and `--surface-border`; a field reads `--control-field-bg`, `--control-field-border` and `--control-field-shadow`.
36
+ 9. Never set the look's tokens yourself, and never set them per component. They follow the theme and the mode.
37
+
38
+ ## Tokens
39
+
40
+ <!-- tokens:start -->
41
+ | Token | Value (default theme) | Use for |
42
+ | --- | --- | --- |
43
+ | `--shell-ground` | `--backgrounds-secondary` | The page behind everything: paper |
44
+ | `--surface-bg` | `--container-bg` | Flat surfaces: cards, tables, panels |
45
+ | `--surface-border` | `--container-border` | The hairline around a flat surface |
46
+ | `--surface-shadow` | none | None: flat surfaces carry no shadow |
47
+ | `--nav-active-bg` | `--surface-border` | The current navigation item |
48
+ | `--item-selected-bg` | between `--backgrounds-tertiary` and `--backgrounds-quaternary` | A chosen row, tree node, page or pressed toggle |
49
+ | `--item-selected-fg` | `--foregrounds-primary` | Text on a chosen row or item |
50
+ | `--control-bg` | `--backgrounds-primary` / dark `--backgrounds-tertiary` | Raised controls: buttons, select triggers, the selected segment |
51
+ | `--control-bg-hover` | `--backgrounds-secondary` / dark `--backgrounds-quaternary` | A raised control on hover |
52
+ | `--control-shadow` | `--elevation-control` | The soft shadow under a raised control |
53
+ | `--control-thumb-bg` | `--color-neutral-0` / dark `--foregrounds-primary` | Switch and slider thumbs |
54
+ | `--control-thumb-shadow` | `--elevation-thumb` | The shadow under a thumb |
55
+ | `--control-solid-sheen` | a faint light from the top edge down | The primary button only |
56
+ | `--control-solid-shadow` | top-edge light, a dark lip and a glow, all in the accent | The primary button only |
57
+ | `--control-well-bg` | `--backgrounds-tertiary` / dark: the ground, darkened | Recessed tracks: segmented control, switch, slider |
58
+ | `--control-well-fg` | `--foregrounds-secondary` / dim and dark `--interactive-fg-alt` | Labels in a track that are not selected: tabs, segments |
59
+ | `--control-well-shadow` | `--elevation-well` | The inset shadow of a track |
60
+ | `--control-field-bg` | `--backgrounds-primary` / dark: the ground, darkened | Recessed fields: inputs, textareas, search |
61
+ | `--control-field-border` | `--interactive-border-alt` | A field's border at rest |
62
+ | `--control-field-shadow` | `--elevation-field` | The inset shadow of a field |
63
+ | `--control-focus-border` | `--action-primary-bg` | A focused field's border: the accent |
64
+ | `--control-focus-ring` | a 3px ring of the accent at 18% | The soft ring around a focused field |
65
+ | `--focus-ring` | `--action-primary-bg` | Keyboard focus outline; components draw it, don't restyle it |
66
+ <!-- tokens:end -->
67
+
68
+ ## Choosing a value
69
+
70
+ | If you need… | Use |
71
+ | --- | --- |
72
+ | the app's frame: navigation on the ground, content beside it | NavigationDrawerLayout |
73
+ | a group of related content | Card, left flat |
74
+ | figures or rows to compare | Table inside a Card, or directly on the ground |
75
+ | the main action of a view | Button (the default variant), once |
76
+ | any other action | Button `outline` or `secondary` (raised), `ghost` (flat until hovered) |
77
+ | a choice between a few views | SegmentedControl or Tabs: a recessed track with a raised selected segment |
78
+ | an on or off setting | Switch: a recessed track that takes the accent when on |
79
+ | a value to type | Input, Textarea, Select and the other fields: recessed |
80
+ | a row that is selected | the component's own selected state, which is quiet |
81
+ | a surface of your own | `--surface-bg`, `--surface-border` and `--surface-radius` |
82
+ | a field of your own | `--control-field-bg`, `--control-field-border`, `--control-field-shadow` and `--control-radius` |
83
+
84
+ ## Dos and don'ts
85
+
86
+ **Do:** one lit action, the rest raised or flat.
87
+
88
+ ```tsx
89
+ <Row gap="sm" justify="end">
90
+ <Button variant="ghost">Cancel</Button>
91
+ <Button variant="outline">Save draft</Button>
92
+ <Button>Publish</Button>
93
+ </Row>
94
+ ```
95
+
96
+ **Don't:** light every action.
97
+
98
+ ```tsx
99
+ <Row gap="sm" justify="end">
100
+ <Button>Cancel</Button>
101
+ <Button>Save draft</Button>
102
+ <Button>Publish</Button>
103
+ </Row>
104
+ ```
105
+
106
+ **Do:** build your own surface from the surface tokens.
107
+
108
+ ```tsx
109
+ <div
110
+ style={{
111
+ backgroundColor: "var(--surface-bg)",
112
+ border: "1px solid var(--surface-border)",
113
+ borderRadius: "var(--surface-radius)",
114
+ padding: "var(--spacing-xl)",
115
+ }}
116
+ >
117
+ <Typography size="sm">Nothing scheduled this week.</Typography>
118
+ </div>
119
+ ```
120
+
121
+ **Don't:** give a flat surface a shadow, or a control a square corner.
122
+
123
+ ```tsx
124
+ <div style={{ boxShadow: "0 2px 8px rgba(0, 0, 0, 0.1)", borderRadius: 8 }}>
125
+ <Typography size="sm">Nothing scheduled this week.</Typography>
126
+ </div>
127
+ ```
128
+
129
+ ## Common agent mistakes
130
+
131
+ - Putting the whole content area in one big rounded card instead of on the ground.
132
+ - Several primary Buttons in one view.
133
+ - Shadows on cards "for depth". Depth here belongs to controls and to what floats.
134
+ - Colouring a selected row or the current navigation item with the accent.
135
+ - Rebuilding an input as a white box with a border; a field is recessed and a capsule.