{"repo":"nclsndr/design-tokens-format-module","free":true,"listed":false,"github":"https://github.com/nclsndr/design-tokens-format-module","clone":"git clone https://github.com/nclsndr/design-tokens-format-module.git","description":"A Typescript implementation of the Design Tokens Format Module specification","language":"TypeScript","stars":40,"topics":["design-system","design-tokens","dtcg","design-tokens-format-module"],"license":"MIT","category":"ui-components","readme_excerpt":"Design Tokens Format Module — A TypeScript implementation of the Design Tokens Format Module specification along with some utility functions Abstract This packages aims to provide the most agnostic JavaScript/TypeScript definitions from the Design Tokens Format Module specification, for library developers and tooling creators. Join the conversation on the W3C Design Tokens Community Group repository. ⚠️ Please note, the DTCG specification is NOT stable yet, breaking changes might occur in the future. Installation Using npm Using yarn Using pnpm Usage This module provides all the type definitions and the most basic helpers required to work with a JSON design token tree. Token tree Constrain a JSON object that represents a design token tree. Design Token Each design token type is available as a TypeScript namespace. Design token type names All token type names are available as a constant. All token types All token type signatures are available within a type union. Matchers JSON values can be evaluated against the token signature Alias utils Alias values can be validated and parsed. Enum-like constants Some token types have a fixed set of values. These are available as constants. Previous versions The packages goal has shifted from being a generic parser — which requires way more feedback — to a reliable source of truth for the DTCG implementations in the JavaScript land. The features and APIs available before version 0.9.0 has been relocated to a new location where they get rev","default_branch":null,"files":null,"tree":[],"storefront":"/r/nclsndr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nclsndr/design-tokens-format-module/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}