diff --git a/.changeset/long-parrots-change.md b/.changeset/long-parrots-change.md new file mode 100644 index 000000000..e2c9de913 --- /dev/null +++ b/.changeset/long-parrots-change.md @@ -0,0 +1,5 @@ +--- +'@primer/primitives': patch +--- + +Fix to output size fine and coarse as css diff --git a/src/platforms/css.ts b/src/platforms/css.ts index 2c1161719..69a4c8081 100644 --- a/src/platforms/css.ts +++ b/src/platforms/css.ts @@ -87,11 +87,11 @@ export const css: PlatformInitializer = (outputFile, prefix, buildPath, options) queries: [ { query: '@media (pointer: fine)', - matcher: (token: TransformedToken) => token.path.includes('size-fine'), + matcher: (token: TransformedToken) => token.filePath.includes('size-fine'), }, { query: '@media (pointer: coarse)', - matcher: (token: TransformedToken) => token.path.includes('size-coarse'), + matcher: (token: TransformedToken) => token.filePath.includes('size-coarse'), }, ], },