Skip to content

Commit c8972da

Browse files
committed
Improve: text:<size> with auto letter-spacing
1 parent b8e41ce commit c8972da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/config/rules.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ const rules = {
513513
unit: 'rem',
514514
declarations: {
515515
'font-size': undefined,
516-
'line-height': ['max(1.8em - max(0rem, ', undefined, ' - 1rem) * 1.2', ', ', undefined ,')']
516+
'line-height': ['max(1.8em - max(0rem, ', undefined, ' - 1rem) * 1.12', ', ', undefined, ')'],
517+
'letter-spacing': ['clamp(-0.072em, calc((', undefined, ' - 1rem) * -0.048), 0em)',]
517518
},
518519
type: SyntaxRuleType.Shorthand,
519520
namespaces: ['font-size']

0 commit comments

Comments
 (0)