@@ -86,9 +86,16 @@ exports[`generated tokens CSS core should match 1`] = `
86
86
-- calcite - font - weight - thin : 100 ;
87
87
-- calcite - font - weight - ultralight : 200 ; /* only for Avenir Next World (secondary font family) */
88
88
-- calcite - font - style - italic : italic ; /* used in ratings */
89
+ -- calcite - font - family - sans - serif : sans - serif ; /* Fallback for Avenir Next */
90
+ -- calcite - font - family - monospace : monospace ; /* Fallback for Monaco */
89
91
-- calcite - font - family - monaco : Monaco ;
92
+ -- calcite - font - family - lucida - console : " Lucida Console" ; /* Fallback for Monaco */
93
+ -- calcite - font - family - helvetica - neue : " Helvetica Neue" ; /* Fallback for Avenir Next */
94
+ -- calcite - font - family - consolas : Consolas ; /* Fallback for Monaco */
95
+ -- calcite - font - family - avenir : Avenir ; /* Fallback for Avenir Next */
90
96
-- calcite - font - family - avenir - next - world : " Avenir Next World" ;
91
97
-- calcite - font - family - avenir - next - pro : " Avenir Next LT Pro" ;
98
+ -- calcite - font - family - andale - mono : " Andale Mono" ; /* Fallback for Monaco */
92
99
-- calcite - container - size - 1440 : 1440px ;
93
100
-- calcite - container - size - 1152 : 1152px ;
94
101
-- calcite - container - size - 854 : 854px ;
@@ -438,8 +445,10 @@ exports[`generated tokens CSS global should match 1`] = `
438
445
-- calcite - font - weight - regular : 400 ;
439
446
-- calcite - font - weight - normal : 400 ; /* For backwards compatibility only. This token will be removed from the published tokens in the next major in favor of the more descriptive word "regular" */
440
447
-- calcite - font - weight - light : 300 ; /* For Avenir Next World (secondary font family) */
441
- -- calcite - font - family - code : Monaco ;
442
- -- calcite - font - family : " Avenir Next LT Pro" ;
448
+ -- calcite - font - family - code : Monaco Consolas " Andale Mono" " Lucida Console"
449
+ monospace ; /* Font family for code with fallbacks */
450
+ -- calcite - font - family : " Avenir Next World" " Avenir Next LT Pro" Avenir
451
+ " Helvetica Neue" sans - serif ; /* Primary font with fallbacks */
443
452
-- calcite - container - size - content - fixed : 1440px ; /* only for lg breakpoint fixed grid width */
444
453
-- calcite - container - size - content - fluid : 100 % ; /* for fluid grid widths */
445
454
-- calcite - container - size - gutter : 16px ;
@@ -727,9 +736,16 @@ export const calciteContainerSize768 = "768px";
727
736
export const calciteContainerSize854 = "854px";
728
737
export const calciteContainerSize1152 = "1152px";
729
738
export const calciteContainerSize1440 = "1440px";
739
+ export const calciteFontFamilyAndaleMono = "Andale Mono"; // Fallback for Monaco
730
740
export const calciteFontFamilyAvenirNextPro = "Avenir Next LT Pro";
731
741
export const calciteFontFamilyAvenirNextWorld = "Avenir Next World";
742
+ export const calciteFontFamilyAvenir = "Avenir"; // Fallback for Avenir Next
743
+ export const calciteFontFamilyConsolas = "Consolas"; // Fallback for Monaco
744
+ export const calciteFontFamilyHelveticaNeue = "Helvetica Neue"; // Fallback for Avenir Next
745
+ export const calciteFontFamilyLucidaConsole = "Lucida Console"; // Fallback for Monaco
732
746
export const calciteFontFamilyMonaco = "Monaco";
747
+ export const calciteFontFamilyMonospace = "monospace"; // Fallback for Monaco
748
+ export const calciteFontFamilySansSerif = "sans-serif"; // Fallback for Avenir Next
733
749
export const calciteFontStyleItalic = "italic"; // used in ratings
734
750
export const calciteFontWeightUltralight = "200"; // only for Avenir Next World (secondary font family)
735
751
export const calciteFontWeightThin = "100";
@@ -888,8 +904,8 @@ export const calciteContainerSizeMargin = "24px";
888
904
export const calciteContainerSizeGutter = "16px";
889
905
export const calciteContainerSizeContentFluid = "100%"; // for fluid grid widths
890
906
export const calciteContainerSizeContentFixed = "1440px"; // only for lg breakpoint fixed grid width
891
- export const calciteFontFamily = "Avenir Next LT Pro";
892
- export const calciteFontFamilyCode = "Monaco";
907
+ export const calciteFontFamily = [ "Avenir Next World","Avenir Next LT Pro","Avenir","Helvetica Neue","sans-serif"]; // Primary font with fallbacks
908
+ export const calciteFontFamilyCode = [ "Monaco","Consolas","Andale Mono","Lucida Console","monospace"]; // Font family for code with fallbacks
893
909
export const calciteFontWeightLight = "300"; // For Avenir Next World (secondary font family)
894
910
export const calciteFontWeightNormal = "400"; // For backwards compatibility only. This token will be removed from the published tokens in the next major in favor of the more descriptive word "regular"
895
911
export const calciteFontWeightRegular = "400";
@@ -954,15 +970,15 @@ export const calciteSpacingLg = "14px";
954
970
export const calciteSpacingXl = "16px";
955
971
export const calciteSpacingXxl = "20px";
956
972
export const calciteSpacingXxxl = "32px";
957
- export const calciteTypography = { " fontFamily" :" Avenir Next LT Pro" ," fontSize" :" 14px" ," fontWeight" :" 400" ," letterSpacing" :" 0" ," lineHeight" :" 16px" ," paragraphSpacing" :" 4px" ," textCase" :" none" ," textDecoration" :" none" } ;
973
+ export const calciteTypography = { " fontFamily" :[ " Avenir Next World " , " Avenir Next LT Pro" , " Avenir " , " Helvetica Neue " , " sans-serif " ] ," fontSize" :" 14px" ," fontWeight" :" 400" ," letterSpacing" :" 0" ," lineHeight" :" 16px" ," paragraphSpacing" :" 4px" ," textCase" :" none" ," textDecoration" :" none" } ;
958
974
export const calciteTypographyLightMinus3h = { " fontSize" :" 10px" ," fontWeight" :" 300" ," lineHeight" :" 12px" } ;
959
975
export const calciteTypographyLightMinus2h = { " fontSize" :" 12px" ," fontWeight" :" 300" } ;
960
976
export const calciteTypographyLightMinus1h = { " fontWeight" :" 300" } ;
961
977
export const calciteTypographyLight0h = { " fontSize" :" 16px" ," fontWeight" :" 300" ," lineHeight" :" 20px" } ;
962
978
export const calciteTypographyLight1h = { " fontSize" :" 18px" ," fontWeight" :" 300" ," lineHeight" :" 24px" } ;
963
979
export const calciteTypographyRegularMinus3h = { " lineHeight" :" 12px" ," fontSize" :" 10px" } ;
964
980
export const calciteTypographyRegularMinus2h = { " fontSize" :" 12px" } ;
965
- export const calciteTypographyRegularMinus1h = { " fontFamily" :" Avenir Next LT Pro" ," fontSize" :" 14px" ," fontWeight" :" 400" ," letterSpacing" :" 0" ," lineHeight" :" 16px" ," paragraphSpacing" :" 4px" ," textCase" :" none" ," textDecoration" :" none" } ;
981
+ export const calciteTypographyRegularMinus1h = { " fontFamily" :[ " Avenir Next World " , " Avenir Next LT Pro" , " Avenir " , " Helvetica Neue " , " sans-serif " ] ," fontSize" :" 14px" ," fontWeight" :" 400" ," letterSpacing" :" 0" ," lineHeight" :" 16px" ," paragraphSpacing" :" 4px" ," textCase" :" none" ," textDecoration" :" none" } ;
966
982
export const calciteTypographyRegular0h = { " lineHeight" :" 20px" ," fontSize" :" 16px" } ;
967
983
export const calciteTypographyRegular1h = { " lineHeight" :" 24px" ," fontSize" :" 18px" } ;
968
984
export const calciteTypographyMediumMinus3h = { " fontWeight" :" 500" ," lineHeight" :" 12px" ," fontSize" :" 10px" } ;
@@ -1007,7 +1023,7 @@ export const calciteTypographyHierarchyHeading3 = {"fontWeight":"500","lineHeigh
1007
1023
export const calciteTypographyHierarchyHeading4 = { " fontWeight" :" 500" ," lineHeight" :" 137.5%" ," fontSize" :" 16px" } ;
1008
1024
export const calciteTypographyHierarchyHeading5 = { " fontWeight" :" 500" ," lineHeight" :" 137.5%" } ;
1009
1025
export const calciteTypographyHierarchyBodySnug = { " lineHeight" :" 137.5%" } ;
1010
- export const calciteTypographyHierarchyBody = { " fontFamily" :" Avenir Next LT Pro" ," fontSize" :" 14px" ," fontWeight" :" 400" ," letterSpacing" :" 0" ," lineHeight" :" 16px" ," paragraphSpacing" :" 4px" ," textCase" :" none" ," textDecoration" :" none" } ;
1026
+ export const calciteTypographyHierarchyBody = { " fontFamily" :[ " Avenir Next World " , " Avenir Next LT Pro" , " Avenir " , " Helvetica Neue " , " sans-serif " ] ," fontSize" :" 14px" ," fontWeight" :" 400" ," letterSpacing" :" 0" ," lineHeight" :" 16px" ," paragraphSpacing" :" 4px" ," textCase" :" none" ," textDecoration" :" none" } ;
1011
1027
export const calciteTypographyHierarchyOverline = { " lineHeight" :" 12px" ," textCase" :" uppercase" ," fontWeight" :" 700" } ;
1012
1028
export const calciteTypographyHierarchyCaption = { " lineHeight" :" 137.5%" ," fontSize" :" 12px" } ;
1013
1029
export const calciteZIndexDeep = "-999999";
@@ -1105,8 +1121,10 @@ export const calciteContainerSizeGutter : string;
1105
1121
export const calciteContainerSizeContentFluid : string;
1106
1122
/** only for lg breakpoint fixed grid width */
1107
1123
export const calciteContainerSizeContentFixed : string;
1108
- export const calciteFontFamily : string;
1109
- export const calciteFontFamilyCode : string;
1124
+ /** Primary font with fallbacks */
1125
+ export const calciteFontFamily : string[];
1126
+ /** Font family for code with fallbacks */
1127
+ export const calciteFontFamilyCode : string[];
1110
1128
/** For Avenir Next World (secondary font family) */
1111
1129
export const calciteFontWeightLight : string;
1112
1130
/** For backwards compatibility only. This token will be removed from the published tokens in the next major in favor of the more descriptive word "regular" */
@@ -1180,15 +1198,15 @@ export const calciteSpacingLg : string;
1180
1198
export const calciteSpacingXl : string;
1181
1199
export const calciteSpacingXxl : string;
1182
1200
export const calciteSpacingXxxl : string;
1183
- export const calciteTypography : { fontFamily : string , fontSize : string , fontWeight : string , letterSpacing : string , lineHeight : string , paragraphSpacing : string , textCase : string , textDecoration : string } ;
1201
+ export const calciteTypography : { fontFamily : string [] , fontSize : string , fontWeight : string , letterSpacing : string , lineHeight : string , paragraphSpacing : string , textCase : string , textDecoration : string } ;
1184
1202
export const calciteTypographyLightMinus3h : { fontSize : string , fontWeight : string , lineHeight : string } ;
1185
1203
export const calciteTypographyLightMinus2h : { fontSize : string , fontWeight : string } ;
1186
1204
export const calciteTypographyLightMinus1h : { fontWeight : string } ;
1187
1205
export const calciteTypographyLight0h : { fontSize : string , fontWeight : string , lineHeight : string } ;
1188
1206
export const calciteTypographyLight1h : { fontSize : string , fontWeight : string , lineHeight : string } ;
1189
1207
export const calciteTypographyRegularMinus3h : { lineHeight : string , fontSize : string } ;
1190
1208
export const calciteTypographyRegularMinus2h : { fontSize : string } ;
1191
- export const calciteTypographyRegularMinus1h : { fontFamily : string , fontSize : string , fontWeight : string , letterSpacing : string , lineHeight : string , paragraphSpacing : string , textCase : string , textDecoration : string } ;
1209
+ export const calciteTypographyRegularMinus1h : { fontFamily : string [] , fontSize : string , fontWeight : string , letterSpacing : string , lineHeight : string , paragraphSpacing : string , textCase : string , textDecoration : string } ;
1192
1210
export const calciteTypographyRegular0h : { lineHeight : string , fontSize : string } ;
1193
1211
export const calciteTypographyRegular1h : { lineHeight : string , fontSize : string } ;
1194
1212
export const calciteTypographyMediumMinus3h : { fontWeight : string , lineHeight : string , fontSize : string } ;
@@ -1233,7 +1251,7 @@ export const calciteTypographyHierarchyHeading3 : { fontWeight: string, lineHeig
1233
1251
export const calciteTypographyHierarchyHeading4 : { fontWeight : string , lineHeight : string , fontSize : string } ;
1234
1252
export const calciteTypographyHierarchyHeading5 : { fontWeight : string , lineHeight : string } ;
1235
1253
export const calciteTypographyHierarchyBodySnug : { lineHeight : string } ;
1236
- export const calciteTypographyHierarchyBody : { fontFamily : string , fontSize : string , fontWeight : string , letterSpacing : string , lineHeight : string , paragraphSpacing : string , textCase : string , textDecoration : string } ;
1254
+ export const calciteTypographyHierarchyBody : { fontFamily : string [] , fontSize : string , fontWeight : string , letterSpacing : string , lineHeight : string , paragraphSpacing : string , textCase : string , textDecoration : string } ;
1237
1255
export const calciteTypographyHierarchyOverline : { lineHeight : string , textCase : string , fontWeight : string } ;
1238
1256
export const calciteTypographyHierarchyCaption : { lineHeight : string , fontSize : string } ;
1239
1257
export const calciteZIndexDeep : string;
@@ -1466,9 +1484,23 @@ export const calciteContainerSize768 : string;
1466
1484
export const calciteContainerSize854 : string;
1467
1485
export const calciteContainerSize1152 : string;
1468
1486
export const calciteContainerSize1440 : string;
1487
+ /** Fallback for Monaco */
1488
+ export const calciteFontFamilyAndaleMono : string;
1469
1489
export const calciteFontFamilyAvenirNextPro : string;
1470
1490
export const calciteFontFamilyAvenirNextWorld : string;
1491
+ /** Fallback for Avenir Next */
1492
+ export const calciteFontFamilyAvenir : string;
1493
+ /** Fallback for Monaco */
1494
+ export const calciteFontFamilyConsolas : string;
1495
+ /** Fallback for Avenir Next */
1496
+ export const calciteFontFamilyHelveticaNeue : string;
1497
+ /** Fallback for Monaco */
1498
+ export const calciteFontFamilyLucidaConsole : string;
1471
1499
export const calciteFontFamilyMonaco : string;
1500
+ /** Fallback for Monaco */
1501
+ export const calciteFontFamilyMonospace : string;
1502
+ /** Fallback for Avenir Next */
1503
+ export const calciteFontFamilySansSerif : string;
1472
1504
/** used in ratings */
1473
1505
export const calciteFontStyleItalic : string;
1474
1506
/** only for Avenir Next World (secondary font family) */
@@ -1649,9 +1681,16 @@ $calcite-font-weight-light: 300; // only for Avenir Next World (secondary font f
1649
1681
$calcite-font-weight-thin: 100;
1650
1682
$calcite-font-weight-ultralight: 200; // only for Avenir Next World (secondary font family)
1651
1683
$calcite-font-style-italic: italic; // used in ratings
1684
+ $calcite-font-family-sans-serif: sans-serif; // Fallback for Avenir Next
1685
+ $calcite-font-family-monospace: monospace; // Fallback for Monaco
1652
1686
$calcite-font-family-monaco: Monaco;
1687
+ $calcite-font-family-lucida-console: "Lucida Console"; // Fallback for Monaco
1688
+ $calcite-font-family-helvetica-neue: "Helvetica Neue"; // Fallback for Avenir Next
1689
+ $calcite-font-family-consolas: Consolas; // Fallback for Monaco
1690
+ $calcite-font-family-avenir: Avenir; // Fallback for Avenir Next
1653
1691
$calcite-font-family-avenir-next-world: "Avenir Next World";
1654
1692
$calcite-font-family-avenir-next-pro: "Avenir Next LT Pro";
1693
+ $calcite-font-family-andale-mono: "Andale Mono"; // Fallback for Monaco
1655
1694
$calcite-container-size-1440: 1440px;
1656
1695
$calcite-container-size-1152: 1152px;
1657
1696
$calcite-container-size-854: 854px;
@@ -1994,8 +2033,10 @@ $calcite-font-weight-medium: 500;
1994
2033
$calcite-font-weight-regular: 400;
1995
2034
$calcite-font-weight-normal: 400; // For backwards compatibility only. This token will be removed from the published tokens in the next major in favor of the more descriptive word "regular"
1996
2035
$calcite-font-weight-light: 300; // For Avenir Next World (secondary font family)
1997
- $calcite-font-family-code: Monaco;
1998
- $calcite-font-family: "Avenir Next LT Pro";
2036
+ $calcite-font-family-code: Monaco Consolas "Andale Mono" "Lucida Console"
2037
+ monospace; // Font family for code with fallbacks
2038
+ $calcite-font-family: "Avenir Next World" "Avenir Next LT Pro" Avenir
2039
+ "Helvetica Neue" sans-serif; // Primary font with fallbacks
1999
2040
$calcite-container-size-content-fixed: 1440px; // only for lg breakpoint fixed grid width
2000
2041
$calcite-container-size-content-fluid: 100%; // for fluid grid widths
2001
2042
$calcite-container-size-gutter: 16px;
0 commit comments