Skip to content

Commit

Permalink
Model heading and body scales in common tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Nov 21, 2024
1 parent 7caab5c commit d9b06f6
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions proprietary/tokens/src/common/ams/typography.tokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"ams": {
"common": {
"typography": {
"headings": {
"font-family": {
"default": { "value": "{ams.brand.typography.font-family.headings}" }
},
"font-size": {
"level-0": { "value": "{ams.brand.typography.font-size.4xl}" },
"level-1": { "value": "{ams.brand.typography.font-size.3xl}" },
"level-2": { "value": "{ams.brand.typography.font-size.2xl}" },
"level-3": { "value": "{ams.brand.typography.font-size.xl}" },
"level-4": { "value": "{ams.brand.typography.font-size.lg}" },
"level-5": { "value": "{ams.brand.typography.font-size.md}" },
"level-6": { "value": "{ams.brand.typography.font-size.sm}" }
},
"font-weight": {
"weak": { "value": "{ams.brand.typography.font-weight.bold}" },
"default": { "value": "{ams.brand.typography.font-weight.extra-bold}" }
},
"line-height": {
"level-0": { "value": "{ams.brand.typography.line-height.5xs}" },
"level-1": { "value": "{ams.brand.typography.line-height.4xs}" },
"level-2": { "value": "{ams.brand.typography.line-height.3xs}" },
"level-3": { "value": "{ams.brand.typography.line-height.2xs}" },
"level-4": { "value": "{ams.brand.typography.line-height.xs}" },
"level-5": { "value": "{ams.brand.typography.line-height.sm}" },
"level-6": { "value": "{ams.brand.typography.line-height.md}" }
}
},
"body-text": {
"font-family": {
"default": { "value": "{ams.brand.typography.font-family.body-text}" }
},
"font-size": {
"3xl": { "value": "{ams.brand.typography.font-size.3xl}" },
"2xl": { "value": "{ams.brand.typography.font-size.2xl}" },
"xl": { "value": "{ams.brand.typography.font-size.xl}" },
"lg": { "value": "{ams.brand.typography.font-size.lg}" },
"md": { "value": "{ams.brand.typography.font-size.md}" },
"sm": { "value": "{ams.brand.typography.font-size.sm}" }
},
"font-weight": {
"weak": { "value": "{ams.brand.typography.font-weight.light}" },
"default": { "value": "{ams.brand.typography.font-weight.normal}" },
"strong": { "value": "{ams.brand.typography.font-weight.bold}" }
},
"line-height": {
"3xl": { "value": "{ams.brand.typography.line-height.5xs}" },
"2xl": { "value": "{ams.brand.typography.line-height.2xs}" },
"xl": { "value": "{ams.brand.typography.line-height.md}" },
"lg": { "value": "{ams.brand.typography.line-height.2xl}" },
"md": { "value": "{ams.brand.typography.line-height.5xl}" },
"sm": { "value": "{ams.brand.typography.line-height.2xl}" }
}
}
}
}
}
}

0 comments on commit d9b06f6

Please sign in to comment.