@autoguru/overdrive 4.9.0 → 4.9.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.
- package/dist/components/Alert/Alert.css.js +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.css.js +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.d.ts +2 -1
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
- package/dist/components/Badge/Badge.css.d.ts +1 -1
- package/dist/components/Badge/Badge.css.js +1 -1
- package/dist/components/Box/useBoxStyles.css.js +1 -1
- package/dist/components/BulletList/Bullet.css.js +1 -1
- package/dist/components/BulletList/BulletList.css.js +1 -1
- package/dist/components/BulletText/BulletText.css.js +1 -1
- package/dist/components/Button/Button.css.js +1 -1
- package/dist/components/CheckBox/CheckBox.css.js +1 -1
- package/dist/components/ColourInput/ColourInput.css.js +3 -3
- package/dist/components/ColourInput/ColourInput.d.ts.map +1 -1
- package/dist/components/ColourInput/ColourInput.js +11 -8
- package/dist/components/ColourInput/stories.js +8 -9
- package/dist/components/Columns/Column.d.ts +1 -1
- package/dist/components/Columns/Columns.css.js +1 -1
- package/dist/components/Columns/Columns.d.ts +2 -2
- package/dist/components/Columns/Columns.d.ts.map +1 -1
- package/dist/components/Icon/Icon.css.js +1 -1
- package/dist/components/Image/ImageServerProvider.d.ts +1 -1
- package/dist/components/Image/ImageServerProvider.d.ts.map +1 -1
- package/dist/components/Image/ResponsiveImage.d.ts.map +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.css.js +1 -1
- package/dist/components/LoadingBox/LoadingBox.css.js +1 -1
- package/dist/components/Meta/Meta.css.js +1 -1
- package/dist/components/Modal/Modal.css.js +1 -1
- package/dist/components/OrderedList/OrderedList.css.js +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.d.ts.map +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.js +4 -3
- package/dist/components/Pagination/Pagination.css.js +1 -1
- package/dist/components/Portal/Portal.d.ts +2 -2
- package/dist/components/Portal/Portal.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.css.js +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.css.js +1 -1
- package/dist/components/Radio/Radio.css.js +1 -1
- package/dist/components/Radio/RadioGroup.d.ts +1 -1
- package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/Section/Section.css.js +1 -1
- package/dist/components/SelectInput/SelectInput.css.js +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts +1 -2
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/Stack/Divider.css.js +1 -1
- package/dist/components/Stack/Stack.css.js +1 -1
- package/dist/components/StandardModal/StandardModal.css.js +1 -1
- package/dist/components/StarRating/StarRating.css.js +1 -1
- package/dist/components/Stepper/Stepper.css.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Switch/Switch.css.js +1 -1
- package/dist/components/Table/TableCell.css.js +1 -1
- package/dist/components/Table/TableHeadCell.css.js +1 -1
- package/dist/components/Tabs/Tab.css.js +1 -1
- package/dist/components/Tabs/TabList.css.js +1 -1
- package/dist/components/Tabs/TabList.d.ts +1 -1
- package/dist/components/Tabs/TabList.d.ts.map +1 -1
- package/dist/components/Tabs/TabPanes.d.ts +1 -1
- package/dist/components/Tabs/TabPanes.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Text/useTextStyles.css.js +1 -1
- package/dist/components/TextLink/TextLink.css.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +2 -2
- package/dist/components/Toaster/Toast.css.js +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.css.js +1 -1
- package/dist/components/private/InputBase/HintText.css.js +1 -1
- package/dist/components/private/InputBase/InputState.css.js +1 -1
- package/dist/components/private/InputBase/NotchedBase.css.js +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.css.js +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +1 -1
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.css.js +1 -1
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.js +1 -1
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.js +1 -1
- package/dist/themes/base/index.d.ts +260 -2
- package/dist/themes/base/index.d.ts.map +1 -1
- package/dist/themes/base/index.js +3 -4
- package/dist/themes/base/tokens.d.ts.map +1 -1
- package/dist/themes/base/vars.css.d.ts +1 -2
- package/dist/themes/base/vars.css.d.ts.map +1 -1
- package/dist/themes/base/vars.css.js +2 -1
- package/dist/themes/flat_red/index.d.ts +260 -2
- package/dist/themes/flat_red/index.d.ts.map +1 -1
- package/dist/themes/flat_red/index.js +2 -4
- package/dist/themes/flat_red/tokens.d.ts +1 -2
- package/dist/themes/flat_red/tokens.d.ts.map +1 -1
- package/dist/themes/flat_red/tokens.js +3 -86
- package/dist/themes/flat_red/vars.css.d.ts.map +1 -1
- package/dist/themes/flat_red/vars.css.js +2 -2
- package/dist/themes/makeTheme.d.ts +2 -6
- package/dist/themes/makeTheme.d.ts.map +1 -1
- package/dist/themes/makeTheme.js +1 -5
- package/dist/themes/theme.css.d.ts +262 -0
- package/dist/themes/theme.css.d.ts.map +1 -0
- package/dist/themes/theme.css.js +279 -0
- package/dist/themes/tokens.d.ts +1 -1
- package/dist/themes/tokens.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -6
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/resolveResponsiveProps.d.ts +1 -1
- package/dist/utils/resolveResponsiveProps.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1,8 +1,266 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
name: string;
|
|
3
3
|
themeRef: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
vars: import("@vanilla-extract/private").MapLeafNodes<{
|
|
5
|
+
mode: string;
|
|
6
|
+
body: {
|
|
7
|
+
backgroundColour: string;
|
|
8
|
+
colour: string;
|
|
9
|
+
};
|
|
10
|
+
contentWidth: {
|
|
11
|
+
small: string;
|
|
12
|
+
large: string;
|
|
13
|
+
medium: string;
|
|
14
|
+
};
|
|
15
|
+
space: {
|
|
16
|
+
'1': string;
|
|
17
|
+
'2': string;
|
|
18
|
+
'3': string;
|
|
19
|
+
'4': string;
|
|
20
|
+
'5': string;
|
|
21
|
+
'6': string;
|
|
22
|
+
'7': string;
|
|
23
|
+
'8': string;
|
|
24
|
+
'9': string;
|
|
25
|
+
none: string;
|
|
26
|
+
};
|
|
27
|
+
colours: {
|
|
28
|
+
gamut: {
|
|
29
|
+
white: string;
|
|
30
|
+
red900: string;
|
|
31
|
+
red800: string;
|
|
32
|
+
red700: string;
|
|
33
|
+
red600: string;
|
|
34
|
+
red500: string;
|
|
35
|
+
red400: string;
|
|
36
|
+
red300: string;
|
|
37
|
+
red200: string;
|
|
38
|
+
red100: string;
|
|
39
|
+
gray900: string;
|
|
40
|
+
gray800: string;
|
|
41
|
+
gray700: string;
|
|
42
|
+
gray600: string;
|
|
43
|
+
gray500: string;
|
|
44
|
+
gray400: string;
|
|
45
|
+
gray300: string;
|
|
46
|
+
gray200: string;
|
|
47
|
+
gray100: string;
|
|
48
|
+
green900: string;
|
|
49
|
+
green800: string;
|
|
50
|
+
green700: string;
|
|
51
|
+
green600: string;
|
|
52
|
+
green500: string;
|
|
53
|
+
green400: string;
|
|
54
|
+
green300: string;
|
|
55
|
+
green200: string;
|
|
56
|
+
green100: string;
|
|
57
|
+
blue900: string;
|
|
58
|
+
blue800: string;
|
|
59
|
+
blue700: string;
|
|
60
|
+
blue600: string;
|
|
61
|
+
blue500: string;
|
|
62
|
+
blue400: string;
|
|
63
|
+
blue300: string;
|
|
64
|
+
blue200: string;
|
|
65
|
+
blue100: string;
|
|
66
|
+
yellow900: string;
|
|
67
|
+
yellow800: string;
|
|
68
|
+
yellow700: string;
|
|
69
|
+
yellow600: string;
|
|
70
|
+
yellow500: string;
|
|
71
|
+
yellow400: string;
|
|
72
|
+
yellow300: string;
|
|
73
|
+
yellow200: string;
|
|
74
|
+
yellow100: string;
|
|
75
|
+
};
|
|
76
|
+
foreground: {
|
|
77
|
+
body: string;
|
|
78
|
+
link: string;
|
|
79
|
+
};
|
|
80
|
+
background: {
|
|
81
|
+
body: string;
|
|
82
|
+
light: string;
|
|
83
|
+
neutral: string;
|
|
84
|
+
neutralDark: string;
|
|
85
|
+
};
|
|
86
|
+
intent: {
|
|
87
|
+
primary: {
|
|
88
|
+
background: {
|
|
89
|
+
standard: string;
|
|
90
|
+
mild: string;
|
|
91
|
+
strong: string;
|
|
92
|
+
};
|
|
93
|
+
foreground: string;
|
|
94
|
+
border: string;
|
|
95
|
+
};
|
|
96
|
+
secondary: {
|
|
97
|
+
background: {
|
|
98
|
+
standard: string;
|
|
99
|
+
mild: string;
|
|
100
|
+
strong: string;
|
|
101
|
+
};
|
|
102
|
+
foreground: string;
|
|
103
|
+
border: string;
|
|
104
|
+
};
|
|
105
|
+
shine: {
|
|
106
|
+
background: {
|
|
107
|
+
standard: string;
|
|
108
|
+
mild: string;
|
|
109
|
+
strong: string;
|
|
110
|
+
};
|
|
111
|
+
foreground: string;
|
|
112
|
+
border: string;
|
|
113
|
+
};
|
|
114
|
+
danger: {
|
|
115
|
+
background: {
|
|
116
|
+
standard: string;
|
|
117
|
+
mild: string;
|
|
118
|
+
strong: string;
|
|
119
|
+
};
|
|
120
|
+
foreground: string;
|
|
121
|
+
border: string;
|
|
122
|
+
};
|
|
123
|
+
warning: {
|
|
124
|
+
background: {
|
|
125
|
+
standard: string;
|
|
126
|
+
mild: string;
|
|
127
|
+
strong: string;
|
|
128
|
+
};
|
|
129
|
+
foreground: string;
|
|
130
|
+
border: string;
|
|
131
|
+
};
|
|
132
|
+
neutral: {
|
|
133
|
+
background: {
|
|
134
|
+
standard: string;
|
|
135
|
+
mild: string;
|
|
136
|
+
strong: string;
|
|
137
|
+
};
|
|
138
|
+
foreground: string;
|
|
139
|
+
border: string;
|
|
140
|
+
};
|
|
141
|
+
success: {
|
|
142
|
+
background: {
|
|
143
|
+
standard: string;
|
|
144
|
+
mild: string;
|
|
145
|
+
strong: string;
|
|
146
|
+
};
|
|
147
|
+
foreground: string;
|
|
148
|
+
border: string;
|
|
149
|
+
};
|
|
150
|
+
information: {
|
|
151
|
+
background: {
|
|
152
|
+
standard: string;
|
|
153
|
+
mild: string;
|
|
154
|
+
strong: string;
|
|
155
|
+
};
|
|
156
|
+
foreground: string;
|
|
157
|
+
border: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
elevation: {
|
|
162
|
+
none: string;
|
|
163
|
+
'1': string;
|
|
164
|
+
'2': string;
|
|
165
|
+
'3': string;
|
|
166
|
+
'4': string;
|
|
167
|
+
'5': string;
|
|
168
|
+
};
|
|
169
|
+
border: {
|
|
170
|
+
width: {
|
|
171
|
+
none: string;
|
|
172
|
+
'1': string;
|
|
173
|
+
'2': string;
|
|
174
|
+
'3': string;
|
|
175
|
+
};
|
|
176
|
+
colours: {
|
|
177
|
+
light: string;
|
|
178
|
+
gray: string;
|
|
179
|
+
dark: string;
|
|
180
|
+
};
|
|
181
|
+
radius: {
|
|
182
|
+
none: string;
|
|
183
|
+
pill: string;
|
|
184
|
+
full: string;
|
|
185
|
+
'1': string;
|
|
186
|
+
min: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
typography: {
|
|
190
|
+
size: {
|
|
191
|
+
'1': {
|
|
192
|
+
fontSize: string;
|
|
193
|
+
lineHeight: string;
|
|
194
|
+
};
|
|
195
|
+
'2': {
|
|
196
|
+
fontSize: string;
|
|
197
|
+
lineHeight: string;
|
|
198
|
+
};
|
|
199
|
+
'3': {
|
|
200
|
+
fontSize: string;
|
|
201
|
+
lineHeight: string;
|
|
202
|
+
};
|
|
203
|
+
'4': {
|
|
204
|
+
fontSize: string;
|
|
205
|
+
lineHeight: string;
|
|
206
|
+
};
|
|
207
|
+
'5': {
|
|
208
|
+
fontSize: string;
|
|
209
|
+
lineHeight: string;
|
|
210
|
+
};
|
|
211
|
+
'6': {
|
|
212
|
+
fontSize: string;
|
|
213
|
+
lineHeight: string;
|
|
214
|
+
};
|
|
215
|
+
'7': {
|
|
216
|
+
fontSize: string;
|
|
217
|
+
lineHeight: string;
|
|
218
|
+
};
|
|
219
|
+
'8': {
|
|
220
|
+
fontSize: string;
|
|
221
|
+
lineHeight: string;
|
|
222
|
+
};
|
|
223
|
+
'9': {
|
|
224
|
+
fontSize: string;
|
|
225
|
+
lineHeight: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
colour: {
|
|
229
|
+
primary: string;
|
|
230
|
+
secondary: string;
|
|
231
|
+
shine: string;
|
|
232
|
+
link: string;
|
|
233
|
+
dark: string;
|
|
234
|
+
white: string;
|
|
235
|
+
muted: string;
|
|
236
|
+
neutral: string;
|
|
237
|
+
light: string;
|
|
238
|
+
danger: string;
|
|
239
|
+
warning: string;
|
|
240
|
+
success: string;
|
|
241
|
+
information: string;
|
|
242
|
+
};
|
|
243
|
+
fontWeight: {
|
|
244
|
+
normal: string;
|
|
245
|
+
semiBold: string;
|
|
246
|
+
bold: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
animation: {
|
|
250
|
+
easing: {
|
|
251
|
+
standard: string;
|
|
252
|
+
decelerate: string;
|
|
253
|
+
accelerate: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
icon: {
|
|
257
|
+
size: {
|
|
258
|
+
small: string;
|
|
259
|
+
medium: string;
|
|
260
|
+
large: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
}, import("@vanilla-extract/private").CSSVarFunction>;
|
|
6
264
|
};
|
|
7
265
|
export default _default;
|
|
8
266
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/themes/flat_red/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/themes/flat_red/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { tokens } from './tokens';
|
|
1
|
+
import { themeContractVars } from '../theme.css';
|
|
3
2
|
import { themeRef } from './vars.css';
|
|
4
3
|
export default {
|
|
5
4
|
name: 'flatRedTheme',
|
|
6
5
|
themeRef,
|
|
7
|
-
|
|
8
|
-
vars,
|
|
6
|
+
vars: themeContractVars,
|
|
9
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../lib/themes/flat_red/tokens.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../lib/themes/flat_red/tokens.ts"],"names":[],"mappings":"AAsEA,eAAO,MAAM,MAAM,KA4CI,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import deepmerge from 'deepmerge';
|
|
1
2
|
import { tokens as baseTokens } from '../base/tokens';
|
|
2
3
|
import { buildColourGamut } from '../makeTheme';
|
|
3
4
|
const colours = {
|
|
@@ -57,25 +58,15 @@ const colours = {
|
|
|
57
58
|
100: '#ffc8ba',
|
|
58
59
|
},
|
|
59
60
|
};
|
|
60
|
-
const white = '#fff';
|
|
61
61
|
const flatElevation = '0 0 0 0 rgba(0, 0, 0, 0.0)';
|
|
62
|
-
export const tokens = {
|
|
63
|
-
...baseTokens,
|
|
62
|
+
export const tokens = deepmerge(baseTokens, {
|
|
64
63
|
colours: {
|
|
65
64
|
gamut: {
|
|
66
65
|
...buildColourGamut(colours),
|
|
67
|
-
white,
|
|
68
66
|
},
|
|
69
67
|
foreground: {
|
|
70
|
-
body: colours.gray['900'],
|
|
71
68
|
link: colours.green['600'],
|
|
72
69
|
},
|
|
73
|
-
background: {
|
|
74
|
-
body: white,
|
|
75
|
-
light: colours.gray['200'],
|
|
76
|
-
neutral: colours.gray['400'],
|
|
77
|
-
neutralDark: colours.gray['800'],
|
|
78
|
-
},
|
|
79
70
|
intent: {
|
|
80
71
|
primary: {
|
|
81
72
|
background: {
|
|
@@ -83,76 +74,18 @@ export const tokens = {
|
|
|
83
74
|
mild: colours.red['100'],
|
|
84
75
|
strong: colours.red['900'],
|
|
85
76
|
},
|
|
86
|
-
foreground: white,
|
|
87
77
|
border: colours.red['900'],
|
|
88
78
|
},
|
|
89
79
|
secondary: {
|
|
90
80
|
background: {
|
|
91
|
-
standard: white,
|
|
92
|
-
mild: white,
|
|
93
81
|
strong: colours.gray['100'],
|
|
94
82
|
},
|
|
95
83
|
foreground: colours.blue['800'],
|
|
96
84
|
border: colours.blue['300'],
|
|
97
85
|
},
|
|
98
|
-
shine: {
|
|
99
|
-
background: {
|
|
100
|
-
standard: colours.gray['200'],
|
|
101
|
-
mild: colours.gray['100'],
|
|
102
|
-
strong: colours.gray['300'],
|
|
103
|
-
},
|
|
104
|
-
foreground: colours.yellow['500'],
|
|
105
|
-
border: colours.gray['300'],
|
|
106
|
-
},
|
|
107
|
-
danger: {
|
|
108
|
-
background: {
|
|
109
|
-
standard: colours.red['600'],
|
|
110
|
-
mild: colours.red['100'],
|
|
111
|
-
strong: colours.red['800'],
|
|
112
|
-
},
|
|
113
|
-
foreground: white,
|
|
114
|
-
border: colours.red['800'],
|
|
115
|
-
},
|
|
116
|
-
warning: {
|
|
117
|
-
background: {
|
|
118
|
-
standard: colours.yellow['800'],
|
|
119
|
-
mild: colours.yellow['100'],
|
|
120
|
-
strong: colours.yellow['900'],
|
|
121
|
-
},
|
|
122
|
-
foreground: white,
|
|
123
|
-
border: colours.yellow['900'],
|
|
124
|
-
},
|
|
125
|
-
neutral: {
|
|
126
|
-
background: {
|
|
127
|
-
standard: colours.gray['700'],
|
|
128
|
-
mild: colours.gray['100'],
|
|
129
|
-
strong: colours.gray['900'],
|
|
130
|
-
},
|
|
131
|
-
foreground: white,
|
|
132
|
-
border: colours.gray['900'],
|
|
133
|
-
},
|
|
134
|
-
success: {
|
|
135
|
-
background: {
|
|
136
|
-
standard: colours.green['700'],
|
|
137
|
-
mild: colours.green['100'],
|
|
138
|
-
strong: colours.green['900'],
|
|
139
|
-
},
|
|
140
|
-
foreground: white,
|
|
141
|
-
border: colours.green['900'],
|
|
142
|
-
},
|
|
143
|
-
information: {
|
|
144
|
-
background: {
|
|
145
|
-
standard: colours.blue['800'],
|
|
146
|
-
mild: colours.blue['100'],
|
|
147
|
-
strong: colours.blue['900'],
|
|
148
|
-
},
|
|
149
|
-
foreground: white,
|
|
150
|
-
border: colours.blue['900'],
|
|
151
|
-
},
|
|
152
86
|
},
|
|
153
87
|
},
|
|
154
88
|
elevation: {
|
|
155
|
-
none: 'none',
|
|
156
89
|
'1': flatElevation,
|
|
157
90
|
'2': flatElevation,
|
|
158
91
|
'3': flatElevation,
|
|
@@ -160,30 +93,14 @@ export const tokens = {
|
|
|
160
93
|
'5': flatElevation,
|
|
161
94
|
},
|
|
162
95
|
border: {
|
|
163
|
-
width: {
|
|
164
|
-
none: '0',
|
|
165
|
-
'1': '1px',
|
|
166
|
-
'2': '2px',
|
|
167
|
-
'3': '4px',
|
|
168
|
-
},
|
|
169
|
-
colours: {
|
|
170
|
-
light: colours.gray['200'],
|
|
171
|
-
gray: colours.gray['300'],
|
|
172
|
-
dark: colours.gray['900'],
|
|
173
|
-
},
|
|
174
96
|
radius: {
|
|
175
|
-
none: 'none',
|
|
176
|
-
pill: `${1e9}px`,
|
|
177
|
-
full: '50%',
|
|
178
97
|
min: 'none',
|
|
179
98
|
'1': 'none',
|
|
180
99
|
},
|
|
181
100
|
},
|
|
182
101
|
typography: {
|
|
183
|
-
...baseTokens.typography,
|
|
184
102
|
colour: {
|
|
185
|
-
...baseTokens.typography.colour,
|
|
186
103
|
primary: colours.red['600'],
|
|
187
104
|
},
|
|
188
105
|
},
|
|
189
|
-
};
|
|
106
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.css.d.ts","sourceRoot":"","sources":["../../../lib/themes/flat_red/vars.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vars.css.d.ts","sourceRoot":"","sources":["../../../lib/themes/flat_red/vars.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,EAAE,MAItB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createTheme } from '@vanilla-extract/css';
|
|
2
|
-
import {
|
|
2
|
+
import { themeContractVars } from '../theme.css';
|
|
3
3
|
import { tokens } from './tokens';
|
|
4
|
-
export const themeRef = createTheme(
|
|
4
|
+
export const themeRef = createTheme(themeContractVars, tokens, 'flatRed');
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { BreakPoints, ColourGamut, ColourMap
|
|
1
|
+
import { BreakPoints, ColourGamut, ColourMap } from './tokens';
|
|
2
2
|
export declare const breakpoints: BreakPoints;
|
|
3
|
-
export declare const makeRuntimeTokens: (
|
|
3
|
+
export declare const makeRuntimeTokens: (runtimeBreakpoints?: BreakPoints) => {
|
|
4
4
|
breakpoints: BreakPoints;
|
|
5
|
-
body: {
|
|
6
|
-
colour: string;
|
|
7
|
-
backgroundColour: string;
|
|
8
|
-
};
|
|
9
5
|
};
|
|
10
6
|
export declare type RuntimeTokens = ReturnType<typeof makeRuntimeTokens>;
|
|
11
7
|
export declare const buildColourGamut: (colours: ColourMap) => Record<ColourGamut, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeTheme.d.ts","sourceRoot":"","sources":["../../lib/themes/makeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"makeTheme.d.ts","sourceRoot":"","sources":["../../lib/themes/makeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE/D,eAAO,MAAM,WAAW,EAAE,WAKzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,wBACT,WAAW;;CAG9B,CAAC;AAEH,oBAAY,aAAa,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEjE,eAAO,MAAM,gBAAgB,YACnB,SAAS,KAChB,OAAO,WAAW,EAAE,MAAM,CAe3B,CAAC"}
|
package/dist/themes/makeTheme.js
CHANGED
|
@@ -4,12 +4,8 @@ export const breakpoints = {
|
|
|
4
4
|
desktop: '1024px',
|
|
5
5
|
largeDesktop: '1440px',
|
|
6
6
|
};
|
|
7
|
-
export const makeRuntimeTokens = (
|
|
7
|
+
export const makeRuntimeTokens = (runtimeBreakpoints = breakpoints) => ({
|
|
8
8
|
breakpoints: runtimeBreakpoints,
|
|
9
|
-
body: {
|
|
10
|
-
colour: tokens.colours.foreground.body,
|
|
11
|
-
backgroundColour: tokens.colours.background.body,
|
|
12
|
-
},
|
|
13
9
|
});
|
|
14
10
|
export const buildColourGamut = (colours) => Object.entries(colours).reduce((result, [name, colourGrades]) => ({
|
|
15
11
|
...result,
|