Skip to content

Commit 08bd811

Browse files
inesczuiajosefie
andauthored
Figmatokens (#52)
* New tokens for input fields * More tokens for input fields * Change from "+" to "bold" * add the removed tokens again --------- Co-authored-by: Josefie Zynga <josefie.zynga@betterplace.org>
1 parent 8cd1e99 commit 08bd811

File tree

1 file changed

+57
-21
lines changed

1 file changed

+57
-21
lines changed

config/tokens.json

+57-21
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@
506506
"type": "fontSizes"
507507
}
508508
},
509-
"text-sm": {
509+
"text-sm-regular": {
510510
"value": {
511511
"fontFamily": "{fontFamilies.fira-sans}",
512512
"fontWeight": "{fontWeights.fira-sans-0}",
@@ -520,7 +520,7 @@
520520
"type": "typography",
521521
"description": "smallest text"
522522
},
523-
"text-md": {
523+
"text-md-regular": {
524524
"value": {
525525
"fontFamily": "{fontFamilies.fira-sans}",
526526
"fontWeight": "{fontWeights.fira-sans-0}",
@@ -533,7 +533,7 @@
533533
},
534534
"type": "typography"
535535
},
536-
"text-md+": {
536+
"text-md-bold": {
537537
"value": {
538538
"fontFamily": "{fontFamilies.fira-sans}",
539539
"fontWeight": "{fontWeights.fira-sans-1}",
@@ -546,7 +546,7 @@
546546
},
547547
"type": "typography"
548548
},
549-
"text-lg+": {
549+
"text-lg-bold": {
550550
"value": {
551551
"fontFamily": "{fontFamilies.fira-sans}",
552552
"fontWeight": "{fontWeights.fira-sans-1}",
@@ -559,7 +559,7 @@
559559
},
560560
"type": "typography"
561561
},
562-
"text-xl+": {
562+
"text-xl-bold": {
563563
"value": {
564564
"fontFamily": "{fontFamilies.fira-sans}",
565565
"fontWeight": "{fontWeights.fira-sans-1}",
@@ -572,7 +572,7 @@
572572
},
573573
"type": "typography"
574574
},
575-
"text-2xl+": {
575+
"text-2xl-bold": {
576576
"value": {
577577
"fontFamily": "{fontFamilies.fira-sans}",
578578
"fontWeight": "{fontWeights.fira-sans-1}",
@@ -585,7 +585,7 @@
585585
},
586586
"type": "typography"
587587
},
588-
"text-3xl+": {
588+
"text-3xl-bold": {
589589
"value": {
590590
"fontFamily": "{fontFamilies.fira-sans}",
591591
"fontWeight": "{fontWeights.fira-sans-1}",
@@ -598,7 +598,7 @@
598598
},
599599
"type": "typography"
600600
},
601-
"text-4xl+": {
601+
"text-4xl-bold": {
602602
"value": {
603603
"fontFamily": "{fontFamilies.fira-sans}",
604604
"fontWeight": "{fontWeights.fira-sans-1}",
@@ -611,7 +611,7 @@
611611
},
612612
"type": "typography"
613613
},
614-
"text-5xl+": {
614+
"text-5xl-bold": {
615615
"value": {
616616
"fontFamily": "{fontFamilies.fira-sans}",
617617
"fontWeight": "{fontWeights.fira-sans-1}",
@@ -624,7 +624,7 @@
624624
},
625625
"type": "typography"
626626
},
627-
"text-lg": {
627+
"text-lg-regular": {
628628
"value": {
629629
"fontFamily": "{fontFamilies.fira-sans}",
630630
"fontWeight": "{fontWeights.fira-sans-0}",
@@ -637,7 +637,7 @@
637637
},
638638
"type": "typography"
639639
},
640-
"text-sm+": {
640+
"text-sm-bold": {
641641
"value": {
642642
"fontFamily": "{fontFamilies.fira-sans}",
643643
"fontWeight": "{fontWeights.fira-sans-1}",
@@ -799,6 +799,25 @@
799799
"button-ghost-hover": {
800800
"value": "{color.green-special}",
801801
"type": "color"
802+
},
803+
"icon-default": {
804+
"value": "{color.gray-700}",
805+
"type": "color",
806+
"description": "Icon e.g. in input field"
807+
},
808+
"border-error": {
809+
"value": "{color.red-700}",
810+
"type": "color",
811+
"description": "Border color of error state"
812+
},
813+
"icon-error": {
814+
"value": "{color.red-700}",
815+
"type": "color"
816+
},
817+
"border-focus": {
818+
"value": "{color.green-800}",
819+
"type": "color",
820+
"description": "Focus state (keyboard navigation)"
802821
}
803822
},
804823
"manage--color": {
@@ -897,20 +916,24 @@
897916
"button-ghost": {
898917
"value": "{borderWidth.xs}",
899918
"type": "borderWidth"
919+
},
920+
"input-default": {
921+
"value": "{borderWidth.xs}",
922+
"type": "borderWidth"
900923
}
901924
},
902925
"text-label-md": {
903-
"value": "{text-md+}",
926+
"value": "{text-md-bold}",
904927
"type": "typography",
905928
"description": "default text token for buttons md"
906929
},
907930
"text-label-lg": {
908-
"value": "{text-lg+}",
931+
"value": "{text-lg-bold}",
909932
"type": "typography",
910933
"description": "default text token for buttons lg"
911934
},
912935
"text-label-xl": {
913-
"value": "{text-xl+}",
936+
"value": "{text-xl-bold}",
914937
"type": "typography",
915938
"description": "default text token for buttons lg"
916939
},
@@ -939,6 +962,24 @@
939962
"type": "boxShadow",
940963
"description": "inner shadow primary button pressed"
941964
}
965+
},
966+
"text": {
967+
"input-default": {
968+
"value": "{text-md-regular}",
969+
"type": "typography"
970+
},
971+
"input-selected": {
972+
"value": "{text-md-bold}",
973+
"type": "typography"
974+
},
975+
"hint-error": {
976+
"value": "{text-sm-bold}",
977+
"type": "typography"
978+
},
979+
"hint": {
980+
"value": "{text-sm-regular}",
981+
"type": "typography"
982+
}
942983
}
943984
},
944985
"me": {
@@ -1035,11 +1076,6 @@
10351076
},
10361077
"$themes": [],
10371078
"$metadata": {
1038-
"tokenSetOrder": [
1039-
"global",
1040-
"org",
1041-
"me",
1042-
"at"
1043-
]
1079+
"tokenSetOrder": ["global", "org", "me", "at"]
10441080
}
1045-
}
1081+
}

0 commit comments

Comments
 (0)