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

@wonderflow/tokens

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wonderflow/tokens

Design tokens from Wonderflow design language

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
219
increased by123.47%
Maintainers
1
Weekly downloads
 
Created
Source

Wanda Design Tokens Wonderflow Logo

This repo contains all the design tokens generated from the Wonderflow design language. These tokens are the foundation for our digital products.

How to use

To use the tokens you have to install the npm package first:

npm i @wonderflow/tokens

based on the platform you're working on, you can import the tokens from the relative platform folder inside node_modules. For example if you're working on web, you can import the tokens as JSON or CSS (custom-properties):

app.js

import tkns from '@wonderflow/tokens/platforms/web/tokens.json'

<div style={{color: `hsl(${tkns.color.blue['50']} / 10%)`}} />

app.css

@import '@wonderflow/tokens/platforms/web/tokens.css';

div {
  /* Colors are defined as HSL-4 but without the hsl() notation */
  color: hsl(var(--color-primary-50) / 50%);
}

NOTE

You need to use postcss-import or postcss-easy-import to import files from node_modules

Platforms

Currently we ship tokens only for the web platform, others may be added in the future.

Keywords

FAQs

Package last updated on 05 Jul 2021

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