@atlaskit/tokens 0.10.5 → 0.10.8

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 (56) hide show
  1. package/.eslintrc.js +35 -0
  2. package/CHANGELOG.md +27 -0
  3. package/README.md +1 -1
  4. package/css/atlassian-dark.css +10 -1
  5. package/css/atlassian-light.css +10 -1
  6. package/dist/cjs/artifacts/token-default-values.js +10 -1
  7. package/dist/cjs/artifacts/token-names.js +10 -1
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +196 -7
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +196 -7
  10. package/dist/cjs/babel-plugin/plugin.js +57 -53
  11. package/dist/cjs/get-token.js +1 -1
  12. package/dist/cjs/tokens/atlassian-dark/color/accent.js +28 -0
  13. package/dist/cjs/tokens/atlassian-dark/color/border.js +3 -0
  14. package/dist/cjs/tokens/atlassian-light/color/accent.js +28 -0
  15. package/dist/cjs/tokens/atlassian-light/color/border.js +3 -0
  16. package/dist/cjs/tokens/default/color/accent.js +70 -2
  17. package/dist/cjs/tokens/default/color/border.js +8 -0
  18. package/dist/cjs/tokens/default/deprecated/deprecated.js +1 -1
  19. package/dist/cjs/version.json +1 -1
  20. package/dist/es2019/artifacts/token-default-values.js +10 -1
  21. package/dist/es2019/artifacts/token-names.js +10 -1
  22. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +196 -7
  23. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +196 -7
  24. package/dist/es2019/babel-plugin/plugin.js +50 -45
  25. package/dist/es2019/get-token.js +1 -1
  26. package/dist/es2019/tokens/atlassian-dark/color/accent.js +28 -0
  27. package/dist/es2019/tokens/atlassian-dark/color/border.js +3 -0
  28. package/dist/es2019/tokens/atlassian-light/color/accent.js +28 -0
  29. package/dist/es2019/tokens/atlassian-light/color/border.js +3 -0
  30. package/dist/es2019/tokens/default/color/accent.js +70 -2
  31. package/dist/es2019/tokens/default/color/border.js +8 -0
  32. package/dist/es2019/tokens/default/deprecated/deprecated.js +1 -1
  33. package/dist/es2019/version.json +1 -1
  34. package/dist/esm/artifacts/token-default-values.js +10 -1
  35. package/dist/esm/artifacts/token-names.js +10 -1
  36. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +196 -7
  37. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +196 -7
  38. package/dist/esm/babel-plugin/plugin.js +57 -53
  39. package/dist/esm/get-token.js +1 -1
  40. package/dist/esm/tokens/atlassian-dark/color/accent.js +28 -0
  41. package/dist/esm/tokens/atlassian-dark/color/border.js +3 -0
  42. package/dist/esm/tokens/atlassian-light/color/accent.js +28 -0
  43. package/dist/esm/tokens/atlassian-light/color/border.js +3 -0
  44. package/dist/esm/tokens/default/color/accent.js +70 -2
  45. package/dist/esm/tokens/default/color/border.js +8 -0
  46. package/dist/esm/tokens/default/deprecated/deprecated.js +1 -1
  47. package/dist/esm/version.json +1 -1
  48. package/dist/types/artifacts/token-default-values.d.ts +10 -1
  49. package/dist/types/artifacts/token-names.d.ts +19 -1
  50. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  51. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  52. package/dist/types/artifacts/types-internal.d.ts +2 -2
  53. package/dist/types/artifacts/types.d.ts +2 -2
  54. package/dist/types/babel-plugin/plugin.d.ts +5 -5
  55. package/dist/types/types.d.ts +13 -0
  56. package/package.json +4 -1
@@ -15,6 +15,14 @@ var color = {
15
15
  description: 'Use to visually group or separate UI elements, such as flat cards or side panel dividers.'
16
16
  }
17
17
  },
18
+ bold: {
19
+ attributes: {
20
+ group: 'paint',
21
+ state: 'active',
22
+ introduced: '0.10.8',
23
+ description: 'A neutral border option that passes min 3:1 contrast ratios.'
24
+ }
25
+ },
18
26
  inverse: {
19
27
  attributes: {
20
28
  group: 'paint',
@@ -162,7 +162,7 @@ var color = {
162
162
  deprecated: '0.7.0',
163
163
  deleted: '0.8.0',
164
164
  replacement: 'color.background.accent.blue.subtler',
165
- description: 'Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
165
+ description: 'Use for blue backgrounds when there is no meaning tied to the color, such as colored tags.'
166
166
  }
167
167
  },
168
168
  bold: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.5",
3
+ "version": "0.10.8",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Token names mapped to their value in the default Atlassian theme ('light')
5
5
  *
6
- * @codegen <<SignedSource::3dd78c77e87d6557a4bade2368be7eb8>>
6
+ * @codegen <<SignedSource::65fed9d3a0df2e2c1ccee929e1349bb4>>
7
7
  * @codegenCommand yarn build tokens
8
8
  */
9
9
  const defaultTokenValues = {
@@ -23,6 +23,8 @@ const defaultTokenValues = {
23
23
  'color.text.accent.teal.bolder': '#1D474C',
24
24
  'color.text.accent.magenta': '#943D73',
25
25
  'color.text.accent.magenta.bolder': '#50253F',
26
+ 'color.text.accent.gray': '#44546F',
27
+ 'color.text.accent.gray.bolder': '#172B4D',
26
28
  'color.text': '#172B4D',
27
29
  'color.text.subtle': '#44546F',
28
30
  'color.text.subtlest': '#626F86',
@@ -51,6 +53,7 @@ const defaultTokenValues = {
51
53
  'color.icon.accent.purple': '#8270DB',
52
54
  'color.icon.accent.teal': '#1D9AAA',
53
55
  'color.icon.accent.magenta': '#CD519D',
56
+ 'color.icon.accent.gray': '#758195',
54
57
  'color.icon': '#44546F',
55
58
  'color.icon.subtle': '#626F86',
56
59
  'color.icon.inverse': '#FFFFFF',
@@ -71,7 +74,9 @@ const defaultTokenValues = {
71
74
  'color.border.accent.purple': '#8270DB',
72
75
  'color.border.accent.teal': '#1D9AAA',
73
76
  'color.border.accent.magenta': '#CD519D',
77
+ 'color.border.accent.gray': '#758195',
74
78
  'color.border': '#091E4224',
79
+ 'color.border.bold': '#758195',
75
80
  'color.border.inverse': '#FFFFFF',
76
81
  'color.border.focused': '#388BFF',
77
82
  'color.border.input': '#091E4224',
@@ -133,6 +138,10 @@ const defaultTokenValues = {
133
138
  'color.background.accent.magenta.bolder': '#AE4787',
134
139
  'color.background.accent.magenta': '#FDD0EC',
135
140
  'color.background.accent.magenta.bold': '#E774BB',
141
+ 'color.background.accent.gray.subtlest': '#F1F2F4',
142
+ 'color.background.accent.gray.subtler': '#DCDFE4',
143
+ 'color.background.accent.gray.subtle': '#8993A5',
144
+ 'color.background.accent.gray.bolder': '#626F86',
136
145
  'color.background.disabled': '#091E420F',
137
146
  'color.background.inverse.subtle': '#00000029',
138
147
  'color.background.inverse.subtle.hovered': '#0000003D',
@@ -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::1ab44c57c547c6cb7bb389b286bdd50f>>
3
+ * @codegen <<SignedSource::3acc6507214a2d925fd75bce0549f0ab>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = {
@@ -20,6 +20,8 @@ const tokens = {
20
20
  'color.text.accent.teal.bolder': '--ds-text-accent-teal-bolder',
21
21
  'color.text.accent.magenta': '--ds-text-accent-magenta',
22
22
  'color.text.accent.magenta.bolder': '--ds-text-accent-magenta-bolder',
23
+ 'color.text.accent.gray': '--ds-text-accent-gray',
24
+ 'color.text.accent.gray.bolder': '--ds-text-accent-gray-bolder',
23
25
  'color.text': '--ds-text',
24
26
  'color.text.subtle': '--ds-text-subtle',
25
27
  'color.text.subtlest': '--ds-text-subtlest',
@@ -48,6 +50,7 @@ const tokens = {
48
50
  'color.icon.accent.purple': '--ds-icon-accent-purple',
49
51
  'color.icon.accent.teal': '--ds-icon-accent-teal',
50
52
  'color.icon.accent.magenta': '--ds-icon-accent-magenta',
53
+ 'color.icon.accent.gray': '--ds-icon-accent-gray',
51
54
  'color.icon': '--ds-icon',
52
55
  'color.icon.subtle': '--ds-icon-subtle',
53
56
  'color.icon.inverse': '--ds-icon-inverse',
@@ -68,7 +71,9 @@ const tokens = {
68
71
  'color.border.accent.purple': '--ds-border-accent-purple',
69
72
  'color.border.accent.teal': '--ds-border-accent-teal',
70
73
  'color.border.accent.magenta': '--ds-border-accent-magenta',
74
+ 'color.border.accent.gray': '--ds-border-accent-gray',
71
75
  'color.border': '--ds-border',
76
+ 'color.border.bold': '--ds-border-bold',
72
77
  'color.border.inverse': '--ds-border-inverse',
73
78
  'color.border.focused': '--ds-border-focused',
74
79
  'color.border.input': '--ds-border-input',
@@ -130,6 +135,10 @@ const tokens = {
130
135
  'color.background.accent.magenta.bolder': '--ds-background-accent-magenta-bolder',
131
136
  'color.background.accent.magenta': '--ds-background-accent-magenta',
132
137
  'color.background.accent.magenta.bold': '--ds-background-accent-magenta-bold',
138
+ 'color.background.accent.gray.subtlest': '--ds-background-accent-gray-subtlest',
139
+ 'color.background.accent.gray.subtler': '--ds-background-accent-gray-subtler',
140
+ 'color.background.accent.gray.subtle': '--ds-background-accent-gray-subtle',
141
+ 'color.background.accent.gray.bolder': '--ds-background-accent-gray-bolder',
133
142
  'color.background.disabled': '--ds-background-disabled',
134
143
  'color.background.inverse.subtle': '--ds-background-inverse-subtle',
135
144
  'color.background.inverse.subtle.hovered': '--ds-background-inverse-subtle-hovered',
@@ -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::2790b3e5387d05c20675eb77bb4ec986>>
3
+ * @codegen <<SignedSource::f6554dd5fa7c18bf2250697f2e567297>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -339,6 +339,48 @@ const tokens = [{
339
339
  },
340
340
  "name": "color.text.accent.magenta.bolder",
341
341
  "path": ["color", "text", "accent", "magenta", "bolder"]
342
+ }, {
343
+ "attributes": {
344
+ "group": "paint",
345
+ "state": "active",
346
+ "introduced": "0.10.5",
347
+ "description": "Use for text on non-bold gray accent backgrounds, such as colored tags."
348
+ },
349
+ "value": "#9FADBC",
350
+ "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
351
+ "isSource": true,
352
+ "original": {
353
+ "attributes": {
354
+ "group": "paint",
355
+ "state": "active",
356
+ "introduced": "0.10.5",
357
+ "description": "Use for text on non-bold gray accent backgrounds, such as colored tags."
358
+ },
359
+ "value": "DN800"
360
+ },
361
+ "name": "color.text.accent.gray.[default]",
362
+ "path": ["color", "text", "accent", "gray", "[default]"]
363
+ }, {
364
+ "attributes": {
365
+ "group": "paint",
366
+ "state": "active",
367
+ "introduced": "0.10.5",
368
+ "description": "Use for text and icons on gray subtle accent backgrounds."
369
+ },
370
+ "value": "#C7D1DB",
371
+ "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
372
+ "isSource": true,
373
+ "original": {
374
+ "attributes": {
375
+ "group": "paint",
376
+ "state": "active",
377
+ "introduced": "0.10.5",
378
+ "description": "Use for text and icons on gray subtle accent backgrounds."
379
+ },
380
+ "value": "DN1000"
381
+ },
382
+ "name": "color.text.accent.gray.bolder",
383
+ "path": ["color", "text", "accent", "gray", "bolder"]
342
384
  }, {
343
385
  "attributes": {
344
386
  "group": "paint",
@@ -969,6 +1011,27 @@ const tokens = [{
969
1011
  },
970
1012
  "name": "color.icon.accent.magenta",
971
1013
  "path": ["color", "icon", "accent", "magenta"]
1014
+ }, {
1015
+ "attributes": {
1016
+ "group": "paint",
1017
+ "state": "active",
1018
+ "introduced": "0.10.5",
1019
+ "description": "Use for icons on non-bold gray accent backgrounds, such as file type icons."
1020
+ },
1021
+ "value": "#738496",
1022
+ "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
1023
+ "isSource": true,
1024
+ "original": {
1025
+ "attributes": {
1026
+ "group": "paint",
1027
+ "state": "active",
1028
+ "introduced": "0.10.5",
1029
+ "description": "Use for icons on non-bold gray accent backgrounds, such as file type icons."
1030
+ },
1031
+ "value": "DN600"
1032
+ },
1033
+ "name": "color.icon.accent.gray",
1034
+ "path": ["color", "icon", "accent", "gray"]
972
1035
  }, {
973
1036
  "attributes": {
974
1037
  "group": "paint",
@@ -1389,6 +1452,27 @@ const tokens = [{
1389
1452
  },
1390
1453
  "name": "color.border.accent.magenta",
1391
1454
  "path": ["color", "border", "accent", "magenta"]
1455
+ }, {
1456
+ "attributes": {
1457
+ "group": "paint",
1458
+ "state": "active",
1459
+ "introduced": "0.10.5",
1460
+ "description": "Use for borders on non-bold gray accent backgrounds."
1461
+ },
1462
+ "value": "#738496",
1463
+ "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
1464
+ "isSource": true,
1465
+ "original": {
1466
+ "attributes": {
1467
+ "group": "paint",
1468
+ "state": "active",
1469
+ "introduced": "0.10.5",
1470
+ "description": "Use for borders on non-bold gray accent backgrounds."
1471
+ },
1472
+ "value": "DN600"
1473
+ },
1474
+ "name": "color.border.accent.gray",
1475
+ "path": ["color", "border", "accent", "gray"]
1392
1476
  }, {
1393
1477
  "attributes": {
1394
1478
  "group": "paint",
@@ -1410,6 +1494,27 @@ const tokens = [{
1410
1494
  },
1411
1495
  "name": "color.border.[default]",
1412
1496
  "path": ["color", "border", "[default]"]
1497
+ }, {
1498
+ "attributes": {
1499
+ "group": "paint",
1500
+ "state": "active",
1501
+ "introduced": "0.10.8",
1502
+ "description": "A neutral border option that passes min 3:1 contrast ratios."
1503
+ },
1504
+ "value": "#738496",
1505
+ "filePath": "src/tokens/atlassian-dark/color/border.tsx",
1506
+ "isSource": true,
1507
+ "original": {
1508
+ "attributes": {
1509
+ "group": "paint",
1510
+ "state": "active",
1511
+ "introduced": "0.10.8",
1512
+ "description": "A neutral border option that passes min 3:1 contrast ratios."
1513
+ },
1514
+ "value": "DN600"
1515
+ },
1516
+ "name": "color.border.bold",
1517
+ "path": ["color", "border", "bold"]
1413
1518
  }, {
1414
1519
  "attributes": {
1415
1520
  "group": "paint",
@@ -1721,7 +1826,7 @@ const tokens = [{
1721
1826
  "group": "paint",
1722
1827
  "state": "active",
1723
1828
  "introduced": "0.7.0",
1724
- "description": "Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1829
+ "description": "Use for blue backgrounds when there is no meaning tied to the color, such as colored tags."
1725
1830
  },
1726
1831
  "value": "#09326C",
1727
1832
  "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
@@ -1731,7 +1836,7 @@ const tokens = [{
1731
1836
  "group": "paint",
1732
1837
  "state": "active",
1733
1838
  "introduced": "0.7.0",
1734
- "description": "Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1839
+ "description": "Use for blue backgrounds when there is no meaning tied to the color, such as colored tags."
1735
1840
  },
1736
1841
  "value": "B900"
1737
1842
  },
@@ -1742,7 +1847,7 @@ const tokens = [{
1742
1847
  "group": "paint",
1743
1848
  "state": "active",
1744
1849
  "introduced": "0.7.0",
1745
- "description": "Use for vibrant blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1850
+ "description": "Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags."
1746
1851
  },
1747
1852
  "value": "#0055CC",
1748
1853
  "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
@@ -1752,7 +1857,7 @@ const tokens = [{
1752
1857
  "group": "paint",
1753
1858
  "state": "active",
1754
1859
  "introduced": "0.7.0",
1755
- "description": "Use for vibrant blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1860
+ "description": "Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags."
1756
1861
  },
1757
1862
  "value": "B800"
1758
1863
  },
@@ -1787,7 +1892,7 @@ const tokens = [{
1787
1892
  "deprecated": "0.7.0",
1788
1893
  "deleted": "0.8.0",
1789
1894
  "replacement": "color.background.accent.blue.subtler",
1790
- "description": "Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1895
+ "description": "Use for blue backgrounds when there is no meaning tied to the color, such as colored tags."
1791
1896
  },
1792
1897
  "value": "#09326C",
1793
1898
  "filePath": "src/tokens/atlassian-dark/deprecated/deprecated.tsx",
@@ -1800,7 +1905,7 @@ const tokens = [{
1800
1905
  "deprecated": "0.7.0",
1801
1906
  "deleted": "0.8.0",
1802
1907
  "replacement": "color.background.accent.blue.subtler",
1803
- "description": "Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1908
+ "description": "Use for blue backgrounds when there is no meaning tied to the color, such as colored tags."
1804
1909
  },
1805
1910
  "value": "B900"
1806
1911
  },
@@ -2799,6 +2904,90 @@ const tokens = [{
2799
2904
  },
2800
2905
  "name": "color.background.accent.magenta.bold",
2801
2906
  "path": ["color", "background", "accent", "magenta", "bold"]
2907
+ }, {
2908
+ "attributes": {
2909
+ "group": "paint",
2910
+ "state": "active",
2911
+ "introduced": "0.7.0",
2912
+ "description": "Use for gray backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color."
2913
+ },
2914
+ "value": "#2C333A",
2915
+ "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
2916
+ "isSource": true,
2917
+ "original": {
2918
+ "attributes": {
2919
+ "group": "paint",
2920
+ "state": "active",
2921
+ "introduced": "0.7.0",
2922
+ "description": "Use for gray backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color."
2923
+ },
2924
+ "value": "DN300"
2925
+ },
2926
+ "name": "color.background.accent.gray.subtlest",
2927
+ "path": ["color", "background", "accent", "gray", "subtlest"]
2928
+ }, {
2929
+ "attributes": {
2930
+ "group": "paint",
2931
+ "state": "active",
2932
+ "introduced": "0.7.0",
2933
+ "description": "Use for gray backgrounds when there is no meaning tied to the color, such as colored tags."
2934
+ },
2935
+ "value": "#454F59",
2936
+ "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
2937
+ "isSource": true,
2938
+ "original": {
2939
+ "attributes": {
2940
+ "group": "paint",
2941
+ "state": "active",
2942
+ "introduced": "0.7.0",
2943
+ "description": "Use for gray backgrounds when there is no meaning tied to the color, such as colored tags."
2944
+ },
2945
+ "value": "DN400"
2946
+ },
2947
+ "name": "color.background.accent.gray.subtler",
2948
+ "path": ["color", "background", "accent", "gray", "subtler"]
2949
+ }, {
2950
+ "attributes": {
2951
+ "group": "paint",
2952
+ "state": "active",
2953
+ "introduced": "0.7.0",
2954
+ "description": "Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags."
2955
+ },
2956
+ "value": "#5C6C7A",
2957
+ "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
2958
+ "isSource": true,
2959
+ "original": {
2960
+ "attributes": {
2961
+ "group": "paint",
2962
+ "state": "active",
2963
+ "introduced": "0.7.0",
2964
+ "description": "Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags."
2965
+ },
2966
+ "value": "DN500"
2967
+ },
2968
+ "name": "color.background.accent.gray.subtle",
2969
+ "path": ["color", "background", "accent", "gray", "subtle"]
2970
+ }, {
2971
+ "attributes": {
2972
+ "group": "paint",
2973
+ "state": "active",
2974
+ "introduced": "0.7.0",
2975
+ "description": "Use for gray backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements."
2976
+ },
2977
+ "value": "#8696A7",
2978
+ "filePath": "src/tokens/atlassian-dark/color/accent.tsx",
2979
+ "isSource": true,
2980
+ "original": {
2981
+ "attributes": {
2982
+ "group": "paint",
2983
+ "state": "active",
2984
+ "introduced": "0.7.0",
2985
+ "description": "Use for gray backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements."
2986
+ },
2987
+ "value": "DN700"
2988
+ },
2989
+ "name": "color.background.accent.gray.bolder",
2990
+ "path": ["color", "background", "accent", "gray", "bolder"]
2802
2991
  }, {
2803
2992
  "attributes": {
2804
2993
  "group": "paint",