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

@servicetitan/tokens

Package Overview
Dependencies
Maintainers
7
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@servicetitan/tokens

The design tokens project is available to use in developing custom components and UI that is also used in `@servicetitan/design-system`. It contains variables in SCSS, Less, and JS variables that can be imported into any type of project.

  • 5.3.1
  • Source
  • npm
  • Socket score

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

Anvil Tokens

The design tokens project is available to use in developing custom components and UI that is also used in @servicetitan/design-system. It contains variables in SCSS, Less, and JS variables that can be imported into any type of project.

Installation

npm install @servicetitan/tokens --save

Within the packages dist/ directory there are a few files that can be used.

FileDescription
tokens.common.jsJS object of variables as module.exports
tokens.lessLess variables
tokens.scssSCSS variables

Using Less Tokens

@import (reference) '~@servicetitan/tokens/dist/tokens.less';

div {
    color: @color-blue;
}

Using SCSS Tokens

@import 'node_modules/@servicetitan/tokens/dist/tokens';

div {
    color: $color-blue;
}

Using JS Tokens

import tokens from '@servicetitan/tokens';

const Component = () => <div style={{backgroundColor: tokens.colorBlue}} />

FAQs

Package last updated on 09 Sep 2020

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