@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
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  /**
9
9
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
10
- * @codegen <<SignedSource::7cdaec19ecd5c921bc01bf32e95ed909>>
10
+ * @codegen <<SignedSource::27eae6ae1ffaceb474ba5af373b377f1>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
@@ -346,6 +346,48 @@ var tokens = [{
346
346
  },
347
347
  "name": "color.text.accent.magenta.bolder",
348
348
  "path": ["color", "text", "accent", "magenta", "bolder"]
349
+ }, {
350
+ "attributes": {
351
+ "group": "paint",
352
+ "state": "active",
353
+ "introduced": "0.10.5",
354
+ "description": "Use for text on non-bold gray accent backgrounds, such as colored tags."
355
+ },
356
+ "value": "#44546F",
357
+ "filePath": "src/tokens/atlassian-light/color/accent.tsx",
358
+ "isSource": true,
359
+ "original": {
360
+ "attributes": {
361
+ "group": "paint",
362
+ "state": "active",
363
+ "introduced": "0.10.5",
364
+ "description": "Use for text on non-bold gray accent backgrounds, such as colored tags."
365
+ },
366
+ "value": "N800"
367
+ },
368
+ "name": "color.text.accent.gray.[default]",
369
+ "path": ["color", "text", "accent", "gray", "[default]"]
370
+ }, {
371
+ "attributes": {
372
+ "group": "paint",
373
+ "state": "active",
374
+ "introduced": "0.10.5",
375
+ "description": "Use for text and icons on gray subtle accent backgrounds."
376
+ },
377
+ "value": "#172B4D",
378
+ "filePath": "src/tokens/atlassian-light/color/accent.tsx",
379
+ "isSource": true,
380
+ "original": {
381
+ "attributes": {
382
+ "group": "paint",
383
+ "state": "active",
384
+ "introduced": "0.10.5",
385
+ "description": "Use for text and icons on gray subtle accent backgrounds."
386
+ },
387
+ "value": "N1000"
388
+ },
389
+ "name": "color.text.accent.gray.bolder",
390
+ "path": ["color", "text", "accent", "gray", "bolder"]
349
391
  }, {
350
392
  "attributes": {
351
393
  "group": "paint",
@@ -976,6 +1018,27 @@ var tokens = [{
976
1018
  },
977
1019
  "name": "color.icon.accent.magenta",
978
1020
  "path": ["color", "icon", "accent", "magenta"]
1021
+ }, {
1022
+ "attributes": {
1023
+ "group": "paint",
1024
+ "state": "active",
1025
+ "introduced": "0.10.5",
1026
+ "description": "Use for icons on non-bold gray accent backgrounds, such as file type icons."
1027
+ },
1028
+ "value": "#758195",
1029
+ "filePath": "src/tokens/atlassian-light/color/accent.tsx",
1030
+ "isSource": true,
1031
+ "original": {
1032
+ "attributes": {
1033
+ "group": "paint",
1034
+ "state": "active",
1035
+ "introduced": "0.10.5",
1036
+ "description": "Use for icons on non-bold gray accent backgrounds, such as file type icons."
1037
+ },
1038
+ "value": "N600"
1039
+ },
1040
+ "name": "color.icon.accent.gray",
1041
+ "path": ["color", "icon", "accent", "gray"]
979
1042
  }, {
980
1043
  "attributes": {
981
1044
  "group": "paint",
@@ -1396,6 +1459,27 @@ var tokens = [{
1396
1459
  },
1397
1460
  "name": "color.border.accent.magenta",
1398
1461
  "path": ["color", "border", "accent", "magenta"]
1462
+ }, {
1463
+ "attributes": {
1464
+ "group": "paint",
1465
+ "state": "active",
1466
+ "introduced": "0.10.5",
1467
+ "description": "Use for borders on non-bold gray accent backgrounds."
1468
+ },
1469
+ "value": "#758195",
1470
+ "filePath": "src/tokens/atlassian-light/color/accent.tsx",
1471
+ "isSource": true,
1472
+ "original": {
1473
+ "attributes": {
1474
+ "group": "paint",
1475
+ "state": "active",
1476
+ "introduced": "0.10.5",
1477
+ "description": "Use for borders on non-bold gray accent backgrounds."
1478
+ },
1479
+ "value": "N600"
1480
+ },
1481
+ "name": "color.border.accent.gray",
1482
+ "path": ["color", "border", "accent", "gray"]
1399
1483
  }, {
1400
1484
  "attributes": {
1401
1485
  "group": "paint",
@@ -1417,6 +1501,27 @@ var tokens = [{
1417
1501
  },
1418
1502
  "name": "color.border.[default]",
1419
1503
  "path": ["color", "border", "[default]"]
1504
+ }, {
1505
+ "attributes": {
1506
+ "group": "paint",
1507
+ "state": "active",
1508
+ "introduced": "0.10.8",
1509
+ "description": "A neutral border option that passes min 3:1 contrast ratios."
1510
+ },
1511
+ "value": "#758195",
1512
+ "filePath": "src/tokens/atlassian-light/color/border.tsx",
1513
+ "isSource": true,
1514
+ "original": {
1515
+ "attributes": {
1516
+ "group": "paint",
1517
+ "state": "active",
1518
+ "introduced": "0.10.8",
1519
+ "description": "A neutral border option that passes min 3:1 contrast ratios."
1520
+ },
1521
+ "value": "N600"
1522
+ },
1523
+ "name": "color.border.bold",
1524
+ "path": ["color", "border", "bold"]
1420
1525
  }, {
1421
1526
  "attributes": {
1422
1527
  "group": "paint",
@@ -1728,7 +1833,7 @@ var tokens = [{
1728
1833
  "group": "paint",
1729
1834
  "state": "active",
1730
1835
  "introduced": "0.7.0",
1731
- "description": "Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1836
+ "description": "Use for blue backgrounds when there is no meaning tied to the color, such as colored tags."
1732
1837
  },
1733
1838
  "value": "#CCE0FF",
1734
1839
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -1738,7 +1843,7 @@ var tokens = [{
1738
1843
  "group": "paint",
1739
1844
  "state": "active",
1740
1845
  "introduced": "0.7.0",
1741
- "description": "Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1846
+ "description": "Use for blue backgrounds when there is no meaning tied to the color, such as colored tags."
1742
1847
  },
1743
1848
  "value": "B200"
1744
1849
  },
@@ -1749,7 +1854,7 @@ var tokens = [{
1749
1854
  "group": "paint",
1750
1855
  "state": "active",
1751
1856
  "introduced": "0.7.0",
1752
- "description": "Use for vibrant blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1857
+ "description": "Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags."
1753
1858
  },
1754
1859
  "value": "#579DFF",
1755
1860
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -1759,7 +1864,7 @@ var tokens = [{
1759
1864
  "group": "paint",
1760
1865
  "state": "active",
1761
1866
  "introduced": "0.7.0",
1762
- "description": "Use for vibrant blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1867
+ "description": "Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags."
1763
1868
  },
1764
1869
  "value": "B400"
1765
1870
  },
@@ -1794,7 +1899,7 @@ var tokens = [{
1794
1899
  "deprecated": "0.7.0",
1795
1900
  "deleted": "0.8.0",
1796
1901
  "replacement": "color.background.accent.blue.subtler",
1797
- "description": "Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1902
+ "description": "Use for blue backgrounds when there is no meaning tied to the color, such as colored tags."
1798
1903
  },
1799
1904
  "value": "#CCE0FF",
1800
1905
  "filePath": "src/tokens/atlassian-light/deprecated/deprecated.tsx",
@@ -1807,7 +1912,7 @@ var tokens = [{
1807
1912
  "deprecated": "0.7.0",
1808
1913
  "deleted": "0.8.0",
1809
1914
  "replacement": "color.background.accent.blue.subtler",
1810
- "description": "Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags."
1915
+ "description": "Use for blue backgrounds when there is no meaning tied to the color, such as colored tags."
1811
1916
  },
1812
1917
  "value": "B200"
1813
1918
  },
@@ -2806,6 +2911,90 @@ var tokens = [{
2806
2911
  },
2807
2912
  "name": "color.background.accent.magenta.bold",
2808
2913
  "path": ["color", "background", "accent", "magenta", "bold"]
2914
+ }, {
2915
+ "attributes": {
2916
+ "group": "paint",
2917
+ "state": "active",
2918
+ "introduced": "0.7.0",
2919
+ "description": "Use for gray backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color."
2920
+ },
2921
+ "value": "#F1F2F4",
2922
+ "filePath": "src/tokens/atlassian-light/color/accent.tsx",
2923
+ "isSource": true,
2924
+ "original": {
2925
+ "attributes": {
2926
+ "group": "paint",
2927
+ "state": "active",
2928
+ "introduced": "0.7.0",
2929
+ "description": "Use for gray backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color."
2930
+ },
2931
+ "value": "N200"
2932
+ },
2933
+ "name": "color.background.accent.gray.subtlest",
2934
+ "path": ["color", "background", "accent", "gray", "subtlest"]
2935
+ }, {
2936
+ "attributes": {
2937
+ "group": "paint",
2938
+ "state": "active",
2939
+ "introduced": "0.7.0",
2940
+ "description": "Use for gray backgrounds when there is no meaning tied to the color, such as colored tags."
2941
+ },
2942
+ "value": "#DCDFE4",
2943
+ "filePath": "src/tokens/atlassian-light/color/accent.tsx",
2944
+ "isSource": true,
2945
+ "original": {
2946
+ "attributes": {
2947
+ "group": "paint",
2948
+ "state": "active",
2949
+ "introduced": "0.7.0",
2950
+ "description": "Use for gray backgrounds when there is no meaning tied to the color, such as colored tags."
2951
+ },
2952
+ "value": "N300"
2953
+ },
2954
+ "name": "color.background.accent.gray.subtler",
2955
+ "path": ["color", "background", "accent", "gray", "subtler"]
2956
+ }, {
2957
+ "attributes": {
2958
+ "group": "paint",
2959
+ "state": "active",
2960
+ "introduced": "0.7.0",
2961
+ "description": "Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags."
2962
+ },
2963
+ "value": "#8993A5",
2964
+ "filePath": "src/tokens/atlassian-light/color/accent.tsx",
2965
+ "isSource": true,
2966
+ "original": {
2967
+ "attributes": {
2968
+ "group": "paint",
2969
+ "state": "active",
2970
+ "introduced": "0.7.0",
2971
+ "description": "Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags."
2972
+ },
2973
+ "value": "N500"
2974
+ },
2975
+ "name": "color.background.accent.gray.subtle",
2976
+ "path": ["color", "background", "accent", "gray", "subtle"]
2977
+ }, {
2978
+ "attributes": {
2979
+ "group": "paint",
2980
+ "state": "active",
2981
+ "introduced": "0.7.0",
2982
+ "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."
2983
+ },
2984
+ "value": "#626F86",
2985
+ "filePath": "src/tokens/atlassian-light/color/accent.tsx",
2986
+ "isSource": true,
2987
+ "original": {
2988
+ "attributes": {
2989
+ "group": "paint",
2990
+ "state": "active",
2991
+ "introduced": "0.7.0",
2992
+ "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."
2993
+ },
2994
+ "value": "N700"
2995
+ },
2996
+ "name": "color.background.accent.gray.bolder",
2997
+ "path": ["color", "background", "accent", "gray", "bolder"]
2809
2998
  }, {
2810
2999
  "attributes": {
2811
3000
  "group": "paint",
@@ -22,75 +22,79 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
22
22
  function plugin() {
23
23
  return {
24
24
  visitor: {
25
- CallExpression: function (_CallExpression) {
26
- function CallExpression(_x, _x2) {
27
- return _CallExpression.apply(this, arguments);
28
- }
25
+ Program: {
26
+ enter: function enter(path, state) {
27
+ path.traverse({
28
+ CallExpression: function (_CallExpression) {
29
+ function CallExpression(_x) {
30
+ return _CallExpression.apply(this, arguments);
31
+ }
29
32
 
30
- CallExpression.toString = function () {
31
- return _CallExpression.toString();
32
- };
33
+ CallExpression.toString = function () {
34
+ return _CallExpression.toString();
35
+ };
33
36
 
34
- return CallExpression;
35
- }(function (path, state) {
36
- var tokenImportScope = getTokenImportScope(path);
37
+ return CallExpression;
38
+ }(function (path) {
39
+ var tokenImportScope = getTokenImportScope(path);
37
40
 
38
- if (!tokenImportScope) {
39
- return;
40
- } // Check arguments have correct format
41
+ if (!tokenImportScope) {
42
+ return;
43
+ } // Check arguments have correct format
41
44
 
42
45
 
43
- if (!path.node.arguments[0]) {
44
- throw new Error("token() requires at least one argument");
45
- } else if (!t.isStringLiteral(path.node.arguments[0])) {
46
- throw new Error("token() must have a string as the first argument");
47
- } else if (path.node.arguments.length > 2) {
48
- throw new Error("token() does not accept ".concat(path.node.arguments.length, " arguments"));
49
- } // Check the token exists
46
+ if (!path.node.arguments[0]) {
47
+ throw new Error("token() requires at least one argument");
48
+ } else if (!t.isStringLiteral(path.node.arguments[0])) {
49
+ throw new Error("token() must have a string as the first argument");
50
+ } else if (path.node.arguments.length > 2) {
51
+ throw new Error("token() does not accept ".concat(path.node.arguments.length, " arguments"));
52
+ } // Check the token exists
50
53
 
51
54
 
52
- var tokenName = path.node.arguments[0].value;
53
- var cssTokenValue = _tokenNames.default[tokenName];
55
+ var tokenName = path.node.arguments[0].value;
56
+ var cssTokenValue = _tokenNames.default[tokenName];
54
57
 
55
- if (!cssTokenValue) {
56
- throw new Error("token '".concat(tokenName, "' does not exist"));
57
- }
58
+ if (!cssTokenValue) {
59
+ throw new Error("token '".concat(tokenName, "' does not exist"));
60
+ }
58
61
 
59
- var replacementNode; // if no fallback is set, optionally find one from the default theme
62
+ var replacementNode; // if no fallback is set, optionally find one from the default theme
60
63
 
61
- if (path.node.arguments.length < 2) {
62
- if (state.opts.shouldUseAutoFallback) {
63
- replacementNode = t.stringLiteral("var(".concat(cssTokenValue, ", ").concat(getDefaultFallback(tokenName), ")"));
64
- } else {
65
- replacementNode = t.stringLiteral("var(".concat(cssTokenValue, ")"));
66
- }
67
- } // Handle fallbacks
64
+ if (path.node.arguments.length < 2) {
65
+ if (state.opts.shouldUseAutoFallback) {
66
+ replacementNode = t.stringLiteral("var(".concat(cssTokenValue, ", ").concat(getDefaultFallback(tokenName), ")"));
67
+ } else {
68
+ replacementNode = t.stringLiteral("var(".concat(cssTokenValue, ")"));
69
+ }
70
+ } // Handle fallbacks
68
71
 
69
72
 
70
- var fallback = path.node.arguments[1];
73
+ var fallback = path.node.arguments[1];
71
74
 
72
- if (t.isStringLiteral(fallback)) {
73
- // String literals can be concatenated into css variable call
74
- // Empty string fallbacks are ignored. For now, as the user did specify a fallback, no default is inserted
75
- replacementNode = t.stringLiteral(fallback.value ? "var(".concat(cssTokenValue, ", ").concat(fallback.value, ")") : "var(".concat(cssTokenValue, ")"));
76
- } else if (t.isExpression(fallback)) {
77
- // Expressions should be placed in a template string/literal
78
- replacementNode = t.templateLiteral([t.templateElement({
79
- cooked: "var(".concat(cssTokenValue, ", "),
80
- // Currently we create a "raw" value by inserting escape characters via regex (https://github.com/babel/babel/issues/9242)
81
- raw: "var(".concat(cssTokenValue.replace(/\\|`|\${/g, '\\$&'), ", ")
82
- }, false), t.templateElement({
83
- raw: ')',
84
- cooked: ')'
85
- }, true)], [fallback]);
86
- } // Replace path and call scope.crawl() to refresh the scope bindings + references
75
+ if (t.isStringLiteral(fallback)) {
76
+ // String literals can be concatenated into css variable call
77
+ // Empty string fallbacks are ignored. For now, as the user did specify a fallback, no default is inserted
78
+ replacementNode = t.stringLiteral(fallback.value ? "var(".concat(cssTokenValue, ", ").concat(fallback.value, ")") : "var(".concat(cssTokenValue, ")"));
79
+ } else if (t.isExpression(fallback)) {
80
+ // Expressions should be placed in a template string/literal
81
+ replacementNode = t.templateLiteral([t.templateElement({
82
+ cooked: "var(".concat(cssTokenValue, ", "),
83
+ // Currently we create a "raw" value by inserting escape characters via regex (https://github.com/babel/babel/issues/9242)
84
+ raw: "var(".concat(cssTokenValue.replace(/\\|`|\${/g, '\\$&'), ", ")
85
+ }, false), t.templateElement({
86
+ raw: ')',
87
+ cooked: ')'
88
+ }, true)], [fallback]);
89
+ } // Replace path and call scope.crawl() to refresh the scope bindings + references
87
90
 
88
91
 
89
- replacementNode && path.replaceWith(replacementNode); // @ts-ignore crawl is a valid property
92
+ replacementNode && path.replaceWith(replacementNode); // @ts-ignore crawl is a valid property
90
93
 
91
- tokenImportScope.crawl();
92
- }),
93
- Program: {
94
+ tokenImportScope.crawl();
95
+ })
96
+ });
97
+ },
94
98
  exit: function exit(path) {
95
99
  path.traverse({
96
100
  ImportDeclaration: function ImportDeclaration(path) {
@@ -14,7 +14,7 @@ var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
14
14
  var _constants = require("./constants");
15
15
 
16
16
  var name = "@atlaskit/tokens";
17
- var version = "0.10.5";
17
+ var version = "0.10.8";
18
18
 
19
19
  function token(path, fallback) {
20
20
  var token = _tokenNames.default[path];
@@ -71,6 +71,14 @@ var color = {
71
71
  bolder: {
72
72
  value: 'M200'
73
73
  }
74
+ },
75
+ gray: {
76
+ '[default]': {
77
+ value: 'DN800'
78
+ },
79
+ bolder: {
80
+ value: 'DN1000'
81
+ }
74
82
  }
75
83
  }
76
84
  },
@@ -99,6 +107,9 @@ var color = {
99
107
  },
100
108
  magenta: {
101
109
  value: 'M500'
110
+ },
111
+ gray: {
112
+ value: 'DN600'
102
113
  }
103
114
  }
104
115
  },
@@ -127,6 +138,9 @@ var color = {
127
138
  },
128
139
  magenta: {
129
140
  value: 'M500'
141
+ },
142
+ gray: {
143
+ value: 'DN600'
130
144
  }
131
145
  }
132
146
  },
@@ -243,6 +257,20 @@ var color = {
243
257
  bolder: {
244
258
  value: 'M400'
245
259
  }
260
+ },
261
+ gray: {
262
+ subtlest: {
263
+ value: 'DN300'
264
+ },
265
+ subtler: {
266
+ value: 'DN400'
267
+ },
268
+ subtle: {
269
+ value: 'DN500'
270
+ },
271
+ bolder: {
272
+ value: 'DN700'
273
+ }
246
274
  }
247
275
  }
248
276
  }
@@ -10,6 +10,9 @@ var color = {
10
10
  '[default]': {
11
11
  value: 'DN300A'
12
12
  },
13
+ bold: {
14
+ value: 'DN600'
15
+ },
13
16
  inverse: {
14
17
  value: 'DN0'
15
18
  },
@@ -71,6 +71,14 @@ var color = {
71
71
  bolder: {
72
72
  value: 'M900'
73
73
  }
74
+ },
75
+ gray: {
76
+ '[default]': {
77
+ value: 'N800'
78
+ },
79
+ bolder: {
80
+ value: 'N1000'
81
+ }
74
82
  }
75
83
  }
76
84
  },
@@ -99,6 +107,9 @@ var color = {
99
107
  },
100
108
  magenta: {
101
109
  value: 'M600'
110
+ },
111
+ gray: {
112
+ value: 'N600'
102
113
  }
103
114
  }
104
115
  },
@@ -127,6 +138,9 @@ var color = {
127
138
  },
128
139
  magenta: {
129
140
  value: 'M600'
141
+ },
142
+ gray: {
143
+ value: 'N600'
130
144
  }
131
145
  }
132
146
  },
@@ -243,6 +257,20 @@ var color = {
243
257
  bolder: {
244
258
  value: 'M700'
245
259
  }
260
+ },
261
+ gray: {
262
+ subtlest: {
263
+ value: 'N200'
264
+ },
265
+ subtler: {
266
+ value: 'N300'
267
+ },
268
+ subtle: {
269
+ value: 'N500'
270
+ },
271
+ bolder: {
272
+ value: 'N700'
273
+ }
246
274
  }
247
275
  }
248
276
  }
@@ -10,6 +10,9 @@ var color = {
10
10
  '[default]': {
11
11
  value: 'N300A'
12
12
  },
13
+ bold: {
14
+ value: 'N600'
15
+ },
13
16
  inverse: {
14
17
  value: 'N0'
15
18
  },
@@ -151,6 +151,24 @@ var color = {
151
151
  description: 'Use on bold magenta accent backgrounds.'
152
152
  }
153
153
  }
154
+ },
155
+ gray: {
156
+ '[default]': {
157
+ attributes: {
158
+ group: 'paint',
159
+ state: 'active',
160
+ introduced: '0.10.5',
161
+ description: 'Use for text on non-bold gray accent backgrounds, such as colored tags.'
162
+ }
163
+ },
164
+ bolder: {
165
+ attributes: {
166
+ group: 'paint',
167
+ state: 'active',
168
+ introduced: '0.10.5',
169
+ description: 'Use for text and icons on gray subtle accent backgrounds.'
170
+ }
171
+ }
154
172
  }
155
173
  }
156
174
  },
@@ -219,6 +237,14 @@ var color = {
219
237
  introduced: '0.6.0',
220
238
  description: 'Use for magenta icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.'
221
239
  }
240
+ },
241
+ gray: {
242
+ attributes: {
243
+ group: 'paint',
244
+ state: 'active',
245
+ introduced: '0.10.5',
246
+ description: 'Use for icons on non-bold gray accent backgrounds, such as file type icons.'
247
+ }
222
248
  }
223
249
  }
224
250
  },
@@ -287,6 +313,14 @@ var color = {
287
313
  introduced: '0.6.0',
288
314
  description: 'Use for magenta borders on non-bold backgrounds when there is no meaning tied to the color.'
289
315
  }
316
+ },
317
+ gray: {
318
+ attributes: {
319
+ group: 'paint',
320
+ state: 'active',
321
+ introduced: '0.10.5',
322
+ description: 'Use for borders on non-bold gray accent backgrounds.'
323
+ }
290
324
  }
291
325
  }
292
326
  },
@@ -306,7 +340,7 @@ var color = {
306
340
  group: 'paint',
307
341
  state: 'active',
308
342
  introduced: '0.7.0',
309
- description: 'Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
343
+ description: 'Use for blue backgrounds when there is no meaning tied to the color, such as colored tags.'
310
344
  }
311
345
  },
312
346
  subtle: {
@@ -314,7 +348,7 @@ var color = {
314
348
  group: 'paint',
315
349
  state: 'active',
316
350
  introduced: '0.7.0',
317
- description: 'Use for vibrant blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
351
+ description: 'Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags.'
318
352
  }
319
353
  },
320
354
  bolder: {
@@ -563,6 +597,40 @@ var color = {
563
597
  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.'
564
598
  }
565
599
  }
600
+ },
601
+ gray: {
602
+ subtlest: {
603
+ attributes: {
604
+ group: 'paint',
605
+ state: 'active',
606
+ introduced: '0.7.0',
607
+ description: 'Use for gray backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
608
+ }
609
+ },
610
+ subtler: {
611
+ attributes: {
612
+ group: 'paint',
613
+ state: 'active',
614
+ introduced: '0.7.0',
615
+ description: 'Use for gray backgrounds when there is no meaning tied to the color, such as colored tags.'
616
+ }
617
+ },
618
+ subtle: {
619
+ attributes: {
620
+ group: 'paint',
621
+ state: 'active',
622
+ introduced: '0.7.0',
623
+ description: 'Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags.'
624
+ }
625
+ },
626
+ bolder: {
627
+ attributes: {
628
+ group: 'paint',
629
+ state: 'active',
630
+ introduced: '0.7.0',
631
+ 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.'
632
+ }
633
+ }
566
634
  }
567
635
  }
568
636
  }