Skip to content

Commit

Permalink
chore(transforms): update to include new px token
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul committed Dec 5, 2023
1 parent 39eb476 commit 0bc4157
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 0bc4157

Please sign in to comment.