@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.
- package/LICENSE +202 -0
- package/NOTICE +57 -0
- package/README.md +96 -2
- package/bin/tanrei.js +14 -0
- package/dist/cli.js +8275 -0
- package/dist/studio/THIRD_PARTY_LICENSES.md +1047 -0
- package/dist/studio/assets/css-Buuc00hS.js +1 -0
- package/dist/studio/assets/dart-CL60Wo_p.js +1 -0
- package/dist/studio/assets/highlight-DO0QW7yz.js +4 -0
- package/dist/studio/assets/index-CmKf0KHF.css +1 -0
- package/dist/studio/assets/index-CtN9tpay.js +6232 -0
- package/dist/studio/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/studio/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/studio/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/studio/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/studio/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/studio/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/studio/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/studio/assets/javascript-DSMm3SZC.js +1 -0
- package/dist/studio/assets/json-CUC6w7Wi.js +1 -0
- package/dist/studio/assets/kotlin-8HB26Eaz.js +1 -0
- package/dist/studio/assets/markup-5VTZgibJ.js +1 -0
- package/dist/studio/assets/material-symbols-outlined-latin-full-normal-CbWsDl0D.woff2 +0 -0
- package/dist/studio/assets/material-symbols-rounded-latin-full-normal-CFzFAzDo.woff2 +0 -0
- package/dist/studio/assets/noto-sans-arabic-arabic-wght-normal-BhzieyvS.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-0-wght-normal-vN5ykBQF.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-1-wght-normal-N_EDDt8j.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-10-wght-normal-ChuiXes4.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-100-wght-normal-CrE4HD6k.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-101-wght-normal-DOqEZFXR.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-102-wght-normal-2gFz4V6e.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-103-wght-normal-D9RhXU-z.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-104-wght-normal-OIyZ9iQD.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-105-wght-normal-CqRQAfnb.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-106-wght-normal-D-PO3jqS.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-107-wght-normal-DrykTIAp.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-108-wght-normal-DijBe27A.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-109-wght-normal-DaJwqT__.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-11-wght-normal-DdkFqF_o.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-110-wght-normal-bhh2FQQH.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-111-wght-normal-CuGzYIdC.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-112-wght-normal-DdhK_1vk.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-113-wght-normal-hxVHS2d4.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-114-wght-normal-DUzjAsrP.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-115-wght-normal-BiZ4-5rz.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-116-wght-normal-DkZAcxAY.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-117-wght-normal-CLJPD2y0.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-118-wght-normal-D8DI_HXJ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-119-wght-normal-BAB3pFaH.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-12-wght-normal-K36fA5_o.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-13-wght-normal-BnYizWno.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-14-wght-normal-BP4IgVC-.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-15-wght-normal-DyhWcoYF.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-16-wght-normal-CXsQLI2j.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-17-wght-normal-C8FU1ZJ4.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-18-wght-normal-Cl0IKBVh.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-19-wght-normal-D3D3JUJm.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-2-wght-normal-CGu8NhtQ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-20-wght-normal-DxsoeWSt.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-21-wght-normal-CuNsexW5.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-22-wght-normal-DVX3OFQM.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-23-wght-normal-BPFuo_yH.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-24-wght-normal-D85Fj66x.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-25-wght-normal-DdOOVuSz.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-26-wght-normal-BRB1GnUq.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-27-wght-normal-BxZFF8JU.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-28-wght-normal-VUlviaYI.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-29-wght-normal-CalQqRwB.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-3-wght-normal-cncaCaM8.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-30-wght-normal-CHLg85G9.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-31-wght-normal-BUoF9dl9.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-32-wght-normal-C5ZTiBNw.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-33-wght-normal-C6XNJsfA.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-34-wght-normal-DHkM837w.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-35-wght-normal-QMtEjDIl.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-36-wght-normal-CUyF0GqZ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-37-wght-normal-EORmNjxA.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-38-wght-normal-C8ERbMNG.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-39-wght-normal-ChUfpJbl.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-4-wght-normal-DtWqs3EP.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-40-wght-normal-MgP8JEEE.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-41-wght-normal-3ctF9abM.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-42-wght-normal-CQtg6UZe.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-43-wght-normal-D1Pmm9aG.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-44-wght-normal-Cp9dHeXI.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-45-wght-normal-D2b1osBj.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-46-wght-normal-CGIA-Vlo.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-47-wght-normal-C4EEGqDS.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-48-wght-normal-D2iBztXa.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-49-wght-normal-DxqRVik_.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-5-wght-normal-CFiyVtll.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-50-wght-normal-CMseszwo.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-51-wght-normal-Cqc-9wfi.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-52-wght-normal-BVLZTbqC.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-53-wght-normal-DTyNOJaY.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-54-wght-normal-_mxGq_et.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-55-wght-normal-Bvndync8.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-56-wght-normal-0MmMqroR.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-57-wght-normal-BdRnjDYs.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-58-wght-normal-BYGgVeN_.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-59-wght-normal-Bdv8mdje.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-6-wght-normal-M-pWkj3J.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-60-wght-normal-DC6FEqsM.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-61-wght-normal-CYIuK5Lr.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-62-wght-normal-DeHy8p7w.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-63-wght-normal-B4M6eMmD.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-64-wght-normal-DLyOXBrC.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-65-wght-normal-X7SsA1bs.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-66-wght-normal-VScDM-_N.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-67-wght-normal-Dg2D3DZB.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-68-wght-normal-BB0AR8UN.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-69-wght-normal-CucwpUnQ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-7-wght-normal-DzOz8Ryd.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-70-wght-normal-BZId6-Tb.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-71-wght-normal-CzPU0NF7.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-72-wght-normal-DrNRYXnT.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-73-wght-normal-DF2BdR6a.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-74-wght-normal-BMlOw_5y.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-75-wght-normal-DKq84hLG.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-76-wght-normal-CTb-2MFr.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-77-wght-normal-DfIVi-wf.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-78-wght-normal-_-z1Vrir.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-79-wght-normal-D8kGlXda.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-8-wght-normal-BfWoBb3q.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-80-wght-normal-BOEztZwY.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-81-wght-normal-h5VC8QpU.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-82-wght-normal-DJ4QkvX0.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-83-wght-normal-DANtuAZG.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-84-wght-normal-DjZ8Sp6m.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-85-wght-normal-kpU7kbMF.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-86-wght-normal-DRPTa-bf.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-87-wght-normal-CFM472wD.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-88-wght-normal-2rLLwelj.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-89-wght-normal-DUIF9ybW.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-9-wght-normal-WLs1HgG6.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-90-wght-normal-B0n_tL-y.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-91-wght-normal-BishDeFy.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-92-wght-normal-DoIdukLp.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-93-wght-normal-DMCycan_.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-94-wght-normal-DlyoTk-A.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-95-wght-normal-D0L1aiGf.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-96-wght-normal-CjJ0kYkQ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-97-wght-normal-CJ8uP04H.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-98-wght-normal-CjEDrQIY.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-99-wght-normal-DaQ3GEVf.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-cyrillic-wght-normal-BbS1Q_ZO.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-latin-ext-wght-normal-IaSo_s9d.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-latin-wght-normal-Bnnzbixe.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-vietnamese-wght-normal-CjvP4Ahz.woff2 +0 -0
- package/dist/studio/assets/roboto-cyrillic-ext-wght-normal-BCp_3N7R.woff2 +0 -0
- package/dist/studio/assets/roboto-cyrillic-wght-normal-fOt7epNf.woff2 +0 -0
- package/dist/studio/assets/roboto-greek-ext-wght-normal-Bgw4czJT.woff2 +0 -0
- package/dist/studio/assets/roboto-greek-wght-normal-DlT9XTxE.woff2 +0 -0
- package/dist/studio/assets/roboto-latin-ext-wght-normal-DYIxWhlt.woff2 +0 -0
- package/dist/studio/assets/roboto-latin-wght-normal-ccAYIvAh.woff2 +0 -0
- package/dist/studio/assets/roboto-math-wght-normal-4a3xuzGk.woff2 +0 -0
- package/dist/studio/assets/roboto-mono-cyrillic-ext-wght-normal-BUDPrIko.woff2 +0 -0
- package/dist/studio/assets/roboto-mono-cyrillic-wght-normal-HUlVHixE.woff2 +0 -0
- package/dist/studio/assets/roboto-mono-greek-wght-normal-BJJTbwTT.woff2 +0 -0
- package/dist/studio/assets/roboto-mono-latin-ext-wght-normal-QAYlOegK.woff2 +0 -0
- package/dist/studio/assets/roboto-mono-latin-wght-normal-CZtBPCCa.woff2 +0 -0
- package/dist/studio/assets/roboto-mono-vietnamese-wght-normal-DlC-zuDL.woff2 +0 -0
- package/dist/studio/assets/roboto-symbols-wght-normal-B7iHSfaG.woff2 +0 -0
- package/dist/studio/assets/roboto-vietnamese-wght-normal-_f1XEJpo.woff2 +0 -0
- package/dist/studio/assets/shared-DaQcXrQr.js +1 -0
- package/dist/studio/assets/shell-BX8EJGse.js +1 -0
- package/dist/studio/assets/swift-BAKAYbPz.js +1 -0
- package/dist/studio/assets/typescript-TrpEWIdY.js +1 -0
- package/dist/studio/index.html +33 -0
- package/dist/vocabulary/packages/tokens-build/generated/component-catalog.json +1825 -0
- package/dist/vocabulary/packages/web/src/generated/glyphs.json +189 -0
- package/dist/vocabulary/tanrei.config.json +24 -0
- package/dist/vocabulary/tokens/comp/accordion.tokens.json +459 -0
- package/dist/vocabulary/tokens/comp/app-bar.tokens.json +308 -0
- package/dist/vocabulary/tokens/comp/app-shell.tokens.json +248 -0
- package/dist/vocabulary/tokens/comp/avatar.tokens.json +199 -0
- package/dist/vocabulary/tokens/comp/badge.tokens.json +101 -0
- package/dist/vocabulary/tokens/comp/bottom-sheet.tokens.json +326 -0
- package/dist/vocabulary/tokens/comp/breadcrumbs.tokens.json +253 -0
- package/dist/vocabulary/tokens/comp/button-group.tokens.json +140 -0
- package/dist/vocabulary/tokens/comp/button-with-menu.tokens.json +810 -0
- package/dist/vocabulary/tokens/comp/button.tokens.json +1355 -0
- package/dist/vocabulary/tokens/comp/calendar.tokens.json +500 -0
- package/dist/vocabulary/tokens/comp/callout.tokens.json +510 -0
- package/dist/vocabulary/tokens/comp/card.tokens.json +204 -0
- package/dist/vocabulary/tokens/comp/carousel.tokens.json +469 -0
- package/dist/vocabulary/tokens/comp/chat-composer.tokens.json +343 -0
- package/dist/vocabulary/tokens/comp/checkbox.tokens.json +587 -0
- package/dist/vocabulary/tokens/comp/chip.tokens.json +716 -0
- package/dist/vocabulary/tokens/comp/code-block.tokens.json +473 -0
- package/dist/vocabulary/tokens/comp/color-input.tokens.json +49 -0
- package/dist/vocabulary/tokens/comp/combobox.tokens.json +756 -0
- package/dist/vocabulary/tokens/comp/copy-button.tokens.json +56 -0
- package/dist/vocabulary/tokens/comp/date-time-picker.tokens.json +797 -0
- package/dist/vocabulary/tokens/comp/description-list.tokens.json +203 -0
- package/dist/vocabulary/tokens/comp/dialog.tokens.json +340 -0
- package/dist/vocabulary/tokens/comp/divider.tokens.json +139 -0
- package/dist/vocabulary/tokens/comp/drop-zone.tokens.json +151 -0
- package/dist/vocabulary/tokens/comp/embedded-text-input.tokens.json +103 -0
- package/dist/vocabulary/tokens/comp/empty-state.tokens.json +154 -0
- package/dist/vocabulary/tokens/comp/field-group.tokens.json +211 -0
- package/dist/vocabulary/tokens/comp/field.tokens.json +308 -0
- package/dist/vocabulary/tokens/comp/figure.tokens.json +269 -0
- package/dist/vocabulary/tokens/comp/file-item.tokens.json +445 -0
- package/dist/vocabulary/tokens/comp/file-picker.tokens.json +282 -0
- package/dist/vocabulary/tokens/comp/file-upload.tokens.json +30 -0
- package/dist/vocabulary/tokens/comp/handle.tokens.json +343 -0
- package/dist/vocabulary/tokens/comp/image-preview.tokens.json +327 -0
- package/dist/vocabulary/tokens/comp/inline-code.tokens.json +86 -0
- package/dist/vocabulary/tokens/comp/input-box.tokens.json +1073 -0
- package/dist/vocabulary/tokens/comp/keyboard-shortcut.tokens.json +194 -0
- package/dist/vocabulary/tokens/comp/link-card.tokens.json +321 -0
- package/dist/vocabulary/tokens/comp/link.tokens.json +321 -0
- package/dist/vocabulary/tokens/comp/list-row.tokens.json +249 -0
- package/dist/vocabulary/tokens/comp/list.tokens.json +328 -0
- package/dist/vocabulary/tokens/comp/loading-indicator.tokens.json +218 -0
- package/dist/vocabulary/tokens/comp/main-action-button.tokens.json +418 -0
- package/dist/vocabulary/tokens/comp/marquee-text.tokens.json +110 -0
- package/dist/vocabulary/tokens/comp/menu.tokens.json +1124 -0
- package/dist/vocabulary/tokens/comp/menubar.tokens.json +279 -0
- package/dist/vocabulary/tokens/comp/meter.tokens.json +173 -0
- package/dist/vocabulary/tokens/comp/modal-layer.tokens.json +69 -0
- package/dist/vocabulary/tokens/comp/navigation-bar.tokens.json +448 -0
- package/dist/vocabulary/tokens/comp/navigation-drawer.tokens.json +1126 -0
- package/dist/vocabulary/tokens/comp/number-input.tokens.json +75 -0
- package/dist/vocabulary/tokens/comp/number-ticker.tokens.json +77 -0
- package/dist/vocabulary/tokens/comp/one-time-code-input.tokens.json +246 -0
- package/dist/vocabulary/tokens/comp/page-header.tokens.json +247 -0
- package/dist/vocabulary/tokens/comp/pagination.tokens.json +233 -0
- package/dist/vocabulary/tokens/comp/popover.tokens.json +363 -0
- package/dist/vocabulary/tokens/comp/previous-next-links.tokens.json +194 -0
- package/dist/vocabulary/tokens/comp/progress-indicator.tokens.json +218 -0
- package/dist/vocabulary/tokens/comp/prose.tokens.json +283 -0
- package/dist/vocabulary/tokens/comp/radio-button.tokens.json +413 -0
- package/dist/vocabulary/tokens/comp/rating.tokens.json +230 -0
- package/dist/vocabulary/tokens/comp/resizable-frame.tokens.json +166 -0
- package/dist/vocabulary/tokens/comp/scroll-area.tokens.json +99 -0
- package/dist/vocabulary/tokens/comp/search.tokens.json +761 -0
- package/dist/vocabulary/tokens/comp/segmented-button.tokens.json +414 -0
- package/dist/vocabulary/tokens/comp/select.tokens.json +687 -0
- package/dist/vocabulary/tokens/comp/side-sheet.tokens.json +332 -0
- package/dist/vocabulary/tokens/comp/size-transition.tokens.json +49 -0
- package/dist/vocabulary/tokens/comp/skeleton.tokens.json +114 -0
- package/dist/vocabulary/tokens/comp/slider.tokens.json +436 -0
- package/dist/vocabulary/tokens/comp/snackbar.tokens.json +1160 -0
- package/dist/vocabulary/tokens/comp/split-view.tokens.json +52 -0
- package/dist/vocabulary/tokens/comp/stepper.tokens.json +538 -0
- package/dist/vocabulary/tokens/comp/steps.tokens.json +190 -0
- package/dist/vocabulary/tokens/comp/swatch.tokens.json +208 -0
- package/dist/vocabulary/tokens/comp/switch.tokens.json +350 -0
- package/dist/vocabulary/tokens/comp/tab-view.tokens.json +142 -0
- package/dist/vocabulary/tokens/comp/table-of-contents.tokens.json +429 -0
- package/dist/vocabulary/tokens/comp/table.tokens.json +553 -0
- package/dist/vocabulary/tokens/comp/tabs.tokens.json +1058 -0
- package/dist/vocabulary/tokens/comp/tag-group.tokens.json +68 -0
- package/dist/vocabulary/tokens/comp/tag.tokens.json +551 -0
- package/dist/vocabulary/tokens/comp/text-input.tokens.json +96 -0
- package/dist/vocabulary/tokens/comp/timeline.tokens.json +239 -0
- package/dist/vocabulary/tokens/comp/toolbar.tokens.json +270 -0
- package/dist/vocabulary/tokens/comp/tooltip.tokens.json +391 -0
- package/dist/vocabulary/tokens/comp/tree-view.tokens.json +478 -0
- package/dist/vocabulary/tokens/dial/dial.tokens.json +137 -0
- package/dist/vocabulary/tokens/fidelity/cupertino.fidelity.json +165 -0
- package/dist/vocabulary/tokens/fidelity/m3-like.fidelity.json +388 -0
- package/dist/vocabulary/tokens/fidelity/reference/androidx-material3.json +144 -0
- package/dist/vocabulary/tokens/fidelity/reference/apple-hig.json +196 -0
- package/dist/vocabulary/tokens/fidelity/reference/material-web.json +802 -0
- package/dist/vocabulary/tokens/icon-sets/material-symbols.icon-set.json +279 -0
- package/dist/vocabulary/tokens/ref/typeface.tokens.json +116 -0
- package/dist/vocabulary/tokens/schema/icon-set.schema.json +82 -0
- package/dist/vocabulary/tokens/schema/system.schema.json +859 -0
- package/dist/vocabulary/tokens/sys/behavior.tokens.json +184 -0
- package/dist/vocabulary/tokens/sys/color.vocabulary.json +58 -0
- package/dist/vocabulary/tokens/sys/elevation.tokens.json +362 -0
- package/dist/vocabulary/tokens/sys/measure.tokens.json +442 -0
- package/dist/vocabulary/tokens/sys/motion.tokens.json +1421 -0
- package/dist/vocabulary/tokens/sys/scroll-edge.tokens.json +50 -0
- package/dist/vocabulary/tokens/sys/shape.tokens.json +169 -0
- package/dist/vocabulary/tokens/sys/space.tokens.json +256 -0
- package/dist/vocabulary/tokens/sys/state.tokens.json +83 -0
- package/dist/vocabulary/tokens/sys/typescale.tokens.json +551 -0
- package/dist/vocabulary/tokens/systems/core.system.json +1889 -0
- package/dist/vocabulary/tokens/systems/cupertino.system.json +859 -0
- package/dist/vocabulary/tokens/systems/m3-like/comp/fab-menu.tokens.json +499 -0
- package/dist/vocabulary/tokens/systems/m3-like.system.json +1181 -0
- package/dist/vocabulary/tokens/systems/tanrei.system.json +707 -0
- package/dist/vocabulary/tokens/tanrei.resolver.json +400 -0
- package/package.json +50 -3
|
@@ -0,0 +1,859 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tanrei.chnotchy.com/schemas/system.schema.json",
|
|
4
|
+
"title": "Tanrei design system layer",
|
|
5
|
+
"description": "A design system expressed as a layer over Tanrei's vocabulary. A layer changes values — dials, palettes, per-token rules — and adds tokens only through its `vocabulary`, additively and with a rationale. Every system descends from the root layer `core`: the default system `tanrei` and the presets extend it, and a product extends one of them.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"id"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"$schema": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
|
|
18
|
+
"description": "Must equal the file name: <id>.system.json"
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"description": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"extends": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
|
|
29
|
+
"description": "Id of the parent layer — an id, never a path. Only the root layer `core` omits it."
|
|
30
|
+
},
|
|
31
|
+
"specVersion": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Version of the role table. Bump when role rules change meaningfully."
|
|
34
|
+
},
|
|
35
|
+
"components": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"description": "Which components, and which values of a component's `variant` prop, this system ships. A layer starts from what its parent ships and changes it: `omit` leaves components out, `include` brings back ones an ancestor left out or takes one that lives in another layer from that layer, `variants` does the same for the values of a component's `variant` prop. What an ancestor left out stays out unless a layer includes it again. The root layer leaves nothing out.",
|
|
39
|
+
"properties": {
|
|
40
|
+
"omit": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"description": "component name (specs/inventory.json) → why this system leaves it out, and what it uses instead.",
|
|
43
|
+
"propertyNames": {
|
|
44
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
|
|
45
|
+
},
|
|
46
|
+
"additionalProperties": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": [
|
|
50
|
+
"reason"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"reason": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 8,
|
|
56
|
+
"description": "Why this system does not ship the component."
|
|
57
|
+
},
|
|
58
|
+
"insteadUse": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"uniqueItems": true,
|
|
61
|
+
"minItems": 1,
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
|
|
65
|
+
},
|
|
66
|
+
"description": "The components this system ships for the same job, in order of preference."
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"include": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"uniqueItems": true,
|
|
74
|
+
"items": {
|
|
75
|
+
"oneOf": [
|
|
76
|
+
{
|
|
77
|
+
"type": "string",
|
|
78
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
|
|
79
|
+
"description": "A component an ancestor left out, brought back."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": [
|
|
85
|
+
"name",
|
|
86
|
+
"from"
|
|
87
|
+
],
|
|
88
|
+
"description": "A component that lives in a layer this system does not extend, taken with its whole vocabulary from that layer. Its tokens are valued with this system's own: its aliases resolve against this system's tokens, and none of the holding layer's values come along.",
|
|
89
|
+
"properties": {
|
|
90
|
+
"name": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
|
|
93
|
+
},
|
|
94
|
+
"from": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
|
|
97
|
+
"description": "The id of the layer the component lives in."
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"description": "Components this system ships that its parent does not: one an ancestor left out (by its name), or one that lives in a layer this system does not extend (`{ name, from }`)."
|
|
104
|
+
},
|
|
105
|
+
"variants": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"description": "component name → the values of its `variant` prop this system leaves out (`omit`) or brings back (`include`). The default value and at least one other stay.",
|
|
108
|
+
"propertyNames": {
|
|
109
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
|
|
110
|
+
},
|
|
111
|
+
"additionalProperties": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"minProperties": 1,
|
|
115
|
+
"properties": {
|
|
116
|
+
"omit": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"uniqueItems": true,
|
|
119
|
+
"minItems": 1,
|
|
120
|
+
"items": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"include": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"uniqueItems": true,
|
|
127
|
+
"minItems": 1,
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"attribution": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"description": "For a layer that imitates another design system: what it is inspired by and under which license its values were obtained. Rendered into NOTICE and the docs.",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": [
|
|
142
|
+
"inspiredBy",
|
|
143
|
+
"disclaimer"
|
|
144
|
+
],
|
|
145
|
+
"properties": {
|
|
146
|
+
"inspiredBy": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"sources": {
|
|
150
|
+
"type": "array",
|
|
151
|
+
"items": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"required": [
|
|
154
|
+
"name",
|
|
155
|
+
"license",
|
|
156
|
+
"url"
|
|
157
|
+
],
|
|
158
|
+
"properties": {
|
|
159
|
+
"name": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"license": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"url": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"additionalProperties": false
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"disclaimer": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"palettes": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"description": "Declared palettes. Later layers replace a palette of the same name; `null` drops an inherited one (its roles leave this system, so anything that pointed at them must be re-pointed).",
|
|
180
|
+
"propertyNames": {
|
|
181
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
|
|
182
|
+
},
|
|
183
|
+
"additionalProperties": {
|
|
184
|
+
"oneOf": [
|
|
185
|
+
{
|
|
186
|
+
"type": "null"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "object",
|
|
190
|
+
"additionalProperties": false,
|
|
191
|
+
"required": [
|
|
192
|
+
"source"
|
|
193
|
+
],
|
|
194
|
+
"properties": {
|
|
195
|
+
"description": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"description": "Required when `roles` is set on a palette that is not a core intent: why does this system need it? It becomes the one-product rationale of the generated roles."
|
|
198
|
+
},
|
|
199
|
+
"source": {
|
|
200
|
+
"oneOf": [
|
|
201
|
+
{
|
|
202
|
+
"type": "object",
|
|
203
|
+
"additionalProperties": false,
|
|
204
|
+
"required": [
|
|
205
|
+
"seed"
|
|
206
|
+
],
|
|
207
|
+
"properties": {
|
|
208
|
+
"seed": {
|
|
209
|
+
"$ref": "#/$defs/hex"
|
|
210
|
+
},
|
|
211
|
+
"tones": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"description": "Exact colors for single tones (0–100), e.g. a published ramp tuned by hand or a brand color that must not be recomputed. Every other tone is generated from the seed (or hue and chroma).",
|
|
214
|
+
"propertyNames": {
|
|
215
|
+
"pattern": "^(100|[1-9]?[0-9])$"
|
|
216
|
+
},
|
|
217
|
+
"additionalProperties": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
220
|
+
},
|
|
221
|
+
"minProperties": 1
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"type": "object",
|
|
227
|
+
"additionalProperties": false,
|
|
228
|
+
"required": [
|
|
229
|
+
"hue",
|
|
230
|
+
"chroma"
|
|
231
|
+
],
|
|
232
|
+
"properties": {
|
|
233
|
+
"hue": {
|
|
234
|
+
"type": "number",
|
|
235
|
+
"minimum": 0,
|
|
236
|
+
"maximum": 360
|
|
237
|
+
},
|
|
238
|
+
"chroma": {
|
|
239
|
+
"type": "number",
|
|
240
|
+
"minimum": 0
|
|
241
|
+
},
|
|
242
|
+
"tones": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"description": "Exact colors for single tones (0–100), e.g. a published ramp tuned by hand or a brand color that must not be recomputed. Every other tone is generated from the seed (or hue and chroma).",
|
|
245
|
+
"propertyNames": {
|
|
246
|
+
"pattern": "^(100|[1-9]?[0-9])$"
|
|
247
|
+
},
|
|
248
|
+
"additionalProperties": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
251
|
+
},
|
|
252
|
+
"minProperties": 1
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"roles": {
|
|
259
|
+
"enum": [
|
|
260
|
+
"intent"
|
|
261
|
+
],
|
|
262
|
+
"description": "Generate the four roles of an intent for this palette: <name>, on-<name>, <name>-container, on-<name>-container, with contrast checks."
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"tokens": {
|
|
270
|
+
"type": "object",
|
|
271
|
+
"description": "Per-token operations, keyed by token id. The id must exist: in core, or declared under `vocabulary` by this layer or an ancestor.",
|
|
272
|
+
"propertyNames": {
|
|
273
|
+
"pattern": "^[a-z][a-z0-9-]*\\.(dial|ref|sys|comp)\\.[a-z0-9][a-z0-9.-]*$"
|
|
274
|
+
},
|
|
275
|
+
"additionalProperties": {
|
|
276
|
+
"$ref": "#/$defs/operation"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"rules": {
|
|
280
|
+
"type": "array",
|
|
281
|
+
"description": "Pattern rules for per-state component tokens. `*` matches one id segment and is available as $1, $2… in the operation. An explicit entry in `tokens` beats a pattern; among patterns, fewer wildcards win, then the later layer.",
|
|
282
|
+
"items": {
|
|
283
|
+
"$ref": "#/$defs/stateRule"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"vocabulary": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"description": "Extensions of the vocabulary declared by this layer. `vocabulary` says that something exists; `tokens` and `rules` give it a value. Additive only: an id that core or an ancestor layer already declares cannot be declared again. Four kinds, told apart by shape: a token (`$type`) inside Tanrei's tree — a step in a series; an axis value (`from`) keyed `tanrei.comp.<component>.<axis>.<value>` — or, in a sys series whose steps are groups of tokens, a whole step cloned with `from` (a named spring set, `tanrei.sys.motion.spring.<scheme>.<name>`); a token in this layer's own namespace (`<layer id>.(sys|comp).…`); and the whole vocabulary of a component that lives in this layer (`document`), keyed `tanrei.comp.<component>`.",
|
|
289
|
+
"propertyNames": {
|
|
290
|
+
"pattern": "^[a-z][a-z0-9-]*\\.(sys|comp)\\.[a-z0-9][a-z0-9.-]*$"
|
|
291
|
+
},
|
|
292
|
+
"additionalProperties": {
|
|
293
|
+
"oneOf": [
|
|
294
|
+
{
|
|
295
|
+
"$ref": "#/$defs/declaredToken"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"$ref": "#/$defs/declaredAxisValue"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"$ref": "#/$defs/declaredComponent"
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"$defs": {
|
|
308
|
+
"hex": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
311
|
+
},
|
|
312
|
+
"operation": {
|
|
313
|
+
"type": "object",
|
|
314
|
+
"additionalProperties": false,
|
|
315
|
+
"minProperties": 1,
|
|
316
|
+
"properties": {
|
|
317
|
+
"$type": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "Optional assertion; it must match the vocabulary's type."
|
|
320
|
+
},
|
|
321
|
+
"$value": {
|
|
322
|
+
"description": "An alias (\"{tanrei.sys…}\") re-points the token. A literal pins it, exempt from dials, and needs `reason`. For a choice of kind (tanrei.sys.behavior.*) the literal is one of the token's names (\"ripple\") or its index. For a fontFamily it is the font stack: named families first, then a system or generic fallback."
|
|
323
|
+
},
|
|
324
|
+
"reason": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"minLength": 8
|
|
327
|
+
},
|
|
328
|
+
"derive": {
|
|
329
|
+
"$ref": "#/$defs/rule"
|
|
330
|
+
},
|
|
331
|
+
"scale": {
|
|
332
|
+
"description": "Multiply the inherited definition by N without restating it. For typography, a map of fields.",
|
|
333
|
+
"oneOf": [
|
|
334
|
+
{
|
|
335
|
+
"type": "number",
|
|
336
|
+
"exclusiveMinimum": 0
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"type": "object",
|
|
340
|
+
"additionalProperties": {
|
|
341
|
+
"type": "number",
|
|
342
|
+
"exclusiveMinimum": 0
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"description": "`$value` and `derive` may be combined on a typography token: `$value` pins the named fields (say lineHeight and fontWeight) and `derive` rules the rest (fontSize, letterSpacing)."
|
|
349
|
+
},
|
|
350
|
+
"declaredToken": {
|
|
351
|
+
"type": "object",
|
|
352
|
+
"additionalProperties": false,
|
|
353
|
+
"required": [
|
|
354
|
+
"$type",
|
|
355
|
+
"rationale"
|
|
356
|
+
],
|
|
357
|
+
"description": "A new token. It needs a value: inline here (`$value` + `reason`, an alias, or `derive`), or under `tokens`.",
|
|
358
|
+
"properties": {
|
|
359
|
+
"$type": {
|
|
360
|
+
"enum": [
|
|
361
|
+
"color",
|
|
362
|
+
"dimension",
|
|
363
|
+
"number",
|
|
364
|
+
"duration",
|
|
365
|
+
"typography",
|
|
366
|
+
"shadow",
|
|
367
|
+
"cubicBezier",
|
|
368
|
+
"fontFamily",
|
|
369
|
+
"fontWeight"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
"rationale": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"minLength": 8,
|
|
375
|
+
"description": "Why this design system or product needs the distinction. Shown wherever the token is shown."
|
|
376
|
+
},
|
|
377
|
+
"$description": {
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
"$value": {
|
|
381
|
+
"description": "An alias (\"{tanrei.sys…}\") re-points the token. A literal pins it, exempt from dials, and needs `reason`."
|
|
382
|
+
},
|
|
383
|
+
"reason": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"minLength": 8
|
|
386
|
+
},
|
|
387
|
+
"derive": {
|
|
388
|
+
"$ref": "#/$defs/rule"
|
|
389
|
+
},
|
|
390
|
+
"onRole": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"pattern": "^tanrei\\.sys\\.color\\.[a-z0-9-]+$",
|
|
393
|
+
"description": "For a color role: the role drawn on top of it. Registers the pair with the contrast invariants."
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"declaredAxisValue": {
|
|
398
|
+
"type": "object",
|
|
399
|
+
"additionalProperties": false,
|
|
400
|
+
"required": [
|
|
401
|
+
"from",
|
|
402
|
+
"rationale"
|
|
403
|
+
],
|
|
404
|
+
"description": "A value cloned from an existing one. On a component axis (a size, a variant): every member token of the axis is cloned from the `from` value; `scale` multiplies the numeric members, still following the dials. In a sys series whose steps are groups of tokens (a named spring set, `tanrei.sys.motion.spring.<scheme>.<name>`): the whole group is cloned from the sibling `from`, so it can never be half a spring; `scale` does not apply. Override single members under `tokens`.",
|
|
405
|
+
"properties": {
|
|
406
|
+
"from": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$",
|
|
409
|
+
"description": "The existing value of the same axis — or the existing step of the same series — to start from."
|
|
410
|
+
},
|
|
411
|
+
"scale": {
|
|
412
|
+
"description": "Multiply the inherited definition by N without restating it. For typography, a map of fields.",
|
|
413
|
+
"oneOf": [
|
|
414
|
+
{
|
|
415
|
+
"type": "number",
|
|
416
|
+
"exclusiveMinimum": 0
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"type": "object",
|
|
420
|
+
"additionalProperties": {
|
|
421
|
+
"type": "number",
|
|
422
|
+
"exclusiveMinimum": 0
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
"rationale": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"minLength": 8
|
|
430
|
+
},
|
|
431
|
+
"$description": {
|
|
432
|
+
"type": "string"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"rule": {
|
|
437
|
+
"type": "object",
|
|
438
|
+
"description": "One rule of the closed, declarative rule language: mul, add, scale, clamp, sub, pad, em, pick (numeric — packages/token-engine/src/rules.js) and tone, alpha, mix, contrast-pick (color — palette.js for color roles, states.js for per-state component tokens). `pick` is a value set by a choice of kind: `{ \"fn\": \"pick\", \"by\": \"{<choice>}\", \"values\": { \"<name>\": <value or alias>, … } }` gives one value per name of the choice, and the token takes the one the chain's choice names. `mul` is `{ \"fn\": \"mul\", \"of\": \"{<id>}\", \"by\": <n>, \"exp\"?: …, \"times\"?: \"{<number>}\", \"round\"?: \"{<step>}\", \"min\"?: \"{<floor>}\" }`: max(min, of × by^exp × times rounded to the nearest multiple of round, ties upward) — a height that follows a density, on a grid, never below a minimum. `add` is `{ \"fn\": \"add\", \"of\": \"{<id>}\", \"by\": \"{<unit>}\", \"times\"?: <n>, \"min\"?: \"{<floor>}\" }`: max(min, of + by × times) — a step a whole number of units from another value (times absent: 1), so a ladder keeps its distances whatever its default. `pad` is `{ \"fn\": \"pad\", \"of\": \"{<padding>}\", \"height\": \"{<height>}\", \"by\"?: <n> }`: max(0, of × by + (height − height₁) / 2), where height₁ is the height with every `times` read as 1 and no `min` — a block padding that gives up or takes half of what its box's height lost or gained. `{ \"fixed\": \"<reason>\" }` keeps a literal. `sub` is `{ \"fn\": \"sub\", \"of\": \"{<outer>}\", \"by\": \"{<inset>}\" }`: of − by, never below zero — a corner inside another at an inset. On a typography token the rule is a map of field → rule (fontSize, letterSpacing). No other arithmetic, conditionals, strings or functions of your own.",
|
|
439
|
+
"properties": {
|
|
440
|
+
"fn": {
|
|
441
|
+
"enum": [
|
|
442
|
+
"mul",
|
|
443
|
+
"add",
|
|
444
|
+
"scale",
|
|
445
|
+
"clamp",
|
|
446
|
+
"sub",
|
|
447
|
+
"pad",
|
|
448
|
+
"em",
|
|
449
|
+
"pick",
|
|
450
|
+
"tone",
|
|
451
|
+
"alpha",
|
|
452
|
+
"mix",
|
|
453
|
+
"contrast-pick"
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"allOf": [
|
|
458
|
+
{
|
|
459
|
+
"if": {
|
|
460
|
+
"required": [
|
|
461
|
+
"fn"
|
|
462
|
+
],
|
|
463
|
+
"properties": {
|
|
464
|
+
"fn": {
|
|
465
|
+
"const": "pick"
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"then": {
|
|
470
|
+
"required": [
|
|
471
|
+
"by",
|
|
472
|
+
"values"
|
|
473
|
+
],
|
|
474
|
+
"properties": {
|
|
475
|
+
"by": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"pattern": "^\\{[^{}]+\\}$",
|
|
478
|
+
"description": "The choice of kind the value follows (a `number` token with `dev.tanrei.enum`), as an alias."
|
|
479
|
+
},
|
|
480
|
+
"values": {
|
|
481
|
+
"type": "object",
|
|
482
|
+
"minProperties": 1,
|
|
483
|
+
"description": "One value per name of the choice: a literal of the token's type, or an alias. The build refuses a name that is missing and one the choice does not have."
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"if": {
|
|
490
|
+
"required": [
|
|
491
|
+
"fn"
|
|
492
|
+
],
|
|
493
|
+
"properties": {
|
|
494
|
+
"fn": {
|
|
495
|
+
"const": "tone"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"then": {
|
|
500
|
+
"required": [
|
|
501
|
+
"palette",
|
|
502
|
+
"tone"
|
|
503
|
+
],
|
|
504
|
+
"properties": {
|
|
505
|
+
"palette": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"description": "A palette this system declares."
|
|
508
|
+
},
|
|
509
|
+
"tone": {
|
|
510
|
+
"description": "0–100. A number; [standard, medium, high]; or { \"light\": […], \"dark\": […] }. Legal on a color role and on a per-state component color (an explicit tone per state: rest 80, hover 70, pressed 40)."
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"if": {
|
|
517
|
+
"required": [
|
|
518
|
+
"fn"
|
|
519
|
+
],
|
|
520
|
+
"properties": {
|
|
521
|
+
"fn": {
|
|
522
|
+
"const": "contrast-pick"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
"then": {
|
|
527
|
+
"required": [
|
|
528
|
+
"on",
|
|
529
|
+
"from"
|
|
530
|
+
],
|
|
531
|
+
"additionalProperties": false,
|
|
532
|
+
"properties": {
|
|
533
|
+
"fn": {},
|
|
534
|
+
"on": {
|
|
535
|
+
"type": "string",
|
|
536
|
+
"pattern": "^\\{[a-z][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\}$",
|
|
537
|
+
"description": "The color token the result must be readable on."
|
|
538
|
+
},
|
|
539
|
+
"from": {
|
|
540
|
+
"type": "array",
|
|
541
|
+
"minItems": 2,
|
|
542
|
+
"items": {
|
|
543
|
+
"type": "string",
|
|
544
|
+
"pattern": "^\\{[a-z][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\}$"
|
|
545
|
+
},
|
|
546
|
+
"description": "The candidates. The one with the highest WCAG contrast against `on` wins, decided per scheme; the first wins a tie. On a color role: color roles or {tanrei.ref.palette.<palette>.<tone>}."
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"if": {
|
|
553
|
+
"required": [
|
|
554
|
+
"fn"
|
|
555
|
+
],
|
|
556
|
+
"properties": {
|
|
557
|
+
"fn": {
|
|
558
|
+
"const": "mix"
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"then": {
|
|
563
|
+
"required": [
|
|
564
|
+
"base",
|
|
565
|
+
"with",
|
|
566
|
+
"amount"
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"if": {
|
|
572
|
+
"required": [
|
|
573
|
+
"fn"
|
|
574
|
+
],
|
|
575
|
+
"properties": {
|
|
576
|
+
"fn": {
|
|
577
|
+
"const": "alpha"
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"then": {
|
|
582
|
+
"required": [
|
|
583
|
+
"of",
|
|
584
|
+
"amount"
|
|
585
|
+
]
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"if": {
|
|
590
|
+
"required": [
|
|
591
|
+
"fn"
|
|
592
|
+
],
|
|
593
|
+
"properties": {
|
|
594
|
+
"fn": {
|
|
595
|
+
"const": "mul"
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"then": {
|
|
600
|
+
"required": [
|
|
601
|
+
"of",
|
|
602
|
+
"by"
|
|
603
|
+
],
|
|
604
|
+
"properties": {
|
|
605
|
+
"times": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"pattern": "^\\{[^{}]+\\}$",
|
|
608
|
+
"description": "A number token the product is multiplied by (a density). Absent: 1."
|
|
609
|
+
},
|
|
610
|
+
"round": {
|
|
611
|
+
"type": "string",
|
|
612
|
+
"pattern": "^\\{[^{}]+\\}$",
|
|
613
|
+
"description": "A token in the unit of `of`: the result is rounded to its nearest multiple, ties upward (CSS `round(nearest, …)`). Absent: 0.25px, 1ms."
|
|
614
|
+
},
|
|
615
|
+
"min": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"pattern": "^\\{[^{}]+\\}$",
|
|
618
|
+
"description": "A token in the unit of `of`: the least the result may be, applied after rounding, so a floor off the grid gives exactly the floor."
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"if": {
|
|
625
|
+
"required": [
|
|
626
|
+
"fn"
|
|
627
|
+
],
|
|
628
|
+
"properties": {
|
|
629
|
+
"fn": {
|
|
630
|
+
"const": "add"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"then": {
|
|
635
|
+
"required": [
|
|
636
|
+
"of",
|
|
637
|
+
"by"
|
|
638
|
+
],
|
|
639
|
+
"properties": {
|
|
640
|
+
"of": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"pattern": "^\\{[^{}]+\\}$"
|
|
643
|
+
},
|
|
644
|
+
"by": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"pattern": "^\\{[^{}]+\\}$",
|
|
647
|
+
"description": "A token in the unit of `of`: the unit a whole number of which is added."
|
|
648
|
+
},
|
|
649
|
+
"times": {
|
|
650
|
+
"type": "number",
|
|
651
|
+
"description": "How many of `by` are added; below zero they are taken away. Absent: 1."
|
|
652
|
+
},
|
|
653
|
+
"min": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"pattern": "^\\{[^{}]+\\}$",
|
|
656
|
+
"description": "A token in the unit of `of`: the least the result may be."
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"if": {
|
|
663
|
+
"required": [
|
|
664
|
+
"fn"
|
|
665
|
+
],
|
|
666
|
+
"properties": {
|
|
667
|
+
"fn": {
|
|
668
|
+
"const": "scale"
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
"then": {
|
|
673
|
+
"required": [
|
|
674
|
+
"base",
|
|
675
|
+
"ratio",
|
|
676
|
+
"step"
|
|
677
|
+
]
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"if": {
|
|
682
|
+
"required": [
|
|
683
|
+
"fn"
|
|
684
|
+
],
|
|
685
|
+
"properties": {
|
|
686
|
+
"fn": {
|
|
687
|
+
"const": "clamp"
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"then": {
|
|
692
|
+
"required": [
|
|
693
|
+
"of",
|
|
694
|
+
"min",
|
|
695
|
+
"max"
|
|
696
|
+
]
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"if": {
|
|
701
|
+
"required": [
|
|
702
|
+
"fn"
|
|
703
|
+
],
|
|
704
|
+
"properties": {
|
|
705
|
+
"fn": {
|
|
706
|
+
"const": "em"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"then": {
|
|
711
|
+
"required": [
|
|
712
|
+
"by"
|
|
713
|
+
]
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"if": {
|
|
718
|
+
"required": [
|
|
719
|
+
"fn"
|
|
720
|
+
],
|
|
721
|
+
"properties": {
|
|
722
|
+
"fn": {
|
|
723
|
+
"const": "sub"
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"then": {
|
|
728
|
+
"required": [
|
|
729
|
+
"of",
|
|
730
|
+
"by"
|
|
731
|
+
],
|
|
732
|
+
"properties": {
|
|
733
|
+
"of": {
|
|
734
|
+
"type": "string",
|
|
735
|
+
"pattern": "^\\{[^{}]+\\}$"
|
|
736
|
+
},
|
|
737
|
+
"by": {
|
|
738
|
+
"type": "string",
|
|
739
|
+
"pattern": "^\\{[^{}]+\\}$"
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"if": {
|
|
746
|
+
"required": [
|
|
747
|
+
"fn"
|
|
748
|
+
],
|
|
749
|
+
"properties": {
|
|
750
|
+
"fn": {
|
|
751
|
+
"const": "pad"
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
"then": {
|
|
756
|
+
"required": [
|
|
757
|
+
"of",
|
|
758
|
+
"height"
|
|
759
|
+
],
|
|
760
|
+
"properties": {
|
|
761
|
+
"of": {
|
|
762
|
+
"type": "string",
|
|
763
|
+
"pattern": "^\\{[^{}]+\\}$",
|
|
764
|
+
"description": "The padding the box has where its height has not moved."
|
|
765
|
+
},
|
|
766
|
+
"height": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"pattern": "^\\{[^{}]+\\}$",
|
|
769
|
+
"description": "The height of the box the padding is in, in the unit of `of`."
|
|
770
|
+
},
|
|
771
|
+
"by": {
|
|
772
|
+
"type": "number",
|
|
773
|
+
"minimum": 0,
|
|
774
|
+
"description": "A coefficient on `of` (absent: 1): what a layer's `scale` multiplies, so a scaled padding still follows its box's height."
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
]
|
|
780
|
+
},
|
|
781
|
+
"stateRule": {
|
|
782
|
+
"type": "object",
|
|
783
|
+
"required": [
|
|
784
|
+
"match"
|
|
785
|
+
],
|
|
786
|
+
"properties": {
|
|
787
|
+
"match": {
|
|
788
|
+
"type": "string",
|
|
789
|
+
"pattern": "^tanrei\\.comp\\.[a-z0-9.*-]+$"
|
|
790
|
+
},
|
|
791
|
+
"$value": {},
|
|
792
|
+
"reason": {
|
|
793
|
+
"type": "string"
|
|
794
|
+
},
|
|
795
|
+
"derive": {
|
|
796
|
+
"$ref": "#/$defs/rule"
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"additionalProperties": false
|
|
800
|
+
},
|
|
801
|
+
"declaredComponent": {
|
|
802
|
+
"type": "object",
|
|
803
|
+
"additionalProperties": false,
|
|
804
|
+
"required": [
|
|
805
|
+
"document",
|
|
806
|
+
"rationale"
|
|
807
|
+
],
|
|
808
|
+
"description": "The whole vocabulary of a component that lives in this layer: every system that ships the component descends from this layer. Its document is kept next to the layer (`tokens/systems/<layer id>/comp/<component>.tokens.json`) and holds the component's group as the core's component documents do; its tokens keep the core namespace, so the names a product, a stylesheet and the native types use do not change. Every system that descends from this layer has the component; another system has it only when one of its layers includes it from here (`components.include: [{ \"name\": \"<component>\", \"from\": \"<this layer>\" }]`), its aliases then resolving against that system's own tokens. The component's spec says `\"layer\": \"<this layer>\"`.",
|
|
809
|
+
"properties": {
|
|
810
|
+
"document": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"pattern": "^comp/[a-z][a-z0-9]*(-[a-z0-9]+)*\\.tokens\\.json$",
|
|
813
|
+
"description": "`comp/<component>.tokens.json`, relative to tokens/systems/<layer id>/."
|
|
814
|
+
},
|
|
815
|
+
"rationale": {
|
|
816
|
+
"type": "string",
|
|
817
|
+
"minLength": 8,
|
|
818
|
+
"description": "Why the component lives in this layer and not in the core: the one-product test it passes here and fails there."
|
|
819
|
+
},
|
|
820
|
+
"outside": {
|
|
821
|
+
"type": "object",
|
|
822
|
+
"additionalProperties": false,
|
|
823
|
+
"required": [
|
|
824
|
+
"reason",
|
|
825
|
+
"insteadUse"
|
|
826
|
+
],
|
|
827
|
+
"description": "What a system that does not have the component uses for its job: every shipped system's and product's components manifest lists the component under `omitted`, with the layer it lives in (`providedBy`), this `reason`, and those of `insteadUse` that the system ships.",
|
|
828
|
+
"properties": {
|
|
829
|
+
"reason": {
|
|
830
|
+
"type": "string",
|
|
831
|
+
"minLength": 8,
|
|
832
|
+
"description": "Why a system outside this layer does without the component, and how the components it names do its job."
|
|
833
|
+
},
|
|
834
|
+
"insteadUse": {
|
|
835
|
+
"type": "array",
|
|
836
|
+
"uniqueItems": true,
|
|
837
|
+
"minItems": 1,
|
|
838
|
+
"items": {
|
|
839
|
+
"type": "string",
|
|
840
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
|
|
841
|
+
},
|
|
842
|
+
"description": "The components (specs/inventory.json) a system without this one ships for the same job, in order of preference. Each shipped system that does not have the component ships every one of them."
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
"rules": {
|
|
847
|
+
"type": "array",
|
|
848
|
+
"items": {
|
|
849
|
+
"$ref": "#/$defs/stateRule"
|
|
850
|
+
},
|
|
851
|
+
"description": "The rules that value the component's own states, written as a layer's `rules` are, each matching only this component's tokens. They come with the vocabulary into every system that has the component, before the rules of the layer that brings it."
|
|
852
|
+
},
|
|
853
|
+
"$description": {
|
|
854
|
+
"type": "string"
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|