@datacamp/waffles-tokens

1.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @datacamp/waffles-tokens

Weekly Downloads

13,170

Version

1.1.0

License

MIT

Unpacked Size

58.6 kB

Total Files

6

Last publish

Collaborators

  • mmartinsdc
  • dextro
  • acmpires
  • hugo.correia.dc
  • jessestell
  • almeida-datacamp
  • wilant
  • patryk.szulczyk
  • martinchio
  • dc-eriktisme
  • ruiguedes
  • olivierkamers
  • franaviladc
  • gui.cabral
  • datacamp-machine-user
  • tomaszwisniewski
  • pedro-carmona-datacamp
  • alanhughesdatacamp
  • datacamp-paulomonteiro
  • marcinnaglik
  • zpieslak
  • vvankrunkelsven
  • evertet
  • marbdq-dc
  • mzetea
  • frederikvg
  • nhlongnguyen
  • bobby.clare
  • cdalby
  • luigi-dintrono-dc
  • eoliveiradc
  • berndschrooten
  • _bogdan_floris_
  • denathoxhadc
  • sajtempler-dc
  • bartlens
  • filipsch
  • meehirpateldatacamp
  • ztsorojev
  • smidge
  • joachimzeelmaekers
  • garyalway
  • jdmunro
  • close-d-dev
  • herve-eerebout
  • dandenney
  • ewaldbervoets
  • rikbw
  • abordanpeter
  • aarondc
  • hermansje
  • nunorafaelrocha
  • nickvdyck
  • timsangster
  • tuur
  • lipsumar
  • caterina
  • chrisramakers
  • ppetermann
  • springerigor
  • iryna059
  • louiejakebell
  • kogitoja
  • larisa-datacamp
  • samwooler
  • forvalho
  • bruno.datacamp
  • marcin-data
  • julienbenaouda