Skip to content

Commit 5eb3170

Browse files
committed
🐛 Fixed bug where M3 import would fail
1 parent ae9b61c commit 5eb3170

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

config/config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
centralCurrentColorAlias: '{Theme$text/color}'
1010
# URL for the central source of the design tokens
1111
centralSource:
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 #

dist/jobs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getCentralCollectionValues } from './mozilla/central-import.js';
33
import Config from './Config.js';
44
import { HCM_MAP } from './imports.js';
55
import { constructRelativeData } from './mozilla/relative-transform.js';
6-
import { memoize, FigmaAPIURLs } from './utils.js';
6+
import { memoize } from './utils.js';
77
import { getFigmaCollections, submitVDCollections } from './figma/index.js';
88
const memoGetFigmaTokensFromFile = memoize(getFigmaCollections, 'fetchFigmaAPI');
99
const 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,

src/jobs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getCentralCollectionValues } from './mozilla/central-import.js'
33
import Config from './Config.js'
44
import { HCM_MAP } from './imports.js'
55
import { constructRelativeData } from './mozilla/relative-transform.js'
6-
import { memoize, FigmaAPIURLs } from './utils.js'
6+
import { memoize } from './utils.js'
77
import { getFigmaCollections, submitVDCollections } from './figma/index.js'
88
import { 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)

0 commit comments

Comments
 (0)