@atlaskit/tokens 6.3.2 → 6.4.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 +22 -0
- package/dist/cjs/artifacts/generated-pairs.js +1 -1
- package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +2 -1
- package/dist/cjs/babel-plugin/plugin.js +4 -1
- package/dist/cjs/set-global-theme.js +30 -23
- package/dist/es2019/artifacts/generated-pairs.js +1 -1
- package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +2 -1
- package/dist/es2019/babel-plugin/plugin.js +4 -1
- package/dist/es2019/set-global-theme.js +17 -10
- package/dist/esm/artifacts/generated-pairs.js +1 -1
- package/dist/esm/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/esm/artifacts/palettes-raw/palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +2 -1
- package/dist/esm/babel-plugin/plugin.js +4 -1
- package/dist/esm/set-global-theme.js +30 -23
- package/dist/types/artifacts/generated-pairs.d.ts +4 -9
- package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/palette.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +13 -26
- package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +13 -26
- package/dist/types/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
- package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
- package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
- package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
- package/dist/types/set-global-theme.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +4 -9
- package/dist/types-ts4.5/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +13 -26
- package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +13 -26
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
- package/dist/types-ts4.5/set-global-theme.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::012be6ddb918f408e4258335916d9334>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"value": "#FFEBE6",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::54883f28091f3d25251716094b262928>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"value": "#EFFFD6",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::48b1ab9881aaa7ef53aff6c97ebfc413>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"value": "#EFFFD6",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::72feb1804c9c8d27535c172745ee1b9b>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"value": "2px",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11e5a7b123691c94315b7df9e7aa8f9f>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"value": "0px",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::0736e3ca289c67f160a69299616f69c9>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"value": "Roboto Mono",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::147a2afa95c37bc2a3b0a0e34c7a9710>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::98ec2ef3c3602f1046b2ecf3775d0f05>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::b10cb2c641a28d967973840725505a5d>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"value": "#DEE4EA",
|
|
8
9
|
"filePath": "schema/themes/atlassian-dark-increased-contrast/color/text.tsx",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e5a01f19d58623f99b97e4dd2aef4926>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::9acedb862e373430c3930988761cbe44>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::4670b0f10caa1698222cecfe37d7912d>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::1e215ad0e04dce07835882e324bc937e>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8511311bb358d4d21a3ac431d0be8a44>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::7d6d41baa7103c9ee49c1e976d66bf14>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"value": "#091E42",
|
|
8
9
|
"filePath": "schema/themes/atlassian-light-increased-contrast/color/text.tsx",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::0ddb883a95cb1a36c2ce1db708181be1>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::ae0db95e6643057107d0c09628e379a7>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "shape",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::62159541fb88b669eb2ad0f06e7e0daf>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "shape",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::f3ee3158256a13e7401785620da6d439>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "shape",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::c5e6cf9e70d065b7daac533ac0569acf>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "spacing",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::80e21582acfe238b3aab5d8c8d1ec831>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "raw",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::d9a4e2432a4ea835e7ceac5c19e379b5>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "raw",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::03640b642efa498f3c90b99101405f9e>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "raw",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::2d82706aaef27f4b665743cafd879972>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
const tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "typography",
|
|
@@ -23,7 +23,7 @@ const getThemeValues = theme => {
|
|
|
23
23
|
value = rawToken.value;
|
|
24
24
|
} else if (typeof rawToken.value === 'number') {
|
|
25
25
|
value = rawToken.value.toString();
|
|
26
|
-
} else {
|
|
26
|
+
} else if (Array.isArray(rawToken.value)) {
|
|
27
27
|
// If it's a box shadow, it'll be an array of values that needs to be
|
|
28
28
|
// formatted to look like '0px 0px 8px #091e4229, 0px 0px 1px #091e421F'
|
|
29
29
|
value = rawToken.value.reduce((prev, curr, index) => {
|
|
@@ -47,6 +47,9 @@ const getThemeValues = theme => {
|
|
|
47
47
|
}
|
|
48
48
|
return prev + value;
|
|
49
49
|
}, '');
|
|
50
|
+
} else {
|
|
51
|
+
// ignore when value is `fontweight` etc. - this is apparently not handled here.
|
|
52
|
+
return formatted;
|
|
50
53
|
}
|
|
51
54
|
return {
|
|
52
55
|
...formatted,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import getGlobalTheme from './get-global-theme';
|
|
2
3
|
import { themeStateDefaults } from './theme-config';
|
|
3
4
|
import { isValidBrandHex } from './utils/color-utils';
|
|
4
5
|
import configurePage from './utils/configure-page';
|
|
@@ -27,16 +28,22 @@ import { loadAndAppendThemeCss } from './utils/theme-loading';
|
|
|
27
28
|
* setGlobalTheme({colorMode: 'auto', light: 'light', dark: 'dark', spacing: 'spacing'});
|
|
28
29
|
* ```
|
|
29
30
|
*/
|
|
30
|
-
const setGlobalTheme = async ({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
const setGlobalTheme = async (nextThemeState = {}, themeLoader) => {
|
|
32
|
+
let {
|
|
33
|
+
colorMode = themeStateDefaults['colorMode'],
|
|
34
|
+
contrastMode = themeStateDefaults['contrastMode'],
|
|
35
|
+
dark = themeStateDefaults['dark'],
|
|
36
|
+
light = themeStateDefaults['light'],
|
|
37
|
+
shape = themeStateDefaults['shape'],
|
|
38
|
+
spacing = themeStateDefaults['spacing'],
|
|
39
|
+
typography = themeStateDefaults['typography'](),
|
|
40
|
+
UNSAFE_themeOptions = themeStateDefaults['UNSAFE_themeOptions']
|
|
41
|
+
} = typeof nextThemeState === 'function' ? nextThemeState({
|
|
42
|
+
...themeStateDefaults,
|
|
43
|
+
typography: themeStateDefaults['typography'](),
|
|
44
|
+
...getGlobalTheme()
|
|
45
|
+
}) : nextThemeState;
|
|
46
|
+
|
|
40
47
|
// CLEANUP: Remove. This blocks application of increased contrast themes
|
|
41
48
|
// without the feature flag enabled.
|
|
42
49
|
if (!fg('platform_increased-contrast-themes')) {
|