@atlaskit/tokens 1.6.0 → 1.8.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.
- package/CHANGELOG.md +27 -0
- package/dist/cjs/artifacts/generated-pairs.js +313 -1
- package/dist/cjs/artifacts/palettes-raw/palette.js +171 -1
- package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +15 -1
- package/dist/cjs/artifacts/token-names.js +15 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +309 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +309 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +309 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +309 -1
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/palette.js +70 -0
- package/dist/cjs/set-global-theme.js +30 -6
- package/dist/cjs/tokens/atlassian-dark/color/accent.js +28 -0
- package/dist/cjs/tokens/atlassian-dark/color/chart.js +26 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/accent.js +36 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/chart.js +32 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/accent.js +36 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/chart.js +32 -0
- package/dist/cjs/tokens/atlassian-light/color/accent.js +28 -0
- package/dist/cjs/tokens/atlassian-light/color/chart.js +26 -0
- package/dist/cjs/tokens/default/color/accent.js +68 -0
- package/dist/cjs/tokens/default/color/chart.js +56 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/generated-pairs.js +313 -1
- package/dist/es2019/artifacts/palettes-raw/palette.js +171 -1
- package/dist/es2019/artifacts/themes/atlassian-dark.js +15 -1
- package/dist/es2019/artifacts/themes/atlassian-legacy-dark.js +15 -1
- package/dist/es2019/artifacts/themes/atlassian-legacy-light.js +15 -1
- package/dist/es2019/artifacts/themes/atlassian-light.js +15 -1
- package/dist/es2019/artifacts/token-default-values.js +15 -1
- package/dist/es2019/artifacts/token-names.js +15 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +309 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +309 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +309 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +309 -1
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/palette.js +70 -0
- package/dist/es2019/set-global-theme.js +30 -6
- package/dist/es2019/tokens/atlassian-dark/color/accent.js +28 -0
- package/dist/es2019/tokens/atlassian-dark/color/chart.js +26 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/accent.js +36 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/chart.js +32 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/accent.js +36 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/chart.js +32 -0
- package/dist/es2019/tokens/atlassian-light/color/accent.js +28 -0
- package/dist/es2019/tokens/atlassian-light/color/chart.js +26 -0
- package/dist/es2019/tokens/default/color/accent.js +68 -0
- package/dist/es2019/tokens/default/color/chart.js +56 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/generated-pairs.js +313 -1
- package/dist/esm/artifacts/palettes-raw/palette.js +171 -1
- package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-legacy-dark.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-legacy-light.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +15 -1
- package/dist/esm/artifacts/token-names.js +15 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +309 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +309 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +309 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +309 -1
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/palette.js +70 -0
- package/dist/esm/set-global-theme.js +30 -6
- package/dist/esm/tokens/atlassian-dark/color/accent.js +28 -0
- package/dist/esm/tokens/atlassian-dark/color/chart.js +26 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/accent.js +36 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/chart.js +32 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/accent.js +36 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/chart.js +32 -0
- package/dist/esm/tokens/atlassian-light/color/accent.js +28 -0
- package/dist/esm/tokens/atlassian-light/color/chart.js +26 -0
- package/dist/esm/tokens/default/color/accent.js +68 -0
- package/dist/esm/tokens/default/color/chart.js +56 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types/artifacts/palettes-raw/palette.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +15 -1
- package/dist/types/artifacts/token-names.d.ts +29 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/palettes/palette.d.ts +1 -1
- package/dist/types/set-global-theme.d.ts +3 -1
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types/types.d.ts +27 -1
- package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +15 -1
- package/dist/types-ts4.5/artifacts/token-names.d.ts +29 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
- package/dist/types-ts4.5/palettes/palette.d.ts +1 -1
- package/dist/types-ts4.5/set-global-theme.d.ts +3 -1
- package/dist/types-ts4.5/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +27 -1
- package/figma/atlassian-dark.json +126 -0
- package/figma/atlassian-legacy-dark.json +126 -0
- package/figma/atlassian-legacy-light.json +126 -0
- package/figma/atlassian-light.json +126 -0
- package/package.json +5 -2
- package/report.api.md +57 -1
- package/tmp/api-report-tmp.d.ts +31 -3
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::148c69092f499e3fd244297f7a130fbf>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
var tokens = [{
|
|
@@ -31,6 +31,50 @@ var tokens = [{
|
|
|
31
31
|
"name": "color.text.[default]",
|
|
32
32
|
"path": ["color", "text", "[default]"],
|
|
33
33
|
"cleanName": "color.text"
|
|
34
|
+
}, {
|
|
35
|
+
"attributes": {
|
|
36
|
+
"group": "paint",
|
|
37
|
+
"state": "active",
|
|
38
|
+
"introduced": "1.6.0",
|
|
39
|
+
"description": "Use for lime text on subtlest and subtler lime accent backgrounds when there is no meaning tied to the color."
|
|
40
|
+
},
|
|
41
|
+
"value": "#4C6B1F",
|
|
42
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
43
|
+
"isSource": true,
|
|
44
|
+
"original": {
|
|
45
|
+
"attributes": {
|
|
46
|
+
"group": "paint",
|
|
47
|
+
"state": "active",
|
|
48
|
+
"introduced": "1.6.0",
|
|
49
|
+
"description": "Use for lime text on subtlest and subtler lime accent backgrounds when there is no meaning tied to the color."
|
|
50
|
+
},
|
|
51
|
+
"value": "Lime800"
|
|
52
|
+
},
|
|
53
|
+
"name": "color.text.accent.lime.[default]",
|
|
54
|
+
"path": ["color", "text", "accent", "lime", "[default]"],
|
|
55
|
+
"cleanName": "color.text.accent.lime"
|
|
56
|
+
}, {
|
|
57
|
+
"attributes": {
|
|
58
|
+
"group": "paint",
|
|
59
|
+
"state": "active",
|
|
60
|
+
"introduced": "0.7.0",
|
|
61
|
+
"description": "Use for lime text on subtle lime accent backgrounds when there is no meaning tied to the color."
|
|
62
|
+
},
|
|
63
|
+
"value": "#37471F",
|
|
64
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
65
|
+
"isSource": true,
|
|
66
|
+
"original": {
|
|
67
|
+
"attributes": {
|
|
68
|
+
"group": "paint",
|
|
69
|
+
"state": "active",
|
|
70
|
+
"introduced": "0.7.0",
|
|
71
|
+
"description": "Use for lime text on subtle lime accent backgrounds when there is no meaning tied to the color."
|
|
72
|
+
},
|
|
73
|
+
"value": "Lime900"
|
|
74
|
+
},
|
|
75
|
+
"name": "color.text.accent.lime.bolder",
|
|
76
|
+
"path": ["color", "text", "accent", "lime", "bolder"],
|
|
77
|
+
"cleanName": "color.text.accent.lime.bolder"
|
|
34
78
|
}, {
|
|
35
79
|
"attributes": {
|
|
36
80
|
"group": "paint",
|
|
@@ -757,6 +801,28 @@ var tokens = [{
|
|
|
757
801
|
"name": "color.icon.[default]",
|
|
758
802
|
"path": ["color", "icon", "[default]"],
|
|
759
803
|
"cleanName": "color.icon"
|
|
804
|
+
}, {
|
|
805
|
+
"attributes": {
|
|
806
|
+
"group": "paint",
|
|
807
|
+
"state": "active",
|
|
808
|
+
"introduced": "1.6.0",
|
|
809
|
+
"description": "Use for lime icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons."
|
|
810
|
+
},
|
|
811
|
+
"value": "#6A9A23",
|
|
812
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
813
|
+
"isSource": true,
|
|
814
|
+
"original": {
|
|
815
|
+
"attributes": {
|
|
816
|
+
"group": "paint",
|
|
817
|
+
"state": "active",
|
|
818
|
+
"introduced": "1.6.0",
|
|
819
|
+
"description": "Use for lime icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons."
|
|
820
|
+
},
|
|
821
|
+
"value": "Lime600"
|
|
822
|
+
},
|
|
823
|
+
"name": "color.icon.accent.lime",
|
|
824
|
+
"path": ["color", "icon", "accent", "lime"],
|
|
825
|
+
"cleanName": "color.icon.accent.lime"
|
|
760
826
|
}, {
|
|
761
827
|
"attributes": {
|
|
762
828
|
"group": "paint",
|
|
@@ -1219,6 +1285,28 @@ var tokens = [{
|
|
|
1219
1285
|
"name": "color.border.[default]",
|
|
1220
1286
|
"path": ["color", "border", "[default]"],
|
|
1221
1287
|
"cleanName": "color.border"
|
|
1288
|
+
}, {
|
|
1289
|
+
"attributes": {
|
|
1290
|
+
"group": "paint",
|
|
1291
|
+
"state": "active",
|
|
1292
|
+
"introduced": "1.6.0",
|
|
1293
|
+
"description": "Use for lime borders on non-bold backgrounds when there is no meaning tied to the color."
|
|
1294
|
+
},
|
|
1295
|
+
"value": "#6A9A23",
|
|
1296
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1297
|
+
"isSource": true,
|
|
1298
|
+
"original": {
|
|
1299
|
+
"attributes": {
|
|
1300
|
+
"group": "paint",
|
|
1301
|
+
"state": "active",
|
|
1302
|
+
"introduced": "1.6.0",
|
|
1303
|
+
"description": "Use for lime borders on non-bold backgrounds when there is no meaning tied to the color."
|
|
1304
|
+
},
|
|
1305
|
+
"value": "Lime600"
|
|
1306
|
+
},
|
|
1307
|
+
"name": "color.border.accent.lime",
|
|
1308
|
+
"path": ["color", "border", "accent", "lime"],
|
|
1309
|
+
"cleanName": "color.border.accent.lime"
|
|
1222
1310
|
}, {
|
|
1223
1311
|
"attributes": {
|
|
1224
1312
|
"group": "paint",
|
|
@@ -1681,6 +1769,94 @@ var tokens = [{
|
|
|
1681
1769
|
"name": "color.border.bold",
|
|
1682
1770
|
"path": ["color", "border", "bold"],
|
|
1683
1771
|
"cleanName": "color.border.bold"
|
|
1772
|
+
}, {
|
|
1773
|
+
"attributes": {
|
|
1774
|
+
"group": "paint",
|
|
1775
|
+
"state": "active",
|
|
1776
|
+
"introduced": "1.6.0",
|
|
1777
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color."
|
|
1778
|
+
},
|
|
1779
|
+
"value": "#EEFBDA",
|
|
1780
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1781
|
+
"isSource": true,
|
|
1782
|
+
"original": {
|
|
1783
|
+
"attributes": {
|
|
1784
|
+
"group": "paint",
|
|
1785
|
+
"state": "active",
|
|
1786
|
+
"introduced": "1.6.0",
|
|
1787
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color."
|
|
1788
|
+
},
|
|
1789
|
+
"value": "Lime100"
|
|
1790
|
+
},
|
|
1791
|
+
"name": "color.background.accent.lime.subtlest",
|
|
1792
|
+
"path": ["color", "background", "accent", "lime", "subtlest"],
|
|
1793
|
+
"cleanName": "color.background.accent.lime.subtlest"
|
|
1794
|
+
}, {
|
|
1795
|
+
"attributes": {
|
|
1796
|
+
"group": "paint",
|
|
1797
|
+
"state": "active",
|
|
1798
|
+
"introduced": "1.6.0",
|
|
1799
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color, such as colored tags."
|
|
1800
|
+
},
|
|
1801
|
+
"value": "#D3F1A7",
|
|
1802
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1803
|
+
"isSource": true,
|
|
1804
|
+
"original": {
|
|
1805
|
+
"attributes": {
|
|
1806
|
+
"group": "paint",
|
|
1807
|
+
"state": "active",
|
|
1808
|
+
"introduced": "1.6.0",
|
|
1809
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color, such as colored tags."
|
|
1810
|
+
},
|
|
1811
|
+
"value": "Lime200"
|
|
1812
|
+
},
|
|
1813
|
+
"name": "color.background.accent.lime.subtler",
|
|
1814
|
+
"path": ["color", "background", "accent", "lime", "subtler"],
|
|
1815
|
+
"cleanName": "color.background.accent.lime.subtler"
|
|
1816
|
+
}, {
|
|
1817
|
+
"attributes": {
|
|
1818
|
+
"group": "paint",
|
|
1819
|
+
"state": "active",
|
|
1820
|
+
"introduced": "1.6.0",
|
|
1821
|
+
"description": "Use for vibrant for backgrounds when there is no meaning tied to the color, such as colored tags."
|
|
1822
|
+
},
|
|
1823
|
+
"value": "#94C748",
|
|
1824
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1825
|
+
"isSource": true,
|
|
1826
|
+
"original": {
|
|
1827
|
+
"attributes": {
|
|
1828
|
+
"group": "paint",
|
|
1829
|
+
"state": "active",
|
|
1830
|
+
"introduced": "1.6.0",
|
|
1831
|
+
"description": "Use for vibrant for backgrounds when there is no meaning tied to the color, such as colored tags."
|
|
1832
|
+
},
|
|
1833
|
+
"value": "Lime400"
|
|
1834
|
+
},
|
|
1835
|
+
"name": "color.background.accent.lime.subtle",
|
|
1836
|
+
"path": ["color", "background", "accent", "lime", "subtle"],
|
|
1837
|
+
"cleanName": "color.background.accent.lime.subtle"
|
|
1838
|
+
}, {
|
|
1839
|
+
"attributes": {
|
|
1840
|
+
"group": "paint",
|
|
1841
|
+
"state": "active",
|
|
1842
|
+
"introduced": "1.6.0",
|
|
1843
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements."
|
|
1844
|
+
},
|
|
1845
|
+
"value": "#5B7F24",
|
|
1846
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1847
|
+
"isSource": true,
|
|
1848
|
+
"original": {
|
|
1849
|
+
"attributes": {
|
|
1850
|
+
"group": "paint",
|
|
1851
|
+
"state": "active",
|
|
1852
|
+
"introduced": "1.6.0",
|
|
1853
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements."
|
|
1854
|
+
},
|
|
1855
|
+
"value": "Lime700"
|
|
1856
|
+
},
|
|
1857
|
+
"name": "color.background.accent.lime.bolder",
|
|
1858
|
+
"path": ["color", "background", "accent", "lime", "bolder"],
|
|
1859
|
+
"cleanName": "color.background.accent.lime.bolder"
|
|
1684
1860
|
}, {
|
|
1685
1861
|
"attributes": {
|
|
1686
1862
|
"group": "paint",
|
|
@@ -4189,6 +4365,138 @@ var tokens = [{
|
|
|
4189
4365
|
"name": "color.chart.categorical.8.hovered",
|
|
4190
4366
|
"path": ["color", "chart", "categorical", "8", "hovered"],
|
|
4191
4367
|
"cleanName": "color.chart.categorical.8.hovered"
|
|
4368
|
+
}, {
|
|
4369
|
+
"attributes": {
|
|
4370
|
+
"group": "paint",
|
|
4371
|
+
"state": "active",
|
|
4372
|
+
"introduced": "0.13.3",
|
|
4373
|
+
"description": "For data visualisation only."
|
|
4374
|
+
},
|
|
4375
|
+
"value": "#6A9A23",
|
|
4376
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4377
|
+
"isSource": true,
|
|
4378
|
+
"original": {
|
|
4379
|
+
"attributes": {
|
|
4380
|
+
"group": "paint",
|
|
4381
|
+
"state": "active",
|
|
4382
|
+
"introduced": "0.13.3",
|
|
4383
|
+
"description": "For data visualisation only."
|
|
4384
|
+
},
|
|
4385
|
+
"value": "Lime600"
|
|
4386
|
+
},
|
|
4387
|
+
"name": "color.chart.lime.bold.[default]",
|
|
4388
|
+
"path": ["color", "chart", "lime", "bold", "[default]"],
|
|
4389
|
+
"cleanName": "color.chart.lime.bold"
|
|
4390
|
+
}, {
|
|
4391
|
+
"attributes": {
|
|
4392
|
+
"group": "paint",
|
|
4393
|
+
"state": "active",
|
|
4394
|
+
"introduced": "0.13.3",
|
|
4395
|
+
"description": "Hovered state of color.chart.lime.bold."
|
|
4396
|
+
},
|
|
4397
|
+
"value": "#5B7F24",
|
|
4398
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4399
|
+
"isSource": true,
|
|
4400
|
+
"original": {
|
|
4401
|
+
"attributes": {
|
|
4402
|
+
"group": "paint",
|
|
4403
|
+
"state": "active",
|
|
4404
|
+
"introduced": "0.13.3",
|
|
4405
|
+
"description": "Hovered state of color.chart.lime.bold."
|
|
4406
|
+
},
|
|
4407
|
+
"value": "Lime700"
|
|
4408
|
+
},
|
|
4409
|
+
"name": "color.chart.lime.bold.hovered",
|
|
4410
|
+
"path": ["color", "chart", "lime", "bold", "hovered"],
|
|
4411
|
+
"cleanName": "color.chart.lime.bold.hovered"
|
|
4412
|
+
}, {
|
|
4413
|
+
"attributes": {
|
|
4414
|
+
"group": "paint",
|
|
4415
|
+
"state": "active",
|
|
4416
|
+
"introduced": "0.13.3",
|
|
4417
|
+
"description": "For data visualisation only."
|
|
4418
|
+
},
|
|
4419
|
+
"value": "#5B7F24",
|
|
4420
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4421
|
+
"isSource": true,
|
|
4422
|
+
"original": {
|
|
4423
|
+
"attributes": {
|
|
4424
|
+
"group": "paint",
|
|
4425
|
+
"state": "active",
|
|
4426
|
+
"introduced": "0.13.3",
|
|
4427
|
+
"description": "For data visualisation only."
|
|
4428
|
+
},
|
|
4429
|
+
"value": "Lime700"
|
|
4430
|
+
},
|
|
4431
|
+
"name": "color.chart.lime.bolder.[default]",
|
|
4432
|
+
"path": ["color", "chart", "lime", "bolder", "[default]"],
|
|
4433
|
+
"cleanName": "color.chart.lime.bolder"
|
|
4434
|
+
}, {
|
|
4435
|
+
"attributes": {
|
|
4436
|
+
"group": "paint",
|
|
4437
|
+
"state": "active",
|
|
4438
|
+
"introduced": "0.13.3",
|
|
4439
|
+
"description": "Hovered state of color.chart.lime.bolder."
|
|
4440
|
+
},
|
|
4441
|
+
"value": "#4C6B1F",
|
|
4442
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4443
|
+
"isSource": true,
|
|
4444
|
+
"original": {
|
|
4445
|
+
"attributes": {
|
|
4446
|
+
"group": "paint",
|
|
4447
|
+
"state": "active",
|
|
4448
|
+
"introduced": "0.13.3",
|
|
4449
|
+
"description": "Hovered state of color.chart.lime.bolder."
|
|
4450
|
+
},
|
|
4451
|
+
"value": "Lime800"
|
|
4452
|
+
},
|
|
4453
|
+
"name": "color.chart.lime.bolder.hovered",
|
|
4454
|
+
"path": ["color", "chart", "lime", "bolder", "hovered"],
|
|
4455
|
+
"cleanName": "color.chart.lime.bolder.hovered"
|
|
4456
|
+
}, {
|
|
4457
|
+
"attributes": {
|
|
4458
|
+
"group": "paint",
|
|
4459
|
+
"state": "active",
|
|
4460
|
+
"introduced": "0.13.3",
|
|
4461
|
+
"description": "For data visualisation only."
|
|
4462
|
+
},
|
|
4463
|
+
"value": "#4C6B1F",
|
|
4464
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4465
|
+
"isSource": true,
|
|
4466
|
+
"original": {
|
|
4467
|
+
"attributes": {
|
|
4468
|
+
"group": "paint",
|
|
4469
|
+
"state": "active",
|
|
4470
|
+
"introduced": "0.13.3",
|
|
4471
|
+
"description": "For data visualisation only."
|
|
4472
|
+
},
|
|
4473
|
+
"value": "Lime800"
|
|
4474
|
+
},
|
|
4475
|
+
"name": "color.chart.lime.boldest.[default]",
|
|
4476
|
+
"path": ["color", "chart", "lime", "boldest", "[default]"],
|
|
4477
|
+
"cleanName": "color.chart.lime.boldest"
|
|
4478
|
+
}, {
|
|
4479
|
+
"attributes": {
|
|
4480
|
+
"group": "paint",
|
|
4481
|
+
"state": "active",
|
|
4482
|
+
"introduced": "0.13.3",
|
|
4483
|
+
"description": "Hovered state of color.chart.lime.boldest."
|
|
4484
|
+
},
|
|
4485
|
+
"value": "#37471F",
|
|
4486
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4487
|
+
"isSource": true,
|
|
4488
|
+
"original": {
|
|
4489
|
+
"attributes": {
|
|
4490
|
+
"group": "paint",
|
|
4491
|
+
"state": "active",
|
|
4492
|
+
"introduced": "0.13.3",
|
|
4493
|
+
"description": "Hovered state of color.chart.lime.boldest."
|
|
4494
|
+
},
|
|
4495
|
+
"value": "Lime900"
|
|
4496
|
+
},
|
|
4497
|
+
"name": "color.chart.lime.boldest.hovered",
|
|
4498
|
+
"path": ["color", "chart", "lime", "boldest", "hovered"],
|
|
4499
|
+
"cleanName": "color.chart.lime.boldest.hovered"
|
|
4192
4500
|
}, {
|
|
4193
4501
|
"attributes": {
|
|
4194
4502
|
"group": "paint",
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var name = "@atlaskit/tokens";
|
|
11
|
-
var version = "1.
|
|
11
|
+
var version = "1.8.0";
|
|
12
12
|
/**
|
|
13
13
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
14
14
|
* resulting CSS Custom Property.
|
package/dist/cjs/get-token.js
CHANGED
|
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
var name = "@atlaskit/tokens";
|
|
12
|
-
var version = "1.
|
|
12
|
+
var version = "1.8.0";
|
|
13
13
|
/**
|
|
14
14
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
15
15
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -585,6 +585,76 @@ var palette = {
|
|
|
585
585
|
category: 'magenta'
|
|
586
586
|
}
|
|
587
587
|
},
|
|
588
|
+
Lime100: {
|
|
589
|
+
value: '#EEFBDA',
|
|
590
|
+
attributes: {
|
|
591
|
+
group: 'palette',
|
|
592
|
+
category: 'lime'
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
Lime200: {
|
|
596
|
+
value: '#D3F1A7',
|
|
597
|
+
attributes: {
|
|
598
|
+
group: 'palette',
|
|
599
|
+
category: 'lime'
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
Lime300: {
|
|
603
|
+
value: '#B3DF72',
|
|
604
|
+
attributes: {
|
|
605
|
+
group: 'palette',
|
|
606
|
+
category: 'lime'
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
Lime400: {
|
|
610
|
+
value: '#94C748',
|
|
611
|
+
attributes: {
|
|
612
|
+
group: 'palette',
|
|
613
|
+
category: 'lime'
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
Lime500: {
|
|
617
|
+
value: '#82B536',
|
|
618
|
+
attributes: {
|
|
619
|
+
group: 'palette',
|
|
620
|
+
category: 'lime'
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
Lime600: {
|
|
624
|
+
value: '#6A9A23',
|
|
625
|
+
attributes: {
|
|
626
|
+
group: 'palette',
|
|
627
|
+
category: 'lime'
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
Lime700: {
|
|
631
|
+
value: '#5B7F24',
|
|
632
|
+
attributes: {
|
|
633
|
+
group: 'palette',
|
|
634
|
+
category: 'lime'
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
Lime800: {
|
|
638
|
+
value: '#4C6B1F',
|
|
639
|
+
attributes: {
|
|
640
|
+
group: 'palette',
|
|
641
|
+
category: 'lime'
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
Lime900: {
|
|
645
|
+
value: '#37471F',
|
|
646
|
+
attributes: {
|
|
647
|
+
group: 'palette',
|
|
648
|
+
category: 'lime'
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
Lime1000: {
|
|
652
|
+
value: '#2A3818',
|
|
653
|
+
attributes: {
|
|
654
|
+
group: 'palette',
|
|
655
|
+
category: 'lime'
|
|
656
|
+
}
|
|
657
|
+
},
|
|
588
658
|
'DarkNeutral-100': {
|
|
589
659
|
value: '#101214',
|
|
590
660
|
attributes: {
|
|
@@ -45,10 +45,11 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
45
45
|
var colorMode = themeState.colorMode,
|
|
46
46
|
dark = themeState.dark,
|
|
47
47
|
light = themeState.light,
|
|
48
|
+
shape = themeState.shape,
|
|
48
49
|
spacing = themeState.spacing,
|
|
49
50
|
typography = themeState.typography;
|
|
50
51
|
var themePreferences = colorMode === 'auto' ? [light, dark] : [themeState[colorMode]];
|
|
51
|
-
[spacing, typography].forEach(function (themeId) {
|
|
52
|
+
[shape, spacing, typography].forEach(function (themeId) {
|
|
52
53
|
if (themeId) {
|
|
53
54
|
themePreferences.push(themeId);
|
|
54
55
|
}
|
|
@@ -56,6 +57,16 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
56
57
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1')) {
|
|
57
58
|
themePreferences.push("".concat(themePreferences.includes('dark') ? 'dark' : 'light', "-new-input-border"));
|
|
58
59
|
}
|
|
60
|
+
|
|
61
|
+
// Load shape and spacing by default, currently behind a feature flag
|
|
62
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.space-and-shape-tokens_q5me6')) {
|
|
63
|
+
if (!themePreferences.includes('shape')) {
|
|
64
|
+
themePreferences.push('shape');
|
|
65
|
+
}
|
|
66
|
+
if (!themePreferences.includes('spacing')) {
|
|
67
|
+
themePreferences.push('spacing');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
59
70
|
return (0, _toConsumableArray2.default)(new Set(themePreferences));
|
|
60
71
|
};
|
|
61
72
|
|
|
@@ -66,6 +77,7 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
66
77
|
* @param {string} themeState.colorMode Determines which color theme is applied. If set to `auto`, the theme applied will be determined by the OS setting.
|
|
67
78
|
* @param {string} themeState.dark The color theme to be applied when the color mode resolves to 'dark'.
|
|
68
79
|
* @param {string} themeState.light The color theme to be applied when the color mode resolves to 'light'.
|
|
80
|
+
* @param {string} themeState.shape The shape theme to be applied.
|
|
69
81
|
* @param {string} themeState.spacing The spacing theme to be applied.
|
|
70
82
|
* @param {string} themeState.typography The typography theme to be applied.
|
|
71
83
|
*
|
|
@@ -194,6 +206,7 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
194
206
|
* @param {string} themeState.colorMode Determines which color theme is applied. If set to `auto`, the theme applied will be determined by the OS setting.
|
|
195
207
|
* @param {string} themeState.dark The color theme to be applied when the color mode resolves to 'dark'.
|
|
196
208
|
* @param {string} themeState.light The color theme to be applied when the color mode resolves to 'light'.
|
|
209
|
+
* @param {string} themeState.shape The shape theme to be applied.
|
|
197
210
|
* @param {string} themeState.spacing The spacing theme to be applied.
|
|
198
211
|
* @param {string} themeState.typography The typography theme to be applied.
|
|
199
212
|
*
|
|
@@ -209,19 +222,19 @@ var getThemeStyles = /*#__PURE__*/function () {
|
|
|
209
222
|
dark,
|
|
210
223
|
_ref7$light,
|
|
211
224
|
light,
|
|
225
|
+
_ref7$shape,
|
|
226
|
+
shape,
|
|
212
227
|
_ref7$spacing,
|
|
213
228
|
spacing,
|
|
214
229
|
_ref7$typography,
|
|
215
230
|
typography,
|
|
216
|
-
_ref7$shape,
|
|
217
|
-
shape,
|
|
218
231
|
themePreferences,
|
|
219
232
|
results,
|
|
220
233
|
_args4 = arguments;
|
|
221
234
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
222
235
|
while (1) switch (_context4.prev = _context4.next) {
|
|
223
236
|
case 0:
|
|
224
|
-
_ref7 = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {}, _ref7$colorMode = _ref7.colorMode, colorMode = _ref7$colorMode === void 0 ? themeStateDefaults['colorMode'] : _ref7$colorMode, _ref7$dark = _ref7.dark, dark = _ref7$dark === void 0 ? themeStateDefaults['dark'] : _ref7$dark, _ref7$light = _ref7.light, light = _ref7$light === void 0 ? themeStateDefaults['light'] : _ref7$light, _ref7$
|
|
237
|
+
_ref7 = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {}, _ref7$colorMode = _ref7.colorMode, colorMode = _ref7$colorMode === void 0 ? themeStateDefaults['colorMode'] : _ref7$colorMode, _ref7$dark = _ref7.dark, dark = _ref7$dark === void 0 ? themeStateDefaults['dark'] : _ref7$dark, _ref7$light = _ref7.light, light = _ref7$light === void 0 ? themeStateDefaults['light'] : _ref7$light, _ref7$shape = _ref7.shape, shape = _ref7$shape === void 0 ? themeStateDefaults['shape'] : _ref7$shape, _ref7$spacing = _ref7.spacing, spacing = _ref7$spacing === void 0 ? themeStateDefaults['spacing'] : _ref7$spacing, _ref7$typography = _ref7.typography, typography = _ref7$typography === void 0 ? themeStateDefaults['typography'] : _ref7$typography;
|
|
225
238
|
themePreferences = getThemePreferences({
|
|
226
239
|
colorMode: colorMode,
|
|
227
240
|
dark: dark,
|
|
@@ -320,10 +333,21 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
320
333
|
var themePreferences = {
|
|
321
334
|
dark: dark,
|
|
322
335
|
light: light,
|
|
336
|
+
shape: shape,
|
|
323
337
|
spacing: spacing,
|
|
324
|
-
typography: typography
|
|
325
|
-
shape: shape
|
|
338
|
+
typography: typography
|
|
326
339
|
};
|
|
340
|
+
|
|
341
|
+
// Load shape and spacing by default, currently behind a feature flag
|
|
342
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.space-and-shape-tokens_q5me6')) {
|
|
343
|
+
themePreferences = {
|
|
344
|
+
dark: dark,
|
|
345
|
+
light: light,
|
|
346
|
+
shape: 'shape',
|
|
347
|
+
spacing: 'spacing',
|
|
348
|
+
typography: typography
|
|
349
|
+
};
|
|
350
|
+
}
|
|
327
351
|
var themeAttribute = (0, _themeStateTransformer.themeObjectToString)(themePreferences);
|
|
328
352
|
return _ref10 = {}, (0, _defineProperty2.default)(_ref10, _constants.THEME_DATA_ATTRIBUTE, themeAttribute), (0, _defineProperty2.default)(_ref10, _constants.COLOR_MODE_ATTRIBUTE, colorMode === 'auto' ? defaultColorMode : colorMode), _ref10;
|
|
329
353
|
};
|
|
@@ -72,6 +72,14 @@ var color = {
|
|
|
72
72
|
value: 'Magenta200'
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
+
lime: {
|
|
76
|
+
'[default]': {
|
|
77
|
+
value: 'Lime300'
|
|
78
|
+
},
|
|
79
|
+
bolder: {
|
|
80
|
+
value: 'Lime200'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
75
83
|
gray: {
|
|
76
84
|
'[default]': {
|
|
77
85
|
value: 'DarkNeutral800'
|
|
@@ -108,6 +116,9 @@ var color = {
|
|
|
108
116
|
magenta: {
|
|
109
117
|
value: 'Magenta500'
|
|
110
118
|
},
|
|
119
|
+
lime: {
|
|
120
|
+
value: 'Lime500'
|
|
121
|
+
},
|
|
111
122
|
gray: {
|
|
112
123
|
value: 'DarkNeutral600'
|
|
113
124
|
}
|
|
@@ -139,6 +150,9 @@ var color = {
|
|
|
139
150
|
magenta: {
|
|
140
151
|
value: 'Magenta500'
|
|
141
152
|
},
|
|
153
|
+
lime: {
|
|
154
|
+
value: 'Lime500'
|
|
155
|
+
},
|
|
142
156
|
gray: {
|
|
143
157
|
value: 'DarkNeutral600'
|
|
144
158
|
}
|
|
@@ -258,6 +272,20 @@ var color = {
|
|
|
258
272
|
value: 'Magenta400'
|
|
259
273
|
}
|
|
260
274
|
},
|
|
275
|
+
lime: {
|
|
276
|
+
subtlest: {
|
|
277
|
+
value: 'Lime1000'
|
|
278
|
+
},
|
|
279
|
+
subtler: {
|
|
280
|
+
value: 'Lime900'
|
|
281
|
+
},
|
|
282
|
+
subtle: {
|
|
283
|
+
value: 'Lime800'
|
|
284
|
+
},
|
|
285
|
+
bolder: {
|
|
286
|
+
value: 'Lime400'
|
|
287
|
+
}
|
|
288
|
+
},
|
|
261
289
|
gray: {
|
|
262
290
|
subtlest: {
|
|
263
291
|
value: 'DarkNeutral300'
|
|
@@ -387,6 +387,32 @@ var color = {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
},
|
|
390
|
+
lime: {
|
|
391
|
+
bold: {
|
|
392
|
+
'[default]': {
|
|
393
|
+
value: 'Teal500'
|
|
394
|
+
},
|
|
395
|
+
hovered: {
|
|
396
|
+
value: 'Teal400'
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
bolder: {
|
|
400
|
+
'[default]': {
|
|
401
|
+
value: 'Teal400'
|
|
402
|
+
},
|
|
403
|
+
hovered: {
|
|
404
|
+
value: 'Teal300'
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
boldest: {
|
|
408
|
+
'[default]': {
|
|
409
|
+
value: 'Teal300'
|
|
410
|
+
},
|
|
411
|
+
hovered: {
|
|
412
|
+
value: 'Teal200'
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
390
416
|
gray: {
|
|
391
417
|
bold: {
|
|
392
418
|
'[default]': {
|