Skip to content

Commit

Permalink
Added 4 themes for typography
Browse files Browse the repository at this point in the history
  • Loading branch information
Febakke committed Jun 20, 2024
1 parent 768e744 commit 4c1a26a
Show file tree
Hide file tree
Showing 16 changed files with 891 additions and 695 deletions.
12 changes: 8 additions & 4 deletions design-tokens/$metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
"primitives/globals",
"primitives/size/default",
"primitives/size/compact",
"primitives/modes/typography/default/theme",
"primitives/modes/typography/default/theme2",
"primitives/modes/typography/alt/theme",
"primitives/modes/typography/alt/theme2",
"primitives/modes/typography/primary/theme",
"primitives/modes/typography/primary/theme2",
"primitives/modes/typography/primary/theme3",
"primitives/modes/typography/primary/theme4",
"primitives/modes/typography/secondary/theme",
"primitives/modes/typography/secondary/theme2",
"primitives/modes/typography/secondary/theme3",
"primitives/modes/typography/secondary/theme4",
"primitives/modes/colors/dark/global",
"primitives/modes/colors/dark/theme",
"primitives/modes/colors/dark/theme2",
Expand Down
1,280 changes: 666 additions & 614 deletions design-tokens/$themes.json

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions design-tokens/primitives/modes/typography/alt/theme.json

This file was deleted.

20 changes: 0 additions & 20 deletions design-tokens/primitives/modes/typography/default/theme2.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@
"type": "fontFamilies",
"value": "Inter"
},
"medium": {
"bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Medium"
},
"semibold": {
"extra-bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Semi bold"
},
Expand Down
30 changes: 30 additions & 0 deletions design-tokens/primitives/modes/typography/primary/theme2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"theme2": {
"main": {
"type": "fontFamilies",
"value": "Helvetica Neue"
},
"bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Medium"
},
"extra-bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Bold"
},
"regular": {
"type": "fontWeights",
"value": "Regular"
}
}
}
30 changes: 30 additions & 0 deletions design-tokens/primitives/modes/typography/primary/theme3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"theme3": {
"main": {
"type": "fontFamilies",
"value": "Inter"
},
"bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Medium"
},
"extra-bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Semi bold"
},
"regular": {
"type": "fontWeights",
"value": "Regular"
}
}
}
30 changes: 30 additions & 0 deletions design-tokens/primitives/modes/typography/primary/theme4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"theme4": {
"main": {
"type": "fontFamilies",
"value": "Inter"
},
"bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Medium"
},
"extra-bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Semi bold"
},
"regular": {
"type": "fontWeights",
"value": "Regular"
}
}
}
30 changes: 30 additions & 0 deletions design-tokens/primitives/modes/typography/secondary/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"theme": {
"main": {
"type": "fontFamilies",
"value": "IBM Plex Mono"
},
"bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Medium"
},
"extra-bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "SemiBold"
},
"regular": {
"type": "fontWeights",
"value": "Regular"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@
"theme2": {
"main": {
"type": "fontFamilies",
"value": "Times New Roman"
"value": "IBM Plex Mono"
},
"medium": {
"bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Regular"
},
"semibold": {
"extra-bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Bold"
},
Expand Down
30 changes: 30 additions & 0 deletions design-tokens/primitives/modes/typography/secondary/theme3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"theme3": {
"main": {
"type": "fontFamilies",
"value": "IBM Plex Mono"
},
"bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Regular"
},
"extra-bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Bold"
},
"regular": {
"type": "fontWeights",
"value": "Regular"
}
}
}
30 changes: 30 additions & 0 deletions design-tokens/primitives/modes/typography/secondary/theme4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"theme4": {
"main": {
"type": "fontFamilies",
"value": "IBM Plex Mono"
},
"bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Regular"
},
"extra-bold": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontWeights",
"value": "Bold"
},
"regular": {
"type": "fontWeights",
"value": "Regular"
}
}
}
9 changes: 2 additions & 7 deletions design-tokens/themes/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,23 +313,18 @@
},
"font": {
"family": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontFamilies",
"value": "{theme.main}"
}
},
"font-weight": {
"medium": {
"type": "fontWeights",
"value": "{theme.medium}"
"value": "{theme.bold}"
},
"semibold": {
"type": "fontWeights",
"value": "{theme.semibold}"
"value": "{theme.extra-bold}"
},
"regular": {
"type": "fontWeights",
Expand Down
9 changes: 2 additions & 7 deletions design-tokens/themes/theme2.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,23 +313,18 @@
},
"font": {
"family": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontFamilies",
"value": "{theme2.main}"
}
},
"font-weight": {
"medium": {
"type": "fontWeights",
"value": "{theme2.medium}"
"value": "{theme2.bold}"
},
"semibold": {
"type": "fontWeights",
"value": "{theme2.semibold}"
"value": "{theme2.extra-bold}"
},
"regular": {
"type": "fontWeights",
Expand Down
13 changes: 4 additions & 9 deletions design-tokens/themes/theme3.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,27 +313,22 @@
},
"font": {
"family": {
"$extensions": {
"studio.tokens": {
"modify": {}
}
},
"type": "fontFamilies",
"value": "{theme.main}"
"value": "{theme3.main}"
}
},
"font-weight": {
"medium": {
"type": "fontWeights",
"value": "{theme.medium}"
"value": "{theme3.bold}"
},
"semibold": {
"type": "fontWeights",
"value": "{theme.semibold}"
"value": "{theme3.extra-bold}"
},
"regular": {
"type": "fontWeights",
"value": "{theme.regular}"
"value": "{theme3.regular}"
}
}
}
Loading

0 comments on commit 4c1a26a

Please sign in to comment.