@tanrei/cli 0.0.0-stage → 0.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +58 -0
- package/README.md +77 -2
- package/bin/tanrei.js +14 -0
- package/dist/cli.js +6617 -0
- package/dist/studio/THIRD_PARTY_LICENSES.md +949 -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-hwWnuPS8.js +4 -0
- package/dist/studio/assets/index-BByvFAbB.js +26376 -0
- package/dist/studio/assets/index-CTe7Eja3.css +1 -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-Cu9fI30F.woff2 +0 -0
- package/dist/studio/assets/material-symbols-rounded-latin-full-normal-DnCYgp88.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-0-wght-normal-ChZwicxE.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-1-wght-normal-CARGyt1_.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-10-wght-normal-DtPkCCyJ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-100-wght-normal-IGIcweVU.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-101-wght-normal-Dls8jqVU.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-102-wght-normal-CKMRrjm1.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-103-wght-normal-Cf0qKmex.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-104-wght-normal-DU15_Tmk.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-105-wght-normal-CTXm1m1e.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-106-wght-normal-COtgWfsA.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-107-wght-normal-BMH1cYUp.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-108-wght-normal-1F5IhFoa.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-109-wght-normal-XZ0efpq6.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-11-wght-normal-Dkj9SGze.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-110-wght-normal-CeHeZFeT.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-111-wght-normal-DyRaOVPC.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-112-wght-normal-CnVx-8lB.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-113-wght-normal-CtbyXo_h.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-114-wght-normal-DCIM4jZs.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-115-wght-normal-CDBMNWew.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-116-wght-normal-RqS7_mFx.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-117-wght-normal-D73BPRww.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-118-wght-normal-U5v7NshZ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-119-wght-normal-D3TauSHf.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-12-wght-normal-CZgOv4iD.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-13-wght-normal-B3bKCuev.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-14-wght-normal-DbDHiDFQ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-15-wght-normal-BHvX48uZ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-16-wght-normal-CIRRqAST.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-17-wght-normal-Cypgkvf4.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-18-wght-normal-DhyYlhdC.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-19-wght-normal-Cm6ySjN8.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-2-wght-normal-RseJrQYo.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-20-wght-normal-FgfhxZU_.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-21-wght-normal-Ur8WYMVQ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-22-wght-normal-BACXhehE.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-23-wght-normal-BguN3TwY.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-24-wght-normal-CXEahOPk.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-25-wght-normal-VS5EnqV2.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-26-wght-normal-Bu8z50LX.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-27-wght-normal-jmtCcHJ0.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-28-wght-normal-DQNwlFIU.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-29-wght-normal-BnPJOTuS.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-3-wght-normal--H5uv3v4.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-30-wght-normal-Bj8BZBgx.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-31-wght-normal-Commwwo1.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-32-wght-normal-CRZDfOIz.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-33-wght-normal-BnYdH6SQ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-34-wght-normal-CGJbTgpI.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-35-wght-normal-C7HufUhC.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-36-wght-normal-Dyc832Mi.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-37-wght-normal-BA1uUhJR.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-38-wght-normal-6T50SRVw.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-39-wght-normal-CN8CV109.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-4-wght-normal-Dc2VWjiv.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-40-wght-normal-Ac3ANHeE.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-41-wght-normal-B-bcLJUI.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-42-wght-normal-C4xWUztV.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-43-wght-normal-DAb0Sc5Y.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-44-wght-normal-DyPSHqCN.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-45-wght-normal-BF-EckBd.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-46-wght-normal-BmRwgAv-.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-47-wght-normal-0LM1TynG.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-48-wght-normal-DrhQr74m.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-49-wght-normal-6kT-KCCt.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-5-wght-normal-CeuaJ3GQ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-50-wght-normal-Cw6P8USA.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-51-wght-normal-Cqxu35Xk.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-52-wght-normal-DYmSQol3.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-53-wght-normal-DwAVKRqn.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-54-wght-normal-DkswS7jl.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-55-wght-normal-BYcCjSG_.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-56-wght-normal-k2E-xsGo.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-57-wght-normal-Dcyw3o92.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-58-wght-normal-C-mIssxc.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-59-wght-normal-DUxkCIOP.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-6-wght-normal-BETiiYWj.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-60-wght-normal-B1SQjyhM.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-61-wght-normal-DqwoqK_H.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-62-wght-normal-Dvl1bj2o.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-63-wght-normal-pZDrjPWR.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-64-wght-normal-DGBgUuRb.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-65-wght-normal-ZWzDwZG9.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-66-wght-normal-C9Pvbzcq.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-67-wght-normal-BmPiBD9j.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-68-wght-normal-BM7y9lVd.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-69-wght-normal-DjC_tZTr.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-7-wght-normal-DPLqcl0u.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-70-wght-normal-BhDpOk5L.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-71-wght-normal-BeAYbG_b.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-72-wght-normal-t74baR93.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-73-wght-normal-CwrK-6j-.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-74-wght-normal-iogpiswj.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-75-wght-normal-DYpRVFfS.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-76-wght-normal-HKTYIip9.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-77-wght-normal-zMwvLrLX.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-78-wght-normal-CJFvkh-5.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-79-wght-normal-YT6TNXn0.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-8-wght-normal-B-fyrhM6.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-80-wght-normal-C8rE7JRr.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-81-wght-normal-C3e5dWMK.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-82-wght-normal-BjuKihWA.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-83-wght-normal-CdGQgLIl.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-84-wght-normal-BqzEfM_o.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-85-wght-normal-CPi4u8zn.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-86-wght-normal-B0MkLvt0.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-87-wght-normal-D5BdgnTn.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-88-wght-normal-CyIWoFtM.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-89-wght-normal-B-qGeNph.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-9-wght-normal-mnr2cWCS.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-90-wght-normal-sQganGqO.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-91-wght-normal-BZRsdRL6.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-92-wght-normal-Bfqhr8vr.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-93-wght-normal-ChR3IuHk.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-94-wght-normal-CTW0oM41.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-95-wght-normal-cEmZK7kl.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-96-wght-normal-Bww_3Upk.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-97-wght-normal-DEi73Ic_.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-98-wght-normal-BE30qkDG.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-99-wght-normal-Cj5IF6EZ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-cyrillic-wght-normal-BQJ6xfwZ.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-latin-ext-wght-normal-pB8enYeX.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-latin-wght-normal-JmuruAaA.woff2 +0 -0
- package/dist/studio/assets/noto-sans-jp-vietnamese-wght-normal-CFXlG5tS.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 +24 -0
- package/dist/vocabulary/tanrei.config.json +23 -0
- package/dist/vocabulary/tokens/AGENTS.md +15 -0
- package/dist/vocabulary/tokens/comp/accordion.tokens.json +436 -0
- package/dist/vocabulary/tokens/comp/app-bar.tokens.json +211 -0
- package/dist/vocabulary/tokens/comp/app-shell.tokens.json +248 -0
- package/dist/vocabulary/tokens/comp/avatar.tokens.json +187 -0
- package/dist/vocabulary/tokens/comp/badge.tokens.json +100 -0
- package/dist/vocabulary/tokens/comp/bottom-sheet.tokens.json +256 -0
- package/dist/vocabulary/tokens/comp/breadcrumbs.tokens.json +253 -0
- package/dist/vocabulary/tokens/comp/button-group.tokens.json +118 -0
- package/dist/vocabulary/tokens/comp/button-with-menu.tokens.json +582 -0
- package/dist/vocabulary/tokens/comp/button.tokens.json +1102 -0
- package/dist/vocabulary/tokens/comp/calendar.tokens.json +490 -0
- package/dist/vocabulary/tokens/comp/callout.tokens.json +754 -0
- package/dist/vocabulary/tokens/comp/card.tokens.json +204 -0
- package/dist/vocabulary/tokens/comp/carousel.tokens.json +409 -0
- package/dist/vocabulary/tokens/comp/chat-composer.tokens.json +309 -0
- package/dist/vocabulary/tokens/comp/checkbox.tokens.json +591 -0
- package/dist/vocabulary/tokens/comp/chip.tokens.json +665 -0
- package/dist/vocabulary/tokens/comp/code-block.tokens.json +459 -0
- package/dist/vocabulary/tokens/comp/color-input.tokens.json +49 -0
- package/dist/vocabulary/tokens/comp/combobox.tokens.json +587 -0
- package/dist/vocabulary/tokens/comp/copy-button.tokens.json +39 -0
- package/dist/vocabulary/tokens/comp/date-time-picker.tokens.json +766 -0
- package/dist/vocabulary/tokens/comp/description-list.tokens.json +181 -0
- package/dist/vocabulary/tokens/comp/dialog.tokens.json +280 -0
- package/dist/vocabulary/tokens/comp/divider.tokens.json +139 -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/fab-menu.tokens.json +509 -0
- package/dist/vocabulary/tokens/comp/field-group.tokens.json +191 -0
- package/dist/vocabulary/tokens/comp/field.tokens.json +279 -0
- package/dist/vocabulary/tokens/comp/figure.tokens.json +215 -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 +35 -0
- package/dist/vocabulary/tokens/comp/image-preview.tokens.json +297 -0
- package/dist/vocabulary/tokens/comp/inline-code.tokens.json +86 -0
- package/dist/vocabulary/tokens/comp/input-box.tokens.json +938 -0
- package/dist/vocabulary/tokens/comp/keyboard-shortcut.tokens.json +192 -0
- package/dist/vocabulary/tokens/comp/link-card.tokens.json +301 -0
- package/dist/vocabulary/tokens/comp/link.tokens.json +321 -0
- package/dist/vocabulary/tokens/comp/list.tokens.json +447 -0
- package/dist/vocabulary/tokens/comp/loading-indicator.tokens.json +208 -0
- package/dist/vocabulary/tokens/comp/main-action-button.tokens.json +345 -0
- package/dist/vocabulary/tokens/comp/menu.tokens.json +919 -0
- package/dist/vocabulary/tokens/comp/menubar.tokens.json +228 -0
- package/dist/vocabulary/tokens/comp/navigation-bar.tokens.json +479 -0
- package/dist/vocabulary/tokens/comp/navigation-drawer.tokens.json +770 -0
- package/dist/vocabulary/tokens/comp/navigation-rail.tokens.json +254 -0
- package/dist/vocabulary/tokens/comp/number-input.tokens.json +75 -0
- package/dist/vocabulary/tokens/comp/one-time-code-input.tokens.json +231 -0
- package/dist/vocabulary/tokens/comp/page-header.tokens.json +247 -0
- package/dist/vocabulary/tokens/comp/pagination.tokens.json +194 -0
- package/dist/vocabulary/tokens/comp/popover.tokens.json +292 -0
- package/dist/vocabulary/tokens/comp/progress-indicator.tokens.json +208 -0
- package/dist/vocabulary/tokens/comp/prose.tokens.json +267 -0
- package/dist/vocabulary/tokens/comp/radio-button.tokens.json +417 -0
- package/dist/vocabulary/tokens/comp/search.tokens.json +675 -0
- package/dist/vocabulary/tokens/comp/segmented-button.tokens.json +360 -0
- package/dist/vocabulary/tokens/comp/select.tokens.json +553 -0
- package/dist/vocabulary/tokens/comp/side-sheet.tokens.json +285 -0
- package/dist/vocabulary/tokens/comp/skeleton.tokens.json +111 -0
- package/dist/vocabulary/tokens/comp/slider.tokens.json +435 -0
- package/dist/vocabulary/tokens/comp/snackbar.tokens.json +1334 -0
- package/dist/vocabulary/tokens/comp/steps.tokens.json +190 -0
- package/dist/vocabulary/tokens/comp/switch.tokens.json +349 -0
- package/dist/vocabulary/tokens/comp/tab-view.tokens.json +142 -0
- package/dist/vocabulary/tokens/comp/table-of-contents.tokens.json +404 -0
- package/dist/vocabulary/tokens/comp/table.tokens.json +442 -0
- package/dist/vocabulary/tokens/comp/tabs.tokens.json +970 -0
- package/dist/vocabulary/tokens/comp/tag-group.tokens.json +57 -0
- package/dist/vocabulary/tokens/comp/tag.tokens.json +527 -0
- package/dist/vocabulary/tokens/comp/text-input.tokens.json +166 -0
- package/dist/vocabulary/tokens/comp/timeline.tokens.json +243 -0
- package/dist/vocabulary/tokens/comp/toolbar.tokens.json +155 -0
- package/dist/vocabulary/tokens/comp/tooltip.tokens.json +415 -0
- package/dist/vocabulary/tokens/comp/tree-view.tokens.json +393 -0
- package/dist/vocabulary/tokens/dial/dial.tokens.json +117 -0
- package/dist/vocabulary/tokens/fidelity/m3-expressive-like.fidelity.json +68 -0
- package/dist/vocabulary/tokens/fidelity/m3-like.fidelity.json +178 -0
- package/dist/vocabulary/tokens/fidelity/reference/androidx-material3-buttons.json +67 -0
- package/dist/vocabulary/tokens/fidelity/reference/material-web.json +802 -0
- package/dist/vocabulary/tokens/icon-sets/material-symbols.icon-set.json +278 -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 +570 -0
- package/dist/vocabulary/tokens/sys/behavior.tokens.json +119 -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 +358 -0
- package/dist/vocabulary/tokens/sys/motion.tokens.json +949 -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 +70 -0
- package/dist/vocabulary/tokens/sys/typescale.tokens.json +551 -0
- package/dist/vocabulary/tokens/systems/cupertino.system.json +640 -0
- package/dist/vocabulary/tokens/systems/m3-expressive-like.system.json +83 -0
- package/dist/vocabulary/tokens/systems/m3-like.system.json +855 -0
- package/dist/vocabulary/tokens/systems/tanrei.system.json +409 -0
- package/dist/vocabulary/tokens/tanrei.resolver.json +358 -0
- package/dist/vocabulary/tokens/vocabulary.lock.json +7052 -0
- package/package.json +32 -3
|
@@ -0,0 +1,570 @@
|
|
|
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. Presets extend `tanrei`; a product extends a preset.",
|
|
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 `tanrei` omits it."
|
|
30
|
+
},
|
|
31
|
+
"specVersion": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Version of the role table. Bump when role rules change meaningfully."
|
|
34
|
+
},
|
|
35
|
+
"unavailable": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"description": "What this system does not ship: components, and values of a component's `variant` prop. A layer that declares `unavailable` replaces its parent's list; a layer that omits it inherits the parent's. An empty object ships everything.",
|
|
39
|
+
"properties": {
|
|
40
|
+
"components": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"uniqueItems": true,
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
|
|
46
|
+
},
|
|
47
|
+
"description": "Component names from specs/inventory.json."
|
|
48
|
+
},
|
|
49
|
+
"variants": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"description": "component name → the values of its `variant` prop this system does not ship. At least one value must stay.",
|
|
52
|
+
"additionalProperties": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"uniqueItems": true,
|
|
55
|
+
"minItems": 1,
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"attribution": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"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.",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": [
|
|
68
|
+
"inspiredBy",
|
|
69
|
+
"disclaimer"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"inspiredBy": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"sources": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"required": [
|
|
80
|
+
"name",
|
|
81
|
+
"license",
|
|
82
|
+
"url"
|
|
83
|
+
],
|
|
84
|
+
"properties": {
|
|
85
|
+
"name": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"license": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"url": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"disclaimer": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"palettes": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"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).",
|
|
106
|
+
"propertyNames": {
|
|
107
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
|
|
108
|
+
},
|
|
109
|
+
"additionalProperties": {
|
|
110
|
+
"oneOf": [
|
|
111
|
+
{
|
|
112
|
+
"type": "null"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"required": [
|
|
118
|
+
"source"
|
|
119
|
+
],
|
|
120
|
+
"properties": {
|
|
121
|
+
"description": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"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."
|
|
124
|
+
},
|
|
125
|
+
"source": {
|
|
126
|
+
"oneOf": [
|
|
127
|
+
{
|
|
128
|
+
"type": "object",
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"required": [
|
|
131
|
+
"seed"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"seed": {
|
|
135
|
+
"$ref": "#/$defs/hex"
|
|
136
|
+
},
|
|
137
|
+
"tones": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"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).",
|
|
140
|
+
"propertyNames": {
|
|
141
|
+
"pattern": "^(100|[1-9]?[0-9])$"
|
|
142
|
+
},
|
|
143
|
+
"additionalProperties": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
146
|
+
},
|
|
147
|
+
"minProperties": 1
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "object",
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"required": [
|
|
155
|
+
"hue",
|
|
156
|
+
"chroma"
|
|
157
|
+
],
|
|
158
|
+
"properties": {
|
|
159
|
+
"hue": {
|
|
160
|
+
"type": "number",
|
|
161
|
+
"minimum": 0,
|
|
162
|
+
"maximum": 360
|
|
163
|
+
},
|
|
164
|
+
"chroma": {
|
|
165
|
+
"type": "number",
|
|
166
|
+
"minimum": 0
|
|
167
|
+
},
|
|
168
|
+
"tones": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"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).",
|
|
171
|
+
"propertyNames": {
|
|
172
|
+
"pattern": "^(100|[1-9]?[0-9])$"
|
|
173
|
+
},
|
|
174
|
+
"additionalProperties": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
177
|
+
},
|
|
178
|
+
"minProperties": 1
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"roles": {
|
|
185
|
+
"enum": [
|
|
186
|
+
"intent"
|
|
187
|
+
],
|
|
188
|
+
"description": "Generate the four roles of an intent for this palette: <name>, on-<name>, <name>-container, on-<name>-container, with contrast checks."
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"tokens": {
|
|
196
|
+
"type": "object",
|
|
197
|
+
"description": "Per-token operations, keyed by token id. The id must exist: in core, or declared under `vocabulary` by this layer or an ancestor.",
|
|
198
|
+
"propertyNames": {
|
|
199
|
+
"pattern": "^[a-z][a-z0-9-]*\\.(dial|ref|sys|comp)\\.[a-z0-9][a-z0-9.-]*$"
|
|
200
|
+
},
|
|
201
|
+
"additionalProperties": {
|
|
202
|
+
"$ref": "#/$defs/operation"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"rules": {
|
|
206
|
+
"type": "array",
|
|
207
|
+
"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.",
|
|
208
|
+
"items": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"required": [
|
|
211
|
+
"match"
|
|
212
|
+
],
|
|
213
|
+
"properties": {
|
|
214
|
+
"match": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"pattern": "^tanrei\\.comp\\.[a-z0-9.*-]+$"
|
|
217
|
+
},
|
|
218
|
+
"$value": {},
|
|
219
|
+
"reason": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"derive": {
|
|
223
|
+
"$ref": "#/$defs/rule"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"additionalProperties": false
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"vocabulary": {
|
|
230
|
+
"type": "object",
|
|
231
|
+
"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. Three 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).…`).",
|
|
232
|
+
"propertyNames": {
|
|
233
|
+
"pattern": "^[a-z][a-z0-9-]*\\.(sys|comp)\\.[a-z0-9][a-z0-9.-]*$"
|
|
234
|
+
},
|
|
235
|
+
"additionalProperties": {
|
|
236
|
+
"oneOf": [
|
|
237
|
+
{
|
|
238
|
+
"$ref": "#/$defs/declaredToken"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"$ref": "#/$defs/declaredAxisValue"
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"$defs": {
|
|
248
|
+
"hex": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
251
|
+
},
|
|
252
|
+
"operation": {
|
|
253
|
+
"type": "object",
|
|
254
|
+
"additionalProperties": false,
|
|
255
|
+
"minProperties": 1,
|
|
256
|
+
"properties": {
|
|
257
|
+
"$type": {
|
|
258
|
+
"type": "string",
|
|
259
|
+
"description": "Optional assertion; it must match the vocabulary's type."
|
|
260
|
+
},
|
|
261
|
+
"$value": {
|
|
262
|
+
"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."
|
|
263
|
+
},
|
|
264
|
+
"reason": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"minLength": 8
|
|
267
|
+
},
|
|
268
|
+
"derive": {
|
|
269
|
+
"$ref": "#/$defs/rule"
|
|
270
|
+
},
|
|
271
|
+
"scale": {
|
|
272
|
+
"description": "Multiply the inherited definition by N without restating it. For typography, a map of fields.",
|
|
273
|
+
"oneOf": [
|
|
274
|
+
{
|
|
275
|
+
"type": "number",
|
|
276
|
+
"exclusiveMinimum": 0
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "object",
|
|
280
|
+
"additionalProperties": {
|
|
281
|
+
"type": "number",
|
|
282
|
+
"exclusiveMinimum": 0
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"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)."
|
|
289
|
+
},
|
|
290
|
+
"declaredToken": {
|
|
291
|
+
"type": "object",
|
|
292
|
+
"additionalProperties": false,
|
|
293
|
+
"required": [
|
|
294
|
+
"$type",
|
|
295
|
+
"rationale"
|
|
296
|
+
],
|
|
297
|
+
"description": "A new token. It needs a value: inline here (`$value` + `reason`, an alias, or `derive`), or under `tokens`.",
|
|
298
|
+
"properties": {
|
|
299
|
+
"$type": {
|
|
300
|
+
"enum": [
|
|
301
|
+
"color",
|
|
302
|
+
"dimension",
|
|
303
|
+
"number",
|
|
304
|
+
"duration",
|
|
305
|
+
"typography",
|
|
306
|
+
"shadow",
|
|
307
|
+
"cubicBezier",
|
|
308
|
+
"fontFamily",
|
|
309
|
+
"fontWeight"
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
"rationale": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"minLength": 8,
|
|
315
|
+
"description": "Why this design system or product needs the distinction. Shown wherever the token is shown."
|
|
316
|
+
},
|
|
317
|
+
"$description": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
"$value": {
|
|
321
|
+
"description": "An alias (\"{tanrei.sys…}\") re-points the token. A literal pins it, exempt from dials, and needs `reason`."
|
|
322
|
+
},
|
|
323
|
+
"reason": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"minLength": 8
|
|
326
|
+
},
|
|
327
|
+
"derive": {
|
|
328
|
+
"$ref": "#/$defs/rule"
|
|
329
|
+
},
|
|
330
|
+
"onRole": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"pattern": "^tanrei\\.sys\\.color\\.[a-z0-9-]+$",
|
|
333
|
+
"description": "For a color role: the role drawn on top of it. Registers the pair with the contrast invariants."
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"declaredAxisValue": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"additionalProperties": false,
|
|
340
|
+
"required": [
|
|
341
|
+
"from",
|
|
342
|
+
"rationale"
|
|
343
|
+
],
|
|
344
|
+
"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`.",
|
|
345
|
+
"properties": {
|
|
346
|
+
"from": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$",
|
|
349
|
+
"description": "The existing value of the same axis — or the existing step of the same series — to start from."
|
|
350
|
+
},
|
|
351
|
+
"scale": {
|
|
352
|
+
"description": "Multiply the inherited definition by N without restating it. For typography, a map of fields.",
|
|
353
|
+
"oneOf": [
|
|
354
|
+
{
|
|
355
|
+
"type": "number",
|
|
356
|
+
"exclusiveMinimum": 0
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"type": "object",
|
|
360
|
+
"additionalProperties": {
|
|
361
|
+
"type": "number",
|
|
362
|
+
"exclusiveMinimum": 0
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"rationale": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"minLength": 8
|
|
370
|
+
},
|
|
371
|
+
"$description": {
|
|
372
|
+
"type": "string"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"rule": {
|
|
377
|
+
"type": "object",
|
|
378
|
+
"description": "One rule of the closed, declarative rule language: mul, scale, clamp, em (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). `{ \"fixed\": \"<reason>\" }` keeps a literal. On a typography token the rule is a map of field → rule (fontSize, letterSpacing). No addition, conditionals, strings or functions of your own.",
|
|
379
|
+
"properties": {
|
|
380
|
+
"fn": {
|
|
381
|
+
"enum": [
|
|
382
|
+
"mul",
|
|
383
|
+
"scale",
|
|
384
|
+
"clamp",
|
|
385
|
+
"em",
|
|
386
|
+
"tone",
|
|
387
|
+
"alpha",
|
|
388
|
+
"mix",
|
|
389
|
+
"contrast-pick"
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"allOf": [
|
|
394
|
+
{
|
|
395
|
+
"if": {
|
|
396
|
+
"required": [
|
|
397
|
+
"fn"
|
|
398
|
+
],
|
|
399
|
+
"properties": {
|
|
400
|
+
"fn": {
|
|
401
|
+
"const": "tone"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"then": {
|
|
406
|
+
"required": [
|
|
407
|
+
"palette",
|
|
408
|
+
"tone"
|
|
409
|
+
],
|
|
410
|
+
"properties": {
|
|
411
|
+
"palette": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"description": "A palette this system declares."
|
|
414
|
+
},
|
|
415
|
+
"tone": {
|
|
416
|
+
"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)."
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"if": {
|
|
423
|
+
"required": [
|
|
424
|
+
"fn"
|
|
425
|
+
],
|
|
426
|
+
"properties": {
|
|
427
|
+
"fn": {
|
|
428
|
+
"const": "contrast-pick"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"then": {
|
|
433
|
+
"required": [
|
|
434
|
+
"on",
|
|
435
|
+
"from"
|
|
436
|
+
],
|
|
437
|
+
"additionalProperties": false,
|
|
438
|
+
"properties": {
|
|
439
|
+
"fn": {},
|
|
440
|
+
"on": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"pattern": "^\\{[a-z][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\}$",
|
|
443
|
+
"description": "The color token the result must be readable on."
|
|
444
|
+
},
|
|
445
|
+
"from": {
|
|
446
|
+
"type": "array",
|
|
447
|
+
"minItems": 2,
|
|
448
|
+
"items": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"pattern": "^\\{[a-z][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\}$"
|
|
451
|
+
},
|
|
452
|
+
"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>}."
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"if": {
|
|
459
|
+
"required": [
|
|
460
|
+
"fn"
|
|
461
|
+
],
|
|
462
|
+
"properties": {
|
|
463
|
+
"fn": {
|
|
464
|
+
"const": "mix"
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"then": {
|
|
469
|
+
"required": [
|
|
470
|
+
"base",
|
|
471
|
+
"with",
|
|
472
|
+
"amount"
|
|
473
|
+
]
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"if": {
|
|
478
|
+
"required": [
|
|
479
|
+
"fn"
|
|
480
|
+
],
|
|
481
|
+
"properties": {
|
|
482
|
+
"fn": {
|
|
483
|
+
"const": "alpha"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"then": {
|
|
488
|
+
"required": [
|
|
489
|
+
"of",
|
|
490
|
+
"amount"
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"if": {
|
|
496
|
+
"required": [
|
|
497
|
+
"fn"
|
|
498
|
+
],
|
|
499
|
+
"properties": {
|
|
500
|
+
"fn": {
|
|
501
|
+
"const": "mul"
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"then": {
|
|
506
|
+
"required": [
|
|
507
|
+
"of",
|
|
508
|
+
"by"
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"if": {
|
|
514
|
+
"required": [
|
|
515
|
+
"fn"
|
|
516
|
+
],
|
|
517
|
+
"properties": {
|
|
518
|
+
"fn": {
|
|
519
|
+
"const": "scale"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"then": {
|
|
524
|
+
"required": [
|
|
525
|
+
"base",
|
|
526
|
+
"ratio",
|
|
527
|
+
"step"
|
|
528
|
+
]
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"if": {
|
|
533
|
+
"required": [
|
|
534
|
+
"fn"
|
|
535
|
+
],
|
|
536
|
+
"properties": {
|
|
537
|
+
"fn": {
|
|
538
|
+
"const": "clamp"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"then": {
|
|
543
|
+
"required": [
|
|
544
|
+
"of",
|
|
545
|
+
"min",
|
|
546
|
+
"max"
|
|
547
|
+
]
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"if": {
|
|
552
|
+
"required": [
|
|
553
|
+
"fn"
|
|
554
|
+
],
|
|
555
|
+
"properties": {
|
|
556
|
+
"fn": {
|
|
557
|
+
"const": "em"
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
"then": {
|
|
562
|
+
"required": [
|
|
563
|
+
"by"
|
|
564
|
+
]
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tanrei": {
|
|
3
|
+
"sys": {
|
|
4
|
+
"behavior": {
|
|
5
|
+
"$type": "number",
|
|
6
|
+
"$description": "Choices between a few named ways of behaving — what no value can express. DTCG has no string type, so each token is a number: the index into `$extensions[\"dev.tanrei.enum\"].values`. Platforms receive a typed enumeration, never the number.",
|
|
7
|
+
"$extensions": {
|
|
8
|
+
"dev.tanrei.vocabulary": {
|
|
9
|
+
"rationale": "One product decides how a press answers the finger, how keyboard focus looks, whether parts that sit side by side are told apart by a line or by space, and whether its text links are underlined at rest, only when pointed at, or not at all; these are choices of kind, not of amount: one product answers a press with a layer that grows from the finger where another dims the whole control, and no number reaches from the one to the other.",
|
|
10
|
+
"since": "0.1.0"
|
|
11
|
+
},
|
|
12
|
+
"dev.tanrei.llm": {
|
|
13
|
+
"usage": "System-wide choices of behaviour. Components read them; a product or preset layer changes them like any value: { \"$value\": <index>, \"reason\": \"…\" }. The allowed names are in each token's dev.tanrei.enum.",
|
|
14
|
+
"rules": [
|
|
15
|
+
"Never branch on the design system's id in a component; read these tokens instead.",
|
|
16
|
+
"The per-state component tokens still give every state its colors and opacity. pressed-feedback only chooses HOW the pressed layer appears (at once everywhere, growing from the pointer, as a dim of the whole control, or not at all).",
|
|
17
|
+
"A platform that cannot draw a choice falls back to the first value and says so in its README.",
|
|
18
|
+
"separation is read through a component token of the same name (comp.<component>.….separation), which aliases it: set the sys token to change every component at once, a component token to set one component apart, and the component's separation prop to set one instance apart.",
|
|
19
|
+
"link-underline is read through a component token (comp.link.underline.visibility, comp.breadcrumbs.underline.visibility), which aliases it: set the sys token to change every text link at once, a component token to set one component apart, and the underline prop to set one link or one trail apart.",
|
|
20
|
+
"Set link-underline to hover or never only in a system whose link color stands 3:1 apart from its text color in every scheme; the build checks it. Where the link color is the text color, or near it, the underline is the only thing that says \"link\".",
|
|
21
|
+
"requirement-mark is read through a component token (comp.field.requirement.mark, comp.field-group.requirement.mark), which aliases it: set the sys token to change every form at once, a component token to mark single fields and sets of controls differently, and the requiredMark prop to set one field or one set apart. Under asterisk say once, near the top of a form, what the asterisk means; only tag says it in words."
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"pressed-feedback": {
|
|
26
|
+
"$value": 0,
|
|
27
|
+
"$description": "How a press is answered. overlay: the pressed tokens apply to the whole container at once. ripple: the pressed state layer grows from the point of contact. dim: the pressed opacity applies to the whole control and no state layer is drawn. none: no visual answer to a press (focus and hover still apply).",
|
|
28
|
+
"$extensions": {
|
|
29
|
+
"dev.tanrei.enum": {
|
|
30
|
+
"values": [
|
|
31
|
+
"overlay",
|
|
32
|
+
"ripple",
|
|
33
|
+
"dim",
|
|
34
|
+
"none"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"dev.tanrei.derive": {
|
|
38
|
+
"fixed": "A choice of kind; no dial scales it."
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"focus-style": {
|
|
43
|
+
"$value": 0,
|
|
44
|
+
"$description": "How keyboard focus is shown. ring: the two-tone focus ring at sys.focus offset and width. glow: the same colors as a soft halo (blurred by the ring width) instead of a hard line. Both must meet the focus contrast invariants.",
|
|
45
|
+
"$extensions": {
|
|
46
|
+
"dev.tanrei.enum": {
|
|
47
|
+
"values": [
|
|
48
|
+
"ring",
|
|
49
|
+
"glow"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"dev.tanrei.derive": {
|
|
53
|
+
"fixed": "A choice of kind; no dial scales it."
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"separation": {
|
|
58
|
+
"$value": 0,
|
|
59
|
+
"$description": "How parts that sit side by side inside one component are told apart. divider: the parts touch and a line is drawn where they meet (where the parts already differ in color, as a progress indicator's do, the edge between the colors is that line). gap: the parts are drawn apart, with empty space between them and no line. Read by the connected button group, the button with menu, the progress indicator and the menu, each through its own component token so that a design system can set one apart; an instance can set its own.",
|
|
60
|
+
"$extensions": {
|
|
61
|
+
"dev.tanrei.vocabulary": {
|
|
62
|
+
"rationale": "One product draws its joined controls, its bars and its menus in one manner: a product whose buttons are cut apart by space wants its progress bar and its menu groups cut the same way, and a product that rules a line between them wants the line everywhere. Without one choice the manner has to be restated in every component and drifts.",
|
|
63
|
+
"since": "0.1.0"
|
|
64
|
+
},
|
|
65
|
+
"dev.tanrei.enum": {
|
|
66
|
+
"values": [
|
|
67
|
+
"divider",
|
|
68
|
+
"gap"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"dev.tanrei.derive": {
|
|
72
|
+
"fixed": "A choice of kind; no dial scales it."
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"link-underline": {
|
|
77
|
+
"$value": 0,
|
|
78
|
+
"$description": "When a text link is underlined. always: at rest and in every state. hover: not at rest; while the link is pointed at, focused from the keyboard or pressed. never: in no state. Read by the Link (and so by every link of long-form text) and by the breadcrumbs, each through its own component token so that a design system can set one apart; an instance can set its own. A link that is not underlined at rest is told from the text beside it by color alone, so hover and never are held by the build to a link color 3:1 apart from the text color (WCAG 1.4.1); where the platform forces its own colors the underline is drawn whatever is chosen.",
|
|
79
|
+
"$extensions": {
|
|
80
|
+
"dev.tanrei.vocabulary": {
|
|
81
|
+
"rationale": "One product underlines its links or does not, and decides it once: a product whose link color is plainly not its text color may want its sentences and its lists of links free of lines, with the line returning under the pointer or not at all, and a product whose links share the color of its text needs the line everywhere. Without one choice the manner is restated wherever a text link is drawn and drifts between a paragraph and a trail of pages.",
|
|
82
|
+
"since": "0.1.0"
|
|
83
|
+
},
|
|
84
|
+
"dev.tanrei.enum": {
|
|
85
|
+
"values": [
|
|
86
|
+
"always",
|
|
87
|
+
"hover",
|
|
88
|
+
"never"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"dev.tanrei.derive": {
|
|
92
|
+
"fixed": "A choice of kind; no dial scales it."
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"requirement-mark": {
|
|
97
|
+
"$value": 0,
|
|
98
|
+
"$description": "How a required control, or a required set of controls, is marked beside its label. tag: a small filled Tag holding the product's word for it. asterisk: \"*\" after the label's text. none: no mark is drawn; the requirement is still exposed to assistive technology. Read by the Field (and so by every composed field) and by the field group, each through its own component token so that a design system can set one apart; an instance can set its own. A label that floats inside its control's box has no room for a tag and shows tag as the asterisk. What is optional is said in words under every choice.",
|
|
99
|
+
"$extensions": {
|
|
100
|
+
"dev.tanrei.vocabulary": {
|
|
101
|
+
"rationale": "One product decides once, for all of its forms, how an answer that must be given is marked: in words beside each label, with an asterisk it explains once at the top of a form, or not at all where nearly everything must be answered and it marks the optional answers instead. A form that says \"Required\" beside one label and sets an asterisk after the next reads as two forms. Without one choice the manner is restated for every kind of frame — a field, a set of controls — and drifts between them.",
|
|
102
|
+
"since": "0.1.0"
|
|
103
|
+
},
|
|
104
|
+
"dev.tanrei.enum": {
|
|
105
|
+
"values": [
|
|
106
|
+
"tag",
|
|
107
|
+
"asterisk",
|
|
108
|
+
"none"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"dev.tanrei.derive": {
|
|
112
|
+
"fixed": "A choice of kind; no dial scales it."
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|