Skip to content

Commit

Permalink
Update build-figma-tokens.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
vern-gora committed Nov 23, 2024
1 parent 9edbfb3 commit e0d73a4
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions figma-tokens/build-figma-tokens.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,3 @@ import StyleDictionary from 'style-dictionary';

const sd = new StyleDictionary('./figma-tokens/config/config.json');
await sd.buildAllPlatforms();

//

// import StyleDictionary from 'style-dictionary';

// const config = {
// source: ['../transformed-tokens/**/*.json'],
// platforms: {
// scss: {
// transformGroup: 'scss',
// buildPath: '../../stories/assets/scss/figma-scss/',
// files: [
// {
// destination: '_figma-variables.scss',
// format: 'scss/variables',
// },
// ],
// },
// },
// };

// const sd = StyleDictionary.extend(config);
// sd.buildAllPlatforms();

//

// import {StyleDictionary} from 'style-dictionary-utils'

// const myStyleDictionary = new StyleDictionary()

// // when using style dictionary 4 you whave to await the extend method
// const extendedSd = await myStyleDictionary.extend({
// "source": ["../transformed-tokens/**/*.json"],
// "platforms": {
// "scss": {
// "transformGroup": "scss",
// "buildPath": "../../stories/assets/scss/figma-scss/",
// "files": [
// {
// "destination": "_figma-variables.scss",
// "format": "scss/variables"
// }
// ]
// }
// }
// });

// extendedSd.buildAllPlatforms();

0 comments on commit e0d73a4

Please sign in to comment.