@atlaskit/tokens 1.11.3 → 1.13.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.
Files changed (181) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +25 -0
  3. package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +25 -0
  4. package/dist/cjs/artifacts/generated-pairs.js +2 -2
  5. package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
  6. package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +2 -2
  7. package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +2 -2
  8. package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
  9. package/dist/cjs/artifacts/token-default-values.js +7 -1
  10. package/dist/cjs/artifacts/token-names.js +7 -1
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +137 -5
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +137 -5
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +137 -5
  14. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +137 -5
  15. package/dist/cjs/constants.js +3 -1
  16. package/dist/cjs/custom-theme.js +108 -0
  17. package/dist/cjs/get-token-value.js +1 -1
  18. package/dist/cjs/get-token.js +1 -1
  19. package/dist/cjs/set-global-theme.js +156 -59
  20. package/dist/cjs/tokens/atlassian-dark/color/background.js +22 -0
  21. package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +22 -0
  22. package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +22 -0
  23. package/dist/cjs/tokens/atlassian-light/color/background.js +22 -0
  24. package/dist/cjs/tokens/default/color/background.js +54 -2
  25. package/dist/cjs/utils/color-utils.js +178 -0
  26. package/dist/cjs/utils/custom-theme-loading-utils.js +47 -0
  27. package/dist/cjs/utils/custom-theme-token-contrast-check.js +74 -0
  28. package/dist/cjs/utils/generate-custom-color-ramp.js +222 -0
  29. package/dist/cjs/utils/hash.js +17 -0
  30. package/dist/cjs/utils/hct-color-utils/color-utils.js +310 -0
  31. package/dist/cjs/utils/hct-color-utils/contrast.js +188 -0
  32. package/dist/cjs/utils/hct-color-utils/hct.js +1036 -0
  33. package/dist/cjs/utils/hct-color-utils/index.js +32 -0
  34. package/dist/cjs/utils/hct-color-utils/math-utils.js +159 -0
  35. package/dist/cjs/utils/theme-loading.js +1 -1
  36. package/dist/cjs/utils/theme-state-transformer.js +1 -1
  37. package/dist/cjs/version.json +1 -1
  38. package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +18 -0
  39. package/dist/es2019/artifacts/atlassian-light-token-value-for-contrast-check.js +18 -0
  40. package/dist/es2019/artifacts/generated-pairs.js +2 -2
  41. package/dist/es2019/artifacts/themes/atlassian-dark.js +7 -1
  42. package/dist/es2019/artifacts/themes/atlassian-legacy-dark.js +7 -1
  43. package/dist/es2019/artifacts/themes/atlassian-legacy-light.js +7 -1
  44. package/dist/es2019/artifacts/themes/atlassian-light.js +7 -1
  45. package/dist/es2019/artifacts/token-default-values.js +7 -1
  46. package/dist/es2019/artifacts/token-names.js +7 -1
  47. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +137 -5
  48. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +137 -5
  49. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +137 -5
  50. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +137 -5
  51. package/dist/es2019/constants.js +1 -0
  52. package/dist/es2019/custom-theme.js +77 -0
  53. package/dist/es2019/get-token-value.js +1 -1
  54. package/dist/es2019/get-token.js +1 -1
  55. package/dist/es2019/set-global-theme.js +67 -13
  56. package/dist/es2019/tokens/atlassian-dark/color/background.js +22 -0
  57. package/dist/es2019/tokens/atlassian-legacy-dark/color/background.js +22 -0
  58. package/dist/es2019/tokens/atlassian-legacy-light/color/background.js +22 -0
  59. package/dist/es2019/tokens/atlassian-light/color/background.js +22 -0
  60. package/dist/es2019/tokens/default/color/background.js +54 -2
  61. package/dist/es2019/utils/color-utils.js +154 -0
  62. package/dist/es2019/utils/custom-theme-loading-utils.js +31 -0
  63. package/dist/es2019/utils/custom-theme-token-contrast-check.js +68 -0
  64. package/dist/es2019/utils/generate-custom-color-ramp.js +198 -0
  65. package/dist/es2019/utils/hash.js +10 -0
  66. package/dist/es2019/utils/hct-color-utils/color-utils.js +286 -0
  67. package/dist/es2019/utils/hct-color-utils/contrast.js +161 -0
  68. package/dist/es2019/utils/hct-color-utils/hct.js +931 -0
  69. package/dist/es2019/utils/hct-color-utils/index.js +3 -0
  70. package/dist/es2019/utils/hct-color-utils/math-utils.js +145 -0
  71. package/dist/es2019/utils/theme-loading.js +2 -2
  72. package/dist/es2019/utils/theme-state-transformer.js +3 -1
  73. package/dist/es2019/version.json +1 -1
  74. package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +18 -0
  75. package/dist/esm/artifacts/atlassian-light-token-value-for-contrast-check.js +18 -0
  76. package/dist/esm/artifacts/generated-pairs.js +2 -2
  77. package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
  78. package/dist/esm/artifacts/themes/atlassian-legacy-dark.js +2 -2
  79. package/dist/esm/artifacts/themes/atlassian-legacy-light.js +2 -2
  80. package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
  81. package/dist/esm/artifacts/token-default-values.js +7 -1
  82. package/dist/esm/artifacts/token-names.js +7 -1
  83. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +137 -5
  84. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +137 -5
  85. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +137 -5
  86. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +137 -5
  87. package/dist/esm/constants.js +1 -0
  88. package/dist/esm/custom-theme.js +98 -0
  89. package/dist/esm/get-token-value.js +1 -1
  90. package/dist/esm/get-token.js +1 -1
  91. package/dist/esm/set-global-theme.js +149 -60
  92. package/dist/esm/tokens/atlassian-dark/color/background.js +22 -0
  93. package/dist/esm/tokens/atlassian-legacy-dark/color/background.js +22 -0
  94. package/dist/esm/tokens/atlassian-legacy-light/color/background.js +22 -0
  95. package/dist/esm/tokens/atlassian-light/color/background.js +22 -0
  96. package/dist/esm/tokens/default/color/background.js +54 -2
  97. package/dist/esm/utils/color-utils.js +162 -0
  98. package/dist/esm/utils/custom-theme-loading-utils.js +38 -0
  99. package/dist/esm/utils/custom-theme-token-contrast-check.js +65 -0
  100. package/dist/esm/utils/generate-custom-color-ramp.js +211 -0
  101. package/dist/esm/utils/hash.js +10 -0
  102. package/dist/esm/utils/hct-color-utils/color-utils.js +285 -0
  103. package/dist/esm/utils/hct-color-utils/contrast.js +181 -0
  104. package/dist/esm/utils/hct-color-utils/hct.js +1029 -0
  105. package/dist/esm/utils/hct-color-utils/index.js +3 -0
  106. package/dist/esm/utils/hct-color-utils/math-utils.js +145 -0
  107. package/dist/esm/utils/theme-loading.js +2 -2
  108. package/dist/esm/utils/theme-state-transformer.js +1 -1
  109. package/dist/esm/version.json +1 -1
  110. package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +18 -0
  111. package/dist/types/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +18 -0
  112. package/dist/types/artifacts/generated-pairs.d.ts +1 -1
  113. package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
  114. package/dist/types/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
  115. package/dist/types/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
  116. package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
  117. package/dist/types/artifacts/token-default-values.d.ts +7 -1
  118. package/dist/types/artifacts/token-names.d.ts +13 -1
  119. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  120. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  121. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  122. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  123. package/dist/types/artifacts/types-internal.d.ts +2 -2
  124. package/dist/types/artifacts/types.d.ts +2 -2
  125. package/dist/types/constants.d.ts +1 -0
  126. package/dist/types/custom-theme.d.ts +30 -0
  127. package/dist/types/index.d.ts +1 -0
  128. package/dist/types/set-global-theme.d.ts +9 -3
  129. package/dist/types/types.d.ts +10 -0
  130. package/dist/types/utils/color-utils.d.ts +10 -0
  131. package/dist/types/utils/custom-theme-loading-utils.d.ts +11 -0
  132. package/dist/types/utils/custom-theme-token-contrast-check.d.ts +20 -0
  133. package/dist/types/utils/generate-custom-color-ramp.d.ts +19 -0
  134. package/dist/types/utils/hash.d.ts +1 -0
  135. package/dist/types/utils/hct-color-utils/color-utils.d.ts +131 -0
  136. package/dist/types/utils/hct-color-utils/contrast.d.ts +78 -0
  137. package/dist/types/utils/hct-color-utils/hct.d.ts +137 -0
  138. package/dist/types/utils/hct-color-utils/index.d.ts +3 -0
  139. package/dist/types/utils/hct-color-utils/math-utils.d.ts +86 -0
  140. package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +18 -0
  141. package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +18 -0
  142. package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +1 -1
  143. package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
  144. package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
  145. package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
  146. package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
  147. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +7 -1
  148. package/dist/types-ts4.5/artifacts/token-names.d.ts +13 -1
  149. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  150. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  151. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  152. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  153. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  154. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  155. package/dist/types-ts4.5/constants.d.ts +1 -0
  156. package/dist/types-ts4.5/custom-theme.d.ts +30 -0
  157. package/dist/types-ts4.5/index.d.ts +1 -0
  158. package/dist/types-ts4.5/set-global-theme.d.ts +9 -3
  159. package/dist/types-ts4.5/types.d.ts +10 -0
  160. package/dist/types-ts4.5/utils/color-utils.d.ts +27 -0
  161. package/dist/types-ts4.5/utils/custom-theme-loading-utils.d.ts +11 -0
  162. package/dist/types-ts4.5/utils/custom-theme-token-contrast-check.d.ts +20 -0
  163. package/dist/types-ts4.5/utils/generate-custom-color-ramp.d.ts +19 -0
  164. package/dist/types-ts4.5/utils/hash.d.ts +1 -0
  165. package/dist/types-ts4.5/utils/hct-color-utils/color-utils.d.ts +131 -0
  166. package/dist/types-ts4.5/utils/hct-color-utils/contrast.d.ts +78 -0
  167. package/dist/types-ts4.5/utils/hct-color-utils/hct.d.ts +137 -0
  168. package/dist/types-ts4.5/utils/hct-color-utils/index.d.ts +3 -0
  169. package/dist/types-ts4.5/utils/hct-color-utils/math-utils.d.ts +86 -0
  170. package/figma/atlassian-dark.json +56 -2
  171. package/figma/atlassian-legacy-dark.json +56 -2
  172. package/figma/atlassian-legacy-light.json +56 -2
  173. package/figma/atlassian-light.json +56 -2
  174. package/package.json +36 -37
  175. package/report.api.md +48 -1
  176. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-iteration.js +0 -902
  177. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-iteration.js +0 -895
  178. package/dist/esm/artifacts/tokens-raw/atlassian-dark-iteration.js +0 -895
  179. package/dist/types/artifacts/tokens-raw/atlassian-dark-iteration.d.ts +0 -91
  180. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-iteration.d.ts +0 -91
  181. package/tmp/api-report-tmp.d.ts +0 -1132
@@ -0,0 +1,137 @@
1
+ /**
2
+ * Below lines are copied from @material/material-color-utilities.
3
+ * Do not modify it.
4
+ */
5
+ /**
6
+ * A color system built using CAM16 hue and chroma, and L* from
7
+ * L*a*b*.
8
+ *
9
+ * Using L* creates a link between the color system, contrast, and thus
10
+ * accessibility. Contrast ratio depends on relative luminance, or Y in the XYZ
11
+ * color space. L*, or perceptual luminance can be calculated from Y.
12
+ *
13
+ * Unlike Y, L* is linear to human perception, allowing trivial creation of
14
+ * accurate color tones.
15
+ *
16
+ * Unlike contrast ratio, measuring contrast in L* is linear, and simple to
17
+ * calculate. A difference of 40 in HCT tone guarantees a contrast ratio >= 3.0,
18
+ * and a difference of 50 guarantees a contrast ratio >= 4.5.
19
+ */
20
+ /**
21
+ * HCT, hue, chroma, and tone. A color system that provides a perceptually
22
+ * accurate color measurement system that can also accurately render what colors
23
+ * will appear as in different lighting environments.
24
+ */
25
+ export declare class Hct {
26
+ private argb;
27
+ /**
28
+ * @param hue 0 <= hue < 360; invalid values are corrected.
29
+ * @param chroma 0 <= chroma < ?; Informally, colorfulness. The color
30
+ * returned may be lower than the requested chroma. Chroma has a different
31
+ * maximum for any given hue and tone.
32
+ * @param tone 0 <= tone <= 100; invalid values are corrected.
33
+ * @return HCT representation of a color in default viewing conditions.
34
+ */
35
+ internalHue: number;
36
+ internalChroma: number;
37
+ internalTone: number;
38
+ static from(hue: number, chroma: number, tone: number): Hct;
39
+ /**
40
+ * @param argb ARGB representation of a color.
41
+ * @return HCT representation of a color in default viewing conditions
42
+ */
43
+ static fromInt(argb: number): Hct;
44
+ toInt(): number;
45
+ /**
46
+ * A number, in degrees, representing ex. red, orange, yellow, etc.
47
+ * Ranges from 0 <= hue < 360.
48
+ */
49
+ get hue(): number;
50
+ /**
51
+ * @param newHue 0 <= newHue < 360; invalid values are corrected.
52
+ * Chroma may decrease because chroma has a different maximum for any given
53
+ * hue and tone.
54
+ */
55
+ set hue(newHue: number);
56
+ get chroma(): number;
57
+ /**
58
+ * @param newChroma 0 <= newChroma < ?
59
+ * Chroma may decrease because chroma has a different maximum for any given
60
+ * hue and tone.
61
+ */
62
+ set chroma(newChroma: number);
63
+ /**
64
+ * Lightness. Ranges from 0 to 100.
65
+ */
66
+ get tone(): number;
67
+ /**
68
+ * @param newTone 0 <= newTone <= 100; invalid valids are corrected.
69
+ * Chroma may decrease because chroma has a different maximum for any given
70
+ * hue and tone.
71
+ */
72
+ set tone(newTone: number);
73
+ private constructor();
74
+ private setInternalState;
75
+ /**
76
+ * Translates a color into different [ViewingConditions].
77
+ *
78
+ * Colors change appearance. They look different with lights on versus off,
79
+ * the same color, as in hex code, on white looks different when on black.
80
+ * This is called color relativity, most famously explicated by Josef Albers
81
+ * in Interaction of Color.
82
+ *
83
+ * In color science, color appearance models can account for this and
84
+ * calculate the appearance of a color in different settings. HCT is based on
85
+ * CAM16, a color appearance model, and uses it to make these calculations.
86
+ *
87
+ * See [ViewingConditions.make] for parameters affecting color appearance.
88
+ */
89
+ inViewingConditions(vc: ViewingConditions): Hct;
90
+ }
91
+ export declare class ViewingConditions {
92
+ n: number;
93
+ aw: number;
94
+ nbb: number;
95
+ ncb: number;
96
+ c: number;
97
+ nc: number;
98
+ rgbD: number[];
99
+ fl: number;
100
+ fLRoot: number;
101
+ z: number;
102
+ /**
103
+ * sRGB-like viewing conditions.
104
+ */
105
+ static DEFAULT: ViewingConditions;
106
+ /**
107
+ * Create ViewingConditions from a simple, physically relevant, set of
108
+ * parameters.
109
+ *
110
+ * @param whitePoint White point, measured in the XYZ color space.
111
+ * default = D65, or sunny day afternoon
112
+ * @param adaptingLuminance The luminance of the adapting field. Informally,
113
+ * how bright it is in the room where the color is viewed. Can be
114
+ * calculated from lux by multiplying lux by 0.0586. default = 11.72,
115
+ * or 200 lux.
116
+ * @param backgroundLstar The lightness of the area surrounding the color.
117
+ * measured by L* in L*a*b*. default = 50.0
118
+ * @param surround A general description of the lighting surrounding the
119
+ * color. 0 is pitch dark, like watching a movie in a theater. 1.0 is a
120
+ * dimly light room, like watching TV at home at night. 2.0 means there
121
+ * is no difference between the lighting on the color and around it.
122
+ * default = 2.0
123
+ * @param discountingIlluminant Whether the eye accounts for the tint of the
124
+ * ambient lighting, such as knowing an apple is still red in green light.
125
+ * default = false, the eye does not perform this process on
126
+ * self-luminous objects like displays.
127
+ */
128
+ static make(whitePoint?: number[], adaptingLuminance?: number, backgroundLstar?: number, surround?: number, discountingIlluminant?: boolean): ViewingConditions;
129
+ /**
130
+ * Parameters are intermediate values of the CAM16 conversion process. Their
131
+ * names are shorthand for technical color science terminology, this class
132
+ * would not benefit from documenting them individually. A brief overview
133
+ * is available in the CAM16 specification, and a complete overview requires
134
+ * a color science textbook, such as Fairchild's Color Appearance Models.
135
+ */
136
+ private constructor();
137
+ }
@@ -0,0 +1,3 @@
1
+ export { Hct } from './hct';
2
+ export { Contrast } from './contrast';
3
+ export { argbFromRgba, rgbaFromArgb } from './color-utils';
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Below lines are copied from @material/material-color-utilities.
3
+ * Do not modify it.
4
+ */
5
+ /**
6
+ * @license
7
+ * Copyright 2021 Google LLC
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ /**
22
+ * Utility methods for mathematical operations.
23
+ */
24
+ /**
25
+ * The signum function.
26
+ *
27
+ * @return 1 if num > 0, -1 if num < 0, and 0 if num = 0
28
+ */
29
+ export declare function signum(num: number): number;
30
+ /**
31
+ * The linear interpolation function.
32
+ *
33
+ * @return start if amount = 0 and stop if amount = 1
34
+ */
35
+ export declare function lerp(start: number, stop: number, amount: number): number;
36
+ /**
37
+ * Clamps an integer between two integers.
38
+ *
39
+ * @return input when min <= input <= max, and either min or max
40
+ * otherwise.
41
+ */
42
+ export declare function clampInt(min: number, max: number, input: number): number;
43
+ /**
44
+ * Clamps an integer between two floating-point numbers.
45
+ *
46
+ * @return input when min <= input <= max, and either min or max
47
+ * otherwise.
48
+ */
49
+ export declare function clampDouble(min: number, max: number, input: number): number;
50
+ /**
51
+ * Sanitizes a degree measure as an integer.
52
+ *
53
+ * @return a degree measure between 0 (inclusive) and 360
54
+ * (exclusive).
55
+ */
56
+ export declare function sanitizeDegreesInt(degrees: number): number;
57
+ /**
58
+ * Sanitizes a degree measure as a floating-point number.
59
+ *
60
+ * @return a degree measure between 0.0 (inclusive) and 360.0
61
+ * (exclusive).
62
+ */
63
+ export declare function sanitizeDegreesDouble(degrees: number): number;
64
+ /**
65
+ * Sign of direction change needed to travel from one angle to
66
+ * another.
67
+ *
68
+ * For angles that are 180 degrees apart from each other, both
69
+ * directions have the same travel distance, so either direction is
70
+ * shortest. The value 1.0 is returned in this case.
71
+ *
72
+ * @param from The angle travel starts from, in degrees.
73
+ * @param to The angle travel ends at, in degrees.
74
+ * @return -1 if decreasing from leads to the shortest travel
75
+ * distance, 1 if increasing from leads to the shortest travel
76
+ * distance.
77
+ */
78
+ export declare function rotationDirection(from: number, to: number): number;
79
+ /**
80
+ * Distance of two points on a circle, represented using degrees.
81
+ */
82
+ export declare function differenceDegrees(a: number, b: number): number;
83
+ /**
84
+ * Multiplies a 1x3 row vector with a 3x3 matrix.
85
+ */
86
+ export declare function matrixMultiply(row: number[], matrix: number[][]): number[];
@@ -1279,6 +1279,33 @@
1279
1279
  },
1280
1280
  "value": "#CCE0FF"
1281
1281
  },
1282
+ "Dark/color.background.brand.subtlest": {
1283
+ "attributes": {
1284
+ "group": "paint",
1285
+ "state": "active",
1286
+ "introduced": "1.13.0",
1287
+ "description": "Use for the background of elements used to reinforce our brand, but with less emphasis."
1288
+ },
1289
+ "value": "#092957"
1290
+ },
1291
+ "Dark/color.background.brand.subtlest.hovered": {
1292
+ "attributes": {
1293
+ "group": "paint",
1294
+ "state": "active",
1295
+ "introduced": "1.13.0",
1296
+ "description": "Hovered state of color.background.brand.subtlest."
1297
+ },
1298
+ "value": "#09326C"
1299
+ },
1300
+ "Dark/color.background.brand.subtlest.pressed": {
1301
+ "attributes": {
1302
+ "group": "paint",
1303
+ "state": "active",
1304
+ "introduced": "1.13.0",
1305
+ "description": "Pressed state of color.background.brand.subtlest"
1306
+ },
1307
+ "value": "#0055CC"
1308
+ },
1282
1309
  "Dark/color.background.brand.bold": {
1283
1310
  "attributes": {
1284
1311
  "group": "paint",
@@ -1293,7 +1320,7 @@
1293
1320
  "group": "paint",
1294
1321
  "state": "active",
1295
1322
  "introduced": "0.6.0",
1296
- "description": "Hovered state of color.background.brand.bold"
1323
+ "description": "Hovered state of color.background.brand.bold."
1297
1324
  },
1298
1325
  "value": "#85B8FF"
1299
1326
  },
@@ -1302,10 +1329,37 @@
1302
1329
  "group": "paint",
1303
1330
  "state": "active",
1304
1331
  "introduced": "0.6.0",
1305
- "description": "Pressed state of color.background.brand.bold"
1332
+ "description": "Pressed state of color.background.brand.bold."
1306
1333
  },
1307
1334
  "value": "#CCE0FF"
1308
1335
  },
1336
+ "Dark/color.background.brand.boldest": {
1337
+ "attributes": {
1338
+ "group": "paint",
1339
+ "state": "active",
1340
+ "introduced": "1.13.0",
1341
+ "description": "Use for the background of elements used to reinforce our brand, that need to stand out a lot."
1342
+ },
1343
+ "value": "#E9F2FF"
1344
+ },
1345
+ "Dark/color.background.brand.boldest.hovered": {
1346
+ "attributes": {
1347
+ "group": "paint",
1348
+ "state": "active",
1349
+ "introduced": "1.13.0",
1350
+ "description": "Hovered state of color.background.brand.boldest."
1351
+ },
1352
+ "value": "#CCE0FF"
1353
+ },
1354
+ "Dark/color.background.brand.boldest.pressed": {
1355
+ "attributes": {
1356
+ "group": "paint",
1357
+ "state": "active",
1358
+ "introduced": "1.13.0",
1359
+ "description": "Pressed state of color.background.brand.boldest."
1360
+ },
1361
+ "value": "#85B8FF"
1362
+ },
1309
1363
  "Dark/color.background.danger": {
1310
1364
  "attributes": {
1311
1365
  "group": "paint",
@@ -1279,6 +1279,33 @@
1279
1279
  },
1280
1280
  "value": "#0747A6"
1281
1281
  },
1282
+ "Legacy dark/color.background.brand.subtlest": {
1283
+ "attributes": {
1284
+ "group": "paint",
1285
+ "state": "active",
1286
+ "introduced": "1.13.0",
1287
+ "description": "Use for the background of elements used to reinforce our brand, but with less emphasis."
1288
+ },
1289
+ "value": "#0747A6"
1290
+ },
1291
+ "Legacy dark/color.background.brand.subtlest.hovered": {
1292
+ "attributes": {
1293
+ "group": "paint",
1294
+ "state": "active",
1295
+ "introduced": "1.13.0",
1296
+ "description": "Hovered state of color.background.brand.subtlest."
1297
+ },
1298
+ "value": "#0052CC"
1299
+ },
1300
+ "Legacy dark/color.background.brand.subtlest.pressed": {
1301
+ "attributes": {
1302
+ "group": "paint",
1303
+ "state": "active",
1304
+ "introduced": "1.13.0",
1305
+ "description": "Pressed state of color.background.brand.subtlest"
1306
+ },
1307
+ "value": "#0747A6"
1308
+ },
1282
1309
  "Legacy dark/color.background.brand.bold": {
1283
1310
  "attributes": {
1284
1311
  "group": "paint",
@@ -1293,7 +1320,7 @@
1293
1320
  "group": "paint",
1294
1321
  "state": "active",
1295
1322
  "introduced": "0.6.0",
1296
- "description": "Hovered state of color.background.brand.bold"
1323
+ "description": "Hovered state of color.background.brand.bold."
1297
1324
  },
1298
1325
  "value": "#0065FF"
1299
1326
  },
@@ -1302,10 +1329,37 @@
1302
1329
  "group": "paint",
1303
1330
  "state": "active",
1304
1331
  "introduced": "0.6.0",
1305
- "description": "Pressed state of color.background.brand.bold"
1332
+ "description": "Pressed state of color.background.brand.bold."
1306
1333
  },
1307
1334
  "value": "#0747A6"
1308
1335
  },
1336
+ "Legacy dark/color.background.brand.boldest": {
1337
+ "attributes": {
1338
+ "group": "paint",
1339
+ "state": "active",
1340
+ "introduced": "1.13.0",
1341
+ "description": "Use for the background of elements used to reinforce our brand, that need to stand out a lot."
1342
+ },
1343
+ "value": "#B3D4FF"
1344
+ },
1345
+ "Legacy dark/color.background.brand.boldest.hovered": {
1346
+ "attributes": {
1347
+ "group": "paint",
1348
+ "state": "active",
1349
+ "introduced": "1.13.0",
1350
+ "description": "Hovered state of color.background.brand.boldest."
1351
+ },
1352
+ "value": "#DEEBFF"
1353
+ },
1354
+ "Legacy dark/color.background.brand.boldest.pressed": {
1355
+ "attributes": {
1356
+ "group": "paint",
1357
+ "state": "active",
1358
+ "introduced": "1.13.0",
1359
+ "description": "Pressed state of color.background.brand.boldest."
1360
+ },
1361
+ "value": "#4C9AFF"
1362
+ },
1309
1363
  "Legacy dark/color.background.danger": {
1310
1364
  "attributes": {
1311
1365
  "group": "paint",
@@ -1279,6 +1279,33 @@
1279
1279
  },
1280
1280
  "value": "#0052CC"
1281
1281
  },
1282
+ "Legacy light/color.background.brand.subtlest": {
1283
+ "attributes": {
1284
+ "group": "paint",
1285
+ "state": "active",
1286
+ "introduced": "1.13.0",
1287
+ "description": "Use for the background of elements used to reinforce our brand, but with less emphasis."
1288
+ },
1289
+ "value": "#B3D4FF"
1290
+ },
1291
+ "Legacy light/color.background.brand.subtlest.hovered": {
1292
+ "attributes": {
1293
+ "group": "paint",
1294
+ "state": "active",
1295
+ "introduced": "1.13.0",
1296
+ "description": "Hovered state of color.background.brand.subtlest."
1297
+ },
1298
+ "value": "#DEEBFF"
1299
+ },
1300
+ "Legacy light/color.background.brand.subtlest.pressed": {
1301
+ "attributes": {
1302
+ "group": "paint",
1303
+ "state": "active",
1304
+ "introduced": "1.13.0",
1305
+ "description": "Pressed state of color.background.brand.subtlest"
1306
+ },
1307
+ "value": "#4C9AFF"
1308
+ },
1282
1309
  "Legacy light/color.background.brand.bold": {
1283
1310
  "attributes": {
1284
1311
  "group": "paint",
@@ -1293,7 +1320,7 @@
1293
1320
  "group": "paint",
1294
1321
  "state": "active",
1295
1322
  "introduced": "0.6.0",
1296
- "description": "Hovered state of color.background.brand.bold"
1323
+ "description": "Hovered state of color.background.brand.bold."
1297
1324
  },
1298
1325
  "value": "#0065FF"
1299
1326
  },
@@ -1302,7 +1329,34 @@
1302
1329
  "group": "paint",
1303
1330
  "state": "active",
1304
1331
  "introduced": "0.6.0",
1305
- "description": "Pressed state of color.background.brand.bold"
1332
+ "description": "Pressed state of color.background.brand.bold."
1333
+ },
1334
+ "value": "#0747A6"
1335
+ },
1336
+ "Legacy light/color.background.brand.boldest": {
1337
+ "attributes": {
1338
+ "group": "paint",
1339
+ "state": "active",
1340
+ "introduced": "1.13.0",
1341
+ "description": "Use for the background of elements used to reinforce our brand, that need to stand out a lot."
1342
+ },
1343
+ "value": "#0747A6"
1344
+ },
1345
+ "Legacy light/color.background.brand.boldest.hovered": {
1346
+ "attributes": {
1347
+ "group": "paint",
1348
+ "state": "active",
1349
+ "introduced": "1.13.0",
1350
+ "description": "Hovered state of color.background.brand.boldest."
1351
+ },
1352
+ "value": "#0052CC"
1353
+ },
1354
+ "Legacy light/color.background.brand.boldest.pressed": {
1355
+ "attributes": {
1356
+ "group": "paint",
1357
+ "state": "active",
1358
+ "introduced": "1.13.0",
1359
+ "description": "Pressed state of color.background.brand.boldest."
1306
1360
  },
1307
1361
  "value": "#0747A6"
1308
1362
  },
@@ -1279,6 +1279,33 @@
1279
1279
  },
1280
1280
  "value": "#09326C"
1281
1281
  },
1282
+ "Light/color.background.brand.subtlest": {
1283
+ "attributes": {
1284
+ "group": "paint",
1285
+ "state": "active",
1286
+ "introduced": "1.13.0",
1287
+ "description": "Use for the background of elements used to reinforce our brand, but with less emphasis."
1288
+ },
1289
+ "value": "#E9F2FF"
1290
+ },
1291
+ "Light/color.background.brand.subtlest.hovered": {
1292
+ "attributes": {
1293
+ "group": "paint",
1294
+ "state": "active",
1295
+ "introduced": "1.13.0",
1296
+ "description": "Hovered state of color.background.brand.subtlest."
1297
+ },
1298
+ "value": "#CCE0FF"
1299
+ },
1300
+ "Light/color.background.brand.subtlest.pressed": {
1301
+ "attributes": {
1302
+ "group": "paint",
1303
+ "state": "active",
1304
+ "introduced": "1.13.0",
1305
+ "description": "Pressed state of color.background.brand.subtlest"
1306
+ },
1307
+ "value": "#85B8FF"
1308
+ },
1282
1309
  "Light/color.background.brand.bold": {
1283
1310
  "attributes": {
1284
1311
  "group": "paint",
@@ -1293,7 +1320,7 @@
1293
1320
  "group": "paint",
1294
1321
  "state": "active",
1295
1322
  "introduced": "0.6.0",
1296
- "description": "Hovered state of color.background.brand.bold"
1323
+ "description": "Hovered state of color.background.brand.bold."
1297
1324
  },
1298
1325
  "value": "#0055CC"
1299
1326
  },
@@ -1302,10 +1329,37 @@
1302
1329
  "group": "paint",
1303
1330
  "state": "active",
1304
1331
  "introduced": "0.6.0",
1305
- "description": "Pressed state of color.background.brand.bold"
1332
+ "description": "Pressed state of color.background.brand.bold."
1306
1333
  },
1307
1334
  "value": "#09326C"
1308
1335
  },
1336
+ "Light/color.background.brand.boldest": {
1337
+ "attributes": {
1338
+ "group": "paint",
1339
+ "state": "active",
1340
+ "introduced": "1.13.0",
1341
+ "description": "Use for the background of elements used to reinforce our brand, that need to stand out a lot."
1342
+ },
1343
+ "value": "#092957"
1344
+ },
1345
+ "Light/color.background.brand.boldest.hovered": {
1346
+ "attributes": {
1347
+ "group": "paint",
1348
+ "state": "active",
1349
+ "introduced": "1.13.0",
1350
+ "description": "Hovered state of color.background.brand.boldest."
1351
+ },
1352
+ "value": "#09326C"
1353
+ },
1354
+ "Light/color.background.brand.boldest.pressed": {
1355
+ "attributes": {
1356
+ "group": "paint",
1357
+ "state": "active",
1358
+ "introduced": "1.13.0",
1359
+ "description": "Pressed state of color.background.brand.boldest."
1360
+ },
1361
+ "value": "#0055CC"
1362
+ },
1309
1363
  "Light/color.background.danger": {
1310
1364
  "attributes": {
1311
1365
  "group": "paint",
package/package.json CHANGED
@@ -1,57 +1,36 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.11.3",
4
- "author": "Atlassian Pty Ltd",
3
+ "version": "1.13.0",
5
4
  "description": "Design tokens are the single source of truth to name and store design decisions.",
6
- "license": "Apache-2.0",
7
5
  "publishConfig": {
8
6
  "registry": "https://registry.npmjs.org/"
9
7
  },
10
- "atlassian": {
11
- "team": "Design System Team",
12
- "releaseModel": "continuous",
13
- "productPushConsumption": [
14
- "jira"
15
- ],
16
- "website": {
17
- "name": "Design tokens",
18
- "category": "Libraries"
19
- }
20
- },
21
8
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
22
11
  "main": "dist/cjs/index.js",
23
12
  "module": "dist/esm/index.js",
24
13
  "module:es2019": "dist/es2019/index.js",
25
14
  "types": "dist/types/index.d.ts",
26
- "typesVersions": {
27
- ">=4.5 <4.9": {
28
- "*": [
29
- "dist/types-ts4.5/*",
30
- "dist/types-ts4.5/index.d.ts"
31
- ]
32
- }
33
- },
34
15
  "sideEffects": [
35
16
  "**/*.css"
36
17
  ],
37
18
  "atlaskit:src": "src/index.tsx",
38
- "af:exports": {
39
- ".": "./src/index.tsx",
40
- "./figma/atlassian-light.json": "./figma/atlassian-light.json",
41
- "./figma/atlassian-dark.json": "./figma/atlassian-dark.json",
42
- "./palettes-raw": "./src/entry-points/palettes-raw.tsx",
43
- "./tokens-raw": "./src/entry-points/tokens-raw.tsx",
44
- "./token-ids": "./src/entry-points/token-ids.tsx",
45
- "./token-names": "./src/entry-points/token-names.tsx",
46
- "./token-order": "./src/entry-points/token-order.tsx",
47
- "./token-default-values": "./src/entry-points/token-default-values.tsx",
48
- "./rename-mapping": "./src/entry-points/rename-mapping.tsx",
49
- "./babel-plugin": "./src/entry-points/babel-plugin.tsx"
19
+ "atlassian": {
20
+ "team": "Design System Team",
21
+ "productPushConsumption": [
22
+ "jira"
23
+ ],
24
+ "releaseModel": "continuous",
25
+ "website": {
26
+ "name": "Design tokens",
27
+ "category": "Libraries"
28
+ }
50
29
  },
51
30
  "scripts": {
52
31
  "ak-postbuild": "(cd $(npx repo-root) && yarn build @atlassian/codegen -d cjs,esm,es2019) && yarn workspace @atlaskit/tokens codegen-tokens && yarn workspace @atlaskit/tokens check-clean-git",
53
32
  "check-clean-git": "git diff --exit-code -- packages/design-system/tokens/ || (echo 'tokens are out of date, run yarn build tokens' && false)",
54
- "codegen-tokens": "ts-node --project $(npx repo-root)/tsconfig.node.json ./scripts/style-dictionary/build"
33
+ "codegen-tokens": "ts-node --project $(npx repo-root)/tsconfig.node.json ./scripts/style-dictionary/build && cd $(npx repo-root)/packages/design-system/primitives && yarn codegen-styles"
55
34
  },
56
35
  "dependencies": {
57
36
  "@atlaskit/ds-lib": "^2.2.0",
@@ -66,6 +45,7 @@
66
45
  },
67
46
  "devDependencies": {
68
47
  "@af/accessibility-testing": "*",
48
+ "@af/visual-regression": "*",
69
49
  "@atlaskit/visual-regression": "*",
70
50
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
71
51
  "@atlassian/codegen": "^0.1.0",
@@ -77,9 +57,7 @@
77
57
  "@testing-library/react": "^12.1.5",
78
58
  "@testing-library/react-hooks": "^8.0.1",
79
59
  "@testing-library/user-event": "^14.4.3",
80
- "@types/chroma-js": "^2.4.0",
81
60
  "@types/chrome": "^0.0.171",
82
- "chroma-js": "^2.4.2",
83
61
  "color-blend": "^4.0.0",
84
62
  "copy-webpack-plugin": "^6.4.0",
85
63
  "echarts": "^5.4.1",
@@ -110,6 +88,27 @@
110
88
  ]
111
89
  }
112
90
  },
91
+ "typesVersions": {
92
+ ">=4.5 <4.9": {
93
+ "*": [
94
+ "dist/types-ts4.5/*",
95
+ "dist/types-ts4.5/index.d.ts"
96
+ ]
97
+ }
98
+ },
99
+ "af:exports": {
100
+ ".": "./src/index.tsx",
101
+ "./figma/atlassian-light.json": "./figma/atlassian-light.json",
102
+ "./figma/atlassian-dark.json": "./figma/atlassian-dark.json",
103
+ "./palettes-raw": "./src/entry-points/palettes-raw.tsx",
104
+ "./tokens-raw": "./src/entry-points/tokens-raw.tsx",
105
+ "./token-ids": "./src/entry-points/token-ids.tsx",
106
+ "./token-names": "./src/entry-points/token-names.tsx",
107
+ "./token-order": "./src/entry-points/token-order.tsx",
108
+ "./token-default-values": "./src/entry-points/token-default-values.tsx",
109
+ "./rename-mapping": "./src/entry-points/rename-mapping.tsx",
110
+ "./babel-plugin": "./src/entry-points/babel-plugin.tsx"
111
+ },
113
112
  "platform-feature-flags": {
114
113
  "platform.design-system-team.border-checkbox_nyoiu": {
115
114
  "type": "boolean"