braid-design-system 33.10.0-deprecate-apac-20250630233359 → 33.10.0-deprecate-apac-20250701000007
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 +7 -2
- package/dist/index.d.mts +0 -5
- package/dist/index.d.ts +0 -5
- package/dist/lib/color/palette.cjs +1 -2
- package/dist/lib/color/palette.mjs +1 -2
- package/dist/lib/themes/apac/tokens.cjs +264 -11
- package/dist/lib/themes/apac/tokens.mjs +263 -12
- package/dist/lib/themes/baseTokens/{apac.cjs → nvl.cjs} +97 -103
- package/dist/lib/themes/baseTokens/{apac.mjs → nvl.mjs} +98 -101
- package/dist/lib/themes/seekBusiness/tokens.cjs +5 -13
- package/dist/lib/themes/seekBusiness/tokens.mjs +4 -12
- package/dist/lib/themes/seekJobs/tokens.cjs +4 -184
- package/dist/lib/themes/seekJobs/tokens.mjs +3 -183
- package/package.json +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
-
## 33.10.0-deprecate-apac-
|
|
3
|
+
## 33.10.0-deprecate-apac-20250701000007
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- **apac:** Deprecate theme in favour of `seekJobs` theme (
|
|
7
|
+
- **apac:** Deprecate theme in favour of `seekJobs` theme (95e01b7cb20715e217b50aff0e9e431a23829775)
|
|
8
8
|
|
|
9
9
|
**MIGRATION GUIDE:**
|
|
10
10
|
|
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
<Box position="sticky" top={0} ... />
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
- **seekBusiness:** Migrate to updated visual language ([#1819](https://github.com/seek-oss/braid-design-system/pull/1819))
|
|
28
|
+
|
|
29
|
+
Migrate `seekBusiness` theme to new visual language.
|
|
30
|
+
Adopts the `seekJobs` theme for the latest design standards, rather than the legacy `apac` theme, while retaining the `seekBusiness` brand accent colour.
|
|
31
|
+
|
|
27
32
|
## 33.9.1
|
|
28
33
|
|
|
29
34
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -4522,11 +4522,6 @@ declare const vars: {
|
|
|
4522
4522
|
};
|
|
4523
4523
|
declare function atoms(props: Omit<Atoms, 'background'>): string;
|
|
4524
4524
|
|
|
4525
|
-
/**
|
|
4526
|
-
* @deprecated the `apac` theme is deprecated and will be removed in a future release.
|
|
4527
|
-
*
|
|
4528
|
-
* Use the `seekJobs` theme instead.
|
|
4529
|
-
*/
|
|
4530
4525
|
declare const _default$6: {
|
|
4531
4526
|
vanillaTheme: string;
|
|
4532
4527
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4522,11 +4522,6 @@ declare const vars: {
|
|
|
4522
4522
|
};
|
|
4523
4523
|
declare function atoms(props: Omit<Atoms, 'background'>): string;
|
|
4524
4524
|
|
|
4525
|
-
/**
|
|
4526
|
-
* @deprecated the `apac` theme is deprecated and will be removed in a future release.
|
|
4527
|
-
*
|
|
4528
|
-
* Use the `seekJobs` theme instead.
|
|
4529
|
-
*/
|
|
4530
4525
|
declare const _default$6: {
|
|
4531
4526
|
vanillaTheme: string;
|
|
4532
4527
|
name: string;
|
|
@@ -1,19 +1,272 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const robotoMetrics = require("@capsizecss/metrics/roboto");
|
|
2
3
|
const polished = require("polished");
|
|
3
4
|
const lib_color_palette_cjs = require("../../color/palette.cjs");
|
|
4
|
-
const
|
|
5
|
+
const lib_themes_tokenType_cjs = require("../tokenType.cjs");
|
|
6
|
+
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
7
|
+
const robotoMetrics__default = /* @__PURE__ */ _interopDefaultCompat(robotoMetrics);
|
|
8
|
+
const legacyViolet = {
|
|
9
|
+
700: "#512EAA",
|
|
10
|
+
300: "#C6ACF5",
|
|
11
|
+
100: "#F1E8FD"
|
|
12
|
+
};
|
|
13
|
+
const formAccent = lib_color_palette_cjs.palette.indigo["500"];
|
|
14
|
+
const critical = lib_color_palette_cjs.palette.red["700"];
|
|
15
|
+
const focus = polished.rgba(lib_color_palette_cjs.palette.indigo["300"], 0.7);
|
|
16
|
+
const white = "#fff";
|
|
17
|
+
const brand = lib_color_palette_cjs.palette.seekBlue["500"];
|
|
5
18
|
const brandAccent = lib_color_palette_cjs.palette.seekPink["500"];
|
|
6
19
|
const brandAccentSoft = lib_color_palette_cjs.palette.seekPink["50"];
|
|
7
|
-
const
|
|
20
|
+
const brandAccentLight = lib_color_palette_cjs.palette.seekPink["200"];
|
|
21
|
+
const tokens = {
|
|
8
22
|
name: "apac",
|
|
9
23
|
displayName: "APAC",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
legacy: true,
|
|
25
|
+
typography: {
|
|
26
|
+
fontFamily: `Roboto, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif`,
|
|
27
|
+
webFont: null,
|
|
28
|
+
fontMetrics: lib_themes_tokenType_cjs.extractFontMetricsForTheme(robotoMetrics__default.default),
|
|
29
|
+
fontWeight: {
|
|
30
|
+
regular: 400,
|
|
31
|
+
medium: 600,
|
|
32
|
+
strong: 700
|
|
33
|
+
},
|
|
34
|
+
heading: {
|
|
35
|
+
weight: {
|
|
36
|
+
weak: "regular",
|
|
37
|
+
regular: "medium"
|
|
38
|
+
},
|
|
39
|
+
level: {
|
|
40
|
+
"1": {
|
|
41
|
+
mobile: {
|
|
42
|
+
fontSize: 28,
|
|
43
|
+
rows: 9
|
|
44
|
+
},
|
|
45
|
+
tablet: {
|
|
46
|
+
fontSize: 42,
|
|
47
|
+
rows: 11
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"2": {
|
|
51
|
+
mobile: {
|
|
52
|
+
fontSize: 21,
|
|
53
|
+
rows: 8
|
|
54
|
+
},
|
|
55
|
+
tablet: {
|
|
56
|
+
fontSize: 28,
|
|
57
|
+
rows: 9
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"3": {
|
|
61
|
+
mobile: {
|
|
62
|
+
fontSize: 21,
|
|
63
|
+
rows: 7
|
|
64
|
+
},
|
|
65
|
+
tablet: {
|
|
66
|
+
fontSize: 21,
|
|
67
|
+
rows: 7
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"4": {
|
|
71
|
+
mobile: {
|
|
72
|
+
fontSize: 18,
|
|
73
|
+
rows: 7
|
|
74
|
+
},
|
|
75
|
+
tablet: {
|
|
76
|
+
fontSize: 18,
|
|
77
|
+
rows: 7
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
text: {
|
|
83
|
+
xsmall: {
|
|
84
|
+
mobile: {
|
|
85
|
+
fontSize: 12,
|
|
86
|
+
rows: 5
|
|
87
|
+
},
|
|
88
|
+
tablet: {
|
|
89
|
+
fontSize: 12,
|
|
90
|
+
rows: 5
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
small: {
|
|
94
|
+
mobile: {
|
|
95
|
+
fontSize: 14,
|
|
96
|
+
rows: 5
|
|
97
|
+
},
|
|
98
|
+
tablet: {
|
|
99
|
+
fontSize: 14,
|
|
100
|
+
rows: 5
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
standard: {
|
|
104
|
+
mobile: {
|
|
105
|
+
fontSize: 16,
|
|
106
|
+
rows: 6
|
|
107
|
+
},
|
|
108
|
+
tablet: {
|
|
109
|
+
fontSize: 16,
|
|
110
|
+
rows: 6
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
large: {
|
|
114
|
+
mobile: {
|
|
115
|
+
fontSize: 18,
|
|
116
|
+
rows: 7
|
|
117
|
+
},
|
|
118
|
+
tablet: {
|
|
119
|
+
fontSize: 18,
|
|
120
|
+
rows: 7
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
contentWidth: {
|
|
126
|
+
xsmall: 400,
|
|
127
|
+
small: 660,
|
|
128
|
+
medium: 940,
|
|
129
|
+
large: 1280
|
|
130
|
+
},
|
|
131
|
+
grid: 4,
|
|
132
|
+
touchableSize: 11,
|
|
133
|
+
space: {
|
|
134
|
+
gutter: 6,
|
|
135
|
+
xxsmall: 1,
|
|
136
|
+
xsmall: 2,
|
|
137
|
+
small: 3,
|
|
138
|
+
medium: 5,
|
|
139
|
+
large: 8,
|
|
140
|
+
xlarge: 12,
|
|
141
|
+
xxlarge: 24,
|
|
142
|
+
xxxlarge: 30
|
|
143
|
+
},
|
|
144
|
+
transforms: {
|
|
145
|
+
touchable: "scale(0.95)"
|
|
146
|
+
},
|
|
147
|
+
transitions: {
|
|
148
|
+
fast: "transform .125s ease, opacity .125s ease",
|
|
149
|
+
touchable: "transform 0.2s cubic-bezier(0.02, 1.505, 0.745, 1.235)"
|
|
150
|
+
},
|
|
151
|
+
border: {
|
|
152
|
+
radius: {
|
|
153
|
+
small: "2px",
|
|
154
|
+
standard: "4px",
|
|
155
|
+
large: "6px",
|
|
156
|
+
xlarge: "10px"
|
|
157
|
+
},
|
|
158
|
+
width: {
|
|
159
|
+
standard: 1,
|
|
160
|
+
large: 2
|
|
161
|
+
},
|
|
162
|
+
color: {
|
|
163
|
+
brandAccent,
|
|
164
|
+
brandAccentLight,
|
|
165
|
+
caution: lib_color_palette_cjs.palette.yellow["500"],
|
|
166
|
+
cautionLight: lib_color_palette_cjs.palette.yellow["300"],
|
|
167
|
+
critical,
|
|
168
|
+
criticalLight: lib_color_palette_cjs.palette.red["300"],
|
|
169
|
+
field: lib_color_palette_cjs.palette.grey["400"],
|
|
170
|
+
focus,
|
|
171
|
+
formAccent,
|
|
172
|
+
formAccentLight: lib_color_palette_cjs.palette.indigo["300"],
|
|
173
|
+
info: lib_color_palette_cjs.palette.blue["700"],
|
|
174
|
+
infoLight: lib_color_palette_cjs.palette.blue["300"],
|
|
175
|
+
neutral: lib_color_palette_cjs.palette.grey["700"],
|
|
176
|
+
neutralLight: lib_color_palette_cjs.palette.grey["200"],
|
|
177
|
+
neutralInverted: white,
|
|
178
|
+
positive: lib_color_palette_cjs.palette.mint["700"],
|
|
179
|
+
positiveLight: lib_color_palette_cjs.palette.mint["300"],
|
|
180
|
+
promote: legacyViolet["700"],
|
|
181
|
+
promoteLight: legacyViolet["300"]
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
focusRingSize: 3,
|
|
185
|
+
shadows: {
|
|
186
|
+
small: [
|
|
187
|
+
`0 2px 4px 0px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.1)}`,
|
|
188
|
+
`0 2px 2px -2px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.1)}`,
|
|
189
|
+
`0 4px 4px -4px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.2)}`
|
|
190
|
+
].join(", "),
|
|
191
|
+
medium: [
|
|
192
|
+
`0 2px 4px 0px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.1)}`,
|
|
193
|
+
`0 8px 8px -4px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.1)}`,
|
|
194
|
+
`0 12px 12px -8px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.2)}`
|
|
195
|
+
].join(", "),
|
|
196
|
+
large: [
|
|
197
|
+
`0 2px 4px 0px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.1)}`,
|
|
198
|
+
`0 12px 12px -4px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.1)}`,
|
|
199
|
+
`0 20px 20px -12px ${polished.rgba(lib_color_palette_cjs.palette.grey["800"], 0.2)}`
|
|
200
|
+
].join(", ")
|
|
201
|
+
},
|
|
202
|
+
color: {
|
|
203
|
+
foreground: {
|
|
204
|
+
brandAccent,
|
|
205
|
+
brandAccentLight,
|
|
206
|
+
caution: lib_color_palette_cjs.palette.yellow["900"],
|
|
207
|
+
cautionLight: lib_color_palette_cjs.palette.yellow["300"],
|
|
208
|
+
critical,
|
|
209
|
+
criticalLight: lib_color_palette_cjs.palette.red["300"],
|
|
210
|
+
formAccent,
|
|
211
|
+
formAccentLight: lib_color_palette_cjs.palette.indigo["300"],
|
|
212
|
+
info: lib_color_palette_cjs.palette.blue["700"],
|
|
213
|
+
infoLight: lib_color_palette_cjs.palette.blue["300"],
|
|
214
|
+
link: formAccent,
|
|
215
|
+
linkLight: lib_color_palette_cjs.palette.indigo["300"],
|
|
216
|
+
linkHover: formAccent,
|
|
217
|
+
linkVisited: legacyViolet["700"],
|
|
218
|
+
linkLightVisited: legacyViolet["300"],
|
|
219
|
+
neutral: lib_color_palette_cjs.palette.grey["700"],
|
|
220
|
+
neutralInverted: white,
|
|
221
|
+
positive: lib_color_palette_cjs.palette.mint["700"],
|
|
222
|
+
positiveLight: lib_color_palette_cjs.palette.mint["300"],
|
|
223
|
+
promote: legacyViolet["700"],
|
|
224
|
+
promoteLight: legacyViolet["300"],
|
|
225
|
+
rating: lib_color_palette_cjs.palette.seekPink["500"],
|
|
226
|
+
secondary: lib_color_palette_cjs.palette.grey["500"],
|
|
227
|
+
secondaryInverted: polished.rgba("#fff", 0.65)
|
|
228
|
+
},
|
|
229
|
+
background: {
|
|
230
|
+
body: lib_color_palette_cjs.palette.grey["50"],
|
|
231
|
+
bodyDark: lib_color_palette_cjs.palette.grey["900"],
|
|
232
|
+
brand,
|
|
233
|
+
brandAccent,
|
|
234
|
+
brandAccentActive: polished.darken(0.05, brandAccent),
|
|
235
|
+
brandAccentHover: polished.lighten(0.05, brandAccent),
|
|
236
|
+
brandAccentSoft,
|
|
237
|
+
brandAccentSoftActive: polished.darken(0.05, brandAccentSoft),
|
|
238
|
+
brandAccentSoftHover: polished.darken(0.025, brandAccentSoft),
|
|
239
|
+
caution: lib_color_palette_cjs.palette.yellow["500"],
|
|
240
|
+
cautionLight: lib_color_palette_cjs.palette.yellow["100"],
|
|
241
|
+
critical,
|
|
242
|
+
criticalActive: polished.darken(0.05, critical),
|
|
243
|
+
criticalHover: polished.saturate(0.1, polished.lighten(0.05, critical)),
|
|
244
|
+
criticalLight: lib_color_palette_cjs.palette.red["100"],
|
|
245
|
+
criticalSoft: lib_color_palette_cjs.palette.red["50"],
|
|
246
|
+
criticalSoftActive: polished.darken(0.05, lib_color_palette_cjs.palette.red["50"]),
|
|
247
|
+
criticalSoftHover: polished.darken(0.025, lib_color_palette_cjs.palette.red["50"]),
|
|
248
|
+
formAccent,
|
|
249
|
+
formAccentActive: polished.darken(0.05, formAccent),
|
|
250
|
+
formAccentHover: polished.saturate(0.5, polished.lighten(0.075, formAccent)),
|
|
251
|
+
formAccentSoft: lib_color_palette_cjs.palette.indigo["50"],
|
|
252
|
+
formAccentSoftActive: polished.darken(0.05, lib_color_palette_cjs.palette.indigo["50"]),
|
|
253
|
+
formAccentSoftHover: polished.darken(0.025, lib_color_palette_cjs.palette.indigo["50"]),
|
|
254
|
+
info: lib_color_palette_cjs.palette.blue["700"],
|
|
255
|
+
infoLight: lib_color_palette_cjs.palette.blue["100"],
|
|
256
|
+
neutral: lib_color_palette_cjs.palette.grey["700"],
|
|
257
|
+
neutralActive: polished.darken(0.05, lib_color_palette_cjs.palette.grey["700"]),
|
|
258
|
+
neutralHover: polished.lighten(0.05, lib_color_palette_cjs.palette.grey["700"]),
|
|
259
|
+
neutralLight: lib_color_palette_cjs.palette.grey["100"],
|
|
260
|
+
neutralSoft: lib_color_palette_cjs.palette.grey["50"],
|
|
261
|
+
neutralSoftActive: polished.darken(0.05, lib_color_palette_cjs.palette.grey["50"]),
|
|
262
|
+
neutralSoftHover: polished.darken(0.025, lib_color_palette_cjs.palette.grey["50"]),
|
|
263
|
+
positive: lib_color_palette_cjs.palette.mint["700"],
|
|
264
|
+
positiveLight: lib_color_palette_cjs.palette.mint["100"],
|
|
265
|
+
promote: legacyViolet["700"],
|
|
266
|
+
promoteLight: legacyViolet["100"],
|
|
267
|
+
surface: white,
|
|
268
|
+
surfaceDark: lib_color_palette_cjs.palette.grey["800"]
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
};
|
|
19
272
|
exports.tokens = tokens;
|
|
@@ -1,20 +1,271 @@
|
|
|
1
|
-
import
|
|
1
|
+
import robotoMetrics from "@capsizecss/metrics/roboto";
|
|
2
|
+
import { rgba, darken, lighten, saturate } from "polished";
|
|
2
3
|
import { palette } from "../../color/palette.mjs";
|
|
3
|
-
import {
|
|
4
|
+
import { extractFontMetricsForTheme } from "../tokenType.mjs";
|
|
5
|
+
const legacyViolet = {
|
|
6
|
+
700: "#512EAA",
|
|
7
|
+
300: "#C6ACF5",
|
|
8
|
+
100: "#F1E8FD"
|
|
9
|
+
};
|
|
10
|
+
const formAccent = palette.indigo["500"];
|
|
11
|
+
const critical = palette.red["700"];
|
|
12
|
+
const focus = rgba(palette.indigo["300"], 0.7);
|
|
13
|
+
const white = "#fff";
|
|
14
|
+
const brand = palette.seekBlue["500"];
|
|
4
15
|
const brandAccent = palette.seekPink["500"];
|
|
5
16
|
const brandAccentSoft = palette.seekPink["50"];
|
|
6
|
-
const
|
|
17
|
+
const brandAccentLight = palette.seekPink["200"];
|
|
18
|
+
const tokens = {
|
|
7
19
|
name: "apac",
|
|
8
20
|
displayName: "APAC",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
legacy: true,
|
|
22
|
+
typography: {
|
|
23
|
+
fontFamily: `Roboto, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif`,
|
|
24
|
+
webFont: null,
|
|
25
|
+
fontMetrics: extractFontMetricsForTheme(robotoMetrics),
|
|
26
|
+
fontWeight: {
|
|
27
|
+
regular: 400,
|
|
28
|
+
medium: 600,
|
|
29
|
+
strong: 700
|
|
30
|
+
},
|
|
31
|
+
heading: {
|
|
32
|
+
weight: {
|
|
33
|
+
weak: "regular",
|
|
34
|
+
regular: "medium"
|
|
35
|
+
},
|
|
36
|
+
level: {
|
|
37
|
+
"1": {
|
|
38
|
+
mobile: {
|
|
39
|
+
fontSize: 28,
|
|
40
|
+
rows: 9
|
|
41
|
+
},
|
|
42
|
+
tablet: {
|
|
43
|
+
fontSize: 42,
|
|
44
|
+
rows: 11
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"2": {
|
|
48
|
+
mobile: {
|
|
49
|
+
fontSize: 21,
|
|
50
|
+
rows: 8
|
|
51
|
+
},
|
|
52
|
+
tablet: {
|
|
53
|
+
fontSize: 28,
|
|
54
|
+
rows: 9
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"3": {
|
|
58
|
+
mobile: {
|
|
59
|
+
fontSize: 21,
|
|
60
|
+
rows: 7
|
|
61
|
+
},
|
|
62
|
+
tablet: {
|
|
63
|
+
fontSize: 21,
|
|
64
|
+
rows: 7
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"4": {
|
|
68
|
+
mobile: {
|
|
69
|
+
fontSize: 18,
|
|
70
|
+
rows: 7
|
|
71
|
+
},
|
|
72
|
+
tablet: {
|
|
73
|
+
fontSize: 18,
|
|
74
|
+
rows: 7
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
text: {
|
|
80
|
+
xsmall: {
|
|
81
|
+
mobile: {
|
|
82
|
+
fontSize: 12,
|
|
83
|
+
rows: 5
|
|
84
|
+
},
|
|
85
|
+
tablet: {
|
|
86
|
+
fontSize: 12,
|
|
87
|
+
rows: 5
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
small: {
|
|
91
|
+
mobile: {
|
|
92
|
+
fontSize: 14,
|
|
93
|
+
rows: 5
|
|
94
|
+
},
|
|
95
|
+
tablet: {
|
|
96
|
+
fontSize: 14,
|
|
97
|
+
rows: 5
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
standard: {
|
|
101
|
+
mobile: {
|
|
102
|
+
fontSize: 16,
|
|
103
|
+
rows: 6
|
|
104
|
+
},
|
|
105
|
+
tablet: {
|
|
106
|
+
fontSize: 16,
|
|
107
|
+
rows: 6
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
large: {
|
|
111
|
+
mobile: {
|
|
112
|
+
fontSize: 18,
|
|
113
|
+
rows: 7
|
|
114
|
+
},
|
|
115
|
+
tablet: {
|
|
116
|
+
fontSize: 18,
|
|
117
|
+
rows: 7
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
contentWidth: {
|
|
123
|
+
xsmall: 400,
|
|
124
|
+
small: 660,
|
|
125
|
+
medium: 940,
|
|
126
|
+
large: 1280
|
|
127
|
+
},
|
|
128
|
+
grid: 4,
|
|
129
|
+
touchableSize: 11,
|
|
130
|
+
space: {
|
|
131
|
+
gutter: 6,
|
|
132
|
+
xxsmall: 1,
|
|
133
|
+
xsmall: 2,
|
|
134
|
+
small: 3,
|
|
135
|
+
medium: 5,
|
|
136
|
+
large: 8,
|
|
137
|
+
xlarge: 12,
|
|
138
|
+
xxlarge: 24,
|
|
139
|
+
xxxlarge: 30
|
|
140
|
+
},
|
|
141
|
+
transforms: {
|
|
142
|
+
touchable: "scale(0.95)"
|
|
143
|
+
},
|
|
144
|
+
transitions: {
|
|
145
|
+
fast: "transform .125s ease, opacity .125s ease",
|
|
146
|
+
touchable: "transform 0.2s cubic-bezier(0.02, 1.505, 0.745, 1.235)"
|
|
147
|
+
},
|
|
148
|
+
border: {
|
|
149
|
+
radius: {
|
|
150
|
+
small: "2px",
|
|
151
|
+
standard: "4px",
|
|
152
|
+
large: "6px",
|
|
153
|
+
xlarge: "10px"
|
|
154
|
+
},
|
|
155
|
+
width: {
|
|
156
|
+
standard: 1,
|
|
157
|
+
large: 2
|
|
158
|
+
},
|
|
159
|
+
color: {
|
|
160
|
+
brandAccent,
|
|
161
|
+
brandAccentLight,
|
|
162
|
+
caution: palette.yellow["500"],
|
|
163
|
+
cautionLight: palette.yellow["300"],
|
|
164
|
+
critical,
|
|
165
|
+
criticalLight: palette.red["300"],
|
|
166
|
+
field: palette.grey["400"],
|
|
167
|
+
focus,
|
|
168
|
+
formAccent,
|
|
169
|
+
formAccentLight: palette.indigo["300"],
|
|
170
|
+
info: palette.blue["700"],
|
|
171
|
+
infoLight: palette.blue["300"],
|
|
172
|
+
neutral: palette.grey["700"],
|
|
173
|
+
neutralLight: palette.grey["200"],
|
|
174
|
+
neutralInverted: white,
|
|
175
|
+
positive: palette.mint["700"],
|
|
176
|
+
positiveLight: palette.mint["300"],
|
|
177
|
+
promote: legacyViolet["700"],
|
|
178
|
+
promoteLight: legacyViolet["300"]
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
focusRingSize: 3,
|
|
182
|
+
shadows: {
|
|
183
|
+
small: [
|
|
184
|
+
`0 2px 4px 0px ${rgba(palette.grey["800"], 0.1)}`,
|
|
185
|
+
`0 2px 2px -2px ${rgba(palette.grey["800"], 0.1)}`,
|
|
186
|
+
`0 4px 4px -4px ${rgba(palette.grey["800"], 0.2)}`
|
|
187
|
+
].join(", "),
|
|
188
|
+
medium: [
|
|
189
|
+
`0 2px 4px 0px ${rgba(palette.grey["800"], 0.1)}`,
|
|
190
|
+
`0 8px 8px -4px ${rgba(palette.grey["800"], 0.1)}`,
|
|
191
|
+
`0 12px 12px -8px ${rgba(palette.grey["800"], 0.2)}`
|
|
192
|
+
].join(", "),
|
|
193
|
+
large: [
|
|
194
|
+
`0 2px 4px 0px ${rgba(palette.grey["800"], 0.1)}`,
|
|
195
|
+
`0 12px 12px -4px ${rgba(palette.grey["800"], 0.1)}`,
|
|
196
|
+
`0 20px 20px -12px ${rgba(palette.grey["800"], 0.2)}`
|
|
197
|
+
].join(", ")
|
|
198
|
+
},
|
|
199
|
+
color: {
|
|
200
|
+
foreground: {
|
|
201
|
+
brandAccent,
|
|
202
|
+
brandAccentLight,
|
|
203
|
+
caution: palette.yellow["900"],
|
|
204
|
+
cautionLight: palette.yellow["300"],
|
|
205
|
+
critical,
|
|
206
|
+
criticalLight: palette.red["300"],
|
|
207
|
+
formAccent,
|
|
208
|
+
formAccentLight: palette.indigo["300"],
|
|
209
|
+
info: palette.blue["700"],
|
|
210
|
+
infoLight: palette.blue["300"],
|
|
211
|
+
link: formAccent,
|
|
212
|
+
linkLight: palette.indigo["300"],
|
|
213
|
+
linkHover: formAccent,
|
|
214
|
+
linkVisited: legacyViolet["700"],
|
|
215
|
+
linkLightVisited: legacyViolet["300"],
|
|
216
|
+
neutral: palette.grey["700"],
|
|
217
|
+
neutralInverted: white,
|
|
218
|
+
positive: palette.mint["700"],
|
|
219
|
+
positiveLight: palette.mint["300"],
|
|
220
|
+
promote: legacyViolet["700"],
|
|
221
|
+
promoteLight: legacyViolet["300"],
|
|
222
|
+
rating: palette.seekPink["500"],
|
|
223
|
+
secondary: palette.grey["500"],
|
|
224
|
+
secondaryInverted: rgba("#fff", 0.65)
|
|
225
|
+
},
|
|
226
|
+
background: {
|
|
227
|
+
body: palette.grey["50"],
|
|
228
|
+
bodyDark: palette.grey["900"],
|
|
229
|
+
brand,
|
|
230
|
+
brandAccent,
|
|
231
|
+
brandAccentActive: darken(0.05, brandAccent),
|
|
232
|
+
brandAccentHover: lighten(0.05, brandAccent),
|
|
233
|
+
brandAccentSoft,
|
|
234
|
+
brandAccentSoftActive: darken(0.05, brandAccentSoft),
|
|
235
|
+
brandAccentSoftHover: darken(0.025, brandAccentSoft),
|
|
236
|
+
caution: palette.yellow["500"],
|
|
237
|
+
cautionLight: palette.yellow["100"],
|
|
238
|
+
critical,
|
|
239
|
+
criticalActive: darken(0.05, critical),
|
|
240
|
+
criticalHover: saturate(0.1, lighten(0.05, critical)),
|
|
241
|
+
criticalLight: palette.red["100"],
|
|
242
|
+
criticalSoft: palette.red["50"],
|
|
243
|
+
criticalSoftActive: darken(0.05, palette.red["50"]),
|
|
244
|
+
criticalSoftHover: darken(0.025, palette.red["50"]),
|
|
245
|
+
formAccent,
|
|
246
|
+
formAccentActive: darken(0.05, formAccent),
|
|
247
|
+
formAccentHover: saturate(0.5, lighten(0.075, formAccent)),
|
|
248
|
+
formAccentSoft: palette.indigo["50"],
|
|
249
|
+
formAccentSoftActive: darken(0.05, palette.indigo["50"]),
|
|
250
|
+
formAccentSoftHover: darken(0.025, palette.indigo["50"]),
|
|
251
|
+
info: palette.blue["700"],
|
|
252
|
+
infoLight: palette.blue["100"],
|
|
253
|
+
neutral: palette.grey["700"],
|
|
254
|
+
neutralActive: darken(0.05, palette.grey["700"]),
|
|
255
|
+
neutralHover: lighten(0.05, palette.grey["700"]),
|
|
256
|
+
neutralLight: palette.grey["100"],
|
|
257
|
+
neutralSoft: palette.grey["50"],
|
|
258
|
+
neutralSoftActive: darken(0.05, palette.grey["50"]),
|
|
259
|
+
neutralSoftHover: darken(0.025, palette.grey["50"]),
|
|
260
|
+
positive: palette.mint["700"],
|
|
261
|
+
positiveLight: palette.mint["100"],
|
|
262
|
+
promote: legacyViolet["700"],
|
|
263
|
+
promoteLight: legacyViolet["100"],
|
|
264
|
+
surface: white,
|
|
265
|
+
surfaceDark: palette.grey["800"]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
};
|
|
18
269
|
export {
|
|
19
270
|
tokens
|
|
20
271
|
};
|