File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 99centralCurrentColorAlias : ' {Theme$text/color}'
1010# URL for the central source of the design tokens
1111centralSource :
12- colors : ' https://hg-edge.mozilla.org /mozilla-central/raw-file/tip /toolkit/themes/shared/design-system/tokens-figma-colors.json'
13- primitives : ' https://hg-edge.mozilla.org /mozilla-central/raw-file/tip /toolkit/themes/shared/design-system/tokens-figma-primitives.json'
14- theme : ' https://hg-edge.mozilla.org /mozilla-central/raw-file/tip /toolkit/themes/shared/design-system/tokens-figma-theme.json'
12+ colors : ' https://raw.githubusercontent.com /mozilla-firefox/firefox/refs/heads/main /toolkit/themes/shared/design-system/tokens-figma-colors.json'
13+ primitives : ' https://raw.githubusercontent.com /mozilla-firefox/firefox/refs/heads/main /toolkit/themes/shared/design-system/tokens-figma-primitives.json'
14+ theme : ' https://raw.githubusercontent.com /mozilla-firefox/firefox/refs/heads/main /toolkit/themes/shared/design-system/tokens-figma-theme.json'
1515
1616# #######################
1717# Android modes config #
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { getCentralCollectionValues } from './mozilla/central-import.js';
33import Config from './Config.js' ;
44import { HCM_MAP } from './imports.js' ;
55import { constructRelativeData } from './mozilla/relative-transform.js' ;
6- import { memoize , FigmaAPIURLs } from './utils.js' ;
6+ import { memoize } from './utils.js' ;
77import { getFigmaCollections , submitVDCollections } from './figma/index.js' ;
88const memoGetFigmaTokensFromFile = memoize ( getFigmaCollections , 'fetchFigmaAPI' ) ;
99const memoGetCentralCollectionValues = memoize ( getCentralCollectionValues ) ;
@@ -46,7 +46,7 @@ export default [
4646 name : 'Update Android M3 modes' ,
4747 action : async ( ) => {
4848 const figmaAndroidTokens = await memoGetFigmaTokensFromFile ( Config . get ( 'figmaIdAndroidComponents' ) ) ;
49- const figmaMobileColors = await memoGetFigmaTokensFromFile ( FigmaAPIURLs . getLocalVariables ( Config . get ( 'figmaIdMobileStyles' ) ) ) ;
49+ const figmaMobileColors = await memoGetFigmaTokensFromFile ( Config . get ( 'figmaIdMobileStyles' ) ) ;
5050 const collection = getAndroidModes ( figmaAndroidTokens , figmaMobileColors ) ;
5151 return submitVDCollections ( Config . get ( 'figmaIdAndroidComponents' ) , figmaAndroidTokens , collection , {
5252 handleDeprecation : false ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { getCentralCollectionValues } from './mozilla/central-import.js'
33import Config from './Config.js'
44import { HCM_MAP } from './imports.js'
55import { constructRelativeData } from './mozilla/relative-transform.js'
6- import { memoize , FigmaAPIURLs } from './utils.js'
6+ import { memoize } from './utils.js'
77import { getFigmaCollections , submitVDCollections } from './figma/index.js'
88import { VDCollections } from './vd.js'
99
@@ -84,7 +84,7 @@ export default [
8484 // The Figma API does not always return all variables, so we need to
8585 // download the tokens from the file where colors come from as a fallback
8686 const figmaMobileColors = await memoGetFigmaTokensFromFile (
87- FigmaAPIURLs . getLocalVariables ( Config . get ( 'figmaIdMobileStyles' ) ) ,
87+ Config . get ( 'figmaIdMobileStyles' ) ,
8888 )
8989
9090 const collection = getAndroidModes ( figmaAndroidTokens , figmaMobileColors )
You can’t perform that action at this time.
0 commit comments