@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
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::148c69092f499e3fd244297f7a130fbf>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -25,6 +25,50 @@ var tokens = [{
|
|
|
25
25
|
"name": "color.text.[default]",
|
|
26
26
|
"path": ["color", "text", "[default]"],
|
|
27
27
|
"cleanName": "color.text"
|
|
28
|
+
}, {
|
|
29
|
+
"attributes": {
|
|
30
|
+
"group": "paint",
|
|
31
|
+
"state": "active",
|
|
32
|
+
"introduced": "1.6.0",
|
|
33
|
+
"description": "Use for lime text on subtlest and subtler lime accent backgrounds when there is no meaning tied to the color."
|
|
34
|
+
},
|
|
35
|
+
"value": "#4C6B1F",
|
|
36
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
37
|
+
"isSource": true,
|
|
38
|
+
"original": {
|
|
39
|
+
"attributes": {
|
|
40
|
+
"group": "paint",
|
|
41
|
+
"state": "active",
|
|
42
|
+
"introduced": "1.6.0",
|
|
43
|
+
"description": "Use for lime text on subtlest and subtler lime accent backgrounds when there is no meaning tied to the color."
|
|
44
|
+
},
|
|
45
|
+
"value": "Lime800"
|
|
46
|
+
},
|
|
47
|
+
"name": "color.text.accent.lime.[default]",
|
|
48
|
+
"path": ["color", "text", "accent", "lime", "[default]"],
|
|
49
|
+
"cleanName": "color.text.accent.lime"
|
|
50
|
+
}, {
|
|
51
|
+
"attributes": {
|
|
52
|
+
"group": "paint",
|
|
53
|
+
"state": "active",
|
|
54
|
+
"introduced": "0.7.0",
|
|
55
|
+
"description": "Use for lime text on subtle lime accent backgrounds when there is no meaning tied to the color."
|
|
56
|
+
},
|
|
57
|
+
"value": "#37471F",
|
|
58
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
59
|
+
"isSource": true,
|
|
60
|
+
"original": {
|
|
61
|
+
"attributes": {
|
|
62
|
+
"group": "paint",
|
|
63
|
+
"state": "active",
|
|
64
|
+
"introduced": "0.7.0",
|
|
65
|
+
"description": "Use for lime text on subtle lime accent backgrounds when there is no meaning tied to the color."
|
|
66
|
+
},
|
|
67
|
+
"value": "Lime900"
|
|
68
|
+
},
|
|
69
|
+
"name": "color.text.accent.lime.bolder",
|
|
70
|
+
"path": ["color", "text", "accent", "lime", "bolder"],
|
|
71
|
+
"cleanName": "color.text.accent.lime.bolder"
|
|
28
72
|
}, {
|
|
29
73
|
"attributes": {
|
|
30
74
|
"group": "paint",
|
|
@@ -751,6 +795,28 @@ var tokens = [{
|
|
|
751
795
|
"name": "color.icon.[default]",
|
|
752
796
|
"path": ["color", "icon", "[default]"],
|
|
753
797
|
"cleanName": "color.icon"
|
|
798
|
+
}, {
|
|
799
|
+
"attributes": {
|
|
800
|
+
"group": "paint",
|
|
801
|
+
"state": "active",
|
|
802
|
+
"introduced": "1.6.0",
|
|
803
|
+
"description": "Use for lime icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons."
|
|
804
|
+
},
|
|
805
|
+
"value": "#6A9A23",
|
|
806
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
807
|
+
"isSource": true,
|
|
808
|
+
"original": {
|
|
809
|
+
"attributes": {
|
|
810
|
+
"group": "paint",
|
|
811
|
+
"state": "active",
|
|
812
|
+
"introduced": "1.6.0",
|
|
813
|
+
"description": "Use for lime icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons."
|
|
814
|
+
},
|
|
815
|
+
"value": "Lime600"
|
|
816
|
+
},
|
|
817
|
+
"name": "color.icon.accent.lime",
|
|
818
|
+
"path": ["color", "icon", "accent", "lime"],
|
|
819
|
+
"cleanName": "color.icon.accent.lime"
|
|
754
820
|
}, {
|
|
755
821
|
"attributes": {
|
|
756
822
|
"group": "paint",
|
|
@@ -1213,6 +1279,28 @@ var tokens = [{
|
|
|
1213
1279
|
"name": "color.border.[default]",
|
|
1214
1280
|
"path": ["color", "border", "[default]"],
|
|
1215
1281
|
"cleanName": "color.border"
|
|
1282
|
+
}, {
|
|
1283
|
+
"attributes": {
|
|
1284
|
+
"group": "paint",
|
|
1285
|
+
"state": "active",
|
|
1286
|
+
"introduced": "1.6.0",
|
|
1287
|
+
"description": "Use for lime borders on non-bold backgrounds when there is no meaning tied to the color."
|
|
1288
|
+
},
|
|
1289
|
+
"value": "#6A9A23",
|
|
1290
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1291
|
+
"isSource": true,
|
|
1292
|
+
"original": {
|
|
1293
|
+
"attributes": {
|
|
1294
|
+
"group": "paint",
|
|
1295
|
+
"state": "active",
|
|
1296
|
+
"introduced": "1.6.0",
|
|
1297
|
+
"description": "Use for lime borders on non-bold backgrounds when there is no meaning tied to the color."
|
|
1298
|
+
},
|
|
1299
|
+
"value": "Lime600"
|
|
1300
|
+
},
|
|
1301
|
+
"name": "color.border.accent.lime",
|
|
1302
|
+
"path": ["color", "border", "accent", "lime"],
|
|
1303
|
+
"cleanName": "color.border.accent.lime"
|
|
1216
1304
|
}, {
|
|
1217
1305
|
"attributes": {
|
|
1218
1306
|
"group": "paint",
|
|
@@ -1675,6 +1763,94 @@ var tokens = [{
|
|
|
1675
1763
|
"name": "color.border.bold",
|
|
1676
1764
|
"path": ["color", "border", "bold"],
|
|
1677
1765
|
"cleanName": "color.border.bold"
|
|
1766
|
+
}, {
|
|
1767
|
+
"attributes": {
|
|
1768
|
+
"group": "paint",
|
|
1769
|
+
"state": "active",
|
|
1770
|
+
"introduced": "1.6.0",
|
|
1771
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color."
|
|
1772
|
+
},
|
|
1773
|
+
"value": "#EEFBDA",
|
|
1774
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1775
|
+
"isSource": true,
|
|
1776
|
+
"original": {
|
|
1777
|
+
"attributes": {
|
|
1778
|
+
"group": "paint",
|
|
1779
|
+
"state": "active",
|
|
1780
|
+
"introduced": "1.6.0",
|
|
1781
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color."
|
|
1782
|
+
},
|
|
1783
|
+
"value": "Lime100"
|
|
1784
|
+
},
|
|
1785
|
+
"name": "color.background.accent.lime.subtlest",
|
|
1786
|
+
"path": ["color", "background", "accent", "lime", "subtlest"],
|
|
1787
|
+
"cleanName": "color.background.accent.lime.subtlest"
|
|
1788
|
+
}, {
|
|
1789
|
+
"attributes": {
|
|
1790
|
+
"group": "paint",
|
|
1791
|
+
"state": "active",
|
|
1792
|
+
"introduced": "1.6.0",
|
|
1793
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color, such as colored tags."
|
|
1794
|
+
},
|
|
1795
|
+
"value": "#D3F1A7",
|
|
1796
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1797
|
+
"isSource": true,
|
|
1798
|
+
"original": {
|
|
1799
|
+
"attributes": {
|
|
1800
|
+
"group": "paint",
|
|
1801
|
+
"state": "active",
|
|
1802
|
+
"introduced": "1.6.0",
|
|
1803
|
+
"description": "Use for for backgrounds when there is no meaning tied to the color, such as colored tags."
|
|
1804
|
+
},
|
|
1805
|
+
"value": "Lime200"
|
|
1806
|
+
},
|
|
1807
|
+
"name": "color.background.accent.lime.subtler",
|
|
1808
|
+
"path": ["color", "background", "accent", "lime", "subtler"],
|
|
1809
|
+
"cleanName": "color.background.accent.lime.subtler"
|
|
1810
|
+
}, {
|
|
1811
|
+
"attributes": {
|
|
1812
|
+
"group": "paint",
|
|
1813
|
+
"state": "active",
|
|
1814
|
+
"introduced": "1.6.0",
|
|
1815
|
+
"description": "Use for vibrant for backgrounds when there is no meaning tied to the color, such as colored tags."
|
|
1816
|
+
},
|
|
1817
|
+
"value": "#94C748",
|
|
1818
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1819
|
+
"isSource": true,
|
|
1820
|
+
"original": {
|
|
1821
|
+
"attributes": {
|
|
1822
|
+
"group": "paint",
|
|
1823
|
+
"state": "active",
|
|
1824
|
+
"introduced": "1.6.0",
|
|
1825
|
+
"description": "Use for vibrant for backgrounds when there is no meaning tied to the color, such as colored tags."
|
|
1826
|
+
},
|
|
1827
|
+
"value": "Lime400"
|
|
1828
|
+
},
|
|
1829
|
+
"name": "color.background.accent.lime.subtle",
|
|
1830
|
+
"path": ["color", "background", "accent", "lime", "subtle"],
|
|
1831
|
+
"cleanName": "color.background.accent.lime.subtle"
|
|
1832
|
+
}, {
|
|
1833
|
+
"attributes": {
|
|
1834
|
+
"group": "paint",
|
|
1835
|
+
"state": "active",
|
|
1836
|
+
"introduced": "1.6.0",
|
|
1837
|
+
"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."
|
|
1838
|
+
},
|
|
1839
|
+
"value": "#5B7F24",
|
|
1840
|
+
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
1841
|
+
"isSource": true,
|
|
1842
|
+
"original": {
|
|
1843
|
+
"attributes": {
|
|
1844
|
+
"group": "paint",
|
|
1845
|
+
"state": "active",
|
|
1846
|
+
"introduced": "1.6.0",
|
|
1847
|
+
"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."
|
|
1848
|
+
},
|
|
1849
|
+
"value": "Lime700"
|
|
1850
|
+
},
|
|
1851
|
+
"name": "color.background.accent.lime.bolder",
|
|
1852
|
+
"path": ["color", "background", "accent", "lime", "bolder"],
|
|
1853
|
+
"cleanName": "color.background.accent.lime.bolder"
|
|
1678
1854
|
}, {
|
|
1679
1855
|
"attributes": {
|
|
1680
1856
|
"group": "paint",
|
|
@@ -4183,6 +4359,138 @@ var tokens = [{
|
|
|
4183
4359
|
"name": "color.chart.categorical.8.hovered",
|
|
4184
4360
|
"path": ["color", "chart", "categorical", "8", "hovered"],
|
|
4185
4361
|
"cleanName": "color.chart.categorical.8.hovered"
|
|
4362
|
+
}, {
|
|
4363
|
+
"attributes": {
|
|
4364
|
+
"group": "paint",
|
|
4365
|
+
"state": "active",
|
|
4366
|
+
"introduced": "0.13.3",
|
|
4367
|
+
"description": "For data visualisation only."
|
|
4368
|
+
},
|
|
4369
|
+
"value": "#6A9A23",
|
|
4370
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4371
|
+
"isSource": true,
|
|
4372
|
+
"original": {
|
|
4373
|
+
"attributes": {
|
|
4374
|
+
"group": "paint",
|
|
4375
|
+
"state": "active",
|
|
4376
|
+
"introduced": "0.13.3",
|
|
4377
|
+
"description": "For data visualisation only."
|
|
4378
|
+
},
|
|
4379
|
+
"value": "Lime600"
|
|
4380
|
+
},
|
|
4381
|
+
"name": "color.chart.lime.bold.[default]",
|
|
4382
|
+
"path": ["color", "chart", "lime", "bold", "[default]"],
|
|
4383
|
+
"cleanName": "color.chart.lime.bold"
|
|
4384
|
+
}, {
|
|
4385
|
+
"attributes": {
|
|
4386
|
+
"group": "paint",
|
|
4387
|
+
"state": "active",
|
|
4388
|
+
"introduced": "0.13.3",
|
|
4389
|
+
"description": "Hovered state of color.chart.lime.bold."
|
|
4390
|
+
},
|
|
4391
|
+
"value": "#5B7F24",
|
|
4392
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4393
|
+
"isSource": true,
|
|
4394
|
+
"original": {
|
|
4395
|
+
"attributes": {
|
|
4396
|
+
"group": "paint",
|
|
4397
|
+
"state": "active",
|
|
4398
|
+
"introduced": "0.13.3",
|
|
4399
|
+
"description": "Hovered state of color.chart.lime.bold."
|
|
4400
|
+
},
|
|
4401
|
+
"value": "Lime700"
|
|
4402
|
+
},
|
|
4403
|
+
"name": "color.chart.lime.bold.hovered",
|
|
4404
|
+
"path": ["color", "chart", "lime", "bold", "hovered"],
|
|
4405
|
+
"cleanName": "color.chart.lime.bold.hovered"
|
|
4406
|
+
}, {
|
|
4407
|
+
"attributes": {
|
|
4408
|
+
"group": "paint",
|
|
4409
|
+
"state": "active",
|
|
4410
|
+
"introduced": "0.13.3",
|
|
4411
|
+
"description": "For data visualisation only."
|
|
4412
|
+
},
|
|
4413
|
+
"value": "#5B7F24",
|
|
4414
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4415
|
+
"isSource": true,
|
|
4416
|
+
"original": {
|
|
4417
|
+
"attributes": {
|
|
4418
|
+
"group": "paint",
|
|
4419
|
+
"state": "active",
|
|
4420
|
+
"introduced": "0.13.3",
|
|
4421
|
+
"description": "For data visualisation only."
|
|
4422
|
+
},
|
|
4423
|
+
"value": "Lime700"
|
|
4424
|
+
},
|
|
4425
|
+
"name": "color.chart.lime.bolder.[default]",
|
|
4426
|
+
"path": ["color", "chart", "lime", "bolder", "[default]"],
|
|
4427
|
+
"cleanName": "color.chart.lime.bolder"
|
|
4428
|
+
}, {
|
|
4429
|
+
"attributes": {
|
|
4430
|
+
"group": "paint",
|
|
4431
|
+
"state": "active",
|
|
4432
|
+
"introduced": "0.13.3",
|
|
4433
|
+
"description": "Hovered state of color.chart.lime.bolder."
|
|
4434
|
+
},
|
|
4435
|
+
"value": "#4C6B1F",
|
|
4436
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4437
|
+
"isSource": true,
|
|
4438
|
+
"original": {
|
|
4439
|
+
"attributes": {
|
|
4440
|
+
"group": "paint",
|
|
4441
|
+
"state": "active",
|
|
4442
|
+
"introduced": "0.13.3",
|
|
4443
|
+
"description": "Hovered state of color.chart.lime.bolder."
|
|
4444
|
+
},
|
|
4445
|
+
"value": "Lime800"
|
|
4446
|
+
},
|
|
4447
|
+
"name": "color.chart.lime.bolder.hovered",
|
|
4448
|
+
"path": ["color", "chart", "lime", "bolder", "hovered"],
|
|
4449
|
+
"cleanName": "color.chart.lime.bolder.hovered"
|
|
4450
|
+
}, {
|
|
4451
|
+
"attributes": {
|
|
4452
|
+
"group": "paint",
|
|
4453
|
+
"state": "active",
|
|
4454
|
+
"introduced": "0.13.3",
|
|
4455
|
+
"description": "For data visualisation only."
|
|
4456
|
+
},
|
|
4457
|
+
"value": "#4C6B1F",
|
|
4458
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4459
|
+
"isSource": true,
|
|
4460
|
+
"original": {
|
|
4461
|
+
"attributes": {
|
|
4462
|
+
"group": "paint",
|
|
4463
|
+
"state": "active",
|
|
4464
|
+
"introduced": "0.13.3",
|
|
4465
|
+
"description": "For data visualisation only."
|
|
4466
|
+
},
|
|
4467
|
+
"value": "Lime800"
|
|
4468
|
+
},
|
|
4469
|
+
"name": "color.chart.lime.boldest.[default]",
|
|
4470
|
+
"path": ["color", "chart", "lime", "boldest", "[default]"],
|
|
4471
|
+
"cleanName": "color.chart.lime.boldest"
|
|
4472
|
+
}, {
|
|
4473
|
+
"attributes": {
|
|
4474
|
+
"group": "paint",
|
|
4475
|
+
"state": "active",
|
|
4476
|
+
"introduced": "0.13.3",
|
|
4477
|
+
"description": "Hovered state of color.chart.lime.boldest."
|
|
4478
|
+
},
|
|
4479
|
+
"value": "#37471F",
|
|
4480
|
+
"filePath": "src/tokens/atlassian-light/color/chart.tsx",
|
|
4481
|
+
"isSource": true,
|
|
4482
|
+
"original": {
|
|
4483
|
+
"attributes": {
|
|
4484
|
+
"group": "paint",
|
|
4485
|
+
"state": "active",
|
|
4486
|
+
"introduced": "0.13.3",
|
|
4487
|
+
"description": "Hovered state of color.chart.lime.boldest."
|
|
4488
|
+
},
|
|
4489
|
+
"value": "Lime900"
|
|
4490
|
+
},
|
|
4491
|
+
"name": "color.chart.lime.boldest.hovered",
|
|
4492
|
+
"path": ["color", "chart", "lime", "boldest", "hovered"],
|
|
4493
|
+
"cleanName": "color.chart.lime.boldest.hovered"
|
|
4186
4494
|
}, {
|
|
4187
4495
|
"attributes": {
|
|
4188
4496
|
"group": "paint",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
var name = "@atlaskit/tokens";
|
|
4
|
-
var version = "1.
|
|
4
|
+
var version = "1.8.0";
|
|
5
5
|
/**
|
|
6
6
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
7
7
|
* resulting CSS Custom Property.
|
package/dist/esm/get-token.js
CHANGED
|
@@ -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
|
var name = "@atlaskit/tokens";
|
|
5
|
-
var version = "1.
|
|
5
|
+
var version = "1.8.0";
|
|
6
6
|
/**
|
|
7
7
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
8
8
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -579,6 +579,76 @@ var palette = {
|
|
|
579
579
|
category: 'magenta'
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
|
+
Lime100: {
|
|
583
|
+
value: '#EEFBDA',
|
|
584
|
+
attributes: {
|
|
585
|
+
group: 'palette',
|
|
586
|
+
category: 'lime'
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
Lime200: {
|
|
590
|
+
value: '#D3F1A7',
|
|
591
|
+
attributes: {
|
|
592
|
+
group: 'palette',
|
|
593
|
+
category: 'lime'
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
Lime300: {
|
|
597
|
+
value: '#B3DF72',
|
|
598
|
+
attributes: {
|
|
599
|
+
group: 'palette',
|
|
600
|
+
category: 'lime'
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
Lime400: {
|
|
604
|
+
value: '#94C748',
|
|
605
|
+
attributes: {
|
|
606
|
+
group: 'palette',
|
|
607
|
+
category: 'lime'
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
Lime500: {
|
|
611
|
+
value: '#82B536',
|
|
612
|
+
attributes: {
|
|
613
|
+
group: 'palette',
|
|
614
|
+
category: 'lime'
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
Lime600: {
|
|
618
|
+
value: '#6A9A23',
|
|
619
|
+
attributes: {
|
|
620
|
+
group: 'palette',
|
|
621
|
+
category: 'lime'
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
Lime700: {
|
|
625
|
+
value: '#5B7F24',
|
|
626
|
+
attributes: {
|
|
627
|
+
group: 'palette',
|
|
628
|
+
category: 'lime'
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
Lime800: {
|
|
632
|
+
value: '#4C6B1F',
|
|
633
|
+
attributes: {
|
|
634
|
+
group: 'palette',
|
|
635
|
+
category: 'lime'
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
Lime900: {
|
|
639
|
+
value: '#37471F',
|
|
640
|
+
attributes: {
|
|
641
|
+
group: 'palette',
|
|
642
|
+
category: 'lime'
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
Lime1000: {
|
|
646
|
+
value: '#2A3818',
|
|
647
|
+
attributes: {
|
|
648
|
+
group: 'palette',
|
|
649
|
+
category: 'lime'
|
|
650
|
+
}
|
|
651
|
+
},
|
|
582
652
|
'DarkNeutral-100': {
|
|
583
653
|
value: '#101214',
|
|
584
654
|
attributes: {
|
|
@@ -39,10 +39,11 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
39
39
|
var colorMode = themeState.colorMode,
|
|
40
40
|
dark = themeState.dark,
|
|
41
41
|
light = themeState.light,
|
|
42
|
+
shape = themeState.shape,
|
|
42
43
|
spacing = themeState.spacing,
|
|
43
44
|
typography = themeState.typography;
|
|
44
45
|
var themePreferences = colorMode === 'auto' ? [light, dark] : [themeState[colorMode]];
|
|
45
|
-
[spacing, typography].forEach(function (themeId) {
|
|
46
|
+
[shape, spacing, typography].forEach(function (themeId) {
|
|
46
47
|
if (themeId) {
|
|
47
48
|
themePreferences.push(themeId);
|
|
48
49
|
}
|
|
@@ -50,6 +51,16 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
50
51
|
if (getBooleanFF('platform.design-system-team.update-border-input_ff9l1')) {
|
|
51
52
|
themePreferences.push("".concat(themePreferences.includes('dark') ? 'dark' : 'light', "-new-input-border"));
|
|
52
53
|
}
|
|
54
|
+
|
|
55
|
+
// Load shape and spacing by default, currently behind a feature flag
|
|
56
|
+
if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
|
|
57
|
+
if (!themePreferences.includes('shape')) {
|
|
58
|
+
themePreferences.push('shape');
|
|
59
|
+
}
|
|
60
|
+
if (!themePreferences.includes('spacing')) {
|
|
61
|
+
themePreferences.push('spacing');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
53
64
|
return _toConsumableArray(new Set(themePreferences));
|
|
54
65
|
};
|
|
55
66
|
|
|
@@ -60,6 +71,7 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
60
71
|
* @param {string} themeState.colorMode Determines which color theme is applied. If set to `auto`, the theme applied will be determined by the OS setting.
|
|
61
72
|
* @param {string} themeState.dark The color theme to be applied when the color mode resolves to 'dark'.
|
|
62
73
|
* @param {string} themeState.light The color theme to be applied when the color mode resolves to 'light'.
|
|
74
|
+
* @param {string} themeState.shape The shape theme to be applied.
|
|
63
75
|
* @param {string} themeState.spacing The spacing theme to be applied.
|
|
64
76
|
* @param {string} themeState.typography The typography theme to be applied.
|
|
65
77
|
*
|
|
@@ -188,6 +200,7 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
188
200
|
* @param {string} themeState.colorMode Determines which color theme is applied. If set to `auto`, the theme applied will be determined by the OS setting.
|
|
189
201
|
* @param {string} themeState.dark The color theme to be applied when the color mode resolves to 'dark'.
|
|
190
202
|
* @param {string} themeState.light The color theme to be applied when the color mode resolves to 'light'.
|
|
203
|
+
* @param {string} themeState.shape The shape theme to be applied.
|
|
191
204
|
* @param {string} themeState.spacing The spacing theme to be applied.
|
|
192
205
|
* @param {string} themeState.typography The typography theme to be applied.
|
|
193
206
|
*
|
|
@@ -203,19 +216,19 @@ export var getThemeStyles = /*#__PURE__*/function () {
|
|
|
203
216
|
dark,
|
|
204
217
|
_ref7$light,
|
|
205
218
|
light,
|
|
219
|
+
_ref7$shape,
|
|
220
|
+
shape,
|
|
206
221
|
_ref7$spacing,
|
|
207
222
|
spacing,
|
|
208
223
|
_ref7$typography,
|
|
209
224
|
typography,
|
|
210
|
-
_ref7$shape,
|
|
211
|
-
shape,
|
|
212
225
|
themePreferences,
|
|
213
226
|
results,
|
|
214
227
|
_args4 = arguments;
|
|
215
228
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
216
229
|
while (1) switch (_context4.prev = _context4.next) {
|
|
217
230
|
case 0:
|
|
218
|
-
_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$
|
|
231
|
+
_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;
|
|
219
232
|
themePreferences = getThemePreferences({
|
|
220
233
|
colorMode: colorMode,
|
|
221
234
|
dark: dark,
|
|
@@ -313,10 +326,21 @@ export var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
313
326
|
var themePreferences = {
|
|
314
327
|
dark: dark,
|
|
315
328
|
light: light,
|
|
329
|
+
shape: shape,
|
|
316
330
|
spacing: spacing,
|
|
317
|
-
typography: typography
|
|
318
|
-
shape: shape
|
|
331
|
+
typography: typography
|
|
319
332
|
};
|
|
333
|
+
|
|
334
|
+
// Load shape and spacing by default, currently behind a feature flag
|
|
335
|
+
if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
|
|
336
|
+
themePreferences = {
|
|
337
|
+
dark: dark,
|
|
338
|
+
light: light,
|
|
339
|
+
shape: 'shape',
|
|
340
|
+
spacing: 'spacing',
|
|
341
|
+
typography: typography
|
|
342
|
+
};
|
|
343
|
+
}
|
|
320
344
|
var themeAttribute = themeObjectToString(themePreferences);
|
|
321
345
|
return _ref10 = {}, _defineProperty(_ref10, THEME_DATA_ATTRIBUTE, themeAttribute), _defineProperty(_ref10, COLOR_MODE_ATTRIBUTE, colorMode === 'auto' ? defaultColorMode : colorMode), _ref10;
|
|
322
346
|
};
|
|
@@ -66,6 +66,14 @@ var color = {
|
|
|
66
66
|
value: 'Magenta200'
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
+
lime: {
|
|
70
|
+
'[default]': {
|
|
71
|
+
value: 'Lime300'
|
|
72
|
+
},
|
|
73
|
+
bolder: {
|
|
74
|
+
value: 'Lime200'
|
|
75
|
+
}
|
|
76
|
+
},
|
|
69
77
|
gray: {
|
|
70
78
|
'[default]': {
|
|
71
79
|
value: 'DarkNeutral800'
|
|
@@ -102,6 +110,9 @@ var color = {
|
|
|
102
110
|
magenta: {
|
|
103
111
|
value: 'Magenta500'
|
|
104
112
|
},
|
|
113
|
+
lime: {
|
|
114
|
+
value: 'Lime500'
|
|
115
|
+
},
|
|
105
116
|
gray: {
|
|
106
117
|
value: 'DarkNeutral600'
|
|
107
118
|
}
|
|
@@ -133,6 +144,9 @@ var color = {
|
|
|
133
144
|
magenta: {
|
|
134
145
|
value: 'Magenta500'
|
|
135
146
|
},
|
|
147
|
+
lime: {
|
|
148
|
+
value: 'Lime500'
|
|
149
|
+
},
|
|
136
150
|
gray: {
|
|
137
151
|
value: 'DarkNeutral600'
|
|
138
152
|
}
|
|
@@ -252,6 +266,20 @@ var color = {
|
|
|
252
266
|
value: 'Magenta400'
|
|
253
267
|
}
|
|
254
268
|
},
|
|
269
|
+
lime: {
|
|
270
|
+
subtlest: {
|
|
271
|
+
value: 'Lime1000'
|
|
272
|
+
},
|
|
273
|
+
subtler: {
|
|
274
|
+
value: 'Lime900'
|
|
275
|
+
},
|
|
276
|
+
subtle: {
|
|
277
|
+
value: 'Lime800'
|
|
278
|
+
},
|
|
279
|
+
bolder: {
|
|
280
|
+
value: 'Lime400'
|
|
281
|
+
}
|
|
282
|
+
},
|
|
255
283
|
gray: {
|
|
256
284
|
subtlest: {
|
|
257
285
|
value: 'DarkNeutral300'
|
|
@@ -381,6 +381,32 @@ var color = {
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
},
|
|
384
|
+
lime: {
|
|
385
|
+
bold: {
|
|
386
|
+
'[default]': {
|
|
387
|
+
value: 'Teal500'
|
|
388
|
+
},
|
|
389
|
+
hovered: {
|
|
390
|
+
value: 'Teal400'
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
bolder: {
|
|
394
|
+
'[default]': {
|
|
395
|
+
value: 'Teal400'
|
|
396
|
+
},
|
|
397
|
+
hovered: {
|
|
398
|
+
value: 'Teal300'
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
boldest: {
|
|
402
|
+
'[default]': {
|
|
403
|
+
value: 'Teal300'
|
|
404
|
+
},
|
|
405
|
+
hovered: {
|
|
406
|
+
value: 'Teal200'
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
384
410
|
gray: {
|
|
385
411
|
bold: {
|
|
386
412
|
'[default]': {
|
|
@@ -70,6 +70,16 @@ var color = {
|
|
|
70
70
|
value: '#FDD0EC'
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
+
lime: {
|
|
74
|
+
// @ts-expect-error
|
|
75
|
+
'[default]': {
|
|
76
|
+
value: '#4C6B1F'
|
|
77
|
+
},
|
|
78
|
+
// @ts-expect-error
|
|
79
|
+
bolder: {
|
|
80
|
+
value: '#37471F'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
73
83
|
gray: {
|
|
74
84
|
'[default]': {
|
|
75
85
|
value: 'DN300'
|
|
@@ -108,6 +118,10 @@ var color = {
|
|
|
108
118
|
magenta: {
|
|
109
119
|
value: '#DA62AC'
|
|
110
120
|
},
|
|
121
|
+
// @ts-expect-error
|
|
122
|
+
lime: {
|
|
123
|
+
value: '#6A9A23'
|
|
124
|
+
},
|
|
111
125
|
gray: {
|
|
112
126
|
value: 'DN600'
|
|
113
127
|
}
|
|
@@ -141,6 +155,10 @@ var color = {
|
|
|
141
155
|
magenta: {
|
|
142
156
|
value: '#DA62AC'
|
|
143
157
|
},
|
|
158
|
+
// @ts-expect-error
|
|
159
|
+
lime: {
|
|
160
|
+
value: '#6A9A23'
|
|
161
|
+
},
|
|
144
162
|
gray: {
|
|
145
163
|
value: 'DN600'
|
|
146
164
|
}
|
|
@@ -268,6 +286,24 @@ var color = {
|
|
|
268
286
|
value: '#E774BB'
|
|
269
287
|
}
|
|
270
288
|
},
|
|
289
|
+
lime: {
|
|
290
|
+
// @ts-expect-error
|
|
291
|
+
subtlest: {
|
|
292
|
+
value: '#EEFBDA'
|
|
293
|
+
},
|
|
294
|
+
// @ts-expect-error
|
|
295
|
+
subtler: {
|
|
296
|
+
value: '#D3F1A7'
|
|
297
|
+
},
|
|
298
|
+
// @ts-expect-error
|
|
299
|
+
subtle: {
|
|
300
|
+
value: '#94C748'
|
|
301
|
+
},
|
|
302
|
+
// @ts-expect-error
|
|
303
|
+
bolder: {
|
|
304
|
+
value: '#5B7F24'
|
|
305
|
+
}
|
|
306
|
+
},
|
|
271
307
|
gray: {
|
|
272
308
|
subtlest: {
|
|
273
309
|
value: 'DN300'
|