Skip to content

Utilities

The Style Dictionary npm module exposes a utils entrypoint that contains some helpful utility functions.

Installation

Terminal window
npm install -D style-dictionary

Usage

script.js
import { convertTokenData, resolveReferences, typeDtcgDelegate } from 'style-dictionary/utils';

Check out the next pages for more details about the specific categories of utility functions.