Skip to content

Commit d35e442

Browse files
authoredMar 11, 2025··
feat: Start button component tokens (#416)
1 parent cb83d5c commit d35e442

File tree

17 files changed

+429
-80
lines changed

17 files changed

+429
-80
lines changed
 

‎build/figma/figma.tokens.json

+104-14
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
"700": {
8282
"value": "#03662A",
8383
"type": "color"
84+
},
85+
"800": {
86+
"value": "#023b1a",
87+
"type": "color"
8488
}
8589
},
8690
"purple": {
@@ -1464,16 +1468,36 @@
14641468
}
14651469
},
14661470
"font": {
1467-
"value": {
1468-
"fontFamily": "'Noto Sans', sans-serif",
1469-
"fontWeight": "500",
1470-
"lineHeight": "140%",
1471-
"fontSize": "1.25rem"
1471+
"-": {
1472+
"value": {
1473+
"fontFamily": "'Noto Sans', sans-serif",
1474+
"fontWeight": "500",
1475+
"lineHeight": "140%",
1476+
"fontSize": "1.25rem"
1477+
},
1478+
"type": "typography"
14721479
},
1473-
"type": "typography"
1480+
"desktop": {
1481+
"value": {
1482+
"fontFamily": "'Noto Sans', sans-serif",
1483+
"fontWeight": "500",
1484+
"lineHeight": "140%",
1485+
"fontSize": "1.25rem"
1486+
},
1487+
"type": "typography"
1488+
},
1489+
"mobile": {
1490+
"value": {
1491+
"fontFamily": "'Noto Sans', sans-serif",
1492+
"fontWeight": "500",
1493+
"lineHeight": "140%",
1494+
"fontSize": "1.125rem"
1495+
},
1496+
"type": "typography"
1497+
}
14741498
},
14751499
"padding": {
1476-
"value": "0.625rem 0.75rem",
1500+
"value": "0.625rem 1rem",
14771501
"type": "spacing"
14781502
},
14791503
"primary": {
@@ -1567,21 +1591,87 @@
15671591
"text": {
15681592
"value": "#545961",
15691593
"type": "color"
1594+
},
1595+
"opacity": {
1596+
"value": "50%",
1597+
"type": "other"
15701598
}
15711599
}
15721600
},
15731601
"small": {
15741602
"font": {
1575-
"value": {
1576-
"fontFamily": "'Noto Sans', sans-serif",
1577-
"fontWeight": "400",
1578-
"lineHeight": "160%",
1579-
"fontSize": "80%"
1603+
"-": {
1604+
"value": {
1605+
"fontFamily": "'Noto Sans', sans-serif",
1606+
"fontWeight": "400",
1607+
"lineHeight": "160%",
1608+
"fontSize": "80%"
1609+
},
1610+
"type": "typography"
15801611
},
1581-
"type": "typography"
1612+
"desktop": {
1613+
"value": {
1614+
"fontFamily": "'Noto Sans', sans-serif",
1615+
"fontWeight": "400",
1616+
"lineHeight": "155%",
1617+
"fontSize": "1.125rem"
1618+
},
1619+
"type": "typography"
1620+
},
1621+
"mobile": {
1622+
"value": {
1623+
"fontFamily": "'Noto Sans', sans-serif",
1624+
"fontWeight": "400",
1625+
"lineHeight": "150%",
1626+
"fontSize": "1rem"
1627+
},
1628+
"type": "typography"
1629+
}
15821630
},
15831631
"padding": {
1584-
"value": "0.75rem",
1632+
"value": "0.375rem 1rem",
1633+
"type": "spacing"
1634+
}
1635+
},
1636+
"start": {
1637+
"default": {
1638+
"background": {
1639+
"value": "#03662A",
1640+
"type": "color"
1641+
},
1642+
"text": {
1643+
"value": "#FFF",
1644+
"type": "color"
1645+
}
1646+
},
1647+
"hover": {
1648+
"background": {
1649+
"value": "#023b1a",
1650+
"type": "color"
1651+
}
1652+
},
1653+
"font": {
1654+
"desktop": {
1655+
"value": {
1656+
"fontFamily": "'Noto Sans', sans-serif",
1657+
"fontWeight": "600",
1658+
"lineHeight": "145%",
1659+
"fontSize": "1.375rem"
1660+
},
1661+
"type": "typography"
1662+
},
1663+
"mobile": {
1664+
"value": {
1665+
"fontFamily": "'Noto Sans', sans-serif",
1666+
"fontWeight": "500",
1667+
"lineHeight": "140%",
1668+
"fontSize": "1.25rem"
1669+
},
1670+
"type": "typography"
1671+
}
1672+
},
1673+
"padding": {
1674+
"value": "0.75rem 2rem",
15851675
"type": "spacing"
15861676
}
15871677
},

‎build/tailwind/tailwind.tokens.json

+104-14
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
"700": {
8282
"value": "#03662A",
8383
"type": "color"
84+
},
85+
"800": {
86+
"value": "#023b1a",
87+
"type": "color"
8488
}
8589
},
8690
"purple": {
@@ -1464,16 +1468,36 @@
14641468
}
14651469
},
14661470
"font": {
1467-
"value": {
1468-
"fontFamily": "'Noto Sans', sans-serif",
1469-
"fontWeight": "500",
1470-
"lineHeight": "140%",
1471-
"fontSize": "1.25rem"
1471+
"-": {
1472+
"value": {
1473+
"fontFamily": "'Noto Sans', sans-serif",
1474+
"fontWeight": "500",
1475+
"lineHeight": "140%",
1476+
"fontSize": "1.25rem"
1477+
},
1478+
"type": "typography"
14721479
},
1473-
"type": "typography"
1480+
"desktop": {
1481+
"value": {
1482+
"fontFamily": "'Noto Sans', sans-serif",
1483+
"fontWeight": "500",
1484+
"lineHeight": "140%",
1485+
"fontSize": "1.25rem"
1486+
},
1487+
"type": "typography"
1488+
},
1489+
"mobile": {
1490+
"value": {
1491+
"fontFamily": "'Noto Sans', sans-serif",
1492+
"fontWeight": "500",
1493+
"lineHeight": "140%",
1494+
"fontSize": "1.125rem"
1495+
},
1496+
"type": "typography"
1497+
}
14741498
},
14751499
"padding": {
1476-
"value": "0.625rem 0.75rem",
1500+
"value": "0.625rem 1rem",
14771501
"type": "spacing"
14781502
},
14791503
"primary": {
@@ -1567,21 +1591,87 @@
15671591
"text": {
15681592
"value": "#545961",
15691593
"type": "color"
1594+
},
1595+
"opacity": {
1596+
"value": "50%",
1597+
"type": "other"
15701598
}
15711599
}
15721600
},
15731601
"small": {
15741602
"font": {
1575-
"value": {
1576-
"fontFamily": "'Noto Sans', sans-serif",
1577-
"fontWeight": "400",
1578-
"lineHeight": "160%",
1579-
"fontSize": "80%"
1603+
"-": {
1604+
"value": {
1605+
"fontFamily": "'Noto Sans', sans-serif",
1606+
"fontWeight": "400",
1607+
"lineHeight": "160%",
1608+
"fontSize": "80%"
1609+
},
1610+
"type": "typography"
15801611
},
1581-
"type": "typography"
1612+
"desktop": {
1613+
"value": {
1614+
"fontFamily": "'Noto Sans', sans-serif",
1615+
"fontWeight": "400",
1616+
"lineHeight": "155%",
1617+
"fontSize": "1.125rem"
1618+
},
1619+
"type": "typography"
1620+
},
1621+
"mobile": {
1622+
"value": {
1623+
"fontFamily": "'Noto Sans', sans-serif",
1624+
"fontWeight": "400",
1625+
"lineHeight": "150%",
1626+
"fontSize": "1rem"
1627+
},
1628+
"type": "typography"
1629+
}
15821630
},
15831631
"padding": {
1584-
"value": "0.75rem",
1632+
"value": "0.375rem 1rem",
1633+
"type": "spacing"
1634+
}
1635+
},
1636+
"start": {
1637+
"default": {
1638+
"background": {
1639+
"value": "#03662A",
1640+
"type": "color"
1641+
},
1642+
"text": {
1643+
"value": "#FFF",
1644+
"type": "color"
1645+
}
1646+
},
1647+
"hover": {
1648+
"background": {
1649+
"value": "#023b1a",
1650+
"type": "color"
1651+
}
1652+
},
1653+
"font": {
1654+
"desktop": {
1655+
"value": {
1656+
"fontFamily": "'Noto Sans', sans-serif",
1657+
"fontWeight": "600",
1658+
"lineHeight": "145%",
1659+
"fontSize": "1.375rem"
1660+
},
1661+
"type": "typography"
1662+
},
1663+
"mobile": {
1664+
"value": {
1665+
"fontFamily": "'Noto Sans', sans-serif",
1666+
"fontWeight": "500",
1667+
"lineHeight": "140%",
1668+
"fontSize": "1.25rem"
1669+
},
1670+
"type": "typography"
1671+
}
1672+
},
1673+
"padding": {
1674+
"value": "0.75rem 2rem",
15851675
"type": "spacing"
15861676
}
15871677
},

‎build/web/css/base.css

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
--gcds-color-green-100: #e6f6ec;
2323
--gcds-color-green-500: #289f58; /* Must contrast 3:1 with white */
2424
--gcds-color-green-700: #03662a; /* Must contrast 7:1 with white */
25+
--gcds-color-green-800: #023b1a;
2526
--gcds-color-purple-700: #7532b8; /* Must contrast 7:1 with white */
2627
--gcds-color-orange-700: #be5a00; /* Must contrast 7:1 with white */
2728
--gcds-color-red-100: #fbddda;

‎build/web/css/base/color.css

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
--gcds-color-green-100: #e6f6ec;
2323
--gcds-color-green-500: #289f58; /* Must contrast 3:1 with white */
2424
--gcds-color-green-700: #03662a; /* Must contrast 7:1 with white */
25+
--gcds-color-green-800: #023b1a;
2526
--gcds-color-purple-700: #7532b8; /* Must contrast 7:1 with white */
2627
--gcds-color-orange-700: #be5a00; /* Must contrast 7:1 with white */
2728
--gcds-color-red-100: #fbddda;

‎build/web/css/components.css

+17-6
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@
138138
--gcds-button-danger-default-background: #a62a1e;
139139
--gcds-button-danger-default-text: #ffffff;
140140
--gcds-button-danger-hover-background: #822117;
141-
--gcds-button-font: 500 1.25rem/140% 'Noto Sans', sans-serif;
142-
--gcds-button-padding: 0.625rem 0.75rem;
141+
--gcds-button-font: 500 1.25rem/140% 'Noto Sans', sans-serif; /* To be removed in anouther PR */
142+
--gcds-button-font-desktop: 500 1.25rem/140% 'Noto Sans', sans-serif;
143+
--gcds-button-font-mobile: 500 1.125rem/140% 'Noto Sans', sans-serif;
144+
--gcds-button-padding: 0.625rem 1rem;
143145
--gcds-button-primary-default-background: #26374a;
144146
--gcds-button-primary-default-text: #ffffff;
145147
--gcds-button-primary-hover-background: #2b4380;
@@ -155,10 +157,19 @@
155157
--gcds-button-shared-focus-box-shadow: 0 0 0 0.125rem #ffffff;
156158
--gcds-button-shared-focus-outline-width: 0.25rem;
157159
--gcds-button-shared-focus-text: #ffffff;
158-
--gcds-button-shared-disabled-background: #d6d9dd;
159-
--gcds-button-shared-disabled-text: #545961;
160-
--gcds-button-small-font: 400 80%/160% 'Noto Sans', sans-serif;
161-
--gcds-button-small-padding: 0.75rem;
160+
--gcds-button-shared-disabled-background: #d6d9dd; /* To be removed in anouther PR */
161+
--gcds-button-shared-disabled-text: #545961; /* To be removed in anouther PR */
162+
--gcds-button-shared-disabled-opacity: 50%;
163+
--gcds-button-small-font: 400 80%/160% 'Noto Sans', sans-serif; /* To be removed in anouther PR */
164+
--gcds-button-small-font-desktop: 400 1.125rem/155% 'Noto Sans', sans-serif;
165+
--gcds-button-small-font-mobile: 400 1rem/150% 'Noto Sans', sans-serif;
166+
--gcds-button-small-padding: 0.375rem 1rem;
167+
--gcds-button-start-default-background: #03662a;
168+
--gcds-button-start-default-text: #ffffff;
169+
--gcds-button-start-hover-background: #023b1a;
170+
--gcds-button-start-font-desktop: 600 1.375rem/145% 'Noto Sans', sans-serif;
171+
--gcds-button-start-font-mobile: 500 1.25rem/140% 'Noto Sans', sans-serif;
172+
--gcds-button-start-padding: 0.75rem 2rem;
162173
--gcds-button-width: fit-content;
163174
--gcds-card-background-color: #ffffff;
164175
--gcds-card-box-shadow: 0 0.125rem 0.5rem 0.125rem #00000019;

‎build/web/css/components/button.css

+17-6
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
--gcds-button-danger-default-background: #a62a1e;
99
--gcds-button-danger-default-text: #ffffff;
1010
--gcds-button-danger-hover-background: #822117;
11-
--gcds-button-font: 500 1.25rem/140% 'Noto Sans', sans-serif;
12-
--gcds-button-padding: 0.625rem 0.75rem;
11+
--gcds-button-font: 500 1.25rem/140% 'Noto Sans', sans-serif; /* To be removed in anouther PR */
12+
--gcds-button-font-desktop: 500 1.25rem/140% 'Noto Sans', sans-serif;
13+
--gcds-button-font-mobile: 500 1.125rem/140% 'Noto Sans', sans-serif;
14+
--gcds-button-padding: 0.625rem 1rem;
1315
--gcds-button-primary-default-background: #26374a;
1416
--gcds-button-primary-default-text: #ffffff;
1517
--gcds-button-primary-hover-background: #2b4380;
@@ -25,9 +27,18 @@
2527
--gcds-button-shared-focus-box-shadow: 0 0 0 0.125rem #ffffff;
2628
--gcds-button-shared-focus-outline-width: 0.25rem;
2729
--gcds-button-shared-focus-text: #ffffff;
28-
--gcds-button-shared-disabled-background: #d6d9dd;
29-
--gcds-button-shared-disabled-text: #545961;
30-
--gcds-button-small-font: 400 80%/160% 'Noto Sans', sans-serif;
31-
--gcds-button-small-padding: 0.75rem;
30+
--gcds-button-shared-disabled-background: #d6d9dd; /* To be removed in anouther PR */
31+
--gcds-button-shared-disabled-text: #545961; /* To be removed in anouther PR */
32+
--gcds-button-shared-disabled-opacity: 50%;
33+
--gcds-button-small-font: 400 80%/160% 'Noto Sans', sans-serif; /* To be removed in anouther PR */
34+
--gcds-button-small-font-desktop: 400 1.125rem/155% 'Noto Sans', sans-serif;
35+
--gcds-button-small-font-mobile: 400 1rem/150% 'Noto Sans', sans-serif;
36+
--gcds-button-small-padding: 0.375rem 1rem;
37+
--gcds-button-start-default-background: #03662a;
38+
--gcds-button-start-default-text: #ffffff;
39+
--gcds-button-start-hover-background: #023b1a;
40+
--gcds-button-start-font-desktop: 600 1.375rem/145% 'Noto Sans', sans-serif;
41+
--gcds-button-start-font-mobile: 500 1.25rem/140% 'Noto Sans', sans-serif;
42+
--gcds-button-start-padding: 0.75rem 2rem;
3243
--gcds-button-width: fit-content;
3344
}

0 commit comments

Comments
 (0)
Please sign in to comment.