From 124d945d5aab3a782b9c45bcde0388c316cc209a Mon Sep 17 00:00:00 2001 From: Nils Haberkamp Date: Tue, 28 May 2024 15:09:10 +0200 Subject: [PATCH] fix getting primitive values --- packages/tokens/src/GenerateArtifacts.test.ts | 12 ++++++------ packages/tokens/src/GenerateArtifacts.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/tokens/src/GenerateArtifacts.test.ts b/packages/tokens/src/GenerateArtifacts.test.ts index 07936a3dc..3faf92fb8 100644 --- a/packages/tokens/src/GenerateArtifacts.test.ts +++ b/packages/tokens/src/GenerateArtifacts.test.ts @@ -62,7 +62,7 @@ test('creates a Dictionary in form of a JSON file for the primitive Design Token id: 'VariableCollectionId:12362:179', name: 'Primitives', key: '2bd5662002cb0d016b4f7603cffcf825e5537bfc', - modes: [{ modeId: '12362:0', name: 'Light mode' }], + modes: [{ modeId: '12362:0', name: 'Value' }], defaultModeId: '12362:0', remote: false, hiddenFromPublishing: false, @@ -214,7 +214,7 @@ test('creates a Dictionary in form of a JSON file for the admin light mode token id: 'VariableCollectionId:12362:179', name: 'Primitives', key: '2bd5662002cb0d016b4f7603cffcf825e5537bfc', - modes: [{ modeId: '12362:0', name: 'Light mode' }], + modes: [{ modeId: '12362:0', name: 'Value' }], defaultModeId: '12362:0', remote: false, hiddenFromPublishing: false, @@ -366,7 +366,7 @@ test('creates a Dictionary in form of a JSON file for the admin dark mode tokens id: 'VariableCollectionId:12362:179', name: 'Primitives', key: '2bd5662002cb0d016b4f7603cffcf825e5537bfc', - modes: [{ modeId: '12362:0', name: 'Light mode' }], + modes: [{ modeId: '12362:0', name: 'Value' }], defaultModeId: '12362:0', remote: false, hiddenFromPublishing: false, @@ -518,7 +518,7 @@ test('creates a CSS file for the primitive Design Tokens', async () => { id: 'VariableCollectionId:12362:179', name: 'Primitives', key: '2bd5662002cb0d016b4f7603cffcf825e5537bfc', - modes: [{ modeId: '12362:0', name: 'Light mode' }], + modes: [{ modeId: '12362:0', name: 'Value' }], defaultModeId: '12362:0', remote: false, hiddenFromPublishing: false, @@ -662,7 +662,7 @@ test('creates a CSS file for the admin light mode tokens', async () => { id: 'VariableCollectionId:12362:179', name: 'Primitives', key: '2bd5662002cb0d016b4f7603cffcf825e5537bfc', - modes: [{ modeId: '12362:0', name: 'Light mode' }], + modes: [{ modeId: '12362:0', name: 'Value' }], defaultModeId: '12362:0', remote: false, hiddenFromPublishing: false, @@ -803,7 +803,7 @@ test('creates a CSS file for the admin dark mode tokens', async () => { id: 'VariableCollectionId:12362:179', name: 'Primitives', key: '2bd5662002cb0d016b4f7603cffcf825e5537bfc', - modes: [{ modeId: '12362:0', name: 'Light mode' }], + modes: [{ modeId: '12362:0', name: 'Value' }], defaultModeId: '12362:0', remote: false, hiddenFromPublishing: false, diff --git a/packages/tokens/src/GenerateArtifacts.ts b/packages/tokens/src/GenerateArtifacts.ts index fc6bd76b7..201de00ab 100644 --- a/packages/tokens/src/GenerateArtifacts.ts +++ b/packages/tokens/src/GenerateArtifacts.ts @@ -24,7 +24,7 @@ export class GenerateArtifacts { const primitiveDictionary = Dictionary.fromFigmaApiResponse( primitiveTokenResponse, - { mode: 'Light mode' }, + { mode: 'Value' }, ); this.fileSystem.saveFile(