Skip to content

Commit

Permalink
🐛Spacing tokens: Remove semantic/primitive prefix & fix references (#…
Browse files Browse the repository at this point in the history
…3478)

* updated tokens w fixed reference

* updated spacing tokens with correct references
  • Loading branch information
oddvernes authored Jun 3, 2024
1 parent 30d7907 commit 46a9de9
Show file tree
Hide file tree
Showing 5 changed files with 1,122 additions and 1,122 deletions.
8 changes: 4 additions & 4 deletions packages/eds-tokens-build/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const spacingPrimitives = _extend({
source: [SPACING_PRIMITIVE_SOURCE],
dirName: 'spacing',
fileName: 'primitives',
prefix: 'eds-primitives',
prefix: 'eds',
})

const typographyDensityComfortable = _extend({
Expand All @@ -289,7 +289,7 @@ const typographyDensityComfortable = _extend({
],
dirName: 'spacing',
fileName: 'comfortable',
prefix: 'eds-semantic',
prefix: 'eds',
selector: ':root, [data-density="comfortable"]',
filter: (token) => token.filePath.includes('Density'),
})
Expand All @@ -301,7 +301,7 @@ const typographyDensityCompact = _extend({
],
dirName: 'spacing',
fileName: 'compact',
prefix: 'eds-semantic',
prefix: 'eds',
selector: '[data-density="compact"]',
filter: (token) => token.filePath.includes('Density'),
})
Expand All @@ -313,7 +313,7 @@ const typographyDensitySpacious = _extend({
],
dirName: 'spacing',
fileName: 'spacious',
prefix: 'eds-semantic',
prefix: 'eds',
selector: '[data-density="Spacious"]',
filter: (token) => token.filePath.includes('Density'),
})
Expand Down
Loading

0 comments on commit 46a9de9

Please sign in to comment.