@automattic/vip-design-system 2.18.1 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview-head.html +1 -0
- package/build/system/Badge/Badge.js +2 -1
- package/build/system/DescriptionList/DescriptionList.js +0 -1
- package/build/system/Form/Label.d.ts +1 -3
- package/build/system/Form/Label.js +1 -3
- package/build/system/Form/RadioBoxGroup.jsx +12 -1
- package/build/system/Form/RadioBoxGroup.stories.jsx +6 -1
- package/build/system/Heading/Heading.js +2 -3
- package/build/system/Heading/Heading.stories.js +15 -2
- package/build/system/Nav/styles/variants/menu.js +1 -2
- package/build/system/NewForm/FormAutocompleteMultiselect.jsx +143 -12
- package/build/system/NewForm/FormAutocompleteMultiselect.stories.d.ts +22 -2
- package/build/system/NewForm/FormAutocompleteMultiselect.stories.jsx +21 -0
- package/build/system/NewForm/FormAutocompleteMultiselect.test.jsx +67 -1
- package/build/system/NewForm/FormAutocompleteMultiselectInlineChip.d.ts +7 -0
- package/build/system/NewForm/FormAutocompleteMultiselectInlineChip.js +62 -0
- package/build/system/Notice/Notice.js +1 -1
- package/build/system/Pagination/styles.js +1 -4
- package/build/system/Table/TableCell.js +1 -1
- package/build/system/Text/Text.js +0 -1
- package/build/system/Text/Text.stories.js +16 -13
- package/build/system/Toolbar/Logo.js +22 -6
- package/build/system/Wizard/Wizard.stories.js +11 -11
- package/build/system/Wizard/WizardStep.js +0 -2
- package/build/system/theme/generated/valet-theme-dark.json +224 -227
- package/build/system/theme/generated/valet-theme-light.json +224 -227
- package/build/system/theme/getPropValue.js +3 -7
- package/build/system/theme/index.d.ts +20 -12
- package/build/system/theme/index.js +27 -20
- package/docs/SETUP.md +1 -1
- package/package.json +1 -1
- package/src/system/Badge/Badge.tsx +2 -1
- package/src/system/DescriptionList/DescriptionList.tsx +0 -1
- package/src/system/Form/Label.tsx +1 -3
- package/src/system/Form/RadioBoxGroup.jsx +12 -1
- package/src/system/Form/RadioBoxGroup.stories.jsx +6 -1
- package/src/system/Heading/Heading.stories.tsx +10 -1
- package/src/system/Heading/Heading.tsx +1 -2
- package/src/system/Nav/styles/variants/menu.ts +1 -2
- package/src/system/NewForm/FormAutocompleteMultiselect.jsx +143 -12
- package/src/system/NewForm/FormAutocompleteMultiselect.stories.jsx +21 -0
- package/src/system/NewForm/FormAutocompleteMultiselect.test.jsx +67 -1
- package/src/system/NewForm/FormAutocompleteMultiselectInlineChip.tsx +72 -0
- package/src/system/Notice/Notice.tsx +1 -1
- package/src/system/Pagination/styles.ts +1 -4
- package/src/system/Table/TableCell.tsx +1 -1
- package/src/system/Text/Text.stories.tsx +7 -4
- package/src/system/Text/Text.tsx +0 -1
- package/src/system/Toolbar/Logo.tsx +19 -2
- package/src/system/Wizard/Wizard.stories.tsx +11 -11
- package/src/system/Wizard/WizardStep.tsx +0 -2
- package/src/system/theme/generated/valet-theme-dark.json +224 -227
- package/src/system/theme/generated/valet-theme-light.json +224 -227
- package/src/system/theme/getPropValue.ts +1 -8
- package/src/system/theme/index.ts +33 -18
- package/tokens/valet-core/valet-core.json +39 -9
- package/tokens/valet-core/wpvip-product-core.json +88 -125
|
@@ -833,55 +833,61 @@
|
|
|
833
833
|
},
|
|
834
834
|
"helper-text": {
|
|
835
835
|
"value": {
|
|
836
|
-
"fontFamily": "
|
|
836
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
837
837
|
"fontWeight": 400,
|
|
838
838
|
"fontSize": 12,
|
|
839
|
-
"lineHeight": "150%"
|
|
839
|
+
"lineHeight": "150%",
|
|
840
|
+
"letterSpacing": "0.01em"
|
|
840
841
|
},
|
|
841
842
|
"type": "typography"
|
|
842
843
|
},
|
|
843
844
|
"label-xs": {
|
|
844
845
|
"value": {
|
|
845
|
-
"fontFamily": "
|
|
846
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
846
847
|
"fontWeight": 400,
|
|
847
848
|
"lineHeight": "100%",
|
|
848
|
-
"fontSize": 11
|
|
849
|
+
"fontSize": 11,
|
|
850
|
+
"letterSpacing": "0.02em"
|
|
849
851
|
},
|
|
850
852
|
"type": "typography"
|
|
851
853
|
},
|
|
852
854
|
"label-small": {
|
|
853
855
|
"value": {
|
|
854
|
-
"fontFamily": "
|
|
855
|
-
"fontWeight":
|
|
856
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
857
|
+
"fontWeight": 600,
|
|
856
858
|
"lineHeight": "100%",
|
|
857
|
-
"fontSize": 12
|
|
859
|
+
"fontSize": 12,
|
|
860
|
+
"letterSpacing": "0.005em"
|
|
858
861
|
},
|
|
859
862
|
"type": "typography"
|
|
860
863
|
},
|
|
861
864
|
"label-default": {
|
|
862
865
|
"value": {
|
|
863
|
-
"fontFamily": "
|
|
864
|
-
"fontWeight":
|
|
866
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
867
|
+
"fontWeight": 600,
|
|
865
868
|
"lineHeight": "100%",
|
|
866
|
-
"fontSize": 14
|
|
869
|
+
"fontSize": 14,
|
|
870
|
+
"letterSpacing": "0.005em"
|
|
867
871
|
},
|
|
868
872
|
"type": "typography"
|
|
869
873
|
},
|
|
870
874
|
"label-default-quiet": {
|
|
871
875
|
"value": {
|
|
872
|
-
"fontFamily": "
|
|
876
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
873
877
|
"fontWeight": 400,
|
|
874
878
|
"lineHeight": "100%",
|
|
875
|
-
"fontSize": 14
|
|
879
|
+
"fontSize": 14,
|
|
880
|
+
"letterSpacing": "0.005em"
|
|
876
881
|
},
|
|
877
882
|
"type": "typography"
|
|
878
883
|
},
|
|
879
884
|
"label-default-loud": {
|
|
880
885
|
"value": {
|
|
881
|
-
"fontFamily": "
|
|
886
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
882
887
|
"fontWeight": 700,
|
|
883
888
|
"lineHeight": "100%",
|
|
884
|
-
"fontSize": 14
|
|
889
|
+
"fontSize": 14,
|
|
890
|
+
"letterSpacing": "0.005em"
|
|
885
891
|
},
|
|
886
892
|
"type": "typography"
|
|
887
893
|
}
|
|
@@ -1686,53 +1692,145 @@
|
|
|
1686
1692
|
}
|
|
1687
1693
|
},
|
|
1688
1694
|
"fontFamily": {
|
|
1689
|
-
"
|
|
1690
|
-
"value": "
|
|
1691
|
-
"type": "fontFamilies"
|
|
1692
|
-
},
|
|
1693
|
-
"serif": {
|
|
1694
|
-
"value": "Recoleta",
|
|
1695
|
+
"default": {
|
|
1696
|
+
"value": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1695
1697
|
"type": "fontFamilies"
|
|
1696
1698
|
},
|
|
1697
1699
|
"monospace": {
|
|
1698
|
-
"value": "SF Mono",
|
|
1700
|
+
"value": "SF Mono, monospace",
|
|
1699
1701
|
"type": "fontFamilies"
|
|
1700
1702
|
}
|
|
1701
1703
|
},
|
|
1702
|
-
"
|
|
1703
|
-
"0": {
|
|
1704
|
-
"value": 10,
|
|
1705
|
-
"type": "fontSizes"
|
|
1706
|
-
},
|
|
1704
|
+
"heading": {
|
|
1707
1705
|
"1": {
|
|
1708
|
-
"value":
|
|
1709
|
-
|
|
1706
|
+
"value": {
|
|
1707
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1708
|
+
"fontWeight": 700,
|
|
1709
|
+
"lineHeight": "115%",
|
|
1710
|
+
"fontSize": 40,
|
|
1711
|
+
"letterSpacing": "-0.02em"
|
|
1712
|
+
},
|
|
1713
|
+
"type": "typography"
|
|
1710
1714
|
},
|
|
1711
1715
|
"2": {
|
|
1712
|
-
"value":
|
|
1713
|
-
|
|
1716
|
+
"value": {
|
|
1717
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1718
|
+
"fontWeight": 600,
|
|
1719
|
+
"lineHeight": "125%",
|
|
1720
|
+
"fontSize": 28,
|
|
1721
|
+
"letterSpacing": "-0.015em"
|
|
1722
|
+
},
|
|
1723
|
+
"type": "typography"
|
|
1714
1724
|
},
|
|
1715
1725
|
"3": {
|
|
1716
|
-
"value":
|
|
1717
|
-
|
|
1726
|
+
"value": {
|
|
1727
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1728
|
+
"fontWeight": 600,
|
|
1729
|
+
"lineHeight": "130%",
|
|
1730
|
+
"fontSize": 18,
|
|
1731
|
+
"letterSpacing": "-0.015em"
|
|
1732
|
+
},
|
|
1733
|
+
"type": "typography"
|
|
1718
1734
|
},
|
|
1719
1735
|
"4": {
|
|
1720
|
-
"value":
|
|
1721
|
-
|
|
1736
|
+
"value": {
|
|
1737
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1738
|
+
"fontWeight": 700,
|
|
1739
|
+
"lineHeight": "140%",
|
|
1740
|
+
"fontSize": 14,
|
|
1741
|
+
"letterSpacing": "0em"
|
|
1742
|
+
},
|
|
1743
|
+
"type": "typography"
|
|
1722
1744
|
},
|
|
1723
1745
|
"5": {
|
|
1724
|
-
"value":
|
|
1725
|
-
|
|
1746
|
+
"value": {
|
|
1747
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1748
|
+
"fontWeight": 700,
|
|
1749
|
+
"lineHeight": "140%",
|
|
1750
|
+
"fontSize": 12,
|
|
1751
|
+
"letterSpacing": "0em"
|
|
1752
|
+
},
|
|
1753
|
+
"type": "typography"
|
|
1754
|
+
},
|
|
1755
|
+
"caps": {
|
|
1756
|
+
"value": {
|
|
1757
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1758
|
+
"fontWeight": 600,
|
|
1759
|
+
"lineHeight": "150%",
|
|
1760
|
+
"fontSize": 12,
|
|
1761
|
+
"letterSpacing": "0.02em",
|
|
1762
|
+
"textTransform": "uppercase"
|
|
1763
|
+
},
|
|
1764
|
+
"type": "typography"
|
|
1765
|
+
}
|
|
1766
|
+
},
|
|
1767
|
+
"body": {
|
|
1768
|
+
"small": {
|
|
1769
|
+
"value": {
|
|
1770
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1771
|
+
"fontWeight": 400,
|
|
1772
|
+
"lineHeight": "150%",
|
|
1773
|
+
"fontSize": 12,
|
|
1774
|
+
"letterSpacing": "0.01em"
|
|
1775
|
+
},
|
|
1776
|
+
"type": "typography"
|
|
1777
|
+
},
|
|
1778
|
+
"default": {
|
|
1779
|
+
"value": {
|
|
1780
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1781
|
+
"fontWeight": 400,
|
|
1782
|
+
"lineHeight": "150%",
|
|
1783
|
+
"fontSize": 14,
|
|
1784
|
+
"letterSpacing": "0.01em"
|
|
1785
|
+
},
|
|
1786
|
+
"type": "typography"
|
|
1787
|
+
},
|
|
1788
|
+
"large": {
|
|
1789
|
+
"value": {
|
|
1790
|
+
"fontFamily": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
1791
|
+
"fontWeight": 400,
|
|
1792
|
+
"lineHeight": "150%",
|
|
1793
|
+
"fontSize": 18,
|
|
1794
|
+
"letterSpacing": "0.01em"
|
|
1795
|
+
},
|
|
1796
|
+
"type": "typography"
|
|
1797
|
+
},
|
|
1798
|
+
"mono": {
|
|
1799
|
+
"value": {
|
|
1800
|
+
"fontFamily": "SF Mono, monospace",
|
|
1801
|
+
"fontWeight": 400,
|
|
1802
|
+
"lineHeight": "150%",
|
|
1803
|
+
"fontSize": 14,
|
|
1804
|
+
"letterSpacing": "0em"
|
|
1805
|
+
},
|
|
1806
|
+
"type": "typography"
|
|
1726
1807
|
},
|
|
1808
|
+
"mono-bold": {
|
|
1809
|
+
"value": {
|
|
1810
|
+
"fontFamily": "SF Mono, monospace",
|
|
1811
|
+
"lineHeight": "150%",
|
|
1812
|
+
"fontSize": 14,
|
|
1813
|
+
"fontWeight": 700,
|
|
1814
|
+
"letterSpacing": "0em"
|
|
1815
|
+
},
|
|
1816
|
+
"type": "typography"
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
"rem": {
|
|
1820
|
+
"value": 16,
|
|
1821
|
+
"type": "other",
|
|
1822
|
+
"description": "Use as the base rem value for calculations in Figma Tokens. In production all size values should be in rems, which is modifiable by the user. Since Figma Tokens doesn't support different units, we use this variable to do rem calculations. For our purposes, we're setting the rem value to 16px."
|
|
1823
|
+
},
|
|
1824
|
+
"fontSize": {
|
|
1727
1825
|
"static": {
|
|
1728
1826
|
"0": {
|
|
1729
|
-
"value":
|
|
1827
|
+
"value": 11,
|
|
1730
1828
|
"type": "fontSizes"
|
|
1731
1829
|
},
|
|
1732
1830
|
"1": {
|
|
1733
1831
|
"value": 12,
|
|
1734
1832
|
"type": "fontSizes",
|
|
1735
|
-
"description": "
|
|
1833
|
+
"description": "These static font sizes are non-responsive and are used for body copy, helper text, and other UI text that should not scale with viewport width."
|
|
1736
1834
|
},
|
|
1737
1835
|
"2": {
|
|
1738
1836
|
"value": 14,
|
|
@@ -1747,7 +1845,11 @@
|
|
|
1747
1845
|
"type": "fontSizes"
|
|
1748
1846
|
},
|
|
1749
1847
|
"5": {
|
|
1750
|
-
"value":
|
|
1848
|
+
"value": 28,
|
|
1849
|
+
"type": "fontSizes"
|
|
1850
|
+
},
|
|
1851
|
+
"6": {
|
|
1852
|
+
"value": 40,
|
|
1751
1853
|
"type": "fontSizes"
|
|
1752
1854
|
}
|
|
1753
1855
|
},
|
|
@@ -2238,190 +2340,6 @@
|
|
|
2238
2340
|
}
|
|
2239
2341
|
}
|
|
2240
2342
|
},
|
|
2241
|
-
"lineHeight": {
|
|
2242
|
-
"1": {
|
|
2243
|
-
"value": "110%",
|
|
2244
|
-
"type": "lineHeights",
|
|
2245
|
-
"description": "Use only for display."
|
|
2246
|
-
},
|
|
2247
|
-
"2": {
|
|
2248
|
-
"value": "120%",
|
|
2249
|
-
"type": "lineHeights",
|
|
2250
|
-
"description": "Use for larger headings."
|
|
2251
|
-
},
|
|
2252
|
-
"3": {
|
|
2253
|
-
"value": "130%",
|
|
2254
|
-
"type": "lineHeights",
|
|
2255
|
-
"description": "Use for small and medium sized headings."
|
|
2256
|
-
},
|
|
2257
|
-
"4": {
|
|
2258
|
-
"value": "140%",
|
|
2259
|
-
"type": "lineHeights",
|
|
2260
|
-
"description": "Use for body-sized text"
|
|
2261
|
-
},
|
|
2262
|
-
"5": {
|
|
2263
|
-
"value": "150%",
|
|
2264
|
-
"type": "lineHeights",
|
|
2265
|
-
"description": "Use for body-sized text in long-form reading applications."
|
|
2266
|
-
},
|
|
2267
|
-
"body": {
|
|
2268
|
-
"value": "150%",
|
|
2269
|
-
"type": "lineHeights"
|
|
2270
|
-
},
|
|
2271
|
-
"heading": {
|
|
2272
|
-
"value": "113%",
|
|
2273
|
-
"type": "lineHeights"
|
|
2274
|
-
},
|
|
2275
|
-
"description": {
|
|
2276
|
-
"value": "In production, all units are in %.",
|
|
2277
|
-
"type": "other"
|
|
2278
|
-
},
|
|
2279
|
-
"responsive": {
|
|
2280
|
-
"value": "clamp(1.1em, calc(1.25em + -0.4vw), 1.2em)",
|
|
2281
|
-
"type": "lineHeights",
|
|
2282
|
-
"description": "This is the responsive line height for the responsive type sizes."
|
|
2283
|
-
}
|
|
2284
|
-
},
|
|
2285
|
-
"heading": {
|
|
2286
|
-
"1": {
|
|
2287
|
-
"value": {
|
|
2288
|
-
"fontFamily": "Recoleta",
|
|
2289
|
-
"fontWeight": 400,
|
|
2290
|
-
"lineHeight": "135%",
|
|
2291
|
-
"fontSize": 40,
|
|
2292
|
-
"letterSpacing": "-1%"
|
|
2293
|
-
},
|
|
2294
|
-
"type": "typography"
|
|
2295
|
-
},
|
|
2296
|
-
"2": {
|
|
2297
|
-
"value": {
|
|
2298
|
-
"fontFamily": "SF Pro Text",
|
|
2299
|
-
"fontWeight": 500,
|
|
2300
|
-
"lineHeight": "120%",
|
|
2301
|
-
"fontSize": 32,
|
|
2302
|
-
"letterSpacing": "0%"
|
|
2303
|
-
},
|
|
2304
|
-
"type": "typography"
|
|
2305
|
-
},
|
|
2306
|
-
"3": {
|
|
2307
|
-
"value": {
|
|
2308
|
-
"fontFamily": "SF Pro Text",
|
|
2309
|
-
"fontWeight": 500,
|
|
2310
|
-
"lineHeight": "150%",
|
|
2311
|
-
"fontSize": 19,
|
|
2312
|
-
"letterSpacing": "0%"
|
|
2313
|
-
},
|
|
2314
|
-
"type": "typography"
|
|
2315
|
-
},
|
|
2316
|
-
"4": {
|
|
2317
|
-
"value": {
|
|
2318
|
-
"fontFamily": "SF Pro Text",
|
|
2319
|
-
"fontWeight": 500,
|
|
2320
|
-
"lineHeight": "160%",
|
|
2321
|
-
"fontSize": 14,
|
|
2322
|
-
"letterSpacing": "0%"
|
|
2323
|
-
},
|
|
2324
|
-
"type": "typography"
|
|
2325
|
-
},
|
|
2326
|
-
"5": {
|
|
2327
|
-
"value": {
|
|
2328
|
-
"fontFamily": "SF Pro Text",
|
|
2329
|
-
"fontWeight": 500,
|
|
2330
|
-
"lineHeight": "150%",
|
|
2331
|
-
"fontSize": 12
|
|
2332
|
-
},
|
|
2333
|
-
"type": "typography"
|
|
2334
|
-
},
|
|
2335
|
-
"caps": {
|
|
2336
|
-
"value": {
|
|
2337
|
-
"fontFamily": "SF Pro Text",
|
|
2338
|
-
"fontWeight": 700,
|
|
2339
|
-
"lineHeight": "150%",
|
|
2340
|
-
"fontSize": 12,
|
|
2341
|
-
"letterSpacing": "5%",
|
|
2342
|
-
"textCase": "uppercase"
|
|
2343
|
-
},
|
|
2344
|
-
"type": "typography"
|
|
2345
|
-
}
|
|
2346
|
-
},
|
|
2347
|
-
"fontWeight": {
|
|
2348
|
-
"body": {
|
|
2349
|
-
"value": 400,
|
|
2350
|
-
"type": "fontWeights"
|
|
2351
|
-
},
|
|
2352
|
-
"heading": {
|
|
2353
|
-
"value": 500,
|
|
2354
|
-
"type": "fontWeights"
|
|
2355
|
-
},
|
|
2356
|
-
"regular": {
|
|
2357
|
-
"value": 400,
|
|
2358
|
-
"type": "fontWeights"
|
|
2359
|
-
},
|
|
2360
|
-
"medium": {
|
|
2361
|
-
"value": 500,
|
|
2362
|
-
"type": "fontWeights"
|
|
2363
|
-
},
|
|
2364
|
-
"bold": {
|
|
2365
|
-
"value": 700,
|
|
2366
|
-
"type": "fontWeights"
|
|
2367
|
-
},
|
|
2368
|
-
"light": {
|
|
2369
|
-
"value": 200,
|
|
2370
|
-
"type": "fontWeights"
|
|
2371
|
-
}
|
|
2372
|
-
},
|
|
2373
|
-
"body": {
|
|
2374
|
-
"small": {
|
|
2375
|
-
"value": {
|
|
2376
|
-
"fontFamily": "SF Pro Text",
|
|
2377
|
-
"fontWeight": 400,
|
|
2378
|
-
"lineHeight": "150%",
|
|
2379
|
-
"fontSize": 12
|
|
2380
|
-
},
|
|
2381
|
-
"type": "typography"
|
|
2382
|
-
},
|
|
2383
|
-
"default": {
|
|
2384
|
-
"value": {
|
|
2385
|
-
"fontFamily": "SF Pro Text",
|
|
2386
|
-
"fontWeight": 400,
|
|
2387
|
-
"lineHeight": "150%",
|
|
2388
|
-
"fontSize": 14
|
|
2389
|
-
},
|
|
2390
|
-
"type": "typography"
|
|
2391
|
-
},
|
|
2392
|
-
"large": {
|
|
2393
|
-
"value": {
|
|
2394
|
-
"fontFamily": "SF Pro Text",
|
|
2395
|
-
"fontWeight": 400,
|
|
2396
|
-
"lineHeight": "150%",
|
|
2397
|
-
"fontSize": 20
|
|
2398
|
-
},
|
|
2399
|
-
"type": "typography"
|
|
2400
|
-
},
|
|
2401
|
-
"mono": {
|
|
2402
|
-
"value": {
|
|
2403
|
-
"fontFamily": "SF Mono",
|
|
2404
|
-
"fontWeight": 400,
|
|
2405
|
-
"lineHeight": "150%",
|
|
2406
|
-
"fontSize": 14
|
|
2407
|
-
},
|
|
2408
|
-
"type": "typography"
|
|
2409
|
-
},
|
|
2410
|
-
"mono-bold": {
|
|
2411
|
-
"value": {
|
|
2412
|
-
"fontFamily": "SF Mono",
|
|
2413
|
-
"lineHeight": "150%",
|
|
2414
|
-
"fontSize": 14,
|
|
2415
|
-
"fontWeight": 700
|
|
2416
|
-
},
|
|
2417
|
-
"type": "typography"
|
|
2418
|
-
}
|
|
2419
|
-
},
|
|
2420
|
-
"rem": {
|
|
2421
|
-
"value": 16,
|
|
2422
|
-
"type": "other",
|
|
2423
|
-
"description": "Use as the base rem value for calculations in Figma Tokens. In production all size values should be in rems, which is modifiable by the user. Since Figma Tokens doesn't support different units, we use this variable to do rem calculations. For our purposes, we're setting the rem value to 16px."
|
|
2424
|
-
},
|
|
2425
2343
|
"shadow": {
|
|
2426
2344
|
"1": {
|
|
2427
2345
|
"value": [
|
|
@@ -2519,18 +2437,97 @@
|
|
|
2519
2437
|
"type": "boxShadow"
|
|
2520
2438
|
}
|
|
2521
2439
|
},
|
|
2440
|
+
"lineHeight": {
|
|
2441
|
+
"0": {
|
|
2442
|
+
"value": "100%",
|
|
2443
|
+
"type": "lineHeights",
|
|
2444
|
+
"description": "Use for short text labels"
|
|
2445
|
+
},
|
|
2446
|
+
"1": {
|
|
2447
|
+
"value": "115%",
|
|
2448
|
+
"type": "lineHeights",
|
|
2449
|
+
"description": "Use only for display."
|
|
2450
|
+
},
|
|
2451
|
+
"2": {
|
|
2452
|
+
"value": "125%",
|
|
2453
|
+
"type": "lineHeights",
|
|
2454
|
+
"description": "Use for larger headings."
|
|
2455
|
+
},
|
|
2456
|
+
"3": {
|
|
2457
|
+
"value": "130%",
|
|
2458
|
+
"type": "lineHeights",
|
|
2459
|
+
"description": "Use for small and medium sized headings."
|
|
2460
|
+
},
|
|
2461
|
+
"4": {
|
|
2462
|
+
"value": "140%",
|
|
2463
|
+
"type": "lineHeights",
|
|
2464
|
+
"description": "Use for body-sized text"
|
|
2465
|
+
},
|
|
2466
|
+
"5": {
|
|
2467
|
+
"value": "150%",
|
|
2468
|
+
"type": "lineHeights",
|
|
2469
|
+
"description": "Use for body-sized text in long-form reading applications."
|
|
2470
|
+
},
|
|
2471
|
+
"description": {
|
|
2472
|
+
"value": "In production, all units are in %.",
|
|
2473
|
+
"type": "other"
|
|
2474
|
+
},
|
|
2475
|
+
"responsive": {
|
|
2476
|
+
"value": "clamp(1.1em, calc(1.25em + -0.4vw), 1.2em)",
|
|
2477
|
+
"type": "lineHeights",
|
|
2478
|
+
"description": "This is the responsive line height for the responsive type sizes."
|
|
2479
|
+
}
|
|
2480
|
+
},
|
|
2481
|
+
"fontWeight": {
|
|
2482
|
+
"regular": {
|
|
2483
|
+
"value": 400,
|
|
2484
|
+
"type": "fontWeights"
|
|
2485
|
+
},
|
|
2486
|
+
"medium": {
|
|
2487
|
+
"value": 500,
|
|
2488
|
+
"type": "fontWeights"
|
|
2489
|
+
},
|
|
2490
|
+
"semibold": {
|
|
2491
|
+
"value": 600,
|
|
2492
|
+
"type": "fontWeights"
|
|
2493
|
+
},
|
|
2494
|
+
"bold": {
|
|
2495
|
+
"value": 700,
|
|
2496
|
+
"type": "fontWeights"
|
|
2497
|
+
},
|
|
2498
|
+
"light": {
|
|
2499
|
+
"value": 200,
|
|
2500
|
+
"type": "fontWeights"
|
|
2501
|
+
}
|
|
2502
|
+
},
|
|
2522
2503
|
"letterSpacing": {
|
|
2504
|
+
"tight-3": {
|
|
2505
|
+
"value": "-0.02em",
|
|
2506
|
+
"type": "letterSpacing"
|
|
2507
|
+
},
|
|
2508
|
+
"tight-2": {
|
|
2509
|
+
"value": "-0.015em",
|
|
2510
|
+
"type": "letterSpacing"
|
|
2511
|
+
},
|
|
2512
|
+
"tight-1": {
|
|
2513
|
+
"value": "-0.01em",
|
|
2514
|
+
"type": "letterSpacing"
|
|
2515
|
+
},
|
|
2523
2516
|
"none": {
|
|
2524
2517
|
"value": "0em",
|
|
2525
2518
|
"type": "letterSpacing",
|
|
2526
2519
|
"description": "in Figma, letter spacing values need to be % but in production they need to be expressed in em to work with varable fonts"
|
|
2527
2520
|
},
|
|
2528
|
-
"
|
|
2529
|
-
"value": "
|
|
2521
|
+
"loose-1": {
|
|
2522
|
+
"value": "0.005em",
|
|
2523
|
+
"type": "letterSpacing"
|
|
2524
|
+
},
|
|
2525
|
+
"loose-2": {
|
|
2526
|
+
"value": "0.01em",
|
|
2530
2527
|
"type": "letterSpacing"
|
|
2531
2528
|
},
|
|
2532
|
-
"loose": {
|
|
2533
|
-
"value": "0.
|
|
2529
|
+
"loose-3": {
|
|
2530
|
+
"value": "0.02em",
|
|
2534
2531
|
"type": "letterSpacing"
|
|
2535
2532
|
}
|
|
2536
2533
|
},
|