Skip to content

Commit

Permalink
Merge pull request #10 from kmcfaul/new-token-transform
Browse files Browse the repository at this point in the history
chore(transforms): update to include new px token
  • Loading branch information
srambach authored Dec 5, 2023
2 parents 39eb476 + 0bc4157 commit 74f35eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/module/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ StyleDictionary.registerTransform({
name: 'patternfly/global/px',
type: 'value',
matcher: (token) =>
token.attributes.category === 'global' &&
(token.attributes.type === 'spacer' || token.attributes.type === 'border' || token.attributes.type === 'icon'),
token.attributes.type === 'spacer' ||
token.attributes.type === 'border' ||
token.attributes.type === 'icon' ||
token.attributes.type === 'font',
transformer: (token) => `${token.value}px`
});

Expand Down

0 comments on commit 74f35eb

Please sign in to comment.