Skip to content

Commit

Permalink
fix: fonts migration (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliodialpad authored Jun 2, 2023
1 parent 1612eb5 commit afadb73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/build/js/dialtone_migration_helper/configs/fonts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ export default {
// Size variables
{
from: /@fs(-[0-9]+)(-(mobile|tc8|tv))?|var\(--fs(-[0-9]+)(-(mobile|tc8|tv))?\)/g,
to: 'var(--dt-font-size$1$2)',
to: 'var(--dt-font-size$1$2$4$5)',
},
// Weight variables
{
from: /@fw-(normal|medium|bold)|var\(--fw-(normal|medium|bold)\)/g,
to: 'var(--dt-font-weight-$1)',
to: 'var(--dt-font-weight-$1$2)',
},
// Special weight case
{
Expand All @@ -38,7 +38,7 @@ export default {
// Line heights
{
from: /@lh(-[0-9]+)|var\(--lh(-[0-9]+)\)/g,
to: 'var(--dt-font-line-height$1)',
to: 'var(--dt-font-line-height$1$2)',
},
// Font family
{
Expand Down

0 comments on commit afadb73

Please sign in to comment.