Skip to content

Commit

Permalink
feat(tokens): added f6 to the typography scale
Browse files Browse the repository at this point in the history
  • Loading branch information
mrosvik committed Jan 11, 2024
1 parent fb834c6 commit ca153e8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions design-tokens/Base/Core.json
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,28 @@
"value": "round(({viewport.width}/100) * {font-scale.f5.v} + {font-scale.f5.r})",
"type": "fontSizes"
}
},
"f6": {
"min": {
"value": "5*roundTo(({font-scale.const.min.f0}*{font-scale.const.min.r}^(6/{font-scale.const.min.n})/5),1)",
"type": "fontSizes"
},
"max": {
"value": "5*roundTo(({font-scale.const.max.f0}*{font-scale.const.max.r}^(6/{font-scale.const.max.n})/5),1)",
"type": "fontSizes"
},
"v": {
"value": "100 * ({font-scale.f6.max}-{font-scale.f6.min}) / ({viewport.max}-{viewport.min})",
"type": "fontSizes"
},
"r": {
"value": "( {viewport.min} * {font-scale.f6.max} - {viewport.max} * {font-scale.f6.min}) / ({viewport.min}-{viewport.max})",
"type": "fontSizes"
},
"fluid": {
"value": "round(({viewport.width}/100) * {font-scale.f6.v} + {font-scale.f6.r})",
"type": "fontSizes"
}
}
},
"font-size": {
Expand Down Expand Up @@ -768,6 +790,10 @@
"f5": {
"value": "min( max( {font-scale.f5.min}, {font-scale.f5.fluid}) ,{font-scale.f5.max})",
"type": "fontSizes"
},
"f6": {
"value": "min( max( {font-scale.f6.min}, {font-scale.f6.fluid}) ,{font-scale.f6.max})",
"type": "fontSizes"
}
},
"viewport": {
Expand Down

0 comments on commit ca153e8

Please sign in to comment.