Skip to content

Commit

Permalink
[#2955] Add typography tokens (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin authored Jan 21, 2025
2 parents ae0150e + 84889c3 commit 8293467
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-inwoner/design-tokens",
"version": "0.0.7-alpha.2",
"version": "0.0.8-alpha.1",
"description": "Design tokens for Open Inwoner",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
6 changes: 3 additions & 3 deletions src/brand/openinwoner/typography.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"oip": {
"heading": {
"fg": {"value": "{oip.color.fg}"},
"font-family": {"value": "Heading"}
"font-family": {"value": "\"Heading\", \"Arial\", sans-serif"}
},
"text": {
"margin": {"value": "20px"},
Expand All @@ -13,10 +13,10 @@
},
"typography": {
"sans-serif": {
"font-family": {"value": "Body"}
"font-family": {"value": "\"Body\", \"Arial\", sans-serif"}
},
"heading": {
"font-family": {"value": "Heading"}
"font-family": {"value": "\"Heading\", \"Arial\", sans-serif"}
}
}
}
Expand Down
27 changes: 27 additions & 0 deletions src/community/utrecht/typography.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,33 @@
"value": "24px",
"comment": "Default body line-height."
}
},
"typography": {
"sans-serif": {
"font-family": {"value": "\"Body\", \"Arial\", sans-serif"}
},
"scale": {
"sm": {"font-size": {"value": "14px"}},
"md": {"font-size": {"value": "16px"}},
"lg": {"font-size": {"value": "24px"}},
"xl": {"font-size": {"value": "20px"}},
"2xl": {"font-size": {"value": "32px"}},
"3xl": {"font-size": {"value": "40px"}}
},
"weight-scale": {
"bold": {"font-weight": {"value": "bold"}},
"normal": {"font-weight": {"value": "normal"}}
},
"font-style": {
"normal": {"value": "normal"},
"inherit": {"value": "inherit"}
},
"line-height": {
"xs": {"value": "16px"},
"sm": {"value": "22px"},
"md": {"value": "24px"},
"lg": {"value": "32px"}
}
}
}
}

0 comments on commit 8293467

Please sign in to comment.