Socket
Socket
Sign inDemoInstall

@datacamp/waffles-tokens

Package Overview
Dependencies
0
Maintainers
42
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @datacamp/waffles-tokens

Usage documentation available at [waffles.datacamp.com/component-library/tokens](https://waffles.datacamp.com/component-library/tokens).


Version published
Weekly downloads
12K
increased by287.24%
Maintainers
42
Install size
58.2 kB
Created
Weekly downloads
 

Readme

Source

Tokens

Usage documentation available at waffles.datacamp.com/component-library/tokens.

This package contains the all the design tokens used across waffles, and also the build methods to generate exposed files with these values.

Structure

All tokens are stored in the /properties directory as json files. On build these are deep merged and augmented with the transforms. This full data structure is then passed to the formatters to output different files. This is all orchestrated using Style Dictionary and controlled with the build.js file.

Outputs

  • core-tokens.json is the main exported tokens file. It is a flattened and simplified version of the tokens.
  • future-tokens.json is the full tokens file that will be made the main export in the future. The structure of this file is not fixed or documented, so should be used with caution! Within waffles packages this is the version that will be used, since breaking changes can be absorbed. At some point in the future once it is more stable, this will be made the main export of the package.
  • variables.scss contains the same data as the core-tokens file but exposed as scss variables. This is used in to generate utility classes and stylesheets in other packages.

FAQs

Last updated on 28 May 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc