Socket
Book a DemoInstallSign in
Socket

gyldendal-tokens

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gyldendal-tokens

## ⚡ Quick how to: update tokens

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Design tokens

⚡ Quick how to: update tokens

  • Export json from Figma
  • Replace json in tokens-from-figma.json
  • Run yarn tokens
  • Commit changes

🧱 Token folder structure

/
├── output/
│   ├── tokens.css
│   ├── tokens.less
│   ├── tokens.scss
│   ├── tokens.js
│   └── token.json
├── build.js
├── config.js
└── tokens-from-figma.json

We use style-dictionary to transform and format the tokens in ./tokens-from-figma.json.

In ./config.js we decide which formats we want (css, scss, js and more), and in ./build.js we can create formatters and use other utilities to change the output how we want.

The files in ./output are auto generated and should never be edited manually.

FAQs

Package last updated on 09 Oct 2023

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