diff --git a/example/expo-app/gluestack-ui.config.ts b/example/expo-app/gluestack-ui.config.ts index 5dee1305e..33f630cdc 100644 --- a/example/expo-app/gluestack-ui.config.ts +++ b/example/expo-app/gluestack-ui.config.ts @@ -725,7 +725,7 @@ export const config = { }, fonts: { heading: 'inter', - body: 'sans-serif', + body: undefined, mono: 'monospace', }, fontSizes: { diff --git a/example/storybook/package.json b/example/storybook/package.json index 53edb0148..39f952485 100644 --- a/example/storybook/package.json +++ b/example/storybook/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@babel/core": "^7.19.3", - "@dank-style/react": "0.3.9", + "@dank-style/react": "0.3.10", "@storybook/addon-actions": "^6.5.14", "@storybook/addon-controls": "^6.5.14", "@storybook/addon-docs": "^6.5.15", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index a50c27c7b..532441314 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @dank-style/react +## 0.3.10 + +### Patch Changes + +- Fixed undefined token resolution for fontFamily + ## 0.3.9 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 5faca09ec..4bc7a8ad5 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@dank-style/react", - "version": "0.3.9", + "version": "0.3.10", "main": "lib/commonjs/index", "types": "lib/typescript/index.d.ts", "module": "lib/module/index", diff --git a/packages/react/src/utils.ts b/packages/react/src/utils.ts index 1f5468ad3..4a80a2d99 100644 --- a/packages/react/src/utils.ts +++ b/packages/react/src/utils.ts @@ -95,7 +95,7 @@ export function resolveStringToken( let finalResult = result; - if (finalResult === '') { + if (finalResult.length !== 0 && finalResult[0] === '') { return undefined; } else { finalResult = result.join(' ');