This repository has been deprecated and the files have been moved to Design system monorepo on Oct. 27th, 2023.
Design tokens for Dialpad's design system Dialtone and everything related to building and publishing them.
Design tokens are all the defined values that are part of the design system, such as color, spacing, typography, and more. The goal is to store design tokens as JSON and output and publish them to many different formats (CSS, LESS, Android, iOS, etc) upon build.
To use Dialtone Tokens in your project:
npm install @dialpad/dialtone-tokens
@import "node_modules/@dialpad/dialtone/css/variables.css";
.my-css-class {
color: var(--dt-color-purple-200)
}
Or
@import "node_modules/@dialpad/dialtone/less/variables.less";
.my-css-class {
color: @dt-color-purple-200
}
- Within your XCode project
File > Swift Packages > Add Package Dependency - Enter repository url:
https://github.com/dialpad/dialtone-tokens-swift
<dependency>
<groupId>design.dialpad.tokens</groupId>
<artifactId>dialtone-tokens</artifactId>
<version>1.2.0</version>
</dependency>
mvn install
- clone repo
npm installnpm run buildto build tokens. Built tokens will be output to the dist folder.
base.jsonContains tokens exported from figma.tokens/tokens.jsonContains tokens in style dictionary format (generated frombase.json).distContains tokens in their final output form, in multiple different formats.