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

@servicetitan/tokens

Package Overview
Dependencies
Maintainers
6
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@servicetitan/tokens

https://servicetitan.atlassian.net/wiki/spaces/ADS/pages/2205188101/Pritchel

  • 11.5.3-0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.5K
decreased by-35.53%
Maintainers
6
Weekly downloads
 
Created
Source

Project information

https://servicetitan.atlassian.net/wiki/spaces/ADS/pages/2205188101/Pritchel

How it works

All of the design tokens and assets are in this package. This package has iOS(Swift), Android(Jetpack), and web code.

To get started, run

$ npm install
$ npm run build

The npm build task is what performs the style dictionary build steps to generate the files for each platform. Every time you change something in the style dictionary, like changing colors or adding design tokens, you will have to run this command again to generate the files.

Adding new theme

Source of all that is generated is at tokens/themes/<theme name>. Copy a theme to base on and make changes to the values and that's all you have to do. Don't forget that we also have Figma assets that needs to be created for a new theme.

Updating existing token

Align with Anvil team before proceeding

  1. Make a branch
  2. Update the token object located under tokens/themes/<theme name> with the new value
  3. run npm run build to build all assets
  4. Make a PR

FAQs

Package last updated on 30 Apr 2022

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