@atlaskit/tokens 0.4.2 → 0.6.2

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 (179) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/css/atlassian-dark.css +203 -67
  3. package/css/atlassian-light.css +203 -67
  4. package/dist/cjs/artifacts/rename-mapping.js +326 -2
  5. package/dist/cjs/artifacts/token-default-values.js +203 -67
  6. package/dist/cjs/artifacts/token-names.js +203 -67
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +3442 -612
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +3426 -616
  9. package/dist/cjs/artifacts/types-internal.js +5 -0
  10. package/dist/cjs/get-token.js +10 -3
  11. package/dist/cjs/tokens/atlassian-dark/color/accent.js +150 -39
  12. package/dist/cjs/tokens/atlassian-dark/color/background.js +189 -152
  13. package/dist/cjs/tokens/atlassian-dark/color/border.js +29 -2
  14. package/dist/cjs/tokens/atlassian-dark/color/icon.js +52 -0
  15. package/dist/cjs/tokens/atlassian-dark/color/interaction.js +32 -0
  16. package/dist/cjs/tokens/atlassian-dark/color/text.js +27 -22
  17. package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +351 -0
  18. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +66 -0
  19. package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +26 -0
  20. package/dist/cjs/tokens/atlassian-light/color/accent.js +150 -39
  21. package/dist/cjs/tokens/atlassian-light/color/background.js +189 -152
  22. package/dist/cjs/tokens/atlassian-light/color/border.js +29 -2
  23. package/dist/cjs/tokens/atlassian-light/color/icon.js +52 -0
  24. package/dist/cjs/tokens/atlassian-light/color/interaction.js +32 -0
  25. package/dist/cjs/tokens/atlassian-light/color/text.js +27 -22
  26. package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +337 -0
  27. package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +52 -0
  28. package/dist/cjs/tokens/atlassian-light/elevation/surface.js +26 -0
  29. package/dist/cjs/tokens/default/color/accent.js +306 -87
  30. package/dist/cjs/tokens/default/color/background.js +361 -306
  31. package/dist/cjs/tokens/default/color/border.js +67 -4
  32. package/dist/cjs/tokens/default/color/icon.js +100 -0
  33. package/dist/cjs/tokens/default/color/interaction.js +44 -0
  34. package/dist/cjs/tokens/default/color/text.js +44 -35
  35. package/dist/cjs/tokens/default/deprecated/deprecated.js +710 -0
  36. package/dist/cjs/tokens/default/elevation/shadow.js +28 -0
  37. package/dist/cjs/tokens/default/elevation/surface.js +42 -0
  38. package/dist/cjs/version.json +1 -1
  39. package/dist/es2019/artifacts/rename-mapping.js +326 -2
  40. package/dist/es2019/artifacts/token-default-values.js +203 -67
  41. package/dist/es2019/artifacts/token-names.js +203 -67
  42. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +3442 -612
  43. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +3426 -616
  44. package/dist/es2019/artifacts/types-internal.js +1 -0
  45. package/dist/es2019/get-token.js +8 -3
  46. package/dist/es2019/tokens/atlassian-dark/color/accent.js +150 -39
  47. package/dist/es2019/tokens/atlassian-dark/color/background.js +189 -152
  48. package/dist/es2019/tokens/atlassian-dark/color/border.js +29 -2
  49. package/dist/es2019/tokens/atlassian-dark/color/icon.js +45 -0
  50. package/dist/es2019/tokens/atlassian-dark/color/interaction.js +25 -0
  51. package/dist/es2019/tokens/atlassian-dark/color/text.js +27 -22
  52. package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +344 -0
  53. package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +59 -0
  54. package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +19 -0
  55. package/dist/es2019/tokens/atlassian-light/color/accent.js +150 -39
  56. package/dist/es2019/tokens/atlassian-light/color/background.js +189 -152
  57. package/dist/es2019/tokens/atlassian-light/color/border.js +29 -2
  58. package/dist/es2019/tokens/atlassian-light/color/icon.js +45 -0
  59. package/dist/es2019/tokens/atlassian-light/color/interaction.js +25 -0
  60. package/dist/es2019/tokens/atlassian-light/color/text.js +27 -22
  61. package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +330 -0
  62. package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +45 -0
  63. package/dist/es2019/tokens/atlassian-light/elevation/surface.js +19 -0
  64. package/dist/es2019/tokens/default/color/accent.js +306 -87
  65. package/dist/es2019/tokens/default/color/background.js +361 -311
  66. package/dist/es2019/tokens/default/color/border.js +67 -4
  67. package/dist/es2019/tokens/default/color/icon.js +93 -0
  68. package/dist/es2019/tokens/default/color/interaction.js +37 -0
  69. package/dist/es2019/tokens/default/color/text.js +44 -42
  70. package/dist/es2019/tokens/default/deprecated/deprecated.js +741 -0
  71. package/dist/es2019/tokens/default/elevation/shadow.js +23 -0
  72. package/dist/es2019/tokens/default/elevation/surface.js +37 -0
  73. package/dist/es2019/version.json +1 -1
  74. package/dist/esm/artifacts/rename-mapping.js +326 -2
  75. package/dist/esm/artifacts/token-default-values.js +203 -67
  76. package/dist/esm/artifacts/token-names.js +203 -67
  77. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +3442 -612
  78. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +3426 -616
  79. package/dist/esm/artifacts/types-internal.js +1 -0
  80. package/dist/esm/get-token.js +8 -3
  81. package/dist/esm/tokens/atlassian-dark/color/accent.js +150 -39
  82. package/dist/esm/tokens/atlassian-dark/color/background.js +189 -152
  83. package/dist/esm/tokens/atlassian-dark/color/border.js +29 -2
  84. package/dist/esm/tokens/atlassian-dark/color/icon.js +45 -0
  85. package/dist/esm/tokens/atlassian-dark/color/interaction.js +25 -0
  86. package/dist/esm/tokens/atlassian-dark/color/text.js +27 -22
  87. package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +344 -0
  88. package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +59 -0
  89. package/dist/esm/tokens/atlassian-dark/elevation/surface.js +19 -0
  90. package/dist/esm/tokens/atlassian-light/color/accent.js +150 -39
  91. package/dist/esm/tokens/atlassian-light/color/background.js +189 -152
  92. package/dist/esm/tokens/atlassian-light/color/border.js +29 -2
  93. package/dist/esm/tokens/atlassian-light/color/icon.js +45 -0
  94. package/dist/esm/tokens/atlassian-light/color/interaction.js +25 -0
  95. package/dist/esm/tokens/atlassian-light/color/text.js +27 -22
  96. package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +330 -0
  97. package/dist/esm/tokens/atlassian-light/elevation/shadow.js +45 -0
  98. package/dist/esm/tokens/atlassian-light/elevation/surface.js +19 -0
  99. package/dist/esm/tokens/default/color/accent.js +306 -87
  100. package/dist/esm/tokens/default/color/background.js +361 -306
  101. package/dist/esm/tokens/default/color/border.js +67 -4
  102. package/dist/esm/tokens/default/color/icon.js +93 -0
  103. package/dist/esm/tokens/default/color/interaction.js +37 -0
  104. package/dist/esm/tokens/default/color/text.js +44 -35
  105. package/dist/esm/tokens/default/deprecated/deprecated.js +703 -0
  106. package/dist/esm/tokens/default/elevation/shadow.js +21 -0
  107. package/dist/esm/tokens/default/elevation/surface.js +35 -0
  108. package/dist/esm/version.json +1 -1
  109. package/dist/types/artifacts/rename-mapping.d.ts +7 -3
  110. package/dist/types/artifacts/token-default-values.d.ts +203 -67
  111. package/dist/types/artifacts/token-names.d.ts +406 -134
  112. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +86 -0
  113. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +62 -0
  114. package/dist/types/artifacts/types-internal.d.ts +4 -0
  115. package/dist/types/artifacts/types.d.ts +1 -1
  116. package/dist/types/get-token.d.ts +2 -2
  117. package/dist/types/tokens/atlassian-dark/color/icon.d.ts +3 -0
  118. package/dist/types/tokens/atlassian-dark/color/interaction.d.ts +3 -0
  119. package/dist/types/tokens/atlassian-dark/deprecated/deprecated.d.ts +3 -0
  120. package/dist/types/tokens/atlassian-dark/{shadow → elevation}/shadow.d.ts +0 -0
  121. package/dist/types/tokens/atlassian-dark/elevation/surface.d.ts +3 -0
  122. package/dist/types/tokens/atlassian-light/color/icon.d.ts +3 -0
  123. package/dist/types/tokens/atlassian-light/color/interaction.d.ts +3 -0
  124. package/dist/types/tokens/atlassian-light/deprecated/deprecated.d.ts +3 -0
  125. package/dist/types/tokens/atlassian-light/{shadow → elevation}/shadow.d.ts +0 -0
  126. package/dist/types/tokens/atlassian-light/elevation/surface.d.ts +3 -0
  127. package/dist/types/tokens/default/color/icon.d.ts +3 -0
  128. package/dist/types/tokens/default/color/interaction.d.ts +3 -0
  129. package/dist/types/tokens/default/deprecated/deprecated.d.ts +3 -0
  130. package/dist/types/tokens/default/{shadow → elevation}/shadow.d.ts +0 -0
  131. package/dist/types/tokens/default/elevation/surface.d.ts +3 -0
  132. package/dist/types/tokens/default/utility/utility.d.ts +72 -72
  133. package/dist/types/types.d.ts +311 -56
  134. package/package.json +16 -7
  135. package/dist/cjs/tokens/atlassian-dark/color/icon-border.js +0 -29
  136. package/dist/cjs/tokens/atlassian-dark/color/overlay.js +0 -20
  137. package/dist/cjs/tokens/atlassian-dark/shadow/shadow.js +0 -64
  138. package/dist/cjs/tokens/atlassian-light/color/icon-border.js +0 -29
  139. package/dist/cjs/tokens/atlassian-light/color/overlay.js +0 -20
  140. package/dist/cjs/tokens/atlassian-light/shadow/shadow.js +0 -50
  141. package/dist/cjs/tokens/default/color/icon-border.js +0 -49
  142. package/dist/cjs/tokens/default/color/overlay.js +0 -28
  143. package/dist/cjs/tokens/default/shadow/shadow.js +0 -26
  144. package/dist/es2019/tokens/atlassian-dark/color/icon-border.js +0 -22
  145. package/dist/es2019/tokens/atlassian-dark/color/overlay.js +0 -13
  146. package/dist/es2019/tokens/atlassian-dark/shadow/shadow.js +0 -57
  147. package/dist/es2019/tokens/atlassian-light/color/icon-border.js +0 -22
  148. package/dist/es2019/tokens/atlassian-light/color/overlay.js +0 -13
  149. package/dist/es2019/tokens/atlassian-light/shadow/shadow.js +0 -43
  150. package/dist/es2019/tokens/default/color/icon-border.js +0 -60
  151. package/dist/es2019/tokens/default/color/overlay.js +0 -21
  152. package/dist/es2019/tokens/default/shadow/shadow.js +0 -27
  153. package/dist/esm/tokens/atlassian-dark/color/icon-border.js +0 -22
  154. package/dist/esm/tokens/atlassian-dark/color/overlay.js +0 -13
  155. package/dist/esm/tokens/atlassian-dark/shadow/shadow.js +0 -57
  156. package/dist/esm/tokens/atlassian-light/color/icon-border.js +0 -22
  157. package/dist/esm/tokens/atlassian-light/color/overlay.js +0 -13
  158. package/dist/esm/tokens/atlassian-light/shadow/shadow.js +0 -43
  159. package/dist/esm/tokens/default/color/icon-border.js +0 -42
  160. package/dist/esm/tokens/default/color/overlay.js +0 -21
  161. package/dist/esm/tokens/default/shadow/shadow.js +0 -19
  162. package/dist/types/tokens/atlassian-dark/color/icon-border.d.ts +0 -3
  163. package/dist/types/tokens/atlassian-dark/color/overlay.d.ts +0 -3
  164. package/dist/types/tokens/atlassian-light/color/icon-border.d.ts +0 -3
  165. package/dist/types/tokens/atlassian-light/color/overlay.d.ts +0 -3
  166. package/dist/types/tokens/default/color/icon-border.d.ts +0 -3
  167. package/dist/types/tokens/default/color/overlay.d.ts +0 -3
  168. package/tokens-browser-extension/README.md +0 -28
  169. package/tokens-browser-extension/atlassian-theme.css +0 -449
  170. package/tokens-browser-extension/background.js +0 -75
  171. package/tokens-browser-extension/content-script.js +0 -75
  172. package/tokens-browser-extension/devtools.html +0 -1
  173. package/tokens-browser-extension/devtools.js +0 -14
  174. package/tokens-browser-extension/manifest.json +0 -36
  175. package/tokens-browser-extension/messageback-script.js +0 -10
  176. package/tokens-browser-extension/messaging.js +0 -36
  177. package/tokens-browser-extension/panel.html +0 -25
  178. package/tokens-browser-extension/panel.js +0 -46
  179. package/tokens-browser-extension/toast.png +0 -0
@@ -1,376 +1,431 @@
1
1
  var color = {
2
2
  color: {
3
+ blanket: {
4
+ attributes: {
5
+ group: 'paint',
6
+ state: 'active',
7
+ description: 'Use for the screen overlay that appears with modal dialogs'
8
+ }
9
+ },
3
10
  background: {
4
- sunken: {
5
- attributes: {
6
- group: 'paint',
7
- state: 'active',
8
- description: 'Use as a secondary background for the UI'
9
- }
10
- },
11
- default: {
12
- attributes: {
13
- group: 'paint',
14
- state: 'active',
15
- description: 'Use as the primary background for the UI'
16
- }
17
- },
18
- card: {
11
+ disabled: {
19
12
  attributes: {
20
13
  group: 'paint',
21
14
  state: 'active',
22
- description: 'Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card.'
15
+ description: 'Use for backgrounds of elements in a disabled state.'
23
16
  }
24
17
  },
25
- overlay: {
18
+ inverse: {
26
19
  attributes: {
27
20
  group: 'paint',
28
21
  state: 'active',
29
- description: "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
22
+ description: 'Use for backgrounds of elements on a bold background, such as in the buttons on spotlight cards.'
30
23
  }
31
24
  },
32
- selected: {
33
- resting: {
25
+ input: {
26
+ '[default]': {
34
27
  attributes: {
35
28
  group: 'paint',
36
29
  state: 'active',
37
- description: 'Use for backgrounds of elements in a selected state'
30
+ description: 'Use for background of form UI elements, such as text fields, checkboxes, and radio buttons.'
38
31
  }
39
32
  },
40
- hover: {
33
+ hovered: {
41
34
  attributes: {
42
35
  group: 'paint',
43
36
  state: 'active',
44
- description: 'Hover state of background.selected'
37
+ description: 'Hovered state for color.background.input'
45
38
  }
46
39
  },
47
40
  pressed: {
48
41
  attributes: {
49
42
  group: 'paint',
50
43
  state: 'active',
51
- description: 'Pressed state of background.selected'
44
+ description: 'Pressed state for color.background.input'
52
45
  }
53
46
  }
54
47
  },
55
- blanket: {
56
- attributes: {
57
- group: 'paint',
58
- state: 'active',
59
- description: 'Use for the screen overlay that appears with modal dialogs'
60
- }
61
- },
62
- disabled: {
63
- attributes: {
64
- group: 'paint',
65
- state: 'active',
66
- description: 'Use for backgrounds of elements in a disabled state'
67
- }
68
- },
69
- boldBrand: {
70
- resting: {
71
- attributes: {
72
- group: 'paint',
73
- state: 'active',
74
- description: 'A vibrant background for small UI elements like primary buttons and bold in progress lozenges.'
48
+ neutral: {
49
+ '[default]': {
50
+ '[default]': {
51
+ attributes: {
52
+ group: 'paint',
53
+ state: 'active',
54
+ description: 'The default background for neutral elements, such as default buttons.'
55
+ }
56
+ },
57
+ hovered: {
58
+ attributes: {
59
+ group: 'paint',
60
+ state: 'active',
61
+ description: 'Hovered state for color.background.neutral'
62
+ }
63
+ },
64
+ pressed: {
65
+ attributes: {
66
+ group: 'paint',
67
+ state: 'active',
68
+ description: 'Pressed state for color.background.neutral'
69
+ }
75
70
  }
76
71
  },
77
- hover: {
78
- attributes: {
79
- group: 'paint',
80
- state: 'active',
81
- description: 'Hover state of background.boldBrand'
72
+ subtle: {
73
+ '[default]': {
74
+ attributes: {
75
+ group: 'paint',
76
+ state: 'active',
77
+ description: 'Use for the background of elements that appear to have no background in a resting state, such as subtle buttons and menu items.'
78
+ }
79
+ },
80
+ hovered: {
81
+ attributes: {
82
+ group: 'paint',
83
+ state: 'active',
84
+ description: 'Hovered state for color.background.neutral.subtle'
85
+ }
86
+ },
87
+ pressed: {
88
+ attributes: {
89
+ group: 'paint',
90
+ state: 'active',
91
+ description: 'Pressed state for color.background.neutral.subtle'
92
+ }
82
93
  }
83
94
  },
84
- pressed: {
85
- attributes: {
86
- group: 'paint',
87
- state: 'active',
88
- description: 'Pressed state of background.boldBrand'
95
+ bold: {
96
+ '[default]': {
97
+ attributes: {
98
+ group: 'paint',
99
+ state: 'active',
100
+ description: 'A vibrant background option for neutral UI elements, such as announcement banners.'
101
+ }
102
+ },
103
+ hovered: {
104
+ attributes: {
105
+ group: 'paint',
106
+ state: 'active',
107
+ description: 'Hovered state of color.background.neutral.bold'
108
+ }
109
+ },
110
+ pressed: {
111
+ attributes: {
112
+ group: 'paint',
113
+ state: 'active',
114
+ description: 'Pressed state of color.background.neutral.bold'
115
+ }
89
116
  }
90
117
  }
91
118
  },
92
- subtleBrand: {
93
- resting: {
94
- attributes: {
95
- group: 'paint',
96
- state: 'active',
97
- description: 'Use for subdued backgrounds of UI elements like information section messages and in progress lozenges.'
98
- }
99
- },
100
- hover: {
101
- attributes: {
102
- group: 'paint',
103
- state: 'active',
104
- description: 'Hover state for background.subtleBrand'
105
- }
106
- },
107
- pressed: {
108
- attributes: {
109
- group: 'paint',
110
- state: 'active',
111
- description: 'Pressed state for background.subtleBrand'
119
+ brand: {
120
+ bold: {
121
+ '[default]': {
122
+ attributes: {
123
+ group: 'paint',
124
+ state: 'active',
125
+ description: 'Use for the background of elements used to reinforce our brand, but with more emphasis.'
126
+ }
127
+ },
128
+ hovered: {
129
+ attributes: {
130
+ group: 'paint',
131
+ state: 'active',
132
+ description: 'Hovered state of color.background.brand.bold'
133
+ }
134
+ },
135
+ pressed: {
136
+ attributes: {
137
+ group: 'paint',
138
+ state: 'active',
139
+ description: 'Pressed state of color.background.brand.bold'
140
+ }
112
141
  }
113
142
  }
114
143
  },
115
- boldDanger: {
116
- resting: {
117
- attributes: {
118
- group: 'paint',
119
- state: 'active',
120
- description: 'A vibrant background for small UI elements like danger buttons and bold removed lozenges.'
121
- }
122
- },
123
- hover: {
124
- attributes: {
125
- group: 'paint',
126
- state: 'active',
127
- description: 'Hover state of background.boldDanger'
128
- }
129
- },
130
- pressed: {
131
- attributes: {
132
- group: 'paint',
133
- state: 'active',
134
- description: 'Pressed state of background.boldDanger'
135
- }
136
- }
137
- },
138
- subtleDanger: {
139
- resting: {
140
- attributes: {
141
- group: 'paint',
142
- state: 'active',
143
- description: 'Use for subdued backgrounds of UI elements like error section messages and removed lozenges.'
144
- }
145
- },
146
- hover: {
147
- attributes: {
148
- group: 'paint',
149
- state: 'active',
150
- description: 'Hover state for background.subtleDanger'
151
- }
152
- },
153
- pressed: {
154
- attributes: {
155
- group: 'paint',
156
- state: 'active',
157
- description: 'Pressed state for background.subtleDanger'
158
- }
159
- }
160
- },
161
- boldWarning: {
162
- resting: {
163
- attributes: {
164
- group: 'paint',
165
- state: 'active',
166
- description: 'A vibrant background for small UI elements like warning buttons and bold moved lozenges.'
167
- }
168
- },
169
- hover: {
170
- attributes: {
171
- group: 'paint',
172
- state: 'active',
173
- description: 'Hover state of background.boldWarning'
174
- }
175
- },
176
- pressed: {
177
- attributes: {
178
- group: 'paint',
179
- state: 'active',
180
- description: 'Pressed state of background.boldWarning'
181
- }
182
- }
183
- },
184
- subtleWarning: {
185
- resting: {
186
- attributes: {
187
- group: 'paint',
188
- state: 'active',
189
- description: 'Use for subdued backgrounds of UI elements like warning section messages and moved lozenges.'
190
- }
191
- },
192
- hover: {
193
- attributes: {
194
- group: 'paint',
195
- state: 'active',
196
- description: 'Hover state for background.subtleWarning'
197
- }
198
- },
199
- pressed: {
200
- attributes: {
201
- group: 'paint',
202
- state: 'active',
203
- description: 'Pressed state for background.subtleWarning'
204
- }
205
- }
206
- },
207
- boldSuccess: {
208
- resting: {
209
- attributes: {
210
- group: 'paint',
211
- state: 'active',
212
- description: 'A vibrant background for small UI elements like checked toggles and bold success lozenges.'
213
- }
214
- },
215
- hover: {
216
- attributes: {
217
- group: 'paint',
218
- state: 'active',
219
- description: 'Hover state of background.boldSuccess'
220
- }
221
- },
222
- pressed: {
223
- attributes: {
224
- group: 'paint',
225
- state: 'active',
226
- description: 'Pressed state of background.boldSuccess'
227
- }
228
- }
229
- },
230
- subtleSuccess: {
231
- resting: {
232
- attributes: {
233
- group: 'paint',
234
- state: 'active',
235
- description: 'Use for subdued backgrounds of UI elements like success section messages and success lozenges. '
236
- }
237
- },
238
- hover: {
239
- attributes: {
240
- group: 'paint',
241
- state: 'active',
242
- description: 'Hover state for background.subtleSuccess'
243
- }
244
- },
245
- pressed: {
246
- attributes: {
247
- group: 'paint',
248
- state: 'active',
249
- description: 'Pressed state for background.subtleSuccess'
250
- }
251
- }
252
- },
253
- boldDiscovery: {
254
- resting: {
255
- attributes: {
256
- group: 'paint',
257
- state: 'active',
258
- description: 'A vibrant background for small UI elements like onboarding buttons and bold new lozenges.'
259
- }
260
- },
261
- hover: {
262
- attributes: {
263
- group: 'paint',
264
- state: 'active',
265
- description: 'Hover state of background.boldDiscovery'
144
+ selected: {
145
+ '[default]': {
146
+ '[default]': {
147
+ attributes: {
148
+ group: 'paint',
149
+ state: 'active',
150
+ description: 'Use for the background of elements in a selected state, such as in opened dropdown buttons.'
151
+ }
152
+ },
153
+ hovered: {
154
+ attributes: {
155
+ group: 'paint',
156
+ state: 'active',
157
+ description: 'Hovered state for color.background.selected'
158
+ }
159
+ },
160
+ pressed: {
161
+ attributes: {
162
+ group: 'paint',
163
+ state: 'active',
164
+ description: 'Pressed state for color.background.selected'
165
+ }
266
166
  }
267
167
  },
268
- pressed: {
269
- attributes: {
270
- group: 'paint',
271
- state: 'active',
272
- description: 'Pressed state of background.boldDiscovery'
168
+ bold: {
169
+ '[default]': {
170
+ attributes: {
171
+ group: 'paint',
172
+ state: 'active',
173
+ description: 'Use for the backgrounds of elements in a selected state, such as checkboxed and radio buttons.'
174
+ }
175
+ },
176
+ hovered: {
177
+ attributes: {
178
+ group: 'paint',
179
+ state: 'active',
180
+ description: 'Hovered state of color.background.selected.bold'
181
+ }
182
+ },
183
+ pressed: {
184
+ attributes: {
185
+ group: 'paint',
186
+ state: 'active',
187
+ description: 'Pressed state of color.background.selected.bold'
188
+ }
273
189
  }
274
190
  }
275
191
  },
276
- subtleDiscovery: {
277
- resting: {
278
- attributes: {
279
- group: 'paint',
280
- state: 'active',
281
- description: 'Use for subdued backgrounds of UI elements like discovery section messages and new lozenges.'
192
+ danger: {
193
+ '[default]': {
194
+ '[default]': {
195
+ attributes: {
196
+ group: 'paint',
197
+ state: 'active',
198
+ description: 'Use for backgrounds communicating critical informaton, such in error section messages.'
199
+ }
200
+ },
201
+ hovered: {
202
+ attributes: {
203
+ group: 'paint',
204
+ state: 'active',
205
+ description: 'Hovered state for color.background.danger'
206
+ }
207
+ },
208
+ pressed: {
209
+ attributes: {
210
+ group: 'paint',
211
+ state: 'active',
212
+ description: 'Pressed state for color.background.danger'
213
+ }
282
214
  }
283
215
  },
284
- hover: {
285
- attributes: {
286
- group: 'paint',
287
- state: 'active',
288
- description: 'Hover state for background.subtleDiscovery'
289
- }
290
- },
291
- pressed: {
292
- attributes: {
293
- group: 'paint',
294
- state: 'active',
295
- description: 'Pressed state for background.subtleDiscovery'
216
+ bold: {
217
+ '[default]': {
218
+ attributes: {
219
+ group: 'paint',
220
+ state: 'active',
221
+ description: 'A vibrant background option for communicating critical information, such as in danger buttons and error banners.'
222
+ }
223
+ },
224
+ hovered: {
225
+ attributes: {
226
+ group: 'paint',
227
+ state: 'active',
228
+ description: 'Hovered state of color.background.danger.bold'
229
+ }
230
+ },
231
+ pressed: {
232
+ attributes: {
233
+ group: 'paint',
234
+ state: 'active',
235
+ description: 'Pressed state of color.background.danger.bold'
236
+ }
296
237
  }
297
238
  }
298
239
  },
299
- boldNeutral: {
300
- resting: {
301
- attributes: {
302
- group: 'paint',
303
- state: 'active',
304
- description: 'A vibrant background for small UI elements like unchecked toggles and bold default lozenges.'
240
+ warning: {
241
+ '[default]': {
242
+ '[default]': {
243
+ attributes: {
244
+ group: 'paint',
245
+ state: 'active',
246
+ description: 'Use for backgrounds communicating caution, such as in warning section messages.'
247
+ }
248
+ },
249
+ hovered: {
250
+ attributes: {
251
+ group: 'paint',
252
+ state: 'active',
253
+ description: 'Hovered state for color.background.warning'
254
+ }
255
+ },
256
+ pressed: {
257
+ attributes: {
258
+ group: 'paint',
259
+ state: 'active',
260
+ description: 'Pressed state for color.background.warning'
261
+ }
305
262
  }
306
263
  },
307
- hover: {
308
- attributes: {
309
- group: 'paint',
310
- state: 'active',
311
- description: 'Hover state of background.boldNeutral'
312
- }
313
- },
314
- pressed: {
315
- attributes: {
316
- group: 'paint',
317
- state: 'active',
318
- description: 'Pressed state of background.boldNeutral'
264
+ bold: {
265
+ '[default]': {
266
+ attributes: {
267
+ group: 'paint',
268
+ state: 'active',
269
+ description: 'A vibrant background option for communicating caution, such as in warning buttons and warning banners.'
270
+ }
271
+ },
272
+ hovered: {
273
+ attributes: {
274
+ group: 'paint',
275
+ state: 'active',
276
+ description: 'Hovered state of color.background.warning.bold'
277
+ }
278
+ },
279
+ pressed: {
280
+ attributes: {
281
+ group: 'paint',
282
+ state: 'active',
283
+ description: 'Pressed state of color.background.warning.bold'
284
+ }
319
285
  }
320
286
  }
321
287
  },
322
- transparentNeutral: {
323
- hover: {
324
- attributes: {
325
- group: 'paint',
326
- state: 'active',
327
- description: 'Hover state for UIs that don’t have a default background, such as menu items or subtle buttons.'
288
+ success: {
289
+ '[default]': {
290
+ '[default]': {
291
+ attributes: {
292
+ group: 'paint',
293
+ state: 'active',
294
+ description: 'Use for backgrounds communicating a favourable outcome, such as in success section messages.'
295
+ }
296
+ },
297
+ hovered: {
298
+ attributes: {
299
+ group: 'paint',
300
+ state: 'active',
301
+ description: 'Hovered state for color.background.success'
302
+ }
303
+ },
304
+ pressed: {
305
+ attributes: {
306
+ group: 'paint',
307
+ state: 'active',
308
+ description: 'Pressed state for color.background.success'
309
+ }
328
310
  }
329
311
  },
330
- pressed: {
331
- attributes: {
332
- group: 'paint',
333
- state: 'active',
334
- description: 'Pressed state for UIs that don’t have a default background, such as menu items or subtle buttons.'
312
+ bold: {
313
+ '[default]': {
314
+ attributes: {
315
+ group: 'paint',
316
+ state: 'active',
317
+ description: 'A vibrant background option for communicating a favourable outcome, such as in checked toggles.'
318
+ }
319
+ },
320
+ hovered: {
321
+ attributes: {
322
+ group: 'paint',
323
+ state: 'active',
324
+ description: 'Hovered state of color.background.success.bold'
325
+ }
326
+ },
327
+ pressed: {
328
+ attributes: {
329
+ group: 'paint',
330
+ state: 'active',
331
+ description: 'Pressed state of color.background.success.bold'
332
+ }
335
333
  }
336
334
  }
337
335
  },
338
- subtleNeutral: {
339
- resting: {
340
- attributes: {
341
- group: 'paint',
342
- state: 'active',
343
- description: 'Use as the default background of UI elements like buttons, lozenges, and tags.'
344
- }
345
- },
346
- hover: {
347
- attributes: {
348
- group: 'paint',
349
- state: 'active',
350
- description: 'Hover state for background.subtleNeutral'
336
+ discovery: {
337
+ '[default]': {
338
+ '[default]': {
339
+ attributes: {
340
+ group: 'paint',
341
+ state: 'active',
342
+ description: 'Use for backgrounds communicating change or something new, such as in discovery section messages.'
343
+ }
344
+ },
345
+ hovered: {
346
+ attributes: {
347
+ group: 'paint',
348
+ state: 'active',
349
+ description: 'Hover state for color.background.discovery'
350
+ }
351
+ },
352
+ pressed: {
353
+ attributes: {
354
+ group: 'paint',
355
+ state: 'active',
356
+ description: 'Pressed state for color.background.discovery'
357
+ }
351
358
  }
352
359
  },
353
- pressed: {
354
- attributes: {
355
- group: 'paint',
356
- state: 'active',
357
- description: 'Pressed state for background.subtleNeutral'
360
+ bold: {
361
+ '[default]': {
362
+ attributes: {
363
+ group: 'paint',
364
+ state: 'active',
365
+ description: 'A vibrant background option communicating change or something new, such as in onboarding spotlights.'
366
+ }
367
+ },
368
+ hovered: {
369
+ attributes: {
370
+ group: 'paint',
371
+ state: 'active',
372
+ description: 'Hovered state of color.background.discovery.bold'
373
+ }
374
+ },
375
+ pressed: {
376
+ attributes: {
377
+ group: 'paint',
378
+ state: 'active',
379
+ description: 'Pressed state of color.background.discovery.bold'
380
+ }
358
381
  }
359
382
  }
360
383
  },
361
- subtleBorderedNeutral: {
362
- resting: {
363
- attributes: {
364
- group: 'paint',
365
- state: 'active',
366
- description: 'Hover state for background.subtleBorderedNeutral'
384
+ information: {
385
+ '[default]': {
386
+ '[default]': {
387
+ attributes: {
388
+ group: 'paint',
389
+ state: 'active',
390
+ description: 'Use for backgrounds communicating information or something in-progress, such as in information section messages.'
391
+ }
392
+ },
393
+ hovered: {
394
+ attributes: {
395
+ group: 'paint',
396
+ state: 'active',
397
+ description: 'Hovered state of color.background.information'
398
+ }
399
+ },
400
+ pressed: {
401
+ attributes: {
402
+ group: 'paint',
403
+ state: 'active',
404
+ description: 'Pressed state of color.background.information'
405
+ }
367
406
  }
368
407
  },
369
- pressed: {
370
- attributes: {
371
- group: 'paint',
372
- state: 'active',
373
- description: 'Pressed state for background.subtleBorderedNeutral'
408
+ bold: {
409
+ '[default]': {
410
+ attributes: {
411
+ group: 'paint',
412
+ state: 'active',
413
+ description: 'A vibrant background option for communicating information or something in-progress.'
414
+ }
415
+ },
416
+ hovered: {
417
+ attributes: {
418
+ group: 'paint',
419
+ state: 'active',
420
+ description: 'Hovered state of color.background.information.bold'
421
+ }
422
+ },
423
+ pressed: {
424
+ attributes: {
425
+ group: 'paint',
426
+ state: 'active',
427
+ description: 'Pressed state of color.background.information.bold'
428
+ }
374
429
  }
375
430
  }
376
431
  }