Skip to content

Commit

Permalink
fix getting primitive values
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed May 28, 2024
1 parent cce5c33 commit 124d945
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/tokens/src/GenerateArtifacts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/src/GenerateArtifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class GenerateArtifacts {

const primitiveDictionary = Dictionary.fromFigmaApiResponse(
primitiveTokenResponse,
{ mode: 'Light mode' },
{ mode: 'Value' },
);

this.fileSystem.saveFile(
Expand Down

0 comments on commit 124d945

Please sign in to comment.