Skip to content

Commit eaf8892

Browse files
author
Marwa
committed
feat: add basis typography scale to voorbeeld tokens
1 parent a84ee6b commit eaf8892

File tree

1 file changed

+56
-13
lines changed

1 file changed

+56
-13
lines changed

packages/voorbeeld-design-tokens/figma/voorbeeld.tokens.json

Lines changed: 56 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,21 @@
914914
}
915915
},
916916
"common": {
917+
"basis": {
918+
"typography": {
919+
"scale": {
920+
"xx-small": { "font-size": { "value": "8px", "comment": "8px" } },
921+
"x-small": { "font-size": { "value": "12px", "comment": "12px" } },
922+
"small": { "font-size": { "value": "14px", "comment": "14px" } },
923+
"medium": { "font-size": { "value": "16px", "comment": "16px" } },
924+
"large": { "font-size": { "value": "20px", "comment": "20px" } },
925+
"x-large": { "font-size": { "value": "24px", "comment": "24px" } },
926+
"xx-large": { "font-size": { "value": "32px", "comment": "32px" } },
927+
"xxx-large": { "font-size": { "value": "40px", "comment": "40px" } },
928+
"xxxx-large": { "font-size": { "value": "48px", "comment": "48px" } }
929+
}
930+
}
931+
},
917932
"utrecht": {
918933
"document": {
919934
"background-color": {
@@ -930,7 +945,7 @@
930945
},
931946
"font-size": {
932947
"$type": "fontSizes",
933-
"$value": "{voorbeeld.typography.font-size.md}"
948+
"$value": "{basis.typography.scale.medium}"
934949
},
935950
"font-weight": {
936951
"$type": "fontWeights",
@@ -1697,7 +1712,7 @@
16971712
},
16981713
"font-size": {
16991714
"$type": "fontSizes",
1700-
"$value": "{voorbeeld.typography.font-size.xl}"
1715+
"$value": "{basis.typography.scale.x-large}"
17011716
}
17021717
}
17031718
}
@@ -1816,6 +1831,30 @@
18161831
"$type": "textCase",
18171832
"$value": "None"
18181833
},
1834+
"font-size": {
1835+
"$type": "fontSizes",
1836+
"$value": "{basis.typography.scale.small}"
1837+
},
1838+
"min-block-size": {
1839+
"$type": "sizing",
1840+
"$value": "{voorbeeld.size.xs}"
1841+
},
1842+
"min-inline-size": {
1843+
"$type": "sizing",
1844+
"$value": "{voorbeeld.size.xs}"
1845+
},
1846+
"font-weight": {
1847+
"$type": "fontWeights",
1848+
"$value": "{voorbeeld.document.strong.font-weight}"
1849+
},
1850+
"border-radius": {
1851+
"$type": "borderRadius",
1852+
"$value": "{voorbeeld.border-radius.round}"
1853+
},
1854+
"font-family": {
1855+
"$type": "fontFamilies",
1856+
"$value": "{utrecht.document.font-family}"
1857+
},
18191858
"letter-spacing": {
18201859
"$type": "letterSpacing",
18211860
"$value": "None"
@@ -1917,7 +1956,7 @@
19171956
"attribution": {
19181957
"font-size": {
19191958
"$type": "fontSizes",
1920-
"$value": "{voorbeeld.typography.font-size.sm}"
1959+
"$value": "{basis.typography.scale.small}"
19211960
},
19221961
"color": {
19231962
"$type": "color",
@@ -1927,7 +1966,7 @@
19271966
"content": {
19281967
"font-size": {
19291968
"$type": "fontSizes",
1930-
"$value": "{voorbeeld.typography.font-size.xl}"
1969+
"$value": "{basis.typography.scale.x-large}"
19311970
},
19321971
"color": {
19331972
"$type": "color",
@@ -3550,7 +3589,7 @@
35503589
},
35513590
"font-size": {
35523591
"$type": "fontSizes",
3553-
"$value": "{voorbeeld.typography.font-size.3xl}"
3592+
"$value": "{basis.typography.scale.xxx-large}"
35543593
}
35553594
},
35563595
"heading-2": {
@@ -3572,7 +3611,7 @@
35723611
},
35733612
"font-size": {
35743613
"$type": "fontSizes",
3575-
"$value": "{voorbeeld.typography.font-size.2xl}"
3614+
"$value": "{basis.typography.scale.xx-large}"
35763615
}
35773616
},
35783617
"heading-3": {
@@ -3594,7 +3633,7 @@
35943633
},
35953634
"font-size": {
35963635
"$type": "fontSizes",
3597-
"$value": "{voorbeeld.typography.font-size.xl}"
3636+
"$value": "{basis.typography.scale.x-large}"
35983637
}
35993638
},
36003639
"heading-4": {
@@ -3616,7 +3655,7 @@
36163655
},
36173656
"font-size": {
36183657
"$type": "fontSizes",
3619-
"$value": "{voorbeeld.typography.font-size.lg}"
3658+
"$value": "{basis.typography.scale.large}"
36203659
}
36213660
},
36223661
"heading-5": {
@@ -3638,7 +3677,7 @@
36383677
},
36393678
"font-size": {
36403679
"$type": "fontSizes",
3641-
"$value": "{voorbeeld.typography.font-size.md}"
3680+
"$value": "{basis.typography.scale.medium}"
36423681
}
36433682
},
36443683
"heading-6": {
@@ -3660,7 +3699,7 @@
36603699
},
36613700
"font-size": {
36623701
"$type": "fontSizes",
3663-
"$value": "{voorbeeld.typography.font-size.sm}"
3702+
"$value": "{basis.typography.scale.small}"
36643703
}
36653704
}
36663705
}
@@ -4389,7 +4428,7 @@
43894428
},
43904429
"font-size": {
43914430
"$type": "fontSizes",
4392-
"$value": "{voorbeeld.typography.font-size.lg}"
4431+
"$value": "{basis.typography.scale.large}"
43934432
},
43944433
"font-weight": {
43954434
"$type": "fontWeights",
@@ -4407,7 +4446,7 @@
44074446
},
44084447
"font-size": {
44094448
"$type": "fontSizes",
4410-
"$value": "{voorbeeld.typography.font-size.sm}"
4449+
"$value": "{basis.typography.scale.small}"
44114450
},
44124451
"font-weight": {
44134452
"$type": "fontWeights",
@@ -5036,7 +5075,7 @@
50365075
"status-badge": {
50375076
"font-size": {
50385077
"$type": "fontSizes",
5039-
"$value": "{voorbeeld.typography.font-size.sm}"
5078+
"$value": "{basis.typography.scale.small}"
50405079
},
50415080
"line-height": {
50425081
"$type": "lineHeights",
@@ -5482,6 +5521,10 @@
54825521
"margin-block-end": {
54835522
"$type": "spacing",
54845523
"$value": "{voorbeeld.space.block.rabbit}"
5524+
},
5525+
"font-size": {
5526+
"$type": "fontSizes",
5527+
"$value": "{basis.typography.scale.x-large}"
54855528
}
54865529
},
54875530
"cell": {

0 commit comments

Comments
 (0)