@atlaskit/tokens 0.10.16 → 0.10.19
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 +18 -0
- package/css/atlassian-dark.css +3 -1
- package/css/atlassian-legacy-dark.css +292 -0
- package/css/atlassian-legacy-light.css +292 -0
- package/css/atlassian-light.css +3 -1
- package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +120 -69
- package/dist/cjs/artifacts/palettes-raw/palette.js +35 -1
- package/dist/cjs/artifacts/token-default-values.js +3 -1
- package/dist/cjs/artifacts/token-names.js +3 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +6800 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +6760 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +45 -3
- package/dist/cjs/constants.js +9 -5
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/legacy-palette.js +59 -34
- package/dist/cjs/palettes/palette.js +18 -0
- package/dist/cjs/tokens/atlassian-dark/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/accent.js +296 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +250 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/border.js +53 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/icon.js +52 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/interaction.js +22 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/skeleton.js +20 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/text.js +63 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/deprecated/deprecated.js +532 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +89 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +26 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/utility/utility.js +20 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/accent.js +296 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +249 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/border.js +53 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/icon.js +52 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/interaction.js +22 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/skeleton.js +20 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/text.js +63 -0
- package/dist/cjs/tokens/atlassian-legacy-light/deprecated/deprecated.js +523 -0
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/shadow.js +71 -0
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +26 -0
- package/dist/cjs/tokens/atlassian-legacy-light/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-light/utility/utility.js +20 -0
- package/dist/cjs/tokens/atlassian-light/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/default/elevation/shadow.js +1 -1
- package/dist/cjs/tokens/default/opacity/opacity.js +28 -0
- package/dist/cjs/utils/token-ids.js +8 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +120 -69
- package/dist/es2019/artifacts/palettes-raw/palette.js +35 -1
- package/dist/es2019/artifacts/token-default-values.js +3 -1
- package/dist/es2019/artifacts/token-names.js +3 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +6792 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +6752 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +45 -3
- package/dist/es2019/constants.js +6 -3
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/legacy-palette.js +59 -34
- package/dist/es2019/palettes/palette.js +18 -0
- package/dist/es2019/tokens/atlassian-dark/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/accent.js +289 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/background.js +243 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/border.js +46 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/icon.js +45 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/interaction.js +15 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/skeleton.js +13 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/text.js +56 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/deprecated/deprecated.js +525 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/elevation/shadow.js +82 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/elevation/surface.js +19 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/utility/utility.js +13 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/accent.js +289 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/background.js +242 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/border.js +46 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/icon.js +45 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/interaction.js +15 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/skeleton.js +13 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/text.js +56 -0
- package/dist/es2019/tokens/atlassian-legacy-light/deprecated/deprecated.js +516 -0
- package/dist/es2019/tokens/atlassian-legacy-light/elevation/shadow.js +64 -0
- package/dist/es2019/tokens/atlassian-legacy-light/elevation/surface.js +19 -0
- package/dist/es2019/tokens/atlassian-legacy-light/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-legacy-light/utility/utility.js +13 -0
- package/dist/es2019/tokens/atlassian-light/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/default/elevation/shadow.js +1 -1
- package/dist/es2019/tokens/default/opacity/opacity.js +21 -0
- package/dist/es2019/utils/token-ids.js +6 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/legacy-palette.js +120 -69
- package/dist/esm/artifacts/palettes-raw/palette.js +35 -1
- package/dist/esm/artifacts/token-default-values.js +3 -1
- package/dist/esm/artifacts/token-names.js +3 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +6792 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +6752 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +45 -3
- package/dist/esm/constants.js +6 -3
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/legacy-palette.js +59 -34
- package/dist/esm/palettes/palette.js +18 -0
- package/dist/esm/tokens/atlassian-dark/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/accent.js +289 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/background.js +243 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/border.js +46 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/icon.js +45 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/interaction.js +15 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/skeleton.js +13 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/text.js +56 -0
- package/dist/esm/tokens/atlassian-legacy-dark/deprecated/deprecated.js +525 -0
- package/dist/esm/tokens/atlassian-legacy-dark/elevation/shadow.js +82 -0
- package/dist/esm/tokens/atlassian-legacy-dark/elevation/surface.js +19 -0
- package/dist/esm/tokens/atlassian-legacy-dark/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-legacy-dark/utility/utility.js +13 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/accent.js +289 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/background.js +242 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/border.js +46 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/icon.js +45 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/interaction.js +15 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/skeleton.js +13 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/text.js +56 -0
- package/dist/esm/tokens/atlassian-legacy-light/deprecated/deprecated.js +516 -0
- package/dist/esm/tokens/atlassian-legacy-light/elevation/shadow.js +64 -0
- package/dist/esm/tokens/atlassian-legacy-light/elevation/surface.js +19 -0
- package/dist/esm/tokens/atlassian-legacy-light/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-legacy-light/utility/utility.js +13 -0
- package/dist/esm/tokens/atlassian-light/opacity/opacity.js +11 -0
- package/dist/esm/tokens/default/elevation/shadow.js +1 -1
- package/dist/esm/tokens/default/opacity/opacity.js +21 -0
- package/dist/esm/utils/token-ids.js +6 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +20 -3
- package/dist/types/artifacts/palettes-raw/palette.d.ts +20 -3
- package/dist/types/artifacts/token-default-values.d.ts +3 -1
- package/dist/types/artifacts/token-names.d.ts +5 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +28 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +222 -0
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +174 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +28 -1
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/constants.d.ts +4 -1
- package/dist/types/palettes/legacy-palette.d.ts +1 -1
- package/dist/types/tokens/atlassian-dark/opacity/opacity.d.ts +3 -0
- package/dist/types/tokens/atlassian-legacy-dark/color/accent.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/color/background.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/color/border.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/color/icon.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/color/interaction.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/color/skeleton.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/color/text.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/deprecated/deprecated.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/elevation/shadow.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/elevation/surface.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +3 -0
- package/dist/types/tokens/atlassian-legacy-dark/utility/utility.d.ts +5 -0
- package/dist/types/tokens/atlassian-legacy-light/color/accent.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/color/background.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/color/border.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/color/icon.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/color/interaction.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/color/skeleton.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/color/text.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/deprecated/deprecated.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/elevation/shadow.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/elevation/surface.d.ts +4 -0
- package/dist/types/tokens/atlassian-legacy-light/opacity/opacity.d.ts +3 -0
- package/dist/types/tokens/atlassian-legacy-light/utility/utility.d.ts +5 -0
- package/dist/types/tokens/atlassian-light/opacity/opacity.d.ts +3 -0
- package/dist/types/tokens/default/opacity/opacity.d.ts +3 -0
- package/dist/types/types.d.ts +29 -8
- package/dist/types/utils/token-ids.d.ts +1 -3
- package/package.json +16 -14
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
var color = {
|
|
2
|
+
color: {
|
|
3
|
+
accent: {
|
|
4
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
5
|
+
boldBlue: {
|
|
6
|
+
value: '#FA11F2'
|
|
7
|
+
},
|
|
8
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
9
|
+
boldGreen: {
|
|
10
|
+
value: '#FA11F2'
|
|
11
|
+
},
|
|
12
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
13
|
+
boldOrange: {
|
|
14
|
+
value: '#FA11F2'
|
|
15
|
+
},
|
|
16
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
17
|
+
boldPurple: {
|
|
18
|
+
value: '#FA11F2'
|
|
19
|
+
},
|
|
20
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
21
|
+
boldRed: {
|
|
22
|
+
value: '#FA11F2'
|
|
23
|
+
},
|
|
24
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
25
|
+
boldTeal: {
|
|
26
|
+
value: '#FA11F2'
|
|
27
|
+
},
|
|
28
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
29
|
+
subtleBlue: {
|
|
30
|
+
value: '#FA11F2'
|
|
31
|
+
},
|
|
32
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
33
|
+
subtleGreen: {
|
|
34
|
+
value: '#FA11F2'
|
|
35
|
+
},
|
|
36
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
37
|
+
subtleMagenta: {
|
|
38
|
+
value: '#FA11F2'
|
|
39
|
+
},
|
|
40
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
41
|
+
subtleOrange: {
|
|
42
|
+
value: '#FA11F2'
|
|
43
|
+
},
|
|
44
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
45
|
+
subtlePurple: {
|
|
46
|
+
value: '#FA11F2'
|
|
47
|
+
},
|
|
48
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
49
|
+
subtleRed: {
|
|
50
|
+
value: '#FA11F2'
|
|
51
|
+
},
|
|
52
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
53
|
+
subtleTeal: {
|
|
54
|
+
value: '#FA11F2'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
background: {
|
|
58
|
+
accent: {
|
|
59
|
+
blue: {
|
|
60
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
61
|
+
'[default]': {
|
|
62
|
+
value: '#FA11F2'
|
|
63
|
+
},
|
|
64
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
65
|
+
bold: {
|
|
66
|
+
value: '#FA11F2'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
red: {
|
|
70
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
71
|
+
'[default]': {
|
|
72
|
+
value: '#FA11F2'
|
|
73
|
+
},
|
|
74
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
75
|
+
bold: {
|
|
76
|
+
value: '#FA11F2'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
orange: {
|
|
80
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
81
|
+
'[default]': {
|
|
82
|
+
value: '#FA11F2'
|
|
83
|
+
},
|
|
84
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
85
|
+
bold: {
|
|
86
|
+
value: '#FA11F2'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
yellow: {
|
|
90
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
91
|
+
'[default]': {
|
|
92
|
+
value: '#FA11F2'
|
|
93
|
+
},
|
|
94
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
95
|
+
bold: {
|
|
96
|
+
value: '#FA11F2'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
green: {
|
|
100
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
101
|
+
'[default]': {
|
|
102
|
+
value: '#FA11F2'
|
|
103
|
+
},
|
|
104
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
105
|
+
bold: {
|
|
106
|
+
value: '#FA11F2'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
purple: {
|
|
110
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
111
|
+
'[default]': {
|
|
112
|
+
value: '#FA11F2'
|
|
113
|
+
},
|
|
114
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
115
|
+
bold: {
|
|
116
|
+
value: '#FA11F2'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
teal: {
|
|
120
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
121
|
+
'[default]': {
|
|
122
|
+
value: '#FA11F2'
|
|
123
|
+
},
|
|
124
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
125
|
+
bold: {
|
|
126
|
+
value: '#FA11F2'
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
magenta: {
|
|
130
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
131
|
+
'[default]': {
|
|
132
|
+
value: '#FA11F2'
|
|
133
|
+
},
|
|
134
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
135
|
+
bold: {
|
|
136
|
+
value: '#FA11F2'
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
141
|
+
blanket: {
|
|
142
|
+
value: '#FA11F2'
|
|
143
|
+
},
|
|
144
|
+
brand: {
|
|
145
|
+
'[default]': {
|
|
146
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
147
|
+
'[default]': {
|
|
148
|
+
value: '#FA11F2'
|
|
149
|
+
},
|
|
150
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
151
|
+
hovered: {
|
|
152
|
+
value: '#FA11F2'
|
|
153
|
+
},
|
|
154
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
155
|
+
pressed: {
|
|
156
|
+
value: '#FA11F2'
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
boldBrand: {
|
|
161
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
162
|
+
resting: {
|
|
163
|
+
value: '#FA11F2'
|
|
164
|
+
},
|
|
165
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
166
|
+
hover: {
|
|
167
|
+
value: '#FA11F2'
|
|
168
|
+
},
|
|
169
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
170
|
+
pressed: {
|
|
171
|
+
value: '#FA11F2'
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
boldDanger: {
|
|
175
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
176
|
+
resting: {
|
|
177
|
+
value: '#FA11F2'
|
|
178
|
+
},
|
|
179
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
180
|
+
hover: {
|
|
181
|
+
value: '#FA11F2'
|
|
182
|
+
},
|
|
183
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
184
|
+
pressed: {
|
|
185
|
+
value: '#FA11F2'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
boldDiscovery: {
|
|
189
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
190
|
+
resting: {
|
|
191
|
+
value: '#FA11F2'
|
|
192
|
+
},
|
|
193
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
194
|
+
hover: {
|
|
195
|
+
value: '#FA11F2'
|
|
196
|
+
},
|
|
197
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
198
|
+
pressed: {
|
|
199
|
+
value: '#FA11F2'
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
boldNeutral: {
|
|
203
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
204
|
+
resting: {
|
|
205
|
+
value: '#FA11F2'
|
|
206
|
+
},
|
|
207
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
208
|
+
hover: {
|
|
209
|
+
value: '#FA11F2'
|
|
210
|
+
},
|
|
211
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
212
|
+
pressed: {
|
|
213
|
+
value: '#FA11F2'
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
boldSuccess: {
|
|
217
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
218
|
+
resting: {
|
|
219
|
+
value: '#FA11F2'
|
|
220
|
+
},
|
|
221
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
222
|
+
hover: {
|
|
223
|
+
value: '#FA11F2'
|
|
224
|
+
},
|
|
225
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
226
|
+
pressed: {
|
|
227
|
+
value: '#FA11F2'
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
boldWarning: {
|
|
231
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
232
|
+
resting: {
|
|
233
|
+
value: '#FA11F2'
|
|
234
|
+
},
|
|
235
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
236
|
+
hover: {
|
|
237
|
+
value: '#FA11F2'
|
|
238
|
+
},
|
|
239
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
240
|
+
pressed: {
|
|
241
|
+
value: '#FA11F2'
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
245
|
+
default: {
|
|
246
|
+
value: '#FA11F2'
|
|
247
|
+
},
|
|
248
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
249
|
+
card: {
|
|
250
|
+
value: '#FA11F2'
|
|
251
|
+
},
|
|
252
|
+
inverse: {
|
|
253
|
+
// @ts-ignore temporary until a palette colour exists for it
|
|
254
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
255
|
+
'[default]': {
|
|
256
|
+
value: '#FA11F2FFFFFF29'
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
260
|
+
overlay: {
|
|
261
|
+
value: '#FA11F2'
|
|
262
|
+
},
|
|
263
|
+
selected: {
|
|
264
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
265
|
+
resting: {
|
|
266
|
+
value: '#FA11F2'
|
|
267
|
+
},
|
|
268
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
269
|
+
hover: {
|
|
270
|
+
value: '#FA11F2'
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
subtleBorderedNeutral: {
|
|
274
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
275
|
+
resting: {
|
|
276
|
+
value: '#FA11F2'
|
|
277
|
+
},
|
|
278
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
279
|
+
pressed: {
|
|
280
|
+
value: '#FA11F2'
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
subtleBrand: {
|
|
284
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
285
|
+
resting: {
|
|
286
|
+
value: '#FA11F2'
|
|
287
|
+
},
|
|
288
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
289
|
+
hover: {
|
|
290
|
+
value: '#FA11F2'
|
|
291
|
+
},
|
|
292
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
293
|
+
pressed: {
|
|
294
|
+
value: '#FA11F2'
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
subtleDanger: {
|
|
298
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
299
|
+
resting: {
|
|
300
|
+
value: '#FA11F2'
|
|
301
|
+
},
|
|
302
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
303
|
+
hover: {
|
|
304
|
+
value: '#FA11F2'
|
|
305
|
+
},
|
|
306
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
307
|
+
pressed: {
|
|
308
|
+
value: '#FA11F2'
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
subtleDiscovery: {
|
|
312
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
313
|
+
resting: {
|
|
314
|
+
value: '#FA11F2'
|
|
315
|
+
},
|
|
316
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
317
|
+
hover: {
|
|
318
|
+
value: '#FA11F2'
|
|
319
|
+
},
|
|
320
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
321
|
+
pressed: {
|
|
322
|
+
value: '#FA11F2'
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
subtleNeutral: {
|
|
326
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
327
|
+
resting: {
|
|
328
|
+
value: '#FA11F2'
|
|
329
|
+
},
|
|
330
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
331
|
+
hover: {
|
|
332
|
+
value: '#FA11F2'
|
|
333
|
+
},
|
|
334
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
335
|
+
pressed: {
|
|
336
|
+
value: '#FA11F2'
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
subtleSuccess: {
|
|
340
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
341
|
+
resting: {
|
|
342
|
+
value: '#FA11F2'
|
|
343
|
+
},
|
|
344
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
345
|
+
hover: {
|
|
346
|
+
value: '#FA11F2'
|
|
347
|
+
},
|
|
348
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
349
|
+
pressed: {
|
|
350
|
+
value: '#FA11F2'
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
subtleWarning: {
|
|
354
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
355
|
+
resting: {
|
|
356
|
+
value: '#FA11F2'
|
|
357
|
+
},
|
|
358
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
359
|
+
hover: {
|
|
360
|
+
value: '#FA11F2'
|
|
361
|
+
},
|
|
362
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
363
|
+
pressed: {
|
|
364
|
+
value: '#FA11F2'
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
368
|
+
sunken: {
|
|
369
|
+
value: '#FA11F2'
|
|
370
|
+
},
|
|
371
|
+
transparentNeutral: {
|
|
372
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
373
|
+
hover: {
|
|
374
|
+
value: '#FA11F2'
|
|
375
|
+
},
|
|
376
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
377
|
+
pressed: {
|
|
378
|
+
value: '#FA11F2'
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
text: {
|
|
383
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
384
|
+
highEmphasis: {
|
|
385
|
+
value: '#FA11F2'
|
|
386
|
+
},
|
|
387
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
388
|
+
mediumEmphasis: {
|
|
389
|
+
value: '#FA11F2'
|
|
390
|
+
},
|
|
391
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
392
|
+
lowEmphasis: {
|
|
393
|
+
value: '#FA11F2'
|
|
394
|
+
},
|
|
395
|
+
link: {
|
|
396
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
397
|
+
resting: {
|
|
398
|
+
value: '#FA11F2'
|
|
399
|
+
},
|
|
400
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
401
|
+
pressed: {
|
|
402
|
+
value: '#FA11F2'
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
406
|
+
onBold: {
|
|
407
|
+
value: '#FA11F2'
|
|
408
|
+
},
|
|
409
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
410
|
+
onBoldWarning: {
|
|
411
|
+
value: '#FA11F2'
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
border: {
|
|
415
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
416
|
+
focus: {
|
|
417
|
+
value: '#FA11F2'
|
|
418
|
+
},
|
|
419
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
420
|
+
neutral: {
|
|
421
|
+
value: '#FA11F2'
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
iconBorder: {
|
|
425
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
426
|
+
brand: {
|
|
427
|
+
value: '#FA11F2'
|
|
428
|
+
},
|
|
429
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
430
|
+
danger: {
|
|
431
|
+
value: '#FA11F2'
|
|
432
|
+
},
|
|
433
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
434
|
+
warning: {
|
|
435
|
+
value: '#FA11F2'
|
|
436
|
+
},
|
|
437
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
438
|
+
success: {
|
|
439
|
+
value: '#FA11F2'
|
|
440
|
+
},
|
|
441
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
442
|
+
discovery: {
|
|
443
|
+
value: '#FA11F2'
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
overlay: {
|
|
447
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
448
|
+
hover: {
|
|
449
|
+
value: '#FA11F2'
|
|
450
|
+
},
|
|
451
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
452
|
+
pressed: {
|
|
453
|
+
value: '#FA11F2'
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
interaction: {
|
|
457
|
+
inverse: {
|
|
458
|
+
hovered: {
|
|
459
|
+
// @ts-ignore temporary values
|
|
460
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
461
|
+
value: '#FA11F2'
|
|
462
|
+
},
|
|
463
|
+
pressed: {
|
|
464
|
+
// @ts-ignore temporary values
|
|
465
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
466
|
+
value: '#FA11F2'
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
shadow: {
|
|
472
|
+
card: {
|
|
473
|
+
value: [{
|
|
474
|
+
radius: 1,
|
|
475
|
+
offset: {
|
|
476
|
+
x: 0,
|
|
477
|
+
y: 1
|
|
478
|
+
},
|
|
479
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
480
|
+
color: '#FA11F2',
|
|
481
|
+
opacity: 0.25
|
|
482
|
+
}, {
|
|
483
|
+
radius: 1,
|
|
484
|
+
offset: {
|
|
485
|
+
x: 0,
|
|
486
|
+
y: 0
|
|
487
|
+
},
|
|
488
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
489
|
+
color: '#FA11F2',
|
|
490
|
+
opacity: 0.31
|
|
491
|
+
}]
|
|
492
|
+
},
|
|
493
|
+
overlay: {
|
|
494
|
+
value: [{
|
|
495
|
+
radius: 12,
|
|
496
|
+
offset: {
|
|
497
|
+
x: 0,
|
|
498
|
+
y: 8
|
|
499
|
+
},
|
|
500
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
501
|
+
color: '#FA11F2',
|
|
502
|
+
opacity: 0.15
|
|
503
|
+
}, {
|
|
504
|
+
radius: 1,
|
|
505
|
+
offset: {
|
|
506
|
+
x: 0,
|
|
507
|
+
y: 0
|
|
508
|
+
},
|
|
509
|
+
// @ts-expect-error deprecated tokens should not be in use
|
|
510
|
+
color: '#FA11F2',
|
|
511
|
+
opacity: 0.31
|
|
512
|
+
}]
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
export default color;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var shadow = {
|
|
2
|
+
elevation: {
|
|
3
|
+
shadow: {
|
|
4
|
+
raised: {
|
|
5
|
+
value: [{
|
|
6
|
+
radius: 1,
|
|
7
|
+
offset: {
|
|
8
|
+
x: 0,
|
|
9
|
+
y: 1
|
|
10
|
+
},
|
|
11
|
+
color: 'N50A',
|
|
12
|
+
opacity: 0.25
|
|
13
|
+
}, {
|
|
14
|
+
radius: 1,
|
|
15
|
+
offset: {
|
|
16
|
+
x: 0,
|
|
17
|
+
y: 0
|
|
18
|
+
},
|
|
19
|
+
color: 'N40A',
|
|
20
|
+
opacity: 0.31
|
|
21
|
+
}]
|
|
22
|
+
},
|
|
23
|
+
overflow: {
|
|
24
|
+
value: [{
|
|
25
|
+
radius: 8,
|
|
26
|
+
offset: {
|
|
27
|
+
x: 0,
|
|
28
|
+
y: 8
|
|
29
|
+
},
|
|
30
|
+
color: 'N50A',
|
|
31
|
+
opacity: 0.08
|
|
32
|
+
}, {
|
|
33
|
+
radius: 1,
|
|
34
|
+
offset: {
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0
|
|
37
|
+
},
|
|
38
|
+
color: 'N60A',
|
|
39
|
+
opacity: 0.12
|
|
40
|
+
}]
|
|
41
|
+
},
|
|
42
|
+
overlay: {
|
|
43
|
+
value: [{
|
|
44
|
+
radius: 12,
|
|
45
|
+
offset: {
|
|
46
|
+
x: 0,
|
|
47
|
+
y: 8
|
|
48
|
+
},
|
|
49
|
+
color: 'N50A',
|
|
50
|
+
opacity: 0.15
|
|
51
|
+
}, {
|
|
52
|
+
radius: 1,
|
|
53
|
+
offset: {
|
|
54
|
+
x: 0,
|
|
55
|
+
y: 0
|
|
56
|
+
},
|
|
57
|
+
color: 'N60A',
|
|
58
|
+
opacity: 0.31
|
|
59
|
+
}]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export default shadow;
|
|
@@ -14,7 +14,7 @@ var shadow = {
|
|
|
14
14
|
group: 'shadow',
|
|
15
15
|
state: 'active',
|
|
16
16
|
introduced: '0.6.0',
|
|
17
|
-
description: "Use to create a shadow when content
|
|
17
|
+
description: "Use to create a shadow when content scrolls under other content."
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
overlay: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var opacity = {
|
|
2
|
+
opacity: {
|
|
3
|
+
disabled: {
|
|
4
|
+
attributes: {
|
|
5
|
+
group: 'opacity',
|
|
6
|
+
state: 'active',
|
|
7
|
+
introduced: '0.10.13',
|
|
8
|
+
description: "Apply to images when in a disabled state."
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
loading: {
|
|
12
|
+
attributes: {
|
|
13
|
+
group: 'opacity',
|
|
14
|
+
state: 'active',
|
|
15
|
+
introduced: '0.10.13',
|
|
16
|
+
description: "Apply to content that sits under a loading spinner."
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default opacity;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { CSS_PREFIX } from '../constants';
|
|
2
|
+
import { CSS_PREFIX, CSS_VAR_FULL } from '../constants';
|
|
3
3
|
/**
|
|
4
4
|
* Transforms a style dictionary token path to a CSS custom property.
|
|
5
5
|
*
|
|
@@ -16,12 +16,13 @@ import { CSS_PREFIX } from '../constants';
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
export var getCSSCustomProperty = function getCSSCustomProperty(path) {
|
|
19
|
-
var normalizedPath = typeof path === 'string' ? path.split('.') : path;
|
|
20
|
-
|
|
19
|
+
var normalizedPath = typeof path === 'string' ? path.split('.') : path; // Opacity and other 'shallow' groups are more readable when not trimmed
|
|
20
|
+
|
|
21
|
+
var slice = CSS_VAR_FULL.includes(path[0]) ? 0 : 1;
|
|
22
|
+
return "--".concat([CSS_PREFIX].concat(_toConsumableArray(normalizedPath.slice(slice))).filter(function (el) {
|
|
21
23
|
return el !== '[default]';
|
|
22
24
|
}).join('-'));
|
|
23
25
|
};
|
|
24
|
-
|
|
25
26
|
/**
|
|
26
27
|
* Transforms a style dictionary token path to a shorthand token id
|
|
27
28
|
* These ids will be typically be how tokens are interacted with via typescript and css
|
|
@@ -36,6 +37,7 @@ export var getCSSCustomProperty = function getCSSCustomProperty(path) {
|
|
|
36
37
|
* // Returns color.background.bold
|
|
37
38
|
* getTokenId('color.background.bold.[default]')
|
|
38
39
|
*/
|
|
40
|
+
|
|
39
41
|
export var getTokenId = function getTokenId(path) {
|
|
40
42
|
var normalizedPath = typeof path === 'string' ? path.split('.') : path;
|
|
41
43
|
return normalizedPath.filter(function (el) {
|