@atlaskit/tokens 13.3.0 → 13.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 (80) hide show
  1. package/CHANGELOG.md +20 -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-light-increased-contrast.js +2 -2
  6. package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
  7. package/dist/cjs/artifacts/token-default-values.js +6 -2
  8. package/dist/cjs/artifacts/token-names.js +5 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +91 -3
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +91 -3
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +93 -5
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +93 -5
  13. package/dist/cjs/entry-points/token-metadata.codegen.js +39 -3
  14. package/dist/cjs/utils/token-order.js +1 -1
  15. package/dist/cjs/utils/token-usage-guidelines.js +3 -0
  16. package/dist/es2019/artifacts/generated-pairs.js +2 -2
  17. package/dist/es2019/artifacts/themes/atlassian-dark-increased-contrast.js +5 -1
  18. package/dist/es2019/artifacts/themes/atlassian-dark.js +5 -1
  19. package/dist/es2019/artifacts/themes/atlassian-light-increased-contrast.js +6 -2
  20. package/dist/es2019/artifacts/themes/atlassian-light.js +6 -2
  21. package/dist/es2019/artifacts/token-default-values.js +6 -2
  22. package/dist/es2019/artifacts/token-names.js +5 -1
  23. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +91 -3
  24. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +91 -3
  25. package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +93 -5
  26. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +93 -5
  27. package/dist/es2019/entry-points/token-metadata.codegen.js +39 -3
  28. package/dist/es2019/utils/token-order.js +1 -1
  29. package/dist/es2019/utils/token-usage-guidelines.js +3 -0
  30. package/dist/esm/artifacts/generated-pairs.js +2 -2
  31. package/dist/esm/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
  32. package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
  33. package/dist/esm/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
  34. package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
  35. package/dist/esm/artifacts/token-default-values.js +6 -2
  36. package/dist/esm/artifacts/token-names.js +5 -1
  37. package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +91 -3
  38. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +91 -3
  39. package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +93 -5
  40. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +93 -5
  41. package/dist/esm/entry-points/token-metadata.codegen.js +39 -3
  42. package/dist/esm/utils/token-order.js +1 -1
  43. package/dist/esm/utils/token-usage-guidelines.js +3 -0
  44. package/dist/types/artifacts/generated-pairs.d.ts +1 -1
  45. package/dist/types/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
  46. package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
  47. package/dist/types/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
  48. package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
  49. package/dist/types/artifacts/token-default-values.d.ts +6 -2
  50. package/dist/types/artifacts/token-names.d.ts +9 -1
  51. package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
  52. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  53. package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
  54. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  55. package/dist/types/artifacts/types-internal.d.ts +2 -2
  56. package/dist/types/artifacts/types.d.ts +2 -2
  57. package/dist/types/entry-points/css-type-schema.codegen.d.ts +4 -4
  58. package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
  59. package/dist/types/types.d.ts +24 -6
  60. package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +1 -1
  61. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
  62. package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
  63. package/dist/types-ts4.5/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
  64. package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
  65. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +6 -2
  66. package/dist/types-ts4.5/artifacts/token-names.d.ts +9 -1
  67. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
  68. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  69. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
  70. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  71. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  72. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  73. package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +4 -4
  74. package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
  75. package/dist/types-ts4.5/types.d.ts +24 -6
  76. package/figma/atlassian-dark-increased-contrast.json +37 -1
  77. package/figma/atlassian-dark.json +37 -1
  78. package/figma/atlassian-light-increased-contrast.json +38 -2
  79. package/figma/atlassian-light.json +38 -2
  80. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::c631fcd3119818d8ef034f197db3132f>>
3
+ * @codegen <<SignedSource::a1882f4b4e3305935325d612a706f4d0>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
 
@@ -3683,7 +3683,7 @@ const tokens = [{
3683
3683
  "group": "paint",
3684
3684
  "state": "active",
3685
3685
  "introduced": "13.2.0",
3686
- "description": "Background colour for non-interactive elements communicating caution (e.g. semantic badges, status pills, callout chips). Sits between subtler and bold in visual emphasis. Not for interactive surfaces — see color.background.warning.bold or color.background.warning.subtler for interactive states."
3686
+ "description": "Background colour for non-interactive elements communicating caution (e.g. status pills, callout chips). Sits between subtler and bold in visual emphasis. Not for interactive surfaces — see color.background.warning.bold or color.background.warning.subtler for interactive states."
3687
3687
  },
3688
3688
  "value": "#FBD779",
3689
3689
  "filePath": "schema/themes/atlassian-light/color/background.tsx",
@@ -3693,7 +3693,7 @@ const tokens = [{
3693
3693
  "group": "paint",
3694
3694
  "state": "active",
3695
3695
  "introduced": "13.2.0",
3696
- "description": "Background colour for non-interactive elements communicating caution (e.g. semantic badges, status pills, callout chips). Sits between subtler and bold in visual emphasis. Not for interactive surfaces — see color.background.warning.bold or color.background.warning.subtler for interactive states."
3696
+ "description": "Background colour for non-interactive elements communicating caution (e.g. status pills, callout chips). Sits between subtler and bold in visual emphasis. Not for interactive surfaces — see color.background.warning.bold or color.background.warning.subtler for interactive states."
3697
3697
  },
3698
3698
  "value": "Orange250"
3699
3699
  },
@@ -4873,7 +4873,7 @@ const tokens = [{
4873
4873
  "introduced": "13.2.0",
4874
4874
  "description": "Use for decorative gray borders that do not need to meet 3:1 contrast requirements."
4875
4875
  },
4876
- "value": "#DDDEE1",
4876
+ "value": "#B7B9BE",
4877
4877
  "filePath": "schema/themes/atlassian-light/color/accent.tsx",
4878
4878
  "isSource": true,
4879
4879
  "original": {
@@ -4883,7 +4883,7 @@ const tokens = [{
4883
4883
  "introduced": "13.2.0",
4884
4884
  "description": "Use for decorative gray borders that do not need to meet 3:1 contrast requirements."
4885
4885
  },
4886
- "value": "Neutral300"
4886
+ "value": "Neutral400"
4887
4887
  },
4888
4888
  "name": "color.border.accent.gray.subtle",
4889
4889
  "path": ["color", "border", "accent", "gray", "subtle"],
@@ -9354,6 +9354,28 @@ const tokens = [{
9354
9354
  "name": "elevation.surface.[default].pressed",
9355
9355
  "path": ["elevation", "surface", "[default]", "pressed"],
9356
9356
  "cleanName": "elevation.surface.pressed"
9357
+ }, {
9358
+ "attributes": {
9359
+ "group": "paint",
9360
+ "state": "active",
9361
+ "introduced": "13.3.0",
9362
+ "description": "Use as a neutral container surface background."
9363
+ },
9364
+ "value": "#F0F1F2",
9365
+ "filePath": "schema/themes/atlassian-light/elevation/surface.tsx",
9366
+ "isSource": true,
9367
+ "original": {
9368
+ "attributes": {
9369
+ "group": "paint",
9370
+ "state": "active",
9371
+ "introduced": "13.3.0",
9372
+ "description": "Use as a neutral container surface background."
9373
+ },
9374
+ "value": "Neutral200"
9375
+ },
9376
+ "name": "elevation.surface.container",
9377
+ "path": ["elevation", "surface", "container"],
9378
+ "cleanName": "elevation.surface.container"
9357
9379
  }, {
9358
9380
  "attributes": {
9359
9381
  "group": "paint",
@@ -9508,6 +9530,72 @@ const tokens = [{
9508
9530
  "name": "elevation.surface.sunken",
9509
9531
  "path": ["elevation", "surface", "sunken"],
9510
9532
  "cleanName": "elevation.surface.sunken"
9533
+ }, {
9534
+ "attributes": {
9535
+ "group": "paint",
9536
+ "state": "active",
9537
+ "introduced": "13.3.0",
9538
+ "description": "Use for Rovo overlay surface backgrounds."
9539
+ },
9540
+ "value": "#F8F8F8",
9541
+ "filePath": "schema/themes/atlassian-light/elevation/rovo/surface.tsx",
9542
+ "isSource": true,
9543
+ "original": {
9544
+ "attributes": {
9545
+ "group": "paint",
9546
+ "state": "active",
9547
+ "introduced": "13.3.0",
9548
+ "description": "Use for Rovo overlay surface backgrounds."
9549
+ },
9550
+ "value": "Neutral100"
9551
+ },
9552
+ "name": "elevation.rovo.surface.overlay.[default]",
9553
+ "path": ["elevation", "rovo", "surface", "overlay", "[default]"],
9554
+ "cleanName": "elevation.rovo.surface.overlay"
9555
+ }, {
9556
+ "attributes": {
9557
+ "group": "paint",
9558
+ "state": "active",
9559
+ "introduced": "13.3.0",
9560
+ "description": "Hovered state of elevation.rovo.surface.overlay."
9561
+ },
9562
+ "value": "#F0F1F2",
9563
+ "filePath": "schema/themes/atlassian-light/elevation/rovo/surface.tsx",
9564
+ "isSource": true,
9565
+ "original": {
9566
+ "attributes": {
9567
+ "group": "paint",
9568
+ "state": "active",
9569
+ "introduced": "13.3.0",
9570
+ "description": "Hovered state of elevation.rovo.surface.overlay."
9571
+ },
9572
+ "value": "Neutral200"
9573
+ },
9574
+ "name": "elevation.rovo.surface.overlay.hovered",
9575
+ "path": ["elevation", "rovo", "surface", "overlay", "hovered"],
9576
+ "cleanName": "elevation.rovo.surface.overlay.hovered"
9577
+ }, {
9578
+ "attributes": {
9579
+ "group": "paint",
9580
+ "state": "active",
9581
+ "introduced": "13.3.0",
9582
+ "description": "Pressed state of elevation.rovo.surface.overlay."
9583
+ },
9584
+ "value": "#DDDEE1",
9585
+ "filePath": "schema/themes/atlassian-light/elevation/rovo/surface.tsx",
9586
+ "isSource": true,
9587
+ "original": {
9588
+ "attributes": {
9589
+ "group": "paint",
9590
+ "state": "active",
9591
+ "introduced": "13.3.0",
9592
+ "description": "Pressed state of elevation.rovo.surface.overlay."
9593
+ },
9594
+ "value": "Neutral300"
9595
+ },
9596
+ "name": "elevation.rovo.surface.overlay.pressed",
9597
+ "path": ["elevation", "rovo", "surface", "overlay", "pressed"],
9598
+ "cleanName": "elevation.rovo.surface.overlay.pressed"
9511
9599
  }, {
9512
9600
  "attributes": {
9513
9601
  "group": "shadow",
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Metadata for generation of `@atlaskit/ads-mcp` and https://atlassian.design/llms-tokens.txt.
5
5
  *
6
- * @codegen <<SignedSource::0dd74e66e81ca1f0f575266507ec4ff6>>
6
+ * @codegen <<SignedSource::ae4acbb8ddfe6f3a0c28dc3479fd9d0d>>
7
7
  * @codegenCommand yarn build tokens
8
8
  */
9
9
 
@@ -1945,7 +1945,7 @@ export const tokens = [{
1945
1945
  }, {
1946
1946
  name: 'color.background.warning.subtle',
1947
1947
  path: ['color', 'background', 'warning', 'subtle', '[default]'],
1948
- description: 'Background colour for non-interactive elements communicating caution (e.g. semantic badges, status pills, callout chips). Sits between subtler and bold in visual emphasis. Not for interactive surfaces — see color.background.warning.bold or color.background.warning.subtler for interactive states.',
1948
+ description: 'Background colour for non-interactive elements communicating caution (e.g. status pills, callout chips). Sits between subtler and bold in visual emphasis. Not for interactive surfaces — see color.background.warning.bold or color.background.warning.subtler for interactive states.',
1949
1949
  exampleValue: '#FBD779',
1950
1950
  usageGuidelines: {
1951
1951
  usage: 'The color for backgrounds. Use for areas behind content (e.g. color.background.neutral, color.background.selected)',
@@ -2432,7 +2432,7 @@ export const tokens = [{
2432
2432
  name: 'color.border.accent.gray.subtle',
2433
2433
  path: ['color', 'border', 'accent', 'gray', 'subtle'],
2434
2434
  description: 'Use for decorative gray borders that do not need to meet 3:1 contrast requirements.',
2435
- exampleValue: '#DDDEE1',
2435
+ exampleValue: '#B7B9BE',
2436
2436
  usageGuidelines: {
2437
2437
  usage: 'The color for borders or outlines. Use for border and outline colors on components (e.g. color.border, color.border.focused)',
2438
2438
  cssProperties: ['border-color', 'outline-color']
@@ -4264,6 +4264,15 @@ export const tokens = [{
4264
4264
  usage: 'The base color for app and component surfaces. Raised and overlay surfaces should be used in concert with shadows (e.g. elevation.surface.raised should be used with elevation.shadow.raised)',
4265
4265
  cssProperties: ['background-color']
4266
4266
  }
4267
+ }, {
4268
+ name: 'elevation.surface.container',
4269
+ path: ['elevation', 'surface', 'container'],
4270
+ description: 'Use as a neutral container surface background.',
4271
+ exampleValue: '#F0F1F2',
4272
+ usageGuidelines: {
4273
+ usage: 'The base color for app and component surfaces. Raised and overlay surfaces should be used in concert with shadows (e.g. elevation.surface.raised should be used with elevation.shadow.raised)',
4274
+ cssProperties: ['background-color']
4275
+ }
4267
4276
  }, {
4268
4277
  name: 'elevation.surface.overlay',
4269
4278
  path: ['elevation', 'surface', 'overlay', '[default]'],
@@ -4327,6 +4336,33 @@ export const tokens = [{
4327
4336
  usage: 'The base color for app and component surfaces. Raised and overlay surfaces should be used in concert with shadows (e.g. elevation.surface.raised should be used with elevation.shadow.raised)',
4328
4337
  cssProperties: ['background-color']
4329
4338
  }
4339
+ }, {
4340
+ name: 'elevation.rovo.surface.overlay',
4341
+ path: ['elevation', 'rovo', 'surface', 'overlay', '[default]'],
4342
+ description: 'Use for Rovo overlay surface backgrounds.',
4343
+ exampleValue: '#F8F8F8',
4344
+ usageGuidelines: {
4345
+ usage: 'The base color for app and component surfaces. Raised and overlay surfaces should be used in concert with shadows (e.g. elevation.surface.raised should be used with elevation.shadow.raised)',
4346
+ cssProperties: ['background-color']
4347
+ }
4348
+ }, {
4349
+ name: 'elevation.rovo.surface.overlay.hovered',
4350
+ path: ['elevation', 'rovo', 'surface', 'overlay', 'hovered'],
4351
+ description: 'Hovered state of elevation.rovo.surface.overlay.',
4352
+ exampleValue: '#F0F1F2',
4353
+ usageGuidelines: {
4354
+ usage: 'The base color for app and component surfaces. Raised and overlay surfaces should be used in concert with shadows (e.g. elevation.surface.raised should be used with elevation.shadow.raised)',
4355
+ cssProperties: ['background-color']
4356
+ }
4357
+ }, {
4358
+ name: 'elevation.rovo.surface.overlay.pressed',
4359
+ path: ['elevation', 'rovo', 'surface', 'overlay', 'pressed'],
4360
+ description: 'Pressed state of elevation.rovo.surface.overlay.',
4361
+ exampleValue: '#DDDEE1',
4362
+ usageGuidelines: {
4363
+ usage: 'The base color for app and component surfaces. Raised and overlay surfaces should be used in concert with shadows (e.g. elevation.surface.raised should be used with elevation.shadow.raised)',
4364
+ cssProperties: ['background-color']
4365
+ }
4330
4366
  }, {
4331
4367
  name: 'elevation.shadow.overflow',
4332
4368
  path: ['elevation', 'shadow', 'overflow', '[default]'],
@@ -8,7 +8,7 @@ export const tokenOrder = [{
8
8
  'accent', 'iconBorder', 'overlay']
9
9
  }, {
10
10
  path: 'elevation',
11
- subpaths: ['surface', 'shadow']
11
+ subpaths: ['surface', 'rovo', 'shadow']
12
12
  }, {
13
13
  path: 'opacity',
14
14
  subpaths: []
@@ -8,6 +8,9 @@ const getTokenCategoryId = tokenId => {
8
8
  if (tokenId.startsWith('color.rovo.icon.')) {
9
9
  return tokenId.replace('color.rovo.icon.', 'color.icon.');
10
10
  }
11
+ if (tokenId.startsWith('elevation.rovo.surface.')) {
12
+ return tokenId.replace('elevation.rovo.surface.', 'elevation.surface.');
13
+ }
11
14
  return tokenId;
12
15
  };
13
16
  export const getTokenUsageGuidelines = tokenId => {