@atlaskit/tokens 8.2.0 → 8.4.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/cjs/artifacts/generated-pairs.js +2 -2
  3. package/dist/cjs/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
  4. package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
  5. package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +2 -2
  6. package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +2 -2
  7. package/dist/cjs/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
  8. package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
  9. package/dist/cjs/artifacts/token-default-values.js +21 -1
  10. package/dist/cjs/artifacts/token-names.js +21 -1
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +449 -9
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +449 -9
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +449 -9
  14. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +449 -9
  15. package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +449 -9
  16. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +449 -9
  17. package/dist/cjs/enable-global-theme.js +1 -1
  18. package/dist/cjs/entry-points/token-metadata.codegen.js +105 -5
  19. package/dist/cjs/get-theme-html-attrs.js +1 -1
  20. package/dist/cjs/get-theme-styles.js +1 -1
  21. package/dist/cjs/set-global-theme.js +3 -2
  22. package/dist/cjs/theme-config.js +6 -1
  23. package/dist/es2019/artifacts/generated-pairs.js +2 -2
  24. package/dist/es2019/artifacts/themes/atlassian-dark-increased-contrast.js +21 -1
  25. package/dist/es2019/artifacts/themes/atlassian-dark.js +21 -1
  26. package/dist/es2019/artifacts/themes/atlassian-legacy-dark.js +21 -1
  27. package/dist/es2019/artifacts/themes/atlassian-legacy-light.js +21 -1
  28. package/dist/es2019/artifacts/themes/atlassian-light-increased-contrast.js +21 -1
  29. package/dist/es2019/artifacts/themes/atlassian-light.js +21 -1
  30. package/dist/es2019/artifacts/token-default-values.js +21 -1
  31. package/dist/es2019/artifacts/token-names.js +21 -1
  32. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +449 -9
  33. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +449 -9
  34. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +449 -9
  35. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +449 -9
  36. package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +449 -9
  37. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +449 -9
  38. package/dist/es2019/enable-global-theme.js +1 -1
  39. package/dist/es2019/entry-points/token-metadata.codegen.js +105 -5
  40. package/dist/es2019/get-theme-html-attrs.js +1 -1
  41. package/dist/es2019/get-theme-styles.js +1 -1
  42. package/dist/es2019/set-global-theme.js +2 -1
  43. package/dist/es2019/theme-config.js +6 -1
  44. package/dist/esm/artifacts/generated-pairs.js +2 -2
  45. package/dist/esm/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
  46. package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
  47. package/dist/esm/artifacts/themes/atlassian-legacy-dark.js +2 -2
  48. package/dist/esm/artifacts/themes/atlassian-legacy-light.js +2 -2
  49. package/dist/esm/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
  50. package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
  51. package/dist/esm/artifacts/token-default-values.js +21 -1
  52. package/dist/esm/artifacts/token-names.js +21 -1
  53. package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +449 -9
  54. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +449 -9
  55. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +449 -9
  56. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +449 -9
  57. package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +449 -9
  58. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +449 -9
  59. package/dist/esm/enable-global-theme.js +1 -1
  60. package/dist/esm/entry-points/token-metadata.codegen.js +105 -5
  61. package/dist/esm/get-theme-html-attrs.js +1 -1
  62. package/dist/esm/get-theme-styles.js +1 -1
  63. package/dist/esm/set-global-theme.js +3 -2
  64. package/dist/esm/theme-config.js +6 -1
  65. package/dist/types/artifacts/generated-pairs.d.ts +1 -1
  66. package/dist/types/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
  67. package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
  68. package/dist/types/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
  69. package/dist/types/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
  70. package/dist/types/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
  71. package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
  72. package/dist/types/artifacts/token-default-values.d.ts +21 -1
  73. package/dist/types/artifacts/token-names.d.ts +41 -1
  74. package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
  75. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  76. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  77. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  78. package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
  79. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  80. package/dist/types/artifacts/types-internal.d.ts +2 -2
  81. package/dist/types/artifacts/types.d.ts +2 -2
  82. package/dist/types/entry-points/css-type-schema.codegen.d.ts +5 -5
  83. package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
  84. package/dist/types/theme-config.d.ts +2 -1
  85. package/dist/types/types.d.ts +42 -4
  86. package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +1 -1
  87. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
  88. package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
  89. package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
  90. package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
  91. package/dist/types-ts4.5/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
  92. package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
  93. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +21 -1
  94. package/dist/types-ts4.5/artifacts/token-names.d.ts +41 -1
  95. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
  96. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  97. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  98. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  99. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
  100. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  101. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  102. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  103. package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +5 -5
  104. package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
  105. package/dist/types-ts4.5/theme-config.d.ts +2 -1
  106. package/dist/types-ts4.5/types.d.ts +42 -4
  107. package/figma/atlassian-dark-increased-contrast.json +180 -0
  108. package/figma/atlassian-dark.json +180 -0
  109. package/figma/atlassian-legacy-dark.json +180 -0
  110. package/figma/atlassian-legacy-light.json +180 -0
  111. package/figma/atlassian-light-increased-contrast.json +180 -0
  112. package/figma/atlassian-light.json +180 -0
  113. package/package.json +6 -3
@@ -9,7 +9,7 @@ exports.tokens = void 0;
9
9
  *
10
10
  * Metadata for generation of of `@atlaskit/ads-mcp` and https://atlassian.design/llms-tokens.txt.
11
11
  *
12
- * @codegen <<SignedSource::b641ae01a1e0cba6256542b047415d41>>
12
+ * @codegen <<SignedSource::d2c7d478f4be0c1217d656e8c1c6ce83>>
13
13
  * @codegenCommand yarn build tokens
14
14
  */
15
15
 
@@ -140,9 +140,14 @@ var tokens = exports.tokens = [{
140
140
  exampleValue: '#1868DB'
141
141
  }, {
142
142
  name: 'color.text.danger',
143
- path: ['color', 'text', 'danger'],
143
+ path: ['color', 'text', 'danger', '[default]'],
144
144
  description: 'Use for critical text, such as input field error messaging.',
145
145
  exampleValue: '#AE2E24'
146
+ }, {
147
+ name: 'color.text.danger.bolder',
148
+ path: ['color', 'text', 'danger', 'bolder'],
149
+ description: 'Use for text on top of danger semantic labels to ensure accessibility and desired visual appearance.',
150
+ exampleValue: '#5D1F1A'
146
151
  }, {
147
152
  name: 'color.text.warning',
148
153
  path: ['color', 'text', 'warning', '[default]'],
@@ -153,21 +158,41 @@ var tokens = exports.tokens = [{
153
158
  path: ['color', 'text', 'warning', 'inverse'],
154
159
  description: 'Use for text when on bold warning backgrounds.',
155
160
  exampleValue: '#292A2E'
161
+ }, {
162
+ name: 'color.text.warning.bolder',
163
+ path: ['color', 'text', 'warning', 'bolder'],
164
+ description: 'Use for text on top of warning semantic labels to ensure accessibility and desired visual appearance.',
165
+ exampleValue: '#693200'
156
166
  }, {
157
167
  name: 'color.text.success',
158
- path: ['color', 'text', 'success'],
168
+ path: ['color', 'text', 'success', '[default]'],
159
169
  description: 'Use for text to communicate a favorable outcome, such as input field success messaging.',
160
170
  exampleValue: '#4C6B1F'
171
+ }, {
172
+ name: 'color.text.success.bolder',
173
+ path: ['color', 'text', 'success', 'bolder'],
174
+ description: 'Use for text on top of success semantic labels to ensure accessibility and desired visual appearance.',
175
+ exampleValue: '#37471F'
161
176
  }, {
162
177
  name: 'color.text.discovery',
163
- path: ['color', 'text', 'discovery'],
178
+ path: ['color', 'text', 'discovery', '[default]'],
164
179
  description: 'Use for text to emphasize change or something new, such as in new lozenges.',
165
180
  exampleValue: '#803FA5'
181
+ }, {
182
+ name: 'color.text.discovery.bolder',
183
+ path: ['color', 'text', 'discovery', 'bolder'],
184
+ description: 'Use for text on top of discovery semantic labels to ensure accessibility and desired visual appearance.',
185
+ exampleValue: '#48245D'
166
186
  }, {
167
187
  name: 'color.text.information',
168
- path: ['color', 'text', 'information'],
188
+ path: ['color', 'text', 'information', '[default]'],
169
189
  description: 'Use for informative text or to communicate something is in progress, such as in-progress lozenges.',
170
190
  exampleValue: '#1558BC'
191
+ }, {
192
+ name: 'color.text.information.bolder',
193
+ path: ['color', 'text', 'information', 'bolder'],
194
+ description: 'Use for text on top of information semantic labels to ensure accessibility and desired visual appearance.',
195
+ exampleValue: '#123263'
171
196
  }, {
172
197
  name: 'color.text.subtlest',
173
198
  path: ['color', 'text', 'subtlest'],
@@ -1198,6 +1223,21 @@ var tokens = exports.tokens = [{
1198
1223
  path: ['color', 'background', 'danger', '[default]', 'pressed'],
1199
1224
  description: 'Pressed state for color.background.danger',
1200
1225
  exampleValue: '#FFB8B2'
1226
+ }, {
1227
+ name: 'color.background.danger.subtler',
1228
+ path: ['color', 'background', 'danger', 'subtler', '[default]'],
1229
+ description: 'Use for backgrounds of danger lozenges and badges to ensure accessibility and desired visual appearance.',
1230
+ exampleValue: '#FFD5D2'
1231
+ }, {
1232
+ name: 'color.background.danger.subtler.hovered',
1233
+ path: ['color', 'background', 'danger', 'subtler', 'hovered'],
1234
+ description: 'Hovered state of color.background.danger.subtler',
1235
+ exampleValue: '#FFB8B2'
1236
+ }, {
1237
+ name: 'color.background.danger.subtler.pressed',
1238
+ path: ['color', 'background', 'danger', 'subtler', 'pressed'],
1239
+ description: 'Pressed state of color.background.danger.subtler',
1240
+ exampleValue: '#FD9891'
1201
1241
  }, {
1202
1242
  name: 'color.background.danger.bold',
1203
1243
  path: ['color', 'background', 'danger', 'bold', '[default]'],
@@ -1228,6 +1268,21 @@ var tokens = exports.tokens = [{
1228
1268
  path: ['color', 'background', 'warning', '[default]', 'pressed'],
1229
1269
  description: 'Pressed state for color.background.warning',
1230
1270
  exampleValue: '#FBD779'
1271
+ }, {
1272
+ name: 'color.background.warning.subtler',
1273
+ path: ['color', 'background', 'warning', 'subtler', '[default]'],
1274
+ description: 'Use for backgrounds of warning lozenges and badges to ensure accessibility and desired visual appearance.',
1275
+ exampleValue: '#FCE4A6'
1276
+ }, {
1277
+ name: 'color.background.warning.subtler.hovered',
1278
+ path: ['color', 'background', 'warning', 'subtler', 'hovered'],
1279
+ description: 'Hovered state of color.background.warning.subtler',
1280
+ exampleValue: '#FBD779'
1281
+ }, {
1282
+ name: 'color.background.warning.subtler.pressed',
1283
+ path: ['color', 'background', 'warning', 'subtler', 'pressed'],
1284
+ description: 'Pressed state of color.background.warning.subtler',
1285
+ exampleValue: '#FBC828'
1231
1286
  }, {
1232
1287
  name: 'color.background.warning.bold',
1233
1288
  path: ['color', 'background', 'warning', 'bold', '[default]'],
@@ -1258,6 +1313,21 @@ var tokens = exports.tokens = [{
1258
1313
  path: ['color', 'background', 'success', '[default]', 'pressed'],
1259
1314
  description: 'Pressed state for color.background.success',
1260
1315
  exampleValue: '#BDE97C'
1316
+ }, {
1317
+ name: 'color.background.success.subtler',
1318
+ path: ['color', 'background', 'success', 'subtler', '[default]'],
1319
+ description: 'Use for backgrounds of success lozenges and badges to ensure accessibility and desired visual appearance.',
1320
+ exampleValue: '#D3F1A7'
1321
+ }, {
1322
+ name: 'color.background.success.subtler.hovered',
1323
+ path: ['color', 'background', 'success', 'subtler', 'hovered'],
1324
+ description: 'Hovered state of color.background.success.subtler',
1325
+ exampleValue: '#BDE97C'
1326
+ }, {
1327
+ name: 'color.background.success.subtler.pressed',
1328
+ path: ['color', 'background', 'success', 'subtler', 'pressed'],
1329
+ description: 'Pressed state of color.background.success.subtler',
1330
+ exampleValue: '#B3DF72'
1261
1331
  }, {
1262
1332
  name: 'color.background.success.bold',
1263
1333
  path: ['color', 'background', 'success', 'bold', '[default]'],
@@ -1288,6 +1358,21 @@ var tokens = exports.tokens = [{
1288
1358
  path: ['color', 'background', 'discovery', '[default]', 'pressed'],
1289
1359
  description: 'Pressed state for color.background.discovery',
1290
1360
  exampleValue: '#E3BDFA'
1361
+ }, {
1362
+ name: 'color.background.discovery.subtler',
1363
+ path: ['color', 'background', 'discovery', 'subtler', '[default]'],
1364
+ description: 'Use for backgrounds of discovery lozenges and badges to ensure accessibility and desired visual appearance.',
1365
+ exampleValue: '#EED7FC'
1366
+ }, {
1367
+ name: 'color.background.discovery.subtler.hovered',
1368
+ path: ['color', 'background', 'discovery', 'subtler', 'hovered'],
1369
+ description: 'Hovered state of color.background.discovery.subtler',
1370
+ exampleValue: '#E3BDFA'
1371
+ }, {
1372
+ name: 'color.background.discovery.subtler.pressed',
1373
+ path: ['color', 'background', 'discovery', 'subtler', 'pressed'],
1374
+ description: 'Pressed state of color.background.discovery.subtler',
1375
+ exampleValue: '#D8A0F7'
1291
1376
  }, {
1292
1377
  name: 'color.background.discovery.bold',
1293
1378
  path: ['color', 'background', 'discovery', 'bold', '[default]'],
@@ -1318,6 +1403,21 @@ var tokens = exports.tokens = [{
1318
1403
  path: ['color', 'background', 'information', '[default]', 'pressed'],
1319
1404
  description: 'Pressed state of color.background.information',
1320
1405
  exampleValue: '#ADCBFB'
1406
+ }, {
1407
+ name: 'color.background.information.subtler',
1408
+ path: ['color', 'background', 'information', 'subtler', '[default]'],
1409
+ description: 'Use for backgrounds of information lozenges and badges to ensure accessibility and desired visual appearance.',
1410
+ exampleValue: '#CFE1FD'
1411
+ }, {
1412
+ name: 'color.background.information.subtler.hovered',
1413
+ path: ['color', 'background', 'information', 'subtler', 'hovered'],
1414
+ description: 'Hovered state of color.background.information.subtler',
1415
+ exampleValue: '#ADCBFB'
1416
+ }, {
1417
+ name: 'color.background.information.subtler.pressed',
1418
+ path: ['color', 'background', 'information', 'subtler', 'pressed'],
1419
+ description: 'Pressed state of color.background.information.subtler',
1420
+ exampleValue: '#8FB8F6'
1321
1421
  }, {
1322
1422
  name: 'color.background.information.bold',
1323
1423
  path: ['color', 'background', 'information', 'bold', '[default]'],
@@ -42,7 +42,7 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
42
42
  _ref$contrastMode = _ref.contrastMode,
43
43
  contrastMode = _ref$contrastMode === void 0 ? _themeConfig.themeStateDefaults['contrastMode'] : _ref$contrastMode,
44
44
  _ref$shape = _ref.shape,
45
- shape = _ref$shape === void 0 ? _themeConfig.themeStateDefaults['shape'] : _ref$shape,
45
+ shape = _ref$shape === void 0 ? _themeConfig.themeStateDefaults['shape']() : _ref$shape,
46
46
  _ref$spacing = _ref.spacing,
47
47
  spacing = _ref$spacing === void 0 ? _themeConfig.themeStateDefaults['spacing'] : _ref$spacing,
48
48
  _ref$typography = _ref.typography,
@@ -53,7 +53,7 @@ var getThemeStyles = /*#__PURE__*/function () {
53
53
  contrastMode: (preferences === null || preferences === void 0 ? void 0 : preferences.contrastMode) || _themeConfig.themeStateDefaults['contrastMode'],
54
54
  dark: (preferences === null || preferences === void 0 ? void 0 : preferences.dark) || _themeConfig.themeStateDefaults['dark'],
55
55
  light: (preferences === null || preferences === void 0 ? void 0 : preferences.light) || _themeConfig.themeStateDefaults['light'],
56
- shape: (preferences === null || preferences === void 0 ? void 0 : preferences.shape) || _themeConfig.themeStateDefaults['shape'],
56
+ shape: (preferences === null || preferences === void 0 ? void 0 : preferences.shape) || _themeConfig.themeStateDefaults['shape'](),
57
57
  spacing: (preferences === null || preferences === void 0 ? void 0 : preferences.spacing) || _themeConfig.themeStateDefaults['spacing'],
58
58
  typography: (preferences === null || preferences === void 0 ? void 0 : preferences.typography) || _themeConfig.themeStateDefaults['typography']()
59
59
  };
@@ -83,8 +83,9 @@ var setGlobalTheme = /*#__PURE__*/function () {
83
83
  nextThemeState = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
84
84
  themeLoader = _args3.length > 1 ? _args3[1] : undefined;
85
85
  _ref2 = typeof nextThemeState === 'function' ? nextThemeState(_objectSpread(_objectSpread({}, _themeConfig.themeStateDefaults), {}, {
86
- typography: _themeConfig.themeStateDefaults['typography']()
87
- }, (0, _getGlobalTheme.default)())) : nextThemeState, _ref2$colorMode = _ref2.colorMode, colorMode = _ref2$colorMode === void 0 ? _themeConfig.themeStateDefaults['colorMode'] : _ref2$colorMode, _ref2$contrastMode = _ref2.contrastMode, contrastMode = _ref2$contrastMode === void 0 ? _themeConfig.themeStateDefaults['contrastMode'] : _ref2$contrastMode, _ref2$dark = _ref2.dark, dark = _ref2$dark === void 0 ? _themeConfig.themeStateDefaults['dark'] : _ref2$dark, _ref2$light = _ref2.light, light = _ref2$light === void 0 ? _themeConfig.themeStateDefaults['light'] : _ref2$light, _ref2$shape = _ref2.shape, shape = _ref2$shape === void 0 ? _themeConfig.themeStateDefaults['shape'] : _ref2$shape, _ref2$spacing = _ref2.spacing, spacing = _ref2$spacing === void 0 ? _themeConfig.themeStateDefaults['spacing'] : _ref2$spacing, _ref2$typography = _ref2.typography, typography = _ref2$typography === void 0 ? _themeConfig.themeStateDefaults['typography']() : _ref2$typography, _ref2$UNSAFE_themeOpt = _ref2.UNSAFE_themeOptions, UNSAFE_themeOptions = _ref2$UNSAFE_themeOpt === void 0 ? _themeConfig.themeStateDefaults['UNSAFE_themeOptions'] : _ref2$UNSAFE_themeOpt; // CLEANUP: Remove. This blocks application of increased contrast themes
86
+ typography: _themeConfig.themeStateDefaults['typography'](),
87
+ shape: _themeConfig.themeStateDefaults['shape']()
88
+ }, (0, _getGlobalTheme.default)())) : nextThemeState, _ref2$colorMode = _ref2.colorMode, colorMode = _ref2$colorMode === void 0 ? _themeConfig.themeStateDefaults['colorMode'] : _ref2$colorMode, _ref2$contrastMode = _ref2.contrastMode, contrastMode = _ref2$contrastMode === void 0 ? _themeConfig.themeStateDefaults['contrastMode'] : _ref2$contrastMode, _ref2$dark = _ref2.dark, dark = _ref2$dark === void 0 ? _themeConfig.themeStateDefaults['dark'] : _ref2$dark, _ref2$light = _ref2.light, light = _ref2$light === void 0 ? _themeConfig.themeStateDefaults['light'] : _ref2$light, _ref2$shape = _ref2.shape, shape = _ref2$shape === void 0 ? _themeConfig.themeStateDefaults['shape']() : _ref2$shape, _ref2$spacing = _ref2.spacing, spacing = _ref2$spacing === void 0 ? _themeConfig.themeStateDefaults['spacing'] : _ref2$spacing, _ref2$typography = _ref2.typography, typography = _ref2$typography === void 0 ? _themeConfig.themeStateDefaults['typography']() : _ref2$typography, _ref2$UNSAFE_themeOpt = _ref2.UNSAFE_themeOptions, UNSAFE_themeOptions = _ref2$UNSAFE_themeOpt === void 0 ? _themeConfig.themeStateDefaults['UNSAFE_themeOptions'] : _ref2$UNSAFE_themeOpt; // CLEANUP: Remove. This blocks application of increased contrast themes
88
89
  // without the feature flag enabled.
89
90
  if (!(0, _platformFeatureFlags.fg)('platform_increased-contrast-themes')) {
90
91
  if (light === 'light-increased-contrast') {
@@ -220,7 +220,12 @@ var themeStateDefaults = exports.themeStateDefaults = {
220
220
  contrastMode: 'auto',
221
221
  dark: 'dark',
222
222
  light: 'light',
223
- shape: undefined,
223
+ shape: function shape() {
224
+ if ((0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default')) {
225
+ return 'shape';
226
+ }
227
+ return undefined;
228
+ },
224
229
  spacing: 'spacing',
225
230
  typography: function typography() {
226
231
  if ((0, _platformFeatureFlags.fg)('platform-disable-default-typography')) {