@instructure/ui-token-scripts

8.43.1 • Public • Published

category: packages

ui-token-scripts

npm MIT License Code of Conduct

Utility scripts for generating cross-platform tokens from InstUI themes.

Installation

yarn add @instructure/ui-token-scripts

Supported Platforms & Languages

ui-token-scripts currently only targets SCSS. In the future, we will explore adding support for additional platforms and languages.

Available Commands

generate-tokens <options>

Generate cross-platform design tokens for the given theme.

generate-all-tokens

Generate cross-platform design tokens for all themes in configuration.

Note: Project root must contain a configuration file containing a collection of configuration objects. This configuration may be leveraged to support theme-specific platform targeting in the future.

// ui-token-scripts.config.js

module.exports = [
  {
    themeKey: 'canvas',
    tokensPackage: '@instructure/ui-theme-tokens',
    tokensPath: 'lib/canvas',
  },
  {
    themeKey: 'canvas-ams',
    tokensPackage: '@instructure/ui-theme-tokens',
    tokensPath: 'lib/canvas-ams',
  },
]

Documentation

For more documentation on available options and parameters for individual commands run:

ui-token-scripts <command> --help

Readme

Keywords

none

Package Sidebar

Install

npm i @instructure/ui-token-scripts

Weekly Downloads

9

Version

8.43.1

License

MIT

Unpacked Size

139 kB

Total Files

21

Last publish

Collaborators

  • jakeoeding
  • instuici
  • eschiebel
  • maths22
  • jcrystal
  • itadmins
  • instructure-toolsmiths-service-user
  • aogata-inst
  • kyler-instructure
  • ericsaupe
  • xcudder
  • jdewar
  • jguardadom
  • jcflow
  • jozsefg-instructure
  • jacksonhowe
  • sarahgerard
  • ajmal-esa
  • robinkuss64
  • david.wenzlick.inst
  • razorsh4rk
  • ardena
  • bpjatacsuk
  • angela.gomba
  • joyenjoyer
  • cguanzon-inst
  • herrtopi
  • matyas.szabo
  • cjs118
  • camray
  • dmz985
  • aaronshaf
  • szilard.doro-inst
  • martongreczi-inst
  • instout
  • svcquizzesnpm
  • balazs.buri.instructure
  • mstarkman
  • daniel-torok
  • fmarcso
  • peipeizhou
  • is-adamszabo