@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
@@ -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::7cdaec19ecd5c921bc01bf32e95ed909>>
3
+ * @codegen <<SignedSource::27eae6ae1ffaceb474ba5af373b377f1>>
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": "#44546F",
350
+ "filePath": "src/tokens/atlassian-light/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": "N800"
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": "#172B4D",
371
+ "filePath": "src/tokens/atlassian-light/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": "N1000"
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": "#758195",
1022
+ "filePath": "src/tokens/atlassian-light/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": "N600"
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": "#758195",
1463
+ "filePath": "src/tokens/atlassian-light/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": "N600"
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": "#758195",
1505
+ "filePath": "src/tokens/atlassian-light/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": "N600"
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": "#CCE0FF",
1727
1832
  "filePath": "src/tokens/atlassian-light/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": "B200"
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": "#579DFF",
1748
1853
  "filePath": "src/tokens/atlassian-light/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": "B400"
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": "#CCE0FF",
1793
1898
  "filePath": "src/tokens/atlassian-light/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": "B200"
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": "#F1F2F4",
2915
+ "filePath": "src/tokens/atlassian-light/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": "N200"
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": "#DCDFE4",
2936
+ "filePath": "src/tokens/atlassian-light/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": "N300"
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": "#8993A5",
2957
+ "filePath": "src/tokens/atlassian-light/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": "N500"
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": "#626F86",
2978
+ "filePath": "src/tokens/atlassian-light/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": "N700"
2988
+ },
2989
+ "name": "color.background.accent.gray.bolder",
2990
+ "path": ["color", "background", "accent", "gray", "bolder"]
2802
2991
  }, {
2803
2992
  "attributes": {
2804
2993
  "group": "paint",
@@ -4,66 +4,71 @@ import tokenNames from '../artifacts/token-names';
4
4
  export default function plugin() {
5
5
  return {
6
6
  visitor: {
7
- CallExpression(path, state) {
8
- const tokenImportScope = getTokenImportScope(path);
7
+ Program: {
8
+ enter(path, state) {
9
+ path.traverse({
10
+ CallExpression(path) {
11
+ const tokenImportScope = getTokenImportScope(path);
9
12
 
10
- if (!tokenImportScope) {
11
- return;
12
- } // Check arguments have correct format
13
+ if (!tokenImportScope) {
14
+ return;
15
+ } // Check arguments have correct format
13
16
 
14
17
 
15
- if (!path.node.arguments[0]) {
16
- throw new Error(`token() requires at least one argument`);
17
- } else if (!t.isStringLiteral(path.node.arguments[0])) {
18
- throw new Error(`token() must have a string as the first argument`);
19
- } else if (path.node.arguments.length > 2) {
20
- throw new Error(`token() does not accept ${path.node.arguments.length} arguments`);
21
- } // Check the token exists
18
+ if (!path.node.arguments[0]) {
19
+ throw new Error(`token() requires at least one argument`);
20
+ } else if (!t.isStringLiteral(path.node.arguments[0])) {
21
+ throw new Error(`token() must have a string as the first argument`);
22
+ } else if (path.node.arguments.length > 2) {
23
+ throw new Error(`token() does not accept ${path.node.arguments.length} arguments`);
24
+ } // Check the token exists
22
25
 
23
26
 
24
- const tokenName = path.node.arguments[0].value;
25
- const cssTokenValue = tokenNames[tokenName];
27
+ const tokenName = path.node.arguments[0].value;
28
+ const cssTokenValue = tokenNames[tokenName];
26
29
 
27
- if (!cssTokenValue) {
28
- throw new Error(`token '${tokenName}' does not exist`);
29
- }
30
+ if (!cssTokenValue) {
31
+ throw new Error(`token '${tokenName}' does not exist`);
32
+ }
30
33
 
31
- var replacementNode; // if no fallback is set, optionally find one from the default theme
34
+ var replacementNode; // if no fallback is set, optionally find one from the default theme
32
35
 
33
- if (path.node.arguments.length < 2) {
34
- if (state.opts.shouldUseAutoFallback) {
35
- replacementNode = t.stringLiteral(`var(${cssTokenValue}, ${getDefaultFallback(tokenName)})`);
36
- } else {
37
- replacementNode = t.stringLiteral(`var(${cssTokenValue})`);
38
- }
39
- } // Handle fallbacks
36
+ if (path.node.arguments.length < 2) {
37
+ if (state.opts.shouldUseAutoFallback) {
38
+ replacementNode = t.stringLiteral(`var(${cssTokenValue}, ${getDefaultFallback(tokenName)})`);
39
+ } else {
40
+ replacementNode = t.stringLiteral(`var(${cssTokenValue})`);
41
+ }
42
+ } // Handle fallbacks
40
43
 
41
44
 
42
- const fallback = path.node.arguments[1];
45
+ const fallback = path.node.arguments[1];
43
46
 
44
- if (t.isStringLiteral(fallback)) {
45
- // String literals can be concatenated into css variable call
46
- // Empty string fallbacks are ignored. For now, as the user did specify a fallback, no default is inserted
47
- replacementNode = t.stringLiteral(fallback.value ? `var(${cssTokenValue}, ${fallback.value})` : `var(${cssTokenValue})`);
48
- } else if (t.isExpression(fallback)) {
49
- // Expressions should be placed in a template string/literal
50
- replacementNode = t.templateLiteral([t.templateElement({
51
- cooked: `var(${cssTokenValue}, `,
52
- // Currently we create a "raw" value by inserting escape characters via regex (https://github.com/babel/babel/issues/9242)
53
- raw: `var(${cssTokenValue.replace(/\\|`|\${/g, '\\$&')}, `
54
- }, false), t.templateElement({
55
- raw: ')',
56
- cooked: ')'
57
- }, true)], [fallback]);
58
- } // Replace path and call scope.crawl() to refresh the scope bindings + references
47
+ if (t.isStringLiteral(fallback)) {
48
+ // String literals can be concatenated into css variable call
49
+ // Empty string fallbacks are ignored. For now, as the user did specify a fallback, no default is inserted
50
+ replacementNode = t.stringLiteral(fallback.value ? `var(${cssTokenValue}, ${fallback.value})` : `var(${cssTokenValue})`);
51
+ } else if (t.isExpression(fallback)) {
52
+ // Expressions should be placed in a template string/literal
53
+ replacementNode = t.templateLiteral([t.templateElement({
54
+ cooked: `var(${cssTokenValue}, `,
55
+ // Currently we create a "raw" value by inserting escape characters via regex (https://github.com/babel/babel/issues/9242)
56
+ raw: `var(${cssTokenValue.replace(/\\|`|\${/g, '\\$&')}, `
57
+ }, false), t.templateElement({
58
+ raw: ')',
59
+ cooked: ')'
60
+ }, true)], [fallback]);
61
+ } // Replace path and call scope.crawl() to refresh the scope bindings + references
59
62
 
60
63
 
61
- replacementNode && path.replaceWith(replacementNode); // @ts-ignore crawl is a valid property
64
+ replacementNode && path.replaceWith(replacementNode); // @ts-ignore crawl is a valid property
62
65
 
63
- tokenImportScope.crawl();
64
- },
66
+ tokenImportScope.crawl();
67
+ }
68
+
69
+ });
70
+ },
65
71
 
66
- Program: {
67
72
  exit(path) {
68
73
  path.traverse({
69
74
  ImportDeclaration(path) {
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  const name = "@atlaskit/tokens";
5
- const version = "0.10.5";
5
+ const version = "0.10.8";
6
6
 
7
7
  function token(path, fallback) {
8
8
  let token = tokens[path];
@@ -65,6 +65,14 @@ const color = {
65
65
  bolder: {
66
66
  value: 'M200'
67
67
  }
68
+ },
69
+ gray: {
70
+ '[default]': {
71
+ value: 'DN800'
72
+ },
73
+ bolder: {
74
+ value: 'DN1000'
75
+ }
68
76
  }
69
77
  }
70
78
  },
@@ -93,6 +101,9 @@ const color = {
93
101
  },
94
102
  magenta: {
95
103
  value: 'M500'
104
+ },
105
+ gray: {
106
+ value: 'DN600'
96
107
  }
97
108
  }
98
109
  },
@@ -121,6 +132,9 @@ const color = {
121
132
  },
122
133
  magenta: {
123
134
  value: 'M500'
135
+ },
136
+ gray: {
137
+ value: 'DN600'
124
138
  }
125
139
  }
126
140
  },
@@ -237,6 +251,20 @@ const color = {
237
251
  bolder: {
238
252
  value: 'M400'
239
253
  }
254
+ },
255
+ gray: {
256
+ subtlest: {
257
+ value: 'DN300'
258
+ },
259
+ subtler: {
260
+ value: 'DN400'
261
+ },
262
+ subtle: {
263
+ value: 'DN500'
264
+ },
265
+ bolder: {
266
+ value: 'DN700'
267
+ }
240
268
  }
241
269
  }
242
270
  }
@@ -4,6 +4,9 @@ const color = {
4
4
  '[default]': {
5
5
  value: 'DN300A'
6
6
  },
7
+ bold: {
8
+ value: 'DN600'
9
+ },
7
10
  inverse: {
8
11
  value: 'DN0'
9
12
  },
@@ -65,6 +65,14 @@ const color = {
65
65
  bolder: {
66
66
  value: 'M900'
67
67
  }
68
+ },
69
+ gray: {
70
+ '[default]': {
71
+ value: 'N800'
72
+ },
73
+ bolder: {
74
+ value: 'N1000'
75
+ }
68
76
  }
69
77
  }
70
78
  },
@@ -93,6 +101,9 @@ const color = {
93
101
  },
94
102
  magenta: {
95
103
  value: 'M600'
104
+ },
105
+ gray: {
106
+ value: 'N600'
96
107
  }
97
108
  }
98
109
  },
@@ -121,6 +132,9 @@ const color = {
121
132
  },
122
133
  magenta: {
123
134
  value: 'M600'
135
+ },
136
+ gray: {
137
+ value: 'N600'
124
138
  }
125
139
  }
126
140
  },
@@ -237,6 +251,20 @@ const color = {
237
251
  bolder: {
238
252
  value: 'M700'
239
253
  }
254
+ },
255
+ gray: {
256
+ subtlest: {
257
+ value: 'N200'
258
+ },
259
+ subtler: {
260
+ value: 'N300'
261
+ },
262
+ subtle: {
263
+ value: 'N500'
264
+ },
265
+ bolder: {
266
+ value: 'N700'
267
+ }
240
268
  }
241
269
  }
242
270
  }
@@ -4,6 +4,9 @@ const color = {
4
4
  '[default]': {
5
5
  value: 'N300A'
6
6
  },
7
+ bold: {
8
+ value: 'N600'
9
+ },
7
10
  inverse: {
8
11
  value: 'N0'
9
12
  },
@@ -145,6 +145,24 @@ const color = {
145
145
  description: 'Use on bold magenta accent backgrounds.'
146
146
  }
147
147
  }
148
+ },
149
+ gray: {
150
+ '[default]': {
151
+ attributes: {
152
+ group: 'paint',
153
+ state: 'active',
154
+ introduced: '0.10.5',
155
+ description: 'Use for text on non-bold gray accent backgrounds, such as colored tags.'
156
+ }
157
+ },
158
+ bolder: {
159
+ attributes: {
160
+ group: 'paint',
161
+ state: 'active',
162
+ introduced: '0.10.5',
163
+ description: 'Use for text and icons on gray subtle accent backgrounds.'
164
+ }
165
+ }
148
166
  }
149
167
  }
150
168
  },
@@ -213,6 +231,14 @@ const color = {
213
231
  introduced: '0.6.0',
214
232
  description: 'Use for magenta icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.'
215
233
  }
234
+ },
235
+ gray: {
236
+ attributes: {
237
+ group: 'paint',
238
+ state: 'active',
239
+ introduced: '0.10.5',
240
+ description: 'Use for icons on non-bold gray accent backgrounds, such as file type icons.'
241
+ }
216
242
  }
217
243
  }
218
244
  },
@@ -281,6 +307,14 @@ const color = {
281
307
  introduced: '0.6.0',
282
308
  description: 'Use for magenta borders on non-bold backgrounds when there is no meaning tied to the color.'
283
309
  }
310
+ },
311
+ gray: {
312
+ attributes: {
313
+ group: 'paint',
314
+ state: 'active',
315
+ introduced: '0.10.5',
316
+ description: 'Use for borders on non-bold gray accent backgrounds.'
317
+ }
284
318
  }
285
319
  }
286
320
  },
@@ -300,7 +334,7 @@ const color = {
300
334
  group: 'paint',
301
335
  state: 'active',
302
336
  introduced: '0.7.0',
303
- description: 'Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
337
+ description: 'Use for blue backgrounds when there is no meaning tied to the color, such as colored tags.'
304
338
  }
305
339
  },
306
340
  subtle: {
@@ -308,7 +342,7 @@ const color = {
308
342
  group: 'paint',
309
343
  state: 'active',
310
344
  introduced: '0.7.0',
311
- description: 'Use for vibrant blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
345
+ description: 'Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags.'
312
346
  }
313
347
  },
314
348
  bolder: {
@@ -557,6 +591,40 @@ const color = {
557
591
  description: 'Use for magenta backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
558
592
  }
559
593
  }
594
+ },
595
+ gray: {
596
+ subtlest: {
597
+ attributes: {
598
+ group: 'paint',
599
+ state: 'active',
600
+ introduced: '0.7.0',
601
+ description: 'Use for gray backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
602
+ }
603
+ },
604
+ subtler: {
605
+ attributes: {
606
+ group: 'paint',
607
+ state: 'active',
608
+ introduced: '0.7.0',
609
+ description: 'Use for gray backgrounds when there is no meaning tied to the color, such as colored tags.'
610
+ }
611
+ },
612
+ subtle: {
613
+ attributes: {
614
+ group: 'paint',
615
+ state: 'active',
616
+ introduced: '0.7.0',
617
+ description: 'Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags.'
618
+ }
619
+ },
620
+ bolder: {
621
+ attributes: {
622
+ group: 'paint',
623
+ state: 'active',
624
+ introduced: '0.7.0',
625
+ 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.'
626
+ }
627
+ }
560
628
  }
561
629
  }
562
630
  }
@@ -9,6 +9,14 @@ const color = {
9
9
  description: 'Use to visually group or separate UI elements, such as flat cards or side panel dividers.'
10
10
  }
11
11
  },
12
+ bold: {
13
+ attributes: {
14
+ group: 'paint',
15
+ state: 'active',
16
+ introduced: '0.10.8',
17
+ description: 'A neutral border option that passes min 3:1 contrast ratios.'
18
+ }
19
+ },
12
20
  inverse: {
13
21
  attributes: {
14
22
  group: 'paint',
@@ -156,7 +156,7 @@ const color = {
156
156
  deprecated: '0.7.0',
157
157
  deleted: '0.8.0',
158
158
  replacement: 'color.background.accent.blue.subtler',
159
- description: 'Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
159
+ description: 'Use for blue backgrounds when there is no meaning tied to the color, such as colored tags.'
160
160
  }
161
161
  },
162
162
  bold: {