Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Commit 14d41cd

Browse files
author
Florian Torres
committed
Fix typography css export
1 parent a89e6f4 commit 14d41cd

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/main-renderers/rendered-token-class.pr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Rendered as:
2626
*}
2727
{[ let token = context.token /]}
2828

29-
{[ inject "rendered-description" context token /]}
30-
.{[ inject "rendered-name" context token /]}
29+
{[ inject "rendered-description" context token /]}
30+
.{[ inject "rendered-name" context token /]}
3131

3232
{[ for alias in @js.findAliases(context.token, context.allTokens) ]}
33-
, {[ inject "rendered-description" context alias /]}
33+
, {[ inject "rendered-description" context alias /]}
3434
.{[ inject "rendered-name" context alias /]}
3535
{[/]} {
3636
{[ inject "rendered-value" context token /]}

src/main-renderers/rendered-value.pr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ Rendered as:
3030
{[ case "Typography" ]}{[ inject "rendered-typography" context token.value /]}
3131
{[ case "Shadow" ]}{[ inject "rendered-shadow" context token.value /]}
3232
{[ case "Border" ]}{[ inject "rendered-border" context token.value /]}
33-
{[ case "Measure" ]}{[ inject "rendered-measure" context token.value /]}
33+
{[ case "Measure" ]}{[ inject "rendered-measure" context token.value /]}
3434
{[ case "Gradient" ]}{[ inject "rendered-gradient" context token.value /]}
3535
{[/]}

src/token-renderers/rendered-typography.pr

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Rendered as:
5151
[text]
5252

5353
*}
54-
5554
{[ let fontStyle = "normal" /]}
5655
{[ if @ds.fonts.isItalic(context.font) ]}
5756
{[ set fontStyle = "italic" /]}
@@ -63,9 +62,9 @@ font-size: {[ inject "rendered-measure" context context.fontSize /]};
6362
{[ if @compare.nonnull(context.lineHeight) ]}
6463
line-height: {[ inject "rendered-measure" context context.lineHeight /]};
6564
{[/]}
66-
letter-spacing: {[if @compare.equals(context.letterSpacing.unit, "Percent") ]}
65+
letter-spacing: {[if @compare.equals(context.letterSpacing.unit, "Percent") ]}
6766
{{ context.letterSpacing.measure.dividedBy(100).rounded(2) }}em;
6867
{[ else ]}
6968
{[ inject "rendered-measure" context context.letterSpacing /]};
7069
{[/]}
71-
text-indent: {[ inject "rendered-measure" context context.paragraphIndent /]};
70+
text-indent: {[ inject "rendered-measure" context context.paragraphIndent /]};

src/typography.pr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ and their value rendered using `rendered-color` blueprint
88
{[ const allTokens = @ds.tokensByType("Typography") /]}
99
{[ for token in allTokens ]}
1010
{[ if @compare.null(token.referencedToken) ]}
11-
{[ inject "rendered-token-class" context @init.dictionary().add("token", token).add("allTokens", allTokens) /]}
11+
{[ inject "rendered-token-class" context @init.dictionary().add("token", token).add("allTokens", allTokens) /]}
1212

1313

1414
{[/]}

0 commit comments

Comments
 (0)