Design token system for Interfolio
npm install intf-style-dictionaryyarn run build. This will hit the invision API endpoint and generate all of the styles provided in Axiom.intf-style-dictionary to your package.jsonAxiom folder at the root level of the application._variables.scss file for the style variables.1. Create a config.json file containing the Style-Dictionary compatible config.
As well as the Style-Dictionary compatible config. It is possible to provide an extractPath property that sets where the axiom zip is extracted to.
2. Run the script as before with additional command line arguments. Two are provided. --config and --extractPath. If the extractPath is not provided. The config will be searched.If the config does not contain an extract path. The default 'axiom' will be used.
npx intf-style-dictionary --config "style-dictionary/config.json"
npx intf-style-dictionary --config 'style-dictionary/config.json' --extractPath 'axiom'