@tanrei/cli 0.0.0-stage → 0.1.0-next.1

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 (288) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +57 -0
  3. package/README.md +96 -2
  4. package/bin/tanrei.js +14 -0
  5. package/dist/cli.js +8275 -0
  6. package/dist/studio/THIRD_PARTY_LICENSES.md +1047 -0
  7. package/dist/studio/assets/css-Buuc00hS.js +1 -0
  8. package/dist/studio/assets/dart-CL60Wo_p.js +1 -0
  9. package/dist/studio/assets/highlight-DO0QW7yz.js +4 -0
  10. package/dist/studio/assets/index-CmKf0KHF.css +1 -0
  11. package/dist/studio/assets/index-CtN9tpay.js +6232 -0
  12. package/dist/studio/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  13. package/dist/studio/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  14. package/dist/studio/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  15. package/dist/studio/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  16. package/dist/studio/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  17. package/dist/studio/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  18. package/dist/studio/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  19. package/dist/studio/assets/javascript-DSMm3SZC.js +1 -0
  20. package/dist/studio/assets/json-CUC6w7Wi.js +1 -0
  21. package/dist/studio/assets/kotlin-8HB26Eaz.js +1 -0
  22. package/dist/studio/assets/markup-5VTZgibJ.js +1 -0
  23. package/dist/studio/assets/material-symbols-outlined-latin-full-normal-CbWsDl0D.woff2 +0 -0
  24. package/dist/studio/assets/material-symbols-rounded-latin-full-normal-CFzFAzDo.woff2 +0 -0
  25. package/dist/studio/assets/noto-sans-arabic-arabic-wght-normal-BhzieyvS.woff2 +0 -0
  26. package/dist/studio/assets/noto-sans-jp-0-wght-normal-vN5ykBQF.woff2 +0 -0
  27. package/dist/studio/assets/noto-sans-jp-1-wght-normal-N_EDDt8j.woff2 +0 -0
  28. package/dist/studio/assets/noto-sans-jp-10-wght-normal-ChuiXes4.woff2 +0 -0
  29. package/dist/studio/assets/noto-sans-jp-100-wght-normal-CrE4HD6k.woff2 +0 -0
  30. package/dist/studio/assets/noto-sans-jp-101-wght-normal-DOqEZFXR.woff2 +0 -0
  31. package/dist/studio/assets/noto-sans-jp-102-wght-normal-2gFz4V6e.woff2 +0 -0
  32. package/dist/studio/assets/noto-sans-jp-103-wght-normal-D9RhXU-z.woff2 +0 -0
  33. package/dist/studio/assets/noto-sans-jp-104-wght-normal-OIyZ9iQD.woff2 +0 -0
  34. package/dist/studio/assets/noto-sans-jp-105-wght-normal-CqRQAfnb.woff2 +0 -0
  35. package/dist/studio/assets/noto-sans-jp-106-wght-normal-D-PO3jqS.woff2 +0 -0
  36. package/dist/studio/assets/noto-sans-jp-107-wght-normal-DrykTIAp.woff2 +0 -0
  37. package/dist/studio/assets/noto-sans-jp-108-wght-normal-DijBe27A.woff2 +0 -0
  38. package/dist/studio/assets/noto-sans-jp-109-wght-normal-DaJwqT__.woff2 +0 -0
  39. package/dist/studio/assets/noto-sans-jp-11-wght-normal-DdkFqF_o.woff2 +0 -0
  40. package/dist/studio/assets/noto-sans-jp-110-wght-normal-bhh2FQQH.woff2 +0 -0
  41. package/dist/studio/assets/noto-sans-jp-111-wght-normal-CuGzYIdC.woff2 +0 -0
  42. package/dist/studio/assets/noto-sans-jp-112-wght-normal-DdhK_1vk.woff2 +0 -0
  43. package/dist/studio/assets/noto-sans-jp-113-wght-normal-hxVHS2d4.woff2 +0 -0
  44. package/dist/studio/assets/noto-sans-jp-114-wght-normal-DUzjAsrP.woff2 +0 -0
  45. package/dist/studio/assets/noto-sans-jp-115-wght-normal-BiZ4-5rz.woff2 +0 -0
  46. package/dist/studio/assets/noto-sans-jp-116-wght-normal-DkZAcxAY.woff2 +0 -0
  47. package/dist/studio/assets/noto-sans-jp-117-wght-normal-CLJPD2y0.woff2 +0 -0
  48. package/dist/studio/assets/noto-sans-jp-118-wght-normal-D8DI_HXJ.woff2 +0 -0
  49. package/dist/studio/assets/noto-sans-jp-119-wght-normal-BAB3pFaH.woff2 +0 -0
  50. package/dist/studio/assets/noto-sans-jp-12-wght-normal-K36fA5_o.woff2 +0 -0
  51. package/dist/studio/assets/noto-sans-jp-13-wght-normal-BnYizWno.woff2 +0 -0
  52. package/dist/studio/assets/noto-sans-jp-14-wght-normal-BP4IgVC-.woff2 +0 -0
  53. package/dist/studio/assets/noto-sans-jp-15-wght-normal-DyhWcoYF.woff2 +0 -0
  54. package/dist/studio/assets/noto-sans-jp-16-wght-normal-CXsQLI2j.woff2 +0 -0
  55. package/dist/studio/assets/noto-sans-jp-17-wght-normal-C8FU1ZJ4.woff2 +0 -0
  56. package/dist/studio/assets/noto-sans-jp-18-wght-normal-Cl0IKBVh.woff2 +0 -0
  57. package/dist/studio/assets/noto-sans-jp-19-wght-normal-D3D3JUJm.woff2 +0 -0
  58. package/dist/studio/assets/noto-sans-jp-2-wght-normal-CGu8NhtQ.woff2 +0 -0
  59. package/dist/studio/assets/noto-sans-jp-20-wght-normal-DxsoeWSt.woff2 +0 -0
  60. package/dist/studio/assets/noto-sans-jp-21-wght-normal-CuNsexW5.woff2 +0 -0
  61. package/dist/studio/assets/noto-sans-jp-22-wght-normal-DVX3OFQM.woff2 +0 -0
  62. package/dist/studio/assets/noto-sans-jp-23-wght-normal-BPFuo_yH.woff2 +0 -0
  63. package/dist/studio/assets/noto-sans-jp-24-wght-normal-D85Fj66x.woff2 +0 -0
  64. package/dist/studio/assets/noto-sans-jp-25-wght-normal-DdOOVuSz.woff2 +0 -0
  65. package/dist/studio/assets/noto-sans-jp-26-wght-normal-BRB1GnUq.woff2 +0 -0
  66. package/dist/studio/assets/noto-sans-jp-27-wght-normal-BxZFF8JU.woff2 +0 -0
  67. package/dist/studio/assets/noto-sans-jp-28-wght-normal-VUlviaYI.woff2 +0 -0
  68. package/dist/studio/assets/noto-sans-jp-29-wght-normal-CalQqRwB.woff2 +0 -0
  69. package/dist/studio/assets/noto-sans-jp-3-wght-normal-cncaCaM8.woff2 +0 -0
  70. package/dist/studio/assets/noto-sans-jp-30-wght-normal-CHLg85G9.woff2 +0 -0
  71. package/dist/studio/assets/noto-sans-jp-31-wght-normal-BUoF9dl9.woff2 +0 -0
  72. package/dist/studio/assets/noto-sans-jp-32-wght-normal-C5ZTiBNw.woff2 +0 -0
  73. package/dist/studio/assets/noto-sans-jp-33-wght-normal-C6XNJsfA.woff2 +0 -0
  74. package/dist/studio/assets/noto-sans-jp-34-wght-normal-DHkM837w.woff2 +0 -0
  75. package/dist/studio/assets/noto-sans-jp-35-wght-normal-QMtEjDIl.woff2 +0 -0
  76. package/dist/studio/assets/noto-sans-jp-36-wght-normal-CUyF0GqZ.woff2 +0 -0
  77. package/dist/studio/assets/noto-sans-jp-37-wght-normal-EORmNjxA.woff2 +0 -0
  78. package/dist/studio/assets/noto-sans-jp-38-wght-normal-C8ERbMNG.woff2 +0 -0
  79. package/dist/studio/assets/noto-sans-jp-39-wght-normal-ChUfpJbl.woff2 +0 -0
  80. package/dist/studio/assets/noto-sans-jp-4-wght-normal-DtWqs3EP.woff2 +0 -0
  81. package/dist/studio/assets/noto-sans-jp-40-wght-normal-MgP8JEEE.woff2 +0 -0
  82. package/dist/studio/assets/noto-sans-jp-41-wght-normal-3ctF9abM.woff2 +0 -0
  83. package/dist/studio/assets/noto-sans-jp-42-wght-normal-CQtg6UZe.woff2 +0 -0
  84. package/dist/studio/assets/noto-sans-jp-43-wght-normal-D1Pmm9aG.woff2 +0 -0
  85. package/dist/studio/assets/noto-sans-jp-44-wght-normal-Cp9dHeXI.woff2 +0 -0
  86. package/dist/studio/assets/noto-sans-jp-45-wght-normal-D2b1osBj.woff2 +0 -0
  87. package/dist/studio/assets/noto-sans-jp-46-wght-normal-CGIA-Vlo.woff2 +0 -0
  88. package/dist/studio/assets/noto-sans-jp-47-wght-normal-C4EEGqDS.woff2 +0 -0
  89. package/dist/studio/assets/noto-sans-jp-48-wght-normal-D2iBztXa.woff2 +0 -0
  90. package/dist/studio/assets/noto-sans-jp-49-wght-normal-DxqRVik_.woff2 +0 -0
  91. package/dist/studio/assets/noto-sans-jp-5-wght-normal-CFiyVtll.woff2 +0 -0
  92. package/dist/studio/assets/noto-sans-jp-50-wght-normal-CMseszwo.woff2 +0 -0
  93. package/dist/studio/assets/noto-sans-jp-51-wght-normal-Cqc-9wfi.woff2 +0 -0
  94. package/dist/studio/assets/noto-sans-jp-52-wght-normal-BVLZTbqC.woff2 +0 -0
  95. package/dist/studio/assets/noto-sans-jp-53-wght-normal-DTyNOJaY.woff2 +0 -0
  96. package/dist/studio/assets/noto-sans-jp-54-wght-normal-_mxGq_et.woff2 +0 -0
  97. package/dist/studio/assets/noto-sans-jp-55-wght-normal-Bvndync8.woff2 +0 -0
  98. package/dist/studio/assets/noto-sans-jp-56-wght-normal-0MmMqroR.woff2 +0 -0
  99. package/dist/studio/assets/noto-sans-jp-57-wght-normal-BdRnjDYs.woff2 +0 -0
  100. package/dist/studio/assets/noto-sans-jp-58-wght-normal-BYGgVeN_.woff2 +0 -0
  101. package/dist/studio/assets/noto-sans-jp-59-wght-normal-Bdv8mdje.woff2 +0 -0
  102. package/dist/studio/assets/noto-sans-jp-6-wght-normal-M-pWkj3J.woff2 +0 -0
  103. package/dist/studio/assets/noto-sans-jp-60-wght-normal-DC6FEqsM.woff2 +0 -0
  104. package/dist/studio/assets/noto-sans-jp-61-wght-normal-CYIuK5Lr.woff2 +0 -0
  105. package/dist/studio/assets/noto-sans-jp-62-wght-normal-DeHy8p7w.woff2 +0 -0
  106. package/dist/studio/assets/noto-sans-jp-63-wght-normal-B4M6eMmD.woff2 +0 -0
  107. package/dist/studio/assets/noto-sans-jp-64-wght-normal-DLyOXBrC.woff2 +0 -0
  108. package/dist/studio/assets/noto-sans-jp-65-wght-normal-X7SsA1bs.woff2 +0 -0
  109. package/dist/studio/assets/noto-sans-jp-66-wght-normal-VScDM-_N.woff2 +0 -0
  110. package/dist/studio/assets/noto-sans-jp-67-wght-normal-Dg2D3DZB.woff2 +0 -0
  111. package/dist/studio/assets/noto-sans-jp-68-wght-normal-BB0AR8UN.woff2 +0 -0
  112. package/dist/studio/assets/noto-sans-jp-69-wght-normal-CucwpUnQ.woff2 +0 -0
  113. package/dist/studio/assets/noto-sans-jp-7-wght-normal-DzOz8Ryd.woff2 +0 -0
  114. package/dist/studio/assets/noto-sans-jp-70-wght-normal-BZId6-Tb.woff2 +0 -0
  115. package/dist/studio/assets/noto-sans-jp-71-wght-normal-CzPU0NF7.woff2 +0 -0
  116. package/dist/studio/assets/noto-sans-jp-72-wght-normal-DrNRYXnT.woff2 +0 -0
  117. package/dist/studio/assets/noto-sans-jp-73-wght-normal-DF2BdR6a.woff2 +0 -0
  118. package/dist/studio/assets/noto-sans-jp-74-wght-normal-BMlOw_5y.woff2 +0 -0
  119. package/dist/studio/assets/noto-sans-jp-75-wght-normal-DKq84hLG.woff2 +0 -0
  120. package/dist/studio/assets/noto-sans-jp-76-wght-normal-CTb-2MFr.woff2 +0 -0
  121. package/dist/studio/assets/noto-sans-jp-77-wght-normal-DfIVi-wf.woff2 +0 -0
  122. package/dist/studio/assets/noto-sans-jp-78-wght-normal-_-z1Vrir.woff2 +0 -0
  123. package/dist/studio/assets/noto-sans-jp-79-wght-normal-D8kGlXda.woff2 +0 -0
  124. package/dist/studio/assets/noto-sans-jp-8-wght-normal-BfWoBb3q.woff2 +0 -0
  125. package/dist/studio/assets/noto-sans-jp-80-wght-normal-BOEztZwY.woff2 +0 -0
  126. package/dist/studio/assets/noto-sans-jp-81-wght-normal-h5VC8QpU.woff2 +0 -0
  127. package/dist/studio/assets/noto-sans-jp-82-wght-normal-DJ4QkvX0.woff2 +0 -0
  128. package/dist/studio/assets/noto-sans-jp-83-wght-normal-DANtuAZG.woff2 +0 -0
  129. package/dist/studio/assets/noto-sans-jp-84-wght-normal-DjZ8Sp6m.woff2 +0 -0
  130. package/dist/studio/assets/noto-sans-jp-85-wght-normal-kpU7kbMF.woff2 +0 -0
  131. package/dist/studio/assets/noto-sans-jp-86-wght-normal-DRPTa-bf.woff2 +0 -0
  132. package/dist/studio/assets/noto-sans-jp-87-wght-normal-CFM472wD.woff2 +0 -0
  133. package/dist/studio/assets/noto-sans-jp-88-wght-normal-2rLLwelj.woff2 +0 -0
  134. package/dist/studio/assets/noto-sans-jp-89-wght-normal-DUIF9ybW.woff2 +0 -0
  135. package/dist/studio/assets/noto-sans-jp-9-wght-normal-WLs1HgG6.woff2 +0 -0
  136. package/dist/studio/assets/noto-sans-jp-90-wght-normal-B0n_tL-y.woff2 +0 -0
  137. package/dist/studio/assets/noto-sans-jp-91-wght-normal-BishDeFy.woff2 +0 -0
  138. package/dist/studio/assets/noto-sans-jp-92-wght-normal-DoIdukLp.woff2 +0 -0
  139. package/dist/studio/assets/noto-sans-jp-93-wght-normal-DMCycan_.woff2 +0 -0
  140. package/dist/studio/assets/noto-sans-jp-94-wght-normal-DlyoTk-A.woff2 +0 -0
  141. package/dist/studio/assets/noto-sans-jp-95-wght-normal-D0L1aiGf.woff2 +0 -0
  142. package/dist/studio/assets/noto-sans-jp-96-wght-normal-CjJ0kYkQ.woff2 +0 -0
  143. package/dist/studio/assets/noto-sans-jp-97-wght-normal-CJ8uP04H.woff2 +0 -0
  144. package/dist/studio/assets/noto-sans-jp-98-wght-normal-CjEDrQIY.woff2 +0 -0
  145. package/dist/studio/assets/noto-sans-jp-99-wght-normal-DaQ3GEVf.woff2 +0 -0
  146. package/dist/studio/assets/noto-sans-jp-cyrillic-wght-normal-BbS1Q_ZO.woff2 +0 -0
  147. package/dist/studio/assets/noto-sans-jp-latin-ext-wght-normal-IaSo_s9d.woff2 +0 -0
  148. package/dist/studio/assets/noto-sans-jp-latin-wght-normal-Bnnzbixe.woff2 +0 -0
  149. package/dist/studio/assets/noto-sans-jp-vietnamese-wght-normal-CjvP4Ahz.woff2 +0 -0
  150. package/dist/studio/assets/roboto-cyrillic-ext-wght-normal-BCp_3N7R.woff2 +0 -0
  151. package/dist/studio/assets/roboto-cyrillic-wght-normal-fOt7epNf.woff2 +0 -0
  152. package/dist/studio/assets/roboto-greek-ext-wght-normal-Bgw4czJT.woff2 +0 -0
  153. package/dist/studio/assets/roboto-greek-wght-normal-DlT9XTxE.woff2 +0 -0
  154. package/dist/studio/assets/roboto-latin-ext-wght-normal-DYIxWhlt.woff2 +0 -0
  155. package/dist/studio/assets/roboto-latin-wght-normal-ccAYIvAh.woff2 +0 -0
  156. package/dist/studio/assets/roboto-math-wght-normal-4a3xuzGk.woff2 +0 -0
  157. package/dist/studio/assets/roboto-mono-cyrillic-ext-wght-normal-BUDPrIko.woff2 +0 -0
  158. package/dist/studio/assets/roboto-mono-cyrillic-wght-normal-HUlVHixE.woff2 +0 -0
  159. package/dist/studio/assets/roboto-mono-greek-wght-normal-BJJTbwTT.woff2 +0 -0
  160. package/dist/studio/assets/roboto-mono-latin-ext-wght-normal-QAYlOegK.woff2 +0 -0
  161. package/dist/studio/assets/roboto-mono-latin-wght-normal-CZtBPCCa.woff2 +0 -0
  162. package/dist/studio/assets/roboto-mono-vietnamese-wght-normal-DlC-zuDL.woff2 +0 -0
  163. package/dist/studio/assets/roboto-symbols-wght-normal-B7iHSfaG.woff2 +0 -0
  164. package/dist/studio/assets/roboto-vietnamese-wght-normal-_f1XEJpo.woff2 +0 -0
  165. package/dist/studio/assets/shared-DaQcXrQr.js +1 -0
  166. package/dist/studio/assets/shell-BX8EJGse.js +1 -0
  167. package/dist/studio/assets/swift-BAKAYbPz.js +1 -0
  168. package/dist/studio/assets/typescript-TrpEWIdY.js +1 -0
  169. package/dist/studio/index.html +33 -0
  170. package/dist/vocabulary/packages/tokens-build/generated/component-catalog.json +1825 -0
  171. package/dist/vocabulary/packages/web/src/generated/glyphs.json +189 -0
  172. package/dist/vocabulary/tanrei.config.json +24 -0
  173. package/dist/vocabulary/tokens/comp/accordion.tokens.json +459 -0
  174. package/dist/vocabulary/tokens/comp/app-bar.tokens.json +308 -0
  175. package/dist/vocabulary/tokens/comp/app-shell.tokens.json +248 -0
  176. package/dist/vocabulary/tokens/comp/avatar.tokens.json +199 -0
  177. package/dist/vocabulary/tokens/comp/badge.tokens.json +101 -0
  178. package/dist/vocabulary/tokens/comp/bottom-sheet.tokens.json +326 -0
  179. package/dist/vocabulary/tokens/comp/breadcrumbs.tokens.json +253 -0
  180. package/dist/vocabulary/tokens/comp/button-group.tokens.json +140 -0
  181. package/dist/vocabulary/tokens/comp/button-with-menu.tokens.json +810 -0
  182. package/dist/vocabulary/tokens/comp/button.tokens.json +1355 -0
  183. package/dist/vocabulary/tokens/comp/calendar.tokens.json +500 -0
  184. package/dist/vocabulary/tokens/comp/callout.tokens.json +510 -0
  185. package/dist/vocabulary/tokens/comp/card.tokens.json +204 -0
  186. package/dist/vocabulary/tokens/comp/carousel.tokens.json +469 -0
  187. package/dist/vocabulary/tokens/comp/chat-composer.tokens.json +343 -0
  188. package/dist/vocabulary/tokens/comp/checkbox.tokens.json +587 -0
  189. package/dist/vocabulary/tokens/comp/chip.tokens.json +716 -0
  190. package/dist/vocabulary/tokens/comp/code-block.tokens.json +473 -0
  191. package/dist/vocabulary/tokens/comp/color-input.tokens.json +49 -0
  192. package/dist/vocabulary/tokens/comp/combobox.tokens.json +756 -0
  193. package/dist/vocabulary/tokens/comp/copy-button.tokens.json +56 -0
  194. package/dist/vocabulary/tokens/comp/date-time-picker.tokens.json +797 -0
  195. package/dist/vocabulary/tokens/comp/description-list.tokens.json +203 -0
  196. package/dist/vocabulary/tokens/comp/dialog.tokens.json +340 -0
  197. package/dist/vocabulary/tokens/comp/divider.tokens.json +139 -0
  198. package/dist/vocabulary/tokens/comp/drop-zone.tokens.json +151 -0
  199. package/dist/vocabulary/tokens/comp/embedded-text-input.tokens.json +103 -0
  200. package/dist/vocabulary/tokens/comp/empty-state.tokens.json +154 -0
  201. package/dist/vocabulary/tokens/comp/field-group.tokens.json +211 -0
  202. package/dist/vocabulary/tokens/comp/field.tokens.json +308 -0
  203. package/dist/vocabulary/tokens/comp/figure.tokens.json +269 -0
  204. package/dist/vocabulary/tokens/comp/file-item.tokens.json +445 -0
  205. package/dist/vocabulary/tokens/comp/file-picker.tokens.json +282 -0
  206. package/dist/vocabulary/tokens/comp/file-upload.tokens.json +30 -0
  207. package/dist/vocabulary/tokens/comp/handle.tokens.json +343 -0
  208. package/dist/vocabulary/tokens/comp/image-preview.tokens.json +327 -0
  209. package/dist/vocabulary/tokens/comp/inline-code.tokens.json +86 -0
  210. package/dist/vocabulary/tokens/comp/input-box.tokens.json +1073 -0
  211. package/dist/vocabulary/tokens/comp/keyboard-shortcut.tokens.json +194 -0
  212. package/dist/vocabulary/tokens/comp/link-card.tokens.json +321 -0
  213. package/dist/vocabulary/tokens/comp/link.tokens.json +321 -0
  214. package/dist/vocabulary/tokens/comp/list-row.tokens.json +249 -0
  215. package/dist/vocabulary/tokens/comp/list.tokens.json +328 -0
  216. package/dist/vocabulary/tokens/comp/loading-indicator.tokens.json +218 -0
  217. package/dist/vocabulary/tokens/comp/main-action-button.tokens.json +418 -0
  218. package/dist/vocabulary/tokens/comp/marquee-text.tokens.json +110 -0
  219. package/dist/vocabulary/tokens/comp/menu.tokens.json +1124 -0
  220. package/dist/vocabulary/tokens/comp/menubar.tokens.json +279 -0
  221. package/dist/vocabulary/tokens/comp/meter.tokens.json +173 -0
  222. package/dist/vocabulary/tokens/comp/modal-layer.tokens.json +69 -0
  223. package/dist/vocabulary/tokens/comp/navigation-bar.tokens.json +448 -0
  224. package/dist/vocabulary/tokens/comp/navigation-drawer.tokens.json +1126 -0
  225. package/dist/vocabulary/tokens/comp/number-input.tokens.json +75 -0
  226. package/dist/vocabulary/tokens/comp/number-ticker.tokens.json +77 -0
  227. package/dist/vocabulary/tokens/comp/one-time-code-input.tokens.json +246 -0
  228. package/dist/vocabulary/tokens/comp/page-header.tokens.json +247 -0
  229. package/dist/vocabulary/tokens/comp/pagination.tokens.json +233 -0
  230. package/dist/vocabulary/tokens/comp/popover.tokens.json +363 -0
  231. package/dist/vocabulary/tokens/comp/previous-next-links.tokens.json +194 -0
  232. package/dist/vocabulary/tokens/comp/progress-indicator.tokens.json +218 -0
  233. package/dist/vocabulary/tokens/comp/prose.tokens.json +283 -0
  234. package/dist/vocabulary/tokens/comp/radio-button.tokens.json +413 -0
  235. package/dist/vocabulary/tokens/comp/rating.tokens.json +230 -0
  236. package/dist/vocabulary/tokens/comp/resizable-frame.tokens.json +166 -0
  237. package/dist/vocabulary/tokens/comp/scroll-area.tokens.json +99 -0
  238. package/dist/vocabulary/tokens/comp/search.tokens.json +761 -0
  239. package/dist/vocabulary/tokens/comp/segmented-button.tokens.json +414 -0
  240. package/dist/vocabulary/tokens/comp/select.tokens.json +687 -0
  241. package/dist/vocabulary/tokens/comp/side-sheet.tokens.json +332 -0
  242. package/dist/vocabulary/tokens/comp/size-transition.tokens.json +49 -0
  243. package/dist/vocabulary/tokens/comp/skeleton.tokens.json +114 -0
  244. package/dist/vocabulary/tokens/comp/slider.tokens.json +436 -0
  245. package/dist/vocabulary/tokens/comp/snackbar.tokens.json +1160 -0
  246. package/dist/vocabulary/tokens/comp/split-view.tokens.json +52 -0
  247. package/dist/vocabulary/tokens/comp/stepper.tokens.json +538 -0
  248. package/dist/vocabulary/tokens/comp/steps.tokens.json +190 -0
  249. package/dist/vocabulary/tokens/comp/swatch.tokens.json +208 -0
  250. package/dist/vocabulary/tokens/comp/switch.tokens.json +350 -0
  251. package/dist/vocabulary/tokens/comp/tab-view.tokens.json +142 -0
  252. package/dist/vocabulary/tokens/comp/table-of-contents.tokens.json +429 -0
  253. package/dist/vocabulary/tokens/comp/table.tokens.json +553 -0
  254. package/dist/vocabulary/tokens/comp/tabs.tokens.json +1058 -0
  255. package/dist/vocabulary/tokens/comp/tag-group.tokens.json +68 -0
  256. package/dist/vocabulary/tokens/comp/tag.tokens.json +551 -0
  257. package/dist/vocabulary/tokens/comp/text-input.tokens.json +96 -0
  258. package/dist/vocabulary/tokens/comp/timeline.tokens.json +239 -0
  259. package/dist/vocabulary/tokens/comp/toolbar.tokens.json +270 -0
  260. package/dist/vocabulary/tokens/comp/tooltip.tokens.json +391 -0
  261. package/dist/vocabulary/tokens/comp/tree-view.tokens.json +478 -0
  262. package/dist/vocabulary/tokens/dial/dial.tokens.json +137 -0
  263. package/dist/vocabulary/tokens/fidelity/cupertino.fidelity.json +165 -0
  264. package/dist/vocabulary/tokens/fidelity/m3-like.fidelity.json +388 -0
  265. package/dist/vocabulary/tokens/fidelity/reference/androidx-material3.json +144 -0
  266. package/dist/vocabulary/tokens/fidelity/reference/apple-hig.json +196 -0
  267. package/dist/vocabulary/tokens/fidelity/reference/material-web.json +802 -0
  268. package/dist/vocabulary/tokens/icon-sets/material-symbols.icon-set.json +279 -0
  269. package/dist/vocabulary/tokens/ref/typeface.tokens.json +116 -0
  270. package/dist/vocabulary/tokens/schema/icon-set.schema.json +82 -0
  271. package/dist/vocabulary/tokens/schema/system.schema.json +859 -0
  272. package/dist/vocabulary/tokens/sys/behavior.tokens.json +184 -0
  273. package/dist/vocabulary/tokens/sys/color.vocabulary.json +58 -0
  274. package/dist/vocabulary/tokens/sys/elevation.tokens.json +362 -0
  275. package/dist/vocabulary/tokens/sys/measure.tokens.json +442 -0
  276. package/dist/vocabulary/tokens/sys/motion.tokens.json +1421 -0
  277. package/dist/vocabulary/tokens/sys/scroll-edge.tokens.json +50 -0
  278. package/dist/vocabulary/tokens/sys/shape.tokens.json +169 -0
  279. package/dist/vocabulary/tokens/sys/space.tokens.json +256 -0
  280. package/dist/vocabulary/tokens/sys/state.tokens.json +83 -0
  281. package/dist/vocabulary/tokens/sys/typescale.tokens.json +551 -0
  282. package/dist/vocabulary/tokens/systems/core.system.json +1889 -0
  283. package/dist/vocabulary/tokens/systems/cupertino.system.json +859 -0
  284. package/dist/vocabulary/tokens/systems/m3-like/comp/fab-menu.tokens.json +499 -0
  285. package/dist/vocabulary/tokens/systems/m3-like.system.json +1181 -0
  286. package/dist/vocabulary/tokens/systems/tanrei.system.json +707 -0
  287. package/dist/vocabulary/tokens/tanrei.resolver.json +400 -0
  288. package/package.json +50 -3
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
package/NOTICE ADDED
@@ -0,0 +1,57 @@
1
+ Tanrei
2
+ Copyright 2026 The Tanrei Authors
3
+
4
+ This product includes data derived from the following works, each licensed
5
+ under the Apache License, Version 2.0:
6
+
7
+ material-design-icons
8
+ Copyright Google LLC
9
+ https://github.com/google/material-design-icons
10
+ The list of glyph names that are mirrored in a right-to-left layout
11
+ (tokens/icon-sets/material-symbols.icon-set.json and the files generated
12
+ from it) is taken from the android:autoMirrored flag of the vector
13
+ drawables at revision 737e3324305806514d7909874fa1818ae1808232.
14
+
15
+ material-web
16
+ Copyright Google LLC
17
+ https://github.com/material-components/material-web
18
+ The token names and resolved values in
19
+ tokens/fidelity/reference/material-web.json are taken from the published
20
+ token files, version v0_192. Values of the m3-like preset
21
+ (tokens/systems/m3-like.system.json and the files generated from it) are
22
+ taken from the same token files.
23
+
24
+ androidx.compose.material3
25
+ Copyright The Android Open Source Project
26
+ https://github.com/androidx/androidx
27
+ The token names and values in
28
+ tokens/fidelity/reference/androidx-material3.json are taken from the
29
+ published token files, versions v0_11_0, v0_7_0 and 14_1_0. Values of the
30
+ m3-like preset (tokens/systems/m3-like.system.json and the files generated
31
+ from it) are taken from the same token files.
32
+
33
+ The source repository also contains the Gradle wrapper
34
+ (packages/compose/gradlew, gradlew.bat and gradle/wrapper/) — Copyright 2015
35
+ the original authors. Apache License, Version 2.0.
36
+ https://github.com/gradle/gradle
37
+
38
+ Tanrei's libraries reference fonts by name and include no font file. Two
39
+ build outputs include third-party code or fonts, and carry the copyright
40
+ notice and licence of each beside them in THIRD_PARTY_LICENSES.md: the
41
+ self-contained bundle of @tanrei/web (dist/tanrei.bundle.js), and the Theme
42
+ Studio app that @tanrei/cli serves (dist/studio/), which includes font files
43
+ licensed under the SIL Open Font License, Version 1.1.
44
+
45
+ The design system presets other than tanrei (tokens/systems/) are independent
46
+ approximations, named for what they resemble:
47
+
48
+ m3-like — resembles Material Design 3.
49
+ cupertino — resembles what the Apple Human Interface Guidelines describe.
50
+
51
+ Tanrei is not affiliated with, endorsed by, or sponsored by Google LLC,
52
+ Apple Inc., or any other owner of what a preset resembles.
53
+
54
+ Material Design is a trademark of Google LLC. Apple, iOS and Apple Human
55
+ Interface Guidelines are trademarks of Apple Inc. They are used only to name
56
+ what a preset approximates; Tanrei does not claim to follow them and includes
57
+ none of their logos, and none of Apple's typefaces or symbols.
package/README.md CHANGED
@@ -1,3 +1,97 @@
1
- # Temporary Holding Version
1
+ # @tanrei/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <!-- tanrei:status -->
4
+ <!-- Written by `pnpm generate` (packages/tools/src/readme.js) from the specs and tanrei.config.json: edit those, not this block. -->
5
+ > **Prerelease.** `0.1.0-next.1` is published under the npm dist-tag `next`: until `0.1.0`, install `@tanrei/cli@next`. During the 0.x prereleases backward compatibility is not kept: any prerelease may break anything, with no deprecation period first, and its changeset says what broke.
6
+
7
+ <!-- /tanrei:status -->
8
+
9
+ Build your own design system on [Tanrei](https://github.com/chnotchy/tanrei): **one layer file in, tokens and code for every platform out.** Change a value, run one command, and the web, SwiftUI, Jetpack Compose, Flutter and React Native all move in the same pull request.
10
+
11
+ ```bash
12
+ npm install --save-dev @tanrei/cli
13
+ npx tanrei init acme --extends tanrei # or m3-like, cupertino
14
+ npx tanrei build
15
+ ```
16
+
17
+ `init` writes two files. `design/acme.system.json` is your design system — a *layer*: it changes values of the shared vocabulary and declares palettes; what it adds goes under `vocabulary`, additively and with a `rationale`.
18
+
19
+ Made your layer in [Theme Studio](../studio/README.md)? Start from the file it downloads instead: `npx tanrei init --from acme.system.json` checks it, copies it unchanged to `design/acme.system.json` and writes `tanrei.json`.
20
+
21
+ ```json
22
+ {
23
+ "id": "acme",
24
+ "extends": "tanrei",
25
+ "palettes": {
26
+ "accent": { "description": "Acme red, fixed by the brand guideline.", "source": { "seed": "#e60012" }, "roles": "intent" },
27
+ "correct": { "description": "A right answer — neither success nor primary.", "source": { "seed": "#0f766e" }, "roles": "intent" }
28
+ },
29
+ "tokens": {
30
+ "tanrei.dial.type.base": { "$value": { "value": 17, "unit": "px" }, "reason": "Read at arm's length." },
31
+ "tanrei.comp.button.container.padding-inline-start.medium": { "scale": 2 },
32
+ "tanrei.comp.button.container.gap.medium": { "$value": "{tanrei.sys.space.space50}" },
33
+ "tanrei.sys.typescale.label-small": { "$value": { "fontSize": { "value": 11, "unit": "px" } }, "reason": "Contractual footnote size." }
34
+ }
35
+ }
36
+ ```
37
+
38
+ A layer sets values in this order of preference: a dial first. The dials are eight numbers every token is derived from — `type.base`, `type.contrast`, `space.unit`, `size.unit`, `control.height`, `shape.unit`, `stroke.unit`, `motion.unit`, each `tanrei.dial.<name>`. Three values decide how big things are:
39
+
40
+ | | |
41
+ |---|---|
42
+ | `tanrei.dial.control.height` | 40px: the height controls and rows are drawn at in their default size; small and large are whole size units below and above it (32 and 56) |
43
+ | `tanrei.dial.size.unit` | 4px: the distance between the control sizes, and the scale of icons |
44
+ | `tanrei.sys.target.minimum` | 36px: the least height anything a person presses is drawn at. No dial scales it, and no size step draws a pressable height below it. `tanrei.sys.target.pointer` and `.touch`, the least areas a press is taken from, alias it; a layer that follows a platform guideline sets them higher |
45
+
46
+ `tanrei validate` and `tanrei build` refuse a pointer or touch target under the minimum, and a minimum above the control height, in every layer. A target under 24px (WCAG 2.5.8) or a pressable height under the minimum is a warning in your layer. `init` prints the same summary.
47
+
48
+ `tanrei.json` says where each output goes. List only what you ship.
49
+
50
+ ```json
51
+ {
52
+ "system": "design/acme.system.json",
53
+ "kotlinPackage": "com.acme.design",
54
+ "outputs": {
55
+ "tokens": "design/tokens/acme",
56
+ "web": "apps/web/src/styles",
57
+ "tailwind": "apps/web/src/styles",
58
+ "shadcn": "apps/web/src/styles",
59
+ "swiftui": "apps/ios/Acme/Design",
60
+ "compose": "apps/android/app/src/main/kotlin/com/acme/design",
61
+ "flutter": "apps/flutter/lib/design",
62
+ "react-native": "apps/mobile/src/design"
63
+ }
64
+ }
65
+ ```
66
+
67
+ | Output | What you get | Use it with |
68
+ |---|---|---|
69
+ | `tokens` | A self-contained **DTCG 2025.10** bundle with a standard resolver, the recipe that produced it, `a11y-report.json`, and `components.json` — the components the system ships, with the module that registers each, and those it does not have, with what to use instead; and `acme.<scheme>.json` for each of the six schemes — every token resolved, by its id, a color as `#rrggbb` (or `#rrggbbaa`), a dimension or a duration as one string | any design-token tool, Figma/Penpot importers, AI agents; the `.json` per scheme for any program that reads values without a resolver |
70
+ | `web` | `acme.css`, scoped to `[data-tanrei-system="acme"]`, and `acme.theme-color.json` — the surface of each scheme, for `themeColorMeta()` | `@tanrei/web` |
71
+ | `tailwind` | `acme.tailwind.css` — a Tailwind CSS v4 `@theme` mapped onto Tanrei's variables | Tailwind v4 |
72
+ | `shadcn` | `acme.shadcn.css` — shadcn/ui's variables mapped onto Tanrei's roles | shadcn/ui |
73
+ | `swiftui` | `TanreiSystem+Acme.swift` → `TanreiSystem.acme` | the `Tanrei` Swift package |
74
+ | `compose` | `TanreiSystemAcme.kt` → `TanreiSystem.Acme` | `io.github.chnotchy:tanrei` |
75
+ | `flutter` | `acme_system.g.dart` → `acmeSystem` | `package:tanrei` |
76
+ | `react-native` | `acme.ts` → `acme` | `@tanrei/react-native` |
77
+
78
+ The vocabulary *types* always come from the library; a build only writes your system's *values*. If the library's vocabulary moves, the generated file stops compiling instead of drifting silently — keep `@tanrei/cli` and the libraries on the same version.
79
+
80
+ ## Commands
81
+
82
+ | | |
83
+ |---|---|
84
+ | `tanrei init <id> [--extends <system>]` | starter layer + `tanrei.json`, and a summary of the dials and the minimum target |
85
+ | `tanrei init --from <id>.system.json` | start from a layer file you already have — the one Theme Studio's Export downloads. It is checked against the schema and the vocabulary rules, with the systems this version ships as its parents; then copied unchanged to `design/<id>.system.json`, the id read from the file (not its name), and `tanrei.json` is written. Nothing is written when the file is refused or when `tanrei.json` or the destination already exists. The link Theme Studio copies is not taken: save the file and pass its path |
86
+ | `tanrei build [--check]` | generate; `--check` writes nothing and fails when a committed output is stale (CI). Prints the font families the system names (text: brand, plain, mono; icons: unselected, selected) — fonts are referenced by name and never bundled, so the product installs or registers them |
87
+ | `tanrei validate` | schema and vocabulary rules, then a trial build in memory (nothing is written), failing on what `tanrei build` refuses in every layer (a pointer or touch target under `sys.target.minimum`); prints the accessibility/structure warnings `tanrei build` would print (what concerns the whole system first — e.g. `pressed-feedback: dim` while every pressed opacity is 1), and warns when a font stack has no system or generic fallback |
88
+ | `tanrei explain <token-id>` | the value (a choice of kind by its name), which layer or pattern rule gives it — every matching rule, with the one that wins and why — and what a layer may write for it |
89
+ | `tanrei studio [--config tanrei.json] [--port <n>] [--no-open]` | serve [Theme Studio](../studio/README.md) on `127.0.0.1` (a random free port unless `--port` is given) and open it in the browser (`--no-open` prints the link only). It edits the layer file `tanrei.json` names in place — saves are atomic, conditional and refused when the engine would refuse the layer — and its build writes the configured outputs. Local only; the link carries a one-time key. Ctrl+C stops it |
90
+ | `tanrei systems` | the systems that ship with this version, with the font families each one names |
91
+ | `tanrei audit <file\|dir\|glob…> [--system <id\|layer file>] [--format text\|json]` | what your code uses that the system does not have, each at its file, line and column with what to write instead: an element (in markup, a template, JSX, a string, an imported React wrapper, a CSS selector) of a component the system does not have, an import from an entry that does not fit the system (`@tanrei/react/all` or `@tanrei/web/m3-like` in a product of the default system), a written `variant="…"` it leaves out. The system is `--system`, else the product's (`tanrei.json`), else `tanrei`. A directory is read for script, markup and stylesheets, without `node_modules` and hidden directories; quote a glob. Comments are skipped; a variant held in a variable is not seen. Exit 0: nothing found; 1: something found (CI); 2: it could not run |
92
+
93
+ ## Accessibility
94
+
95
+ Contrast thresholds and structural checks are constants. In your layer a violation is a **warning**, never silent: it is printed, written to `a11y-report.json`, and stamped at the top of every generated file. The report also records how many contrast pairs were checked in each scheme (`checked`): the pairs of color roles, and the pairs of a component's own colors.
96
+
97
+ The shipped imitation presets (`m3-like`, `cupertino`) are held to fidelity to the systems they imitate, not to Tanrei's accessibility criteria, in every contrast scheme: what the fixed ruler measures in a preset is recorded as information, not as a warning. Your layer is a product layer, whatever it extends, so a layer built on a preset is warned about what it inherits from it too.
package/bin/tanrei.js ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ // The published package carries its own copy of the vocabulary (dist/vocabulary) and a bundled pipeline.
3
+ // Inside the Tanrei monorepo there is no dist/: the sources are used directly.
4
+ import fs from 'node:fs';
5
+ import path from 'node:path';
6
+ import { fileURLToPath } from 'node:url';
7
+
8
+ const here = path.dirname(fileURLToPath(import.meta.url));
9
+ const vocabulary = path.join(here, '../dist/vocabulary');
10
+ const bundled = path.join(here, '../dist/cli.js');
11
+ const packaged = fs.existsSync(bundled) && !process.env.TANREI_CLI_FROM_SOURCE;
12
+ if (packaged) process.env.TANREI_VOCABULARY_ROOT ??= vocabulary;
13
+ const { main } = await import(packaged ? bundled : '../src/cli.js');
14
+ process.exitCode = await main(process.argv.slice(2));