### Install @tokens-studio/types with NPM Source: https://github.com/tokens-studio/types/blob/main/README.md Demonstrates how to install the @tokens-studio/types package using NPM. This is the primary method for adding the type definitions to your project. ```sh npm install @tokens-studio/types ``` -------------------------------- ### Usage Example: Log Typography Token Source: https://github.com/tokens-studio/types/blob/main/README.md Illustrates how to import and use SingleTypographyToken from the @tokens-studio/types package in TypeScript. Shows type-safe access to token properties, including nested values. ```ts import { SingleTypographyToken } from '@tokens-studio/types'; function logTypographyToken(token: SingleTypographyToken) { // because token is properly typed, we get autocomplete // e.g. token.type will be typed as "typography" const { value } = token; if (typeof value === 'string') { console.log(value); } else { // due to proper type, we get these properties autosuggested properly console.log(`${value.fontWeight} ${value.fontSize}/${value.lineHeight} ${value.fontFamily}`); } } ``` -------------------------------- ### Generate Changeset for Versioning Source: https://github.com/tokens-studio/types/blob/main/CONTRIBUTING.md Initiates the changeset CLI to create a new versioned changelog entry for contributions that warrant a library release. Follow the prompts to describe the changes. ```sh npx changeset ``` -------------------------------- ### Format Code with npm Source: https://github.com/tokens-studio/types/blob/main/CONTRIBUTING.md Runs the formatting script defined in package.json, typically using Prettier, to fix code style issues. Recommended to run before committing. ```sh npm run format ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.