Skip to content

Commit

Permalink
fix applying typography tokens variable values
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-gupta7 committed Dec 11, 2024
1 parent 41f7e34 commit 6fe3b9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function applyTypographyTokenOnNode(
if (matchingStyleId && (await trySetStyleId(node, 'text', matchingStyleId))) return;

// Apply typography token directly if no other properties exist
if (data.typography && resolvedToken && isSingleTypographyValue(resolvedToken.value) && !Object.keys(values).length) {
if (values.typography && data.typography && resolvedToken) {
setTextValuesOnTarget(node, data.typography, baseFontSize);
return;
}
Expand Down

0 comments on commit 6fe3b9e

Please sign in to comment.