diff --git a/.changeset/many-geese-repeat.md b/.changeset/many-geese-repeat.md new file mode 100644 index 000000000..5dfe6fcc8 --- /dev/null +++ b/.changeset/many-geese-repeat.md @@ -0,0 +1,5 @@ +--- +"@tokens-studio/figma-plugin": patch +--- + +Fix application of paragraph Indent property via typography tokens diff --git a/packages/tokens-studio-for-figma/src/plugin/applyTypographyTokenOnNode.ts b/packages/tokens-studio-for-figma/src/plugin/applyTypographyTokenOnNode.ts index cf97ef3b4..855edb55a 100644 --- a/packages/tokens-studio-for-figma/src/plugin/applyTypographyTokenOnNode.ts +++ b/packages/tokens-studio-for-figma/src/plugin/applyTypographyTokenOnNode.ts @@ -37,6 +37,7 @@ function buildResolvedValueObject(resolvedToken: any, data: any) { ), letterSpacing: formatValue(data.letterSpacing || resolvedToken?.rawValue?.letterSpacing), paragraphSpacing: formatValue(data.paragraphSpacing || resolvedToken?.rawValue?.paragraphSpacing), + paragraphIndent: formatValue(data.paragraphIndent || resolvedToken?.rawValue?.paragraphIndent), textCase: formatValue(data.textCase || resolvedToken?.rawValue?.textCase), textDecoration: formatValue(data.textDecoration || resolvedToken?.rawValue?.textDecoration), }; @@ -54,6 +55,9 @@ function buildValueObject(values: any, resolvedToken: any) { paragraphSpacing: isPrimitiveValue(values.paragraphSpacing) ? String(values.paragraphSpacing) : tokenValue.paragraphSpacing, + paragraphIndent: isPrimitiveValue(values.paragraphIndent) + ? String(values.paragraphIndent) + : tokenValue.paragraphIndent, textCase: isPrimitiveValue(values.textCase) ? String(values.textCase) : tokenValue.textCase, textDecoration: isPrimitiveValue(values.textDecoration) ? String(values.textDecoration) : tokenValue.textDecoration, };