@primer/primitives 10.0.0-rc.6cee60d3 → 10.0.0-rc.74fb4d30

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.
Files changed (88) hide show
  1. package/README.md +2 -2
  2. package/dist/build/PrimerStyleDictionary.js +27 -26
  3. package/dist/build/formats/typescriptExportDefinition.js +2 -2
  4. package/dist/build/parsers/w3cJsonParser.js +2 -2
  5. package/dist/build/platforms/css.js +1 -0
  6. package/dist/build/schemas/designToken.js +0 -1
  7. package/dist/build/transformers/durationToCss.js +2 -2
  8. package/dist/build/transformers/index.d.ts +1 -0
  9. package/dist/build/transformers/index.js +1 -0
  10. package/dist/css/base/motion/motion.css +17 -0
  11. package/dist/css/functional/motion/motion.css +4 -3
  12. package/dist/css/functional/themes/dark-colorblind.css +2 -0
  13. package/dist/css/functional/themes/dark-dimmed.css +2 -0
  14. package/dist/css/functional/themes/dark-high-contrast.css +2 -0
  15. package/dist/css/functional/themes/dark-tritanopia.css +2 -0
  16. package/dist/css/functional/themes/dark.css +2 -0
  17. package/dist/css/functional/themes/light-colorblind.css +2 -0
  18. package/dist/css/functional/themes/light-high-contrast.css +2 -0
  19. package/dist/css/functional/themes/light-tritanopia.css +2 -0
  20. package/dist/css/functional/themes/light.css +2 -0
  21. package/dist/css/functional/typography/typography.css +43 -43
  22. package/dist/css/primitives.css +64 -46
  23. package/dist/docs/base/motion/motion.json +205 -0
  24. package/dist/docs/functional/motion/motion.json +18 -3
  25. package/dist/docs/functional/themes/dark-colorblind.json +29 -0
  26. package/dist/docs/functional/themes/dark-dimmed.json +29 -0
  27. package/dist/docs/functional/themes/dark-high-contrast.json +29 -0
  28. package/dist/docs/functional/themes/dark-tritanopia.json +29 -0
  29. package/dist/docs/functional/themes/dark.json +29 -0
  30. package/dist/docs/functional/themes/light-colorblind.json +29 -0
  31. package/dist/docs/functional/themes/light-high-contrast.json +29 -0
  32. package/dist/docs/functional/themes/light-tritanopia.json +29 -0
  33. package/dist/docs/functional/themes/light.json +29 -0
  34. package/dist/fallbacks/base/motion/motion.json +17 -0
  35. package/dist/fallbacks/functional/motion/motion.json +1 -0
  36. package/dist/figma/dimension/dimension.json +518 -518
  37. package/dist/figma/figma.json +26 -26
  38. package/dist/figma/scales/dark-dimmed.json +1787 -1787
  39. package/dist/figma/scales/dark-high-constrast.json +1787 -1787
  40. package/dist/figma/scales/dark.json +1460 -1460
  41. package/dist/figma/scales/light-high-constrast.json +1775 -1775
  42. package/dist/figma/scales/light.json +1447 -1447
  43. package/dist/figma/shadows/dark-colorblind.json +285 -285
  44. package/dist/figma/shadows/dark-dimmed.json +285 -285
  45. package/dist/figma/shadows/dark-high-contrast.json +285 -285
  46. package/dist/figma/shadows/dark-tritanopia.json +285 -285
  47. package/dist/figma/shadows/dark.json +285 -285
  48. package/dist/figma/shadows/light-colorblind.json +254 -254
  49. package/dist/figma/shadows/light-high-contrast.json +254 -254
  50. package/dist/figma/shadows/light-tritanopia.json +254 -254
  51. package/dist/figma/shadows/light.json +254 -254
  52. package/dist/figma/themes/dark-colorblind.json +5146 -5130
  53. package/dist/figma/themes/dark-dimmed.json +5560 -5544
  54. package/dist/figma/themes/dark-high-contrast.json +4323 -4307
  55. package/dist/figma/themes/dark-tritanopia.json +5270 -5254
  56. package/dist/figma/themes/dark.json +5697 -5681
  57. package/dist/figma/themes/light-colorblind.json +5100 -5084
  58. package/dist/figma/themes/light-high-contrast.json +4427 -4411
  59. package/dist/figma/themes/light-tritanopia.json +5171 -5155
  60. package/dist/figma/themes/light.json +5537 -5521
  61. package/dist/figma/typography/typography.json +162 -162
  62. package/dist/internalCss/dark-colorblind.css +2 -0
  63. package/dist/internalCss/dark-dimmed.css +2 -0
  64. package/dist/internalCss/dark-high-contrast.css +2 -0
  65. package/dist/internalCss/dark-tritanopia.css +2 -0
  66. package/dist/internalCss/dark.css +2 -0
  67. package/dist/internalCss/light-colorblind.css +2 -0
  68. package/dist/internalCss/light-high-contrast.css +2 -0
  69. package/dist/internalCss/light-tritanopia.css +2 -0
  70. package/dist/internalCss/light.css +2 -0
  71. package/dist/styleLint/base/motion/motion.json +205 -0
  72. package/dist/styleLint/functional/motion/motion.json +18 -3
  73. package/dist/styleLint/functional/themes/dark-colorblind.json +29 -0
  74. package/dist/styleLint/functional/themes/dark-dimmed.json +29 -0
  75. package/dist/styleLint/functional/themes/dark-high-contrast.json +29 -0
  76. package/dist/styleLint/functional/themes/dark-tritanopia.json +29 -0
  77. package/dist/styleLint/functional/themes/dark.json +29 -0
  78. package/dist/styleLint/functional/themes/light-colorblind.json +29 -0
  79. package/dist/styleLint/functional/themes/light-high-contrast.json +29 -0
  80. package/dist/styleLint/functional/themes/light-tritanopia.json +29 -0
  81. package/dist/styleLint/functional/themes/light.json +29 -0
  82. package/package.json +18 -21
  83. package/src/tokens/base/motion/easing.json5 +26 -0
  84. package/src/tokens/base/motion/timing.json5 +50 -0
  85. package/src/tokens/functional/color/dark/patterns-dark.json5 +12 -0
  86. package/src/tokens/functional/color/light/patterns-light.json5 +13 -1
  87. package/src/tokens/functional/motion/loading.json5 +1 -1
  88. package/src/tokens/functional/motion/patterns.json5 +9 -2
package/README.md CHANGED
@@ -138,10 +138,10 @@ In this case you can create the follwing structure. The `@` will be removed from
138
138
  bgColor: {
139
139
  accent: {
140
140
  '@': {
141
- // values for accent (default)
141
+ // values for bgColor-accent (default)
142
142
  },
143
143
  muted: {
144
- // values for accent-muted
144
+ // values for bgColor-accent-muted
145
145
  },
146
146
  },
147
147
  },
@@ -1,5 +1,5 @@
1
1
  import StyleDictionary from 'style-dictionary';
2
- import { borderToCss, colorToRgbAlpha, colorToHex, colorToHexMix, colorToRgbaFloat, dimensionToRem, dimensionToPixelUnitless, durationToCss, figmaAttributes, fontFamilyToCss, fontFamilyToFigma, fontWeightToNumber, jsonDeprecated, namePathToDotNotation, namePathToCamelCase, namePathToPascalCase, namePathToKebabCase, namePathToSlashNotation, namePathToFigma, shadowToCss, typographyToCss, dimensionToRemPxArray, floatToPixel, floatToPixelUnitless, } from './transformers/index.js';
2
+ import { borderToCss, colorToRgbAlpha, colorToHex, colorToHexMix, colorToRgbaFloat, cubicBezierToCss, dimensionToRem, dimensionToPixelUnitless, durationToCss, figmaAttributes, fontFamilyToCss, fontFamilyToFigma, fontWeightToNumber, jsonDeprecated, namePathToDotNotation, namePathToCamelCase, namePathToPascalCase, namePathToKebabCase, namePathToSlashNotation, namePathToFigma, shadowToCss, typographyToCss, dimensionToRemPxArray, floatToPixel, floatToPixelUnitless, } from './transformers/index.js';
3
3
  import { javascriptCommonJs, javascriptEsm, typescriptExportDefinition, jsonNestedPrefixed, cssCustomMedia, jsonOneDimensional, jsonPostCssFallback, cssAdvanced, jsonFigma, } from './formats/index.js';
4
4
  /**
5
5
  * @name {@link PrimerStyleDictionary}
@@ -52,28 +52,29 @@ PrimerStyleDictionary.registerFormat({
52
52
  * Transformers
53
53
  *
54
54
  */
55
- PrimerStyleDictionary.registerTransform(Object.assign({}, colorToRgbAlpha));
56
- PrimerStyleDictionary.registerTransform(Object.assign({}, colorToRgbaFloat));
57
- PrimerStyleDictionary.registerTransform(Object.assign({}, colorToHexMix));
58
- PrimerStyleDictionary.registerTransform(Object.assign({}, colorToHex));
59
- PrimerStyleDictionary.registerTransform(Object.assign({}, floatToPixel));
60
- PrimerStyleDictionary.registerTransform(Object.assign({}, floatToPixelUnitless));
61
- PrimerStyleDictionary.registerTransform(Object.assign({}, dimensionToRem));
62
- PrimerStyleDictionary.registerTransform(Object.assign({}, dimensionToRemPxArray));
63
- PrimerStyleDictionary.registerTransform(Object.assign({}, dimensionToPixelUnitless));
64
- PrimerStyleDictionary.registerTransform(Object.assign({}, durationToCss));
65
- PrimerStyleDictionary.registerTransform(Object.assign({}, figmaAttributes));
66
- PrimerStyleDictionary.registerTransform(Object.assign({}, jsonDeprecated));
67
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToCamelCase));
68
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToPascalCase));
69
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToDotNotation));
70
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToFigma));
71
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToCamelCase));
72
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToKebabCase));
73
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToSlashNotation));
74
- PrimerStyleDictionary.registerTransform(Object.assign({}, shadowToCss));
75
- PrimerStyleDictionary.registerTransform(Object.assign({}, borderToCss));
76
- PrimerStyleDictionary.registerTransform(Object.assign({}, typographyToCss));
77
- PrimerStyleDictionary.registerTransform(Object.assign({}, fontWeightToNumber));
78
- PrimerStyleDictionary.registerTransform(Object.assign({}, fontFamilyToCss));
79
- PrimerStyleDictionary.registerTransform(Object.assign({}, fontFamilyToFigma));
55
+ PrimerStyleDictionary.registerTransform(colorToRgbAlpha);
56
+ PrimerStyleDictionary.registerTransform(colorToRgbaFloat);
57
+ PrimerStyleDictionary.registerTransform(colorToHexMix);
58
+ PrimerStyleDictionary.registerTransform(colorToHex);
59
+ PrimerStyleDictionary.registerTransform(cubicBezierToCss);
60
+ PrimerStyleDictionary.registerTransform(floatToPixel);
61
+ PrimerStyleDictionary.registerTransform(floatToPixelUnitless);
62
+ PrimerStyleDictionary.registerTransform(dimensionToRem);
63
+ PrimerStyleDictionary.registerTransform(dimensionToRemPxArray);
64
+ PrimerStyleDictionary.registerTransform(dimensionToPixelUnitless);
65
+ PrimerStyleDictionary.registerTransform(durationToCss);
66
+ PrimerStyleDictionary.registerTransform(figmaAttributes);
67
+ PrimerStyleDictionary.registerTransform(jsonDeprecated);
68
+ PrimerStyleDictionary.registerTransform(namePathToCamelCase);
69
+ PrimerStyleDictionary.registerTransform(namePathToPascalCase);
70
+ PrimerStyleDictionary.registerTransform(namePathToDotNotation);
71
+ PrimerStyleDictionary.registerTransform(namePathToFigma);
72
+ PrimerStyleDictionary.registerTransform(namePathToCamelCase);
73
+ PrimerStyleDictionary.registerTransform(namePathToKebabCase);
74
+ PrimerStyleDictionary.registerTransform(namePathToSlashNotation);
75
+ PrimerStyleDictionary.registerTransform(shadowToCss);
76
+ PrimerStyleDictionary.registerTransform(borderToCss);
77
+ PrimerStyleDictionary.registerTransform(typographyToCss);
78
+ PrimerStyleDictionary.registerTransform(fontWeightToNumber);
79
+ PrimerStyleDictionary.registerTransform(fontFamilyToCss);
80
+ PrimerStyleDictionary.registerTransform(fontFamilyToFigma);
@@ -37,9 +37,9 @@ const getTokenType = (tokenTypesPath) => {
37
37
  const designTokenType = readFileSync(resolvePath(tokenTypesPath), { encoding: 'utf-8' });
38
38
  return designTokenType;
39
39
  }
40
- catch (e) {
40
+ catch (error) {
41
41
  // eslint-disable-next-line no-console
42
- throw new Error(`Error trying to load design token type from file "${tokenTypesPath}".`);
42
+ throw new Error(`Error trying to load design token type from file "${tokenTypesPath}". Error: ${error}`);
43
43
  }
44
44
  };
45
45
  /**
@@ -18,8 +18,8 @@ export const w3cJsonParser = {
18
18
  //
19
19
  return JSON5.parse(contents);
20
20
  }
21
- catch (e) {
22
- throw new Error(`Invalid json5 file "${filePath}".`);
21
+ catch (error) {
22
+ throw new Error(`Invalid json5 file "${filePath}". Error: ${error}`);
23
23
  }
24
24
  },
25
25
  };
@@ -23,6 +23,7 @@ export const css = (outputFile, prefix, buildPath, options) => {
23
23
  'name/pathToKebabCase',
24
24
  'color/hex',
25
25
  'color/hexMix',
26
+ 'cubicBezier/css',
26
27
  'dimension/rem',
27
28
  'duration/css',
28
29
  'shadow/css',
@@ -30,7 +30,6 @@ export const designToken = z.record(tokenName, z.lazy(() => {
30
30
  durationToken,
31
31
  stringToken,
32
32
  ]),
33
- // referenceToken,
34
33
  designToken,
35
34
  ]);
36
35
  }));
@@ -13,8 +13,8 @@ export const durationToCss = {
13
13
  transform: (token, _config, options) => {
14
14
  const valueProp = options.usesDtcg ? '$value' : 'value';
15
15
  // throw an error if token value is not a string or does not end with `ms`
16
- if (typeof token[valueProp] !== `string` || !token[valueProp].endsWith(`ms`)) {
17
- throw new Error(`duration token value must be a string with an "ms" unit`);
16
+ if (typeof token[valueProp] !== `string` || !(token[valueProp].endsWith(`ms`) || token[valueProp].endsWith(`s`))) {
17
+ throw new Error(`duration token value must be a string with an "ms" || "s" unit, invalid token: ${token.name} with value: ${token[valueProp]}`);
18
18
  }
19
19
  // get value
20
20
  let value = parseInt(token[valueProp].replace('ms', ''));
@@ -3,6 +3,7 @@ export { colorToHex } from './colorToHex.js';
3
3
  export { colorToHexMix } from './colorToHexMix.js';
4
4
  export { colorToRgbAlpha } from './colorToRgbAlpha.js';
5
5
  export { colorToRgbaFloat } from './colorToRgbaFloat.js';
6
+ export { cubicBezierToCss } from './cubicBezierToCss.js';
6
7
  export { floatToPixel } from './floatToPixel.js';
7
8
  export { floatToPixelUnitless } from './floatToPixel.js';
8
9
  export { dimensionToRem } from './dimensionToRem.js';
@@ -3,6 +3,7 @@ export { colorToHex } from './colorToHex.js';
3
3
  export { colorToHexMix } from './colorToHexMix.js';
4
4
  export { colorToRgbAlpha } from './colorToRgbAlpha.js';
5
5
  export { colorToRgbaFloat } from './colorToRgbaFloat.js';
6
+ export { cubicBezierToCss } from './cubicBezierToCss.js';
6
7
  export { floatToPixel } from './floatToPixel.js';
7
8
  export { floatToPixelUnitless } from './floatToPixel.js';
8
9
  export { dimensionToRem } from './dimensionToRem.js';
@@ -0,0 +1,17 @@
1
+ :root {
2
+ --base-easing-linear: cubic-bezier(0, 0, 1, 1); /* Ideal for non-movement properties, like opacity or background color. */
3
+ --base-easing-easeIn: cubic-bezier(0.7, 0.1, 0.75, 0.9); /* Ideal for movement that starts on the page and ends off the page. */
4
+ --base-easing-easeOut: cubic-bezier(0.16, 1, 0.3, 1); /* Ideal for movement that starts off the page and ends on the page. */
5
+ --base-easing-easeInOut: cubic-bezier(0.6, 0, 0.2, 1); /* Ideal for movement that starts and ends on the page. */
6
+ --base-duration-0: 0ms;
7
+ --base-duration-75: 75ms;
8
+ --base-duration-200: 200ms;
9
+ --base-duration-300: 300ms;
10
+ --base-duration-400: 400ms;
11
+ --base-duration-500: 500ms;
12
+ --base-duration-600: 600ms;
13
+ --base-duration-700: 700ms;
14
+ --base-duration-800: 800ms;
15
+ --base-duration-900: 900ms;
16
+ --base-duration-1000: 1s;
17
+ }
@@ -1,5 +1,6 @@
1
1
  :root {
2
- --motion-skeletonLoader-shimmer-duration-scale: 1s; /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
3
- --motion-spinner-duration-rotation: 1s; /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
4
- --motion-loading-delay-default: 1s; /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
2
+ --motion-loading-delay-default: var(--base-duration-1000); /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
3
+ --motion-spinner-duration-rotation: var(--base-duration-1000); /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
4
+ --motion-spinner-easing-rotation: var(--base-easing-linear); /* The easing curve for the "Spinner" loading indicator rotation */
5
+ --motion-skeletonLoader-shimmer-duration-scale: var(--base-duration-1000); /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
5
6
  }
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
252
252
  --button-invisible-fgColor-rest: #f0f6fc;
253
253
  --button-invisible-fgColor-hover: #f0f6fc;
254
+ --button-invisible-fgColor-active: #f0f6fc;
254
255
  --button-invisible-fgColor-disabled: #656c7699;
255
256
  --button-invisible-iconColor-rest: #9198a1;
256
257
  --button-invisible-iconColor-hover: #9198a1;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
830
831
  --button-invisible-fgColor-rest: #f0f6fc;
831
832
  --button-invisible-fgColor-hover: #f0f6fc;
833
+ --button-invisible-fgColor-active: #f0f6fc;
832
834
  --button-invisible-fgColor-disabled: #656c7699;
833
835
  --button-invisible-iconColor-rest: #9198a1;
834
836
  --button-invisible-iconColor-hover: #9198a1;
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
252
252
  --button-invisible-fgColor-rest: #d1d7e0;
253
253
  --button-invisible-fgColor-hover: #d1d7e0;
254
+ --button-invisible-fgColor-active: #d1d7e0;
254
255
  --button-invisible-fgColor-disabled: #656c76;
255
256
  --button-invisible-iconColor-rest: #b7bdc8;
256
257
  --button-invisible-iconColor-hover: #b7bdc8;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
830
831
  --button-invisible-fgColor-rest: #d1d7e0;
831
832
  --button-invisible-fgColor-hover: #d1d7e0;
833
+ --button-invisible-fgColor-active: #d1d7e0;
832
834
  --button-invisible-fgColor-disabled: #656c76;
833
835
  --button-invisible-iconColor-rest: #b7bdc8;
834
836
  --button-invisible-iconColor-hover: #b7bdc8;
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
252
252
  --button-invisible-fgColor-rest: #ffffff;
253
253
  --button-invisible-fgColor-hover: #ffffff;
254
+ --button-invisible-fgColor-active: #ffffff;
254
255
  --button-invisible-fgColor-disabled: #656c76;
255
256
  --button-invisible-iconColor-rest: #d1d7e0;
256
257
  --button-invisible-iconColor-hover: #d1d7e0;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
830
831
  --button-invisible-fgColor-rest: #ffffff;
831
832
  --button-invisible-fgColor-hover: #ffffff;
833
+ --button-invisible-fgColor-active: #ffffff;
832
834
  --button-invisible-fgColor-disabled: #656c76;
833
835
  --button-invisible-iconColor-rest: #d1d7e0;
834
836
  --button-invisible-iconColor-hover: #d1d7e0;
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
252
252
  --button-invisible-fgColor-rest: #f0f6fc;
253
253
  --button-invisible-fgColor-hover: #f0f6fc;
254
+ --button-invisible-fgColor-active: #f0f6fc;
254
255
  --button-invisible-fgColor-disabled: #656c7699;
255
256
  --button-invisible-iconColor-rest: #9198a1;
256
257
  --button-invisible-iconColor-hover: #9198a1;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
830
831
  --button-invisible-fgColor-rest: #f0f6fc;
831
832
  --button-invisible-fgColor-hover: #f0f6fc;
833
+ --button-invisible-fgColor-active: #f0f6fc;
832
834
  --button-invisible-fgColor-disabled: #656c7699;
833
835
  --button-invisible-iconColor-rest: #9198a1;
834
836
  --button-invisible-iconColor-hover: #9198a1;
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
252
252
  --button-invisible-fgColor-rest: #f0f6fc;
253
253
  --button-invisible-fgColor-hover: #f0f6fc;
254
+ --button-invisible-fgColor-active: #f0f6fc;
254
255
  --button-invisible-fgColor-disabled: #656c7699;
255
256
  --button-invisible-iconColor-rest: #9198a1;
256
257
  --button-invisible-iconColor-hover: #9198a1;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
830
831
  --button-invisible-fgColor-rest: #f0f6fc;
831
832
  --button-invisible-fgColor-hover: #f0f6fc;
833
+ --button-invisible-fgColor-active: #f0f6fc;
832
834
  --button-invisible-fgColor-disabled: #656c7699;
833
835
  --button-invisible-iconColor-rest: #9198a1;
834
836
  --button-invisible-iconColor-hover: #9198a1;
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #0021554d;
252
252
  --button-invisible-fgColor-rest: #25292e;
253
253
  --button-invisible-fgColor-hover: #25292e;
254
+ --button-invisible-fgColor-active: #25292e;
254
255
  --button-invisible-fgColor-disabled: #818b98;
255
256
  --button-invisible-iconColor-rest: #59636e;
256
257
  --button-invisible-iconColor-hover: #59636e;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #0021554d;
830
831
  --button-invisible-fgColor-rest: #25292e;
831
832
  --button-invisible-fgColor-hover: #25292e;
833
+ --button-invisible-fgColor-active: #25292e;
832
834
  --button-invisible-fgColor-disabled: #818b98;
833
835
  --button-invisible-iconColor-rest: #59636e;
834
836
  --button-invisible-iconColor-hover: #59636e;
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #00230b4d;
252
252
  --button-invisible-fgColor-rest: #25292e;
253
253
  --button-invisible-fgColor-hover: #393f46;
254
+ --button-invisible-fgColor-active: #25292e;
254
255
  --button-invisible-fgColor-disabled: #59636e;
255
256
  --button-invisible-iconColor-rest: #454c54;
256
257
  --button-invisible-iconColor-hover: #393f46;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #00230b4d;
830
831
  --button-invisible-fgColor-rest: #25292e;
831
832
  --button-invisible-fgColor-hover: #393f46;
833
+ --button-invisible-fgColor-active: #25292e;
832
834
  --button-invisible-fgColor-disabled: #59636e;
833
835
  --button-invisible-iconColor-rest: #454c54;
834
836
  --button-invisible-iconColor-hover: #393f46;
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #0021554d;
252
252
  --button-invisible-fgColor-rest: #25292e;
253
253
  --button-invisible-fgColor-hover: #25292e;
254
+ --button-invisible-fgColor-active: #25292e;
254
255
  --button-invisible-fgColor-disabled: #818b98;
255
256
  --button-invisible-iconColor-rest: #59636e;
256
257
  --button-invisible-iconColor-hover: #59636e;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #0021554d;
830
831
  --button-invisible-fgColor-rest: #25292e;
831
832
  --button-invisible-fgColor-hover: #25292e;
833
+ --button-invisible-fgColor-active: #25292e;
832
834
  --button-invisible-fgColor-disabled: #818b98;
833
835
  --button-invisible-iconColor-rest: #59636e;
834
836
  --button-invisible-iconColor-hover: #59636e;
@@ -251,6 +251,7 @@
251
251
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #002d114d;
252
252
  --button-invisible-fgColor-rest: #25292e;
253
253
  --button-invisible-fgColor-hover: #25292e;
254
+ --button-invisible-fgColor-active: #25292e;
254
255
  --button-invisible-fgColor-disabled: #818b98;
255
256
  --button-invisible-iconColor-rest: #59636e;
256
257
  --button-invisible-iconColor-hover: #59636e;
@@ -829,6 +830,7 @@
829
830
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #002d114d;
830
831
  --button-invisible-fgColor-rest: #25292e;
831
832
  --button-invisible-fgColor-hover: #25292e;
833
+ --button-invisible-fgColor-active: #25292e;
832
834
  --button-invisible-fgColor-disabled: #818b98;
833
835
  --button-invisible-iconColor-rest: #59636e;
834
836
  --button-invisible-iconColor-hover: #59636e;
@@ -1,48 +1,48 @@
1
1
  :root {
2
- --text-codeInline-size: 0.9285em;
3
- --text-codeBlock-lineHeight: 1.5385;
4
- --text-codeBlock-size: 0.8125rem;
5
- --text-caption-lineHeight: 1.3333;
6
- --text-caption-size: 0.75rem;
7
- --text-body-lineHeight-small: 1.6666;
8
- --text-body-lineHeight-medium: 1.4285;
9
- --text-body-lineHeight-large: 1.5;
10
- --text-body-size-small: 0.75rem;
11
- --text-body-size-medium: 0.875rem;
12
- --text-body-size-large: 1rem;
13
- --text-subtitle-lineHeight: 1.6;
14
- --text-subtitle-size: 1.25rem;
15
- --text-title-lineHeight-small: 1.5;
16
- --text-title-lineHeight-medium: 1.6;
17
- --text-title-lineHeight-large: 1.5;
18
- --text-title-size-small: 1rem;
19
- --text-title-size-medium: 1.25rem;
20
- --text-title-size-large: 2rem;
21
- --text-display-lineHeight: 1.4;
22
- --text-display-size: 2.5rem;
23
- --text-display-lineBoxHeight: 1.4;
24
- --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
25
- --fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
26
- --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
27
2
  --fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
28
- --text-codeInline-weight: var(--base-text-weight-normal);
29
- --text-codeBlock-weight: var(--base-text-weight-normal);
30
- --text-caption-weight: var(--base-text-weight-normal);
31
- --text-body-weight: var(--base-text-weight-normal);
32
- --text-subtitle-weight: var(--base-text-weight-normal);
33
- --text-title-weight-small: var(--base-text-weight-semibold);
34
- --text-title-weight-medium: var(--base-text-weight-semibold);
35
- --text-title-weight-large: var(--base-text-weight-semibold);
3
+ --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
4
+ --fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
5
+ --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
6
+ --text-display-lineBoxHeight: 1.4;
7
+ --text-display-size: 2.5rem;
8
+ --text-display-lineHeight: 1.4;
9
+ --text-title-size-large: 2rem;
10
+ --text-title-size-medium: 1.25rem;
11
+ --text-title-size-small: 1rem;
12
+ --text-title-lineHeight-large: 1.5;
13
+ --text-title-lineHeight-medium: 1.6;
14
+ --text-title-lineHeight-small: 1.5;
15
+ --text-subtitle-size: 1.25rem;
16
+ --text-subtitle-lineHeight: 1.6;
17
+ --text-body-size-large: 1rem;
18
+ --text-body-size-medium: 0.875rem;
19
+ --text-body-size-small: 0.75rem;
20
+ --text-body-lineHeight-large: 1.5;
21
+ --text-body-lineHeight-medium: 1.4285;
22
+ --text-body-lineHeight-small: 1.6666;
23
+ --text-caption-size: 0.75rem;
24
+ --text-caption-lineHeight: 1.3333;
25
+ --text-codeBlock-size: 0.8125rem;
26
+ --text-codeBlock-lineHeight: 1.5385;
27
+ --text-codeInline-size: 0.9285em;
36
28
  --text-display-weight: var(--base-text-weight-medium);
37
- --text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
38
- --text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
39
- --text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements. */
40
- --text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px. */
41
- --text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
42
- --text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
43
- --text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
44
- --text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
45
- --text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
46
- --text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
29
+ --text-title-weight-large: var(--base-text-weight-semibold);
30
+ --text-title-weight-medium: var(--base-text-weight-semibold);
31
+ --text-title-weight-small: var(--base-text-weight-semibold);
32
+ --text-subtitle-weight: var(--base-text-weight-normal);
33
+ --text-body-weight: var(--base-text-weight-normal);
34
+ --text-caption-weight: var(--base-text-weight-normal);
35
+ --text-codeBlock-weight: var(--base-text-weight-normal);
36
+ --text-codeInline-weight: var(--base-text-weight-normal);
47
37
  --text-display-shorthand: var(--text-display-weight) var(--text-display-size) / var(--text-display-lineHeight) var(--fontStack-sansSerifDisplay); /* Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports. */
38
+ --text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
39
+ --text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
40
+ --text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
41
+ --text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
42
+ --text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
43
+ --text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
44
+ --text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px. */
45
+ --text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements. */
46
+ --text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
47
+ --text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
48
48
  }
@@ -1,3 +1,20 @@
1
+ :root {
2
+ --base-easing-linear: cubic-bezier(0, 0, 1, 1); /* Ideal for non-movement properties, like opacity or background color. */
3
+ --base-easing-easeIn: cubic-bezier(0.7, 0.1, 0.75, 0.9); /* Ideal for movement that starts on the page and ends off the page. */
4
+ --base-easing-easeOut: cubic-bezier(0.16, 1, 0.3, 1); /* Ideal for movement that starts off the page and ends on the page. */
5
+ --base-easing-easeInOut: cubic-bezier(0.6, 0, 0.2, 1); /* Ideal for movement that starts and ends on the page. */
6
+ --base-duration-0: 0ms;
7
+ --base-duration-75: 75ms;
8
+ --base-duration-200: 200ms;
9
+ --base-duration-300: 300ms;
10
+ --base-duration-400: 400ms;
11
+ --base-duration-500: 500ms;
12
+ --base-duration-600: 600ms;
13
+ --base-duration-700: 700ms;
14
+ --base-duration-800: 800ms;
15
+ --base-duration-900: 900ms;
16
+ --base-duration-1000: 1s;
17
+ }
1
18
  :root {
2
19
  --base-size-2: 0.125rem;
3
20
  --base-size-4: 0.25rem;
@@ -26,9 +43,10 @@
26
43
  --base-text-weight-semibold: 600;
27
44
  }
28
45
  :root {
29
- --motion-skeletonLoader-shimmer-duration-scale: 1s; /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
30
- --motion-spinner-duration-rotation: 1s; /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
31
- --motion-loading-delay-default: 1s; /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
46
+ --motion-loading-delay-default: var(--base-duration-1000); /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
47
+ --motion-spinner-duration-rotation: var(--base-duration-1000); /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
48
+ --motion-spinner-easing-rotation: var(--base-easing-linear); /* The easing curve for the "Spinner" loading indicator rotation */
49
+ --motion-skeletonLoader-shimmer-duration-scale: var(--base-duration-1000); /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
32
50
  }
33
51
  :root {
34
52
  --boxShadow-thin: inset 0 0 0 max(1px, 0.0625rem); /* Thin shadow for borders */
@@ -136,50 +154,50 @@
136
154
  --overlay-offset: 0.25rem;
137
155
  }
138
156
  :root {
139
- --text-codeInline-size: 0.9285em;
140
- --text-codeBlock-lineHeight: 1.5385;
141
- --text-codeBlock-size: 0.8125rem;
142
- --text-caption-lineHeight: 1.3333;
143
- --text-caption-size: 0.75rem;
144
- --text-body-lineHeight-small: 1.6666;
145
- --text-body-lineHeight-medium: 1.4285;
146
- --text-body-lineHeight-large: 1.5;
147
- --text-body-size-small: 0.75rem;
148
- --text-body-size-medium: 0.875rem;
149
- --text-body-size-large: 1rem;
150
- --text-subtitle-lineHeight: 1.6;
151
- --text-subtitle-size: 1.25rem;
152
- --text-title-lineHeight-small: 1.5;
153
- --text-title-lineHeight-medium: 1.6;
154
- --text-title-lineHeight-large: 1.5;
155
- --text-title-size-small: 1rem;
156
- --text-title-size-medium: 1.25rem;
157
- --text-title-size-large: 2rem;
158
- --text-display-lineHeight: 1.4;
159
- --text-display-size: 2.5rem;
160
- --text-display-lineBoxHeight: 1.4;
161
- --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
162
- --fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
163
- --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
164
157
  --fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
165
- --text-codeInline-weight: var(--base-text-weight-normal);
166
- --text-codeBlock-weight: var(--base-text-weight-normal);
167
- --text-caption-weight: var(--base-text-weight-normal);
168
- --text-body-weight: var(--base-text-weight-normal);
169
- --text-subtitle-weight: var(--base-text-weight-normal);
170
- --text-title-weight-small: var(--base-text-weight-semibold);
171
- --text-title-weight-medium: var(--base-text-weight-semibold);
172
- --text-title-weight-large: var(--base-text-weight-semibold);
158
+ --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
159
+ --fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
160
+ --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
161
+ --text-display-lineBoxHeight: 1.4;
162
+ --text-display-size: 2.5rem;
163
+ --text-display-lineHeight: 1.4;
164
+ --text-title-size-large: 2rem;
165
+ --text-title-size-medium: 1.25rem;
166
+ --text-title-size-small: 1rem;
167
+ --text-title-lineHeight-large: 1.5;
168
+ --text-title-lineHeight-medium: 1.6;
169
+ --text-title-lineHeight-small: 1.5;
170
+ --text-subtitle-size: 1.25rem;
171
+ --text-subtitle-lineHeight: 1.6;
172
+ --text-body-size-large: 1rem;
173
+ --text-body-size-medium: 0.875rem;
174
+ --text-body-size-small: 0.75rem;
175
+ --text-body-lineHeight-large: 1.5;
176
+ --text-body-lineHeight-medium: 1.4285;
177
+ --text-body-lineHeight-small: 1.6666;
178
+ --text-caption-size: 0.75rem;
179
+ --text-caption-lineHeight: 1.3333;
180
+ --text-codeBlock-size: 0.8125rem;
181
+ --text-codeBlock-lineHeight: 1.5385;
182
+ --text-codeInline-size: 0.9285em;
173
183
  --text-display-weight: var(--base-text-weight-medium);
174
- --text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
175
- --text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
176
- --text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements. */
177
- --text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px. */
178
- --text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
179
- --text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
180
- --text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
181
- --text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
182
- --text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
183
- --text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
184
+ --text-title-weight-large: var(--base-text-weight-semibold);
185
+ --text-title-weight-medium: var(--base-text-weight-semibold);
186
+ --text-title-weight-small: var(--base-text-weight-semibold);
187
+ --text-subtitle-weight: var(--base-text-weight-normal);
188
+ --text-body-weight: var(--base-text-weight-normal);
189
+ --text-caption-weight: var(--base-text-weight-normal);
190
+ --text-codeBlock-weight: var(--base-text-weight-normal);
191
+ --text-codeInline-weight: var(--base-text-weight-normal);
184
192
  --text-display-shorthand: var(--text-display-weight) var(--text-display-size) / var(--text-display-lineHeight) var(--fontStack-sansSerifDisplay); /* Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports. */
193
+ --text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
194
+ --text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
195
+ --text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
196
+ --text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
197
+ --text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
198
+ --text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
199
+ --text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px. */
200
+ --text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements. */
201
+ --text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
202
+ --text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
185
203
  }