Skip to content

Commit b62793e

Browse files
committed
fix: align more TS types to dimension
1 parent ed10715 commit b62793e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/cyan-pots-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tokens-studio/sd-transforms': patch
3+
---
4+
5+
Fix alignTypes to also include `borderWidth`, `letterSpacing`, `paragraphSpacing` and `paragraphIndent` and align them to `dimension`.

src/preprocessors/align-types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const typesMap = {
1414
spacing: 'dimension',
1515
sizing: 'dimension',
1616
borderRadius: 'dimension',
17+
borderWidth: 'dimension',
18+
letterSpacing: 'dimension',
19+
paragraphSpacing: 'dimension',
20+
paragraphIndent: 'dimension',
1721
text: 'content',
1822
} as Partial<Record<valueOfTokenTypes, string>>;
1923

0 commit comments

Comments
 (0)