Skip to content

Commit

Permalink
Added paragraphSpacing and paragraphIndent to the typography styles
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelLaptev committed Sep 12, 2024
1 parent 277ba2e commit a4ed783
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,4 +648,8 @@ If you have any questions or suggestions, feel free to [create an issue](https:/
**2.2.0**

- Added aliases handling for typography styles — [Related issue](https://github.com/tokens-bruecke/figma-plugin/issues/24)
- Added aliases handling for effects
- Added aliases handling for effects

**2.2.1**

- Added `paragraphSpacing` and `paragraphIndent` to the typography styles
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tokens-bruecke",
"version": "2.2.0",
"version": "2.2.1",
"license": "MIT",
"author": {
"name": "Pavel Laptev",
Expand Down
2 changes: 1 addition & 1 deletion src/app/SettingsView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ export const SettingsView = (props: ViewProps) => {
<Text>Documentation</Text>
</a>
<a href={config.changelogLink} target="_blank">
<Text>v.2.2.0</Text>
<Text>v.2.2.1</Text>
</a>
</Stack>
</Panel>
Expand Down
2 changes: 2 additions & 0 deletions src/utils/styles/textStylesToTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export const textStylesToTokens = async (
fontSize: aliasVariables.fontSize || `${style.fontSize}px`,
lineHeight: aliasVariables.lineHeight || getLineHeight(style.lineHeight),
letterSpacing: aliasVariables.letterSpacing || getLetterSpacing(style.letterSpacing),
paragraphSpacing: aliasVariables.paragraphSpacing || `${style.paragraphSpacing}`,
paragraphIndent: aliasVariables.paragraphIndent || `${style.paragraphIndent}`,
textDecoration: style.textDecoration,
textCase: style.textCase
},
Expand Down

0 comments on commit a4ed783

Please sign in to comment.