From 0bc4157974247896fa317e322f683b1747804b1d Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Tue, 5 Dec 2023 11:05:25 -0500 Subject: [PATCH] chore(transforms): update to include new px token --- packages/module/build.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/module/build.js b/packages/module/build.js index 15f772f..1c9ac78 100644 --- a/packages/module/build.js +++ b/packages/module/build.js @@ -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` });