Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dialpad/dialtone-tokens

Package Overview
Dependencies
Maintainers
6
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dialpad/dialtone-tokens

Design tokens for Dialtone.

  • 1.5.0
  • npm
  • Socket score

Version published
Weekly downloads
712
increased by27.6%
Maintainers
6
Weekly downloads
 
Created
Source

Design Tokens for Dialtone

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.

Usage

To use Dialtone Tokens in your project:

Web (npm)

Install Dependency
npm install @dialpad/dialtone-tokens
Import CSS Tokens
@import "node_modules/@dialpad/dialtone/css/variables.css";
Use CSS Token
.my-css-class {
  color: var(--dt-color-purple-200)
}

Or

Import LESS Tokens
@import "node_modules/@dialpad/dialtone/less/variables.less";
Use LESS Token
.my-css-class {
  color: @dt-color-purple-200
}

iOS (swift)

  1. Within your XCode project File > Swift Packages > Add Package Dependency
  2. Enter repository url: https://github.com/dialpad/dialtone-tokens-swift

Android (compose/xml)

pom.xml
<dependency>
  <groupId>design.dialpad.tokens</groupId>
  <artifactId>dialtone-tokens</artifactId>
  <version>1.2.0</version>
</dependency>
Install Dependency
mvn install

Quick Start for Contributors

  1. clone repo
  2. npm install
  3. npm run build to build tokens. Built tokens will be output to the dist folder.
  • base.json Contains tokens exported from figma.
  • tokens/tokens.json Contains tokens in style dictionary format (generated from base.json).
  • dist Contains tokens in their final output form, in multiple different formats.

FAQs

Package last updated on 24 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc