@tamagui/themes 1.101.6 → 1.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/v3-themes.js +205 -210
- package/dist/cjs/v3-themes.js.map +1 -1
- package/dist/cjs/v3-themes.native.js +206 -199
- package/dist/cjs/v3-themes.native.js.map +2 -2
- package/dist/esm/v3-themes.js +205 -210
- package/dist/esm/v3-themes.js.map +1 -1
- package/dist/esm/v3-themes.mjs +209 -204
- package/dist/esm/v3-themes.native.js +202 -197
- package/dist/esm/v3-themes.native.js.map +2 -2
- package/package.json +7 -7
- package/src/v3-themes.ts +234 -232
- package/types/v3-themes.d.ts +113 -244
package/types/v3-themes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const defaultPalettes: {
|
|
2
2
|
dark_blue: string[];
|
|
3
3
|
dark_gray: string[];
|
|
4
4
|
dark_green: string[];
|
|
@@ -18,248 +18,45 @@ export declare const palettes: {
|
|
|
18
18
|
light: string[];
|
|
19
19
|
dark: string[];
|
|
20
20
|
};
|
|
21
|
-
export declare const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
alt1: {
|
|
62
|
-
color: number;
|
|
63
|
-
colorHover: number;
|
|
64
|
-
colorPress: number;
|
|
65
|
-
colorFocus: number;
|
|
66
|
-
};
|
|
67
|
-
alt2: {
|
|
68
|
-
color: number;
|
|
69
|
-
colorHover: number;
|
|
70
|
-
colorPress: number;
|
|
71
|
-
colorFocus: number;
|
|
72
|
-
};
|
|
73
|
-
surface1: {
|
|
74
|
-
background: number;
|
|
75
|
-
backgroundHover: number;
|
|
76
|
-
backgroundPress: number;
|
|
77
|
-
backgroundFocus: number;
|
|
78
|
-
borderColor: number;
|
|
79
|
-
borderColorHover: number;
|
|
80
|
-
borderColorFocus: number;
|
|
81
|
-
borderColorPress: number;
|
|
82
|
-
};
|
|
83
|
-
surface2: {
|
|
84
|
-
background: number;
|
|
85
|
-
backgroundHover: number;
|
|
86
|
-
backgroundPress: number;
|
|
87
|
-
backgroundFocus: number;
|
|
88
|
-
borderColor: number;
|
|
89
|
-
borderColorHover: number;
|
|
90
|
-
borderColorFocus: number;
|
|
91
|
-
borderColorPress: number;
|
|
92
|
-
};
|
|
93
|
-
surface3: {
|
|
94
|
-
background: number;
|
|
95
|
-
backgroundHover: number;
|
|
96
|
-
backgroundPress: number;
|
|
97
|
-
backgroundFocus: number;
|
|
98
|
-
borderColor: number;
|
|
99
|
-
borderColorHover: number;
|
|
100
|
-
borderColorFocus: number;
|
|
101
|
-
borderColorPress: number;
|
|
102
|
-
};
|
|
103
|
-
inverseSurface1: {
|
|
104
|
-
color: number;
|
|
105
|
-
colorHover: number;
|
|
106
|
-
colorPress: number;
|
|
107
|
-
colorFocus: number;
|
|
108
|
-
background: number;
|
|
109
|
-
backgroundHover: number;
|
|
110
|
-
backgroundPress: number;
|
|
111
|
-
backgroundFocus: number;
|
|
112
|
-
borderColor: number;
|
|
113
|
-
borderColorHover: number;
|
|
114
|
-
borderColorFocus: number;
|
|
115
|
-
borderColorPress: number;
|
|
116
|
-
};
|
|
117
|
-
inverseActive: {
|
|
118
|
-
background: number;
|
|
119
|
-
backgroundHover: number;
|
|
120
|
-
backgroundPress: number;
|
|
121
|
-
backgroundFocus: number;
|
|
122
|
-
borderColor: number;
|
|
123
|
-
borderColorHover: number;
|
|
124
|
-
borderColorFocus: number;
|
|
125
|
-
borderColorPress: number;
|
|
126
|
-
color: number;
|
|
127
|
-
colorHover: number;
|
|
128
|
-
colorPress: number;
|
|
129
|
-
colorFocus: number;
|
|
130
|
-
};
|
|
131
|
-
surfaceActive: {
|
|
132
|
-
borderColor: number;
|
|
133
|
-
borderColorHover: number;
|
|
134
|
-
borderColorFocus: number;
|
|
135
|
-
borderColorPress: number;
|
|
136
|
-
background: number;
|
|
137
|
-
backgroundHover: number;
|
|
138
|
-
backgroundPress: number;
|
|
139
|
-
backgroundFocus: number;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
declare const lightTemplates: {
|
|
143
|
-
base: {
|
|
144
|
-
accentBackground: number;
|
|
145
|
-
accentColor: number;
|
|
146
|
-
background0: number;
|
|
147
|
-
background025: number;
|
|
148
|
-
background05: number;
|
|
149
|
-
background075: number;
|
|
150
|
-
color1: number;
|
|
151
|
-
color2: number;
|
|
152
|
-
color3: number;
|
|
153
|
-
color4: number;
|
|
154
|
-
color5: number;
|
|
155
|
-
color6: number;
|
|
156
|
-
color7: number;
|
|
157
|
-
color8: number;
|
|
158
|
-
color9: number;
|
|
159
|
-
color10: number;
|
|
160
|
-
color11: number;
|
|
161
|
-
color12: number;
|
|
162
|
-
color0: number;
|
|
163
|
-
color025: number;
|
|
164
|
-
color05: number;
|
|
165
|
-
color075: number;
|
|
166
|
-
background: number;
|
|
167
|
-
backgroundHover: number;
|
|
168
|
-
backgroundPress: number;
|
|
169
|
-
backgroundFocus: number;
|
|
170
|
-
borderColor: number;
|
|
171
|
-
borderColorHover: number;
|
|
172
|
-
borderColorPress: number;
|
|
173
|
-
borderColorFocus: number;
|
|
174
|
-
color: number;
|
|
175
|
-
colorHover: number;
|
|
176
|
-
colorPress: number;
|
|
177
|
-
colorFocus: number;
|
|
178
|
-
colorTransparent: number;
|
|
179
|
-
placeholderColor: number;
|
|
180
|
-
outlineColor: number;
|
|
181
|
-
};
|
|
182
|
-
alt1: {
|
|
183
|
-
color: number;
|
|
184
|
-
colorHover: number;
|
|
185
|
-
colorPress: number;
|
|
186
|
-
colorFocus: number;
|
|
187
|
-
};
|
|
188
|
-
alt2: {
|
|
189
|
-
color: number;
|
|
190
|
-
colorHover: number;
|
|
191
|
-
colorPress: number;
|
|
192
|
-
colorFocus: number;
|
|
193
|
-
};
|
|
194
|
-
surface1: {
|
|
195
|
-
background: number;
|
|
196
|
-
backgroundHover: number;
|
|
197
|
-
backgroundPress: number;
|
|
198
|
-
backgroundFocus: number;
|
|
199
|
-
borderColor: number;
|
|
200
|
-
borderColorHover: number;
|
|
201
|
-
borderColorFocus: number;
|
|
202
|
-
borderColorPress: number;
|
|
203
|
-
};
|
|
204
|
-
surface2: {
|
|
205
|
-
background: number;
|
|
206
|
-
backgroundHover: number;
|
|
207
|
-
backgroundPress: number;
|
|
208
|
-
backgroundFocus: number;
|
|
209
|
-
borderColor: number;
|
|
210
|
-
borderColorHover: number;
|
|
211
|
-
borderColorFocus: number;
|
|
212
|
-
borderColorPress: number;
|
|
213
|
-
};
|
|
214
|
-
surface3: {
|
|
215
|
-
background: number;
|
|
216
|
-
backgroundHover: number;
|
|
217
|
-
backgroundPress: number;
|
|
218
|
-
backgroundFocus: number;
|
|
219
|
-
borderColor: number;
|
|
220
|
-
borderColorHover: number;
|
|
221
|
-
borderColorFocus: number;
|
|
222
|
-
borderColorPress: number;
|
|
223
|
-
};
|
|
224
|
-
inverseSurface1: {
|
|
225
|
-
color: number;
|
|
226
|
-
colorHover: number;
|
|
227
|
-
colorPress: number;
|
|
228
|
-
colorFocus: number;
|
|
229
|
-
background: number;
|
|
230
|
-
backgroundHover: number;
|
|
231
|
-
backgroundPress: number;
|
|
232
|
-
backgroundFocus: number;
|
|
233
|
-
borderColor: number;
|
|
234
|
-
borderColorHover: number;
|
|
235
|
-
borderColorFocus: number;
|
|
236
|
-
borderColorPress: number;
|
|
237
|
-
};
|
|
238
|
-
inverseActive: {
|
|
239
|
-
background: number;
|
|
240
|
-
backgroundHover: number;
|
|
241
|
-
backgroundPress: number;
|
|
242
|
-
backgroundFocus: number;
|
|
243
|
-
borderColor: number;
|
|
244
|
-
borderColorHover: number;
|
|
245
|
-
borderColorFocus: number;
|
|
246
|
-
borderColorPress: number;
|
|
247
|
-
color: number;
|
|
248
|
-
colorHover: number;
|
|
249
|
-
colorPress: number;
|
|
250
|
-
colorFocus: number;
|
|
251
|
-
};
|
|
252
|
-
surfaceActive: {
|
|
253
|
-
borderColor: number;
|
|
254
|
-
borderColorHover: number;
|
|
255
|
-
borderColorFocus: number;
|
|
256
|
-
borderColorPress: number;
|
|
257
|
-
background: number;
|
|
258
|
-
backgroundHover: number;
|
|
259
|
-
backgroundPress: number;
|
|
260
|
-
backgroundFocus: number;
|
|
261
|
-
};
|
|
262
|
-
};
|
|
21
|
+
export declare const defaultTemplates: Record<"light_alt1" | "light_alt2" | "dark_alt1" | "dark_alt2" | "light_base" | "light_surface1" | "light_surface2" | "light_surface3" | "light_inverseSurface1" | "light_inverseActive" | "light_surfaceActive" | "dark_base" | "dark_surface1" | "dark_surface2" | "dark_surface3" | "dark_inverseSurface1" | "dark_inverseActive" | "dark_surfaceActive", {
|
|
22
|
+
accentBackground: number;
|
|
23
|
+
accentColor: number;
|
|
24
|
+
background0: number;
|
|
25
|
+
background025: number;
|
|
26
|
+
background05: number;
|
|
27
|
+
background075: number;
|
|
28
|
+
color1: number;
|
|
29
|
+
color2: number;
|
|
30
|
+
color3: number;
|
|
31
|
+
color4: number;
|
|
32
|
+
color5: number;
|
|
33
|
+
color6: number;
|
|
34
|
+
color7: number;
|
|
35
|
+
color8: number;
|
|
36
|
+
color9: number;
|
|
37
|
+
color10: number;
|
|
38
|
+
color11: number;
|
|
39
|
+
color12: number;
|
|
40
|
+
color0: number;
|
|
41
|
+
color025: number;
|
|
42
|
+
color05: number;
|
|
43
|
+
color075: number;
|
|
44
|
+
background: number;
|
|
45
|
+
backgroundHover: number;
|
|
46
|
+
backgroundPress: number;
|
|
47
|
+
backgroundFocus: number;
|
|
48
|
+
borderColor: number;
|
|
49
|
+
borderColorHover: number;
|
|
50
|
+
borderColorPress: number;
|
|
51
|
+
borderColorFocus: number;
|
|
52
|
+
color: number;
|
|
53
|
+
colorHover: number;
|
|
54
|
+
colorPress: number;
|
|
55
|
+
colorFocus: number;
|
|
56
|
+
colorTransparent: number;
|
|
57
|
+
placeholderColor: number;
|
|
58
|
+
outlineColor: number;
|
|
59
|
+
}>;
|
|
263
60
|
declare const nonInherited: {
|
|
264
61
|
light: {
|
|
265
62
|
shadowColor: string;
|
|
@@ -466,6 +263,77 @@ declare const nonInherited: {
|
|
|
466
263
|
blue12: string;
|
|
467
264
|
};
|
|
468
265
|
};
|
|
266
|
+
export declare const componentThemes: {
|
|
267
|
+
readonly ListItem: {
|
|
268
|
+
readonly template: "surface1";
|
|
269
|
+
};
|
|
270
|
+
readonly SelectTrigger: any;
|
|
271
|
+
readonly Card: any;
|
|
272
|
+
readonly Button: any;
|
|
273
|
+
readonly Checkbox: any;
|
|
274
|
+
readonly Switch: any;
|
|
275
|
+
readonly SwitchThumb: any;
|
|
276
|
+
readonly TooltipContent: any;
|
|
277
|
+
readonly Progress: {
|
|
278
|
+
readonly template: "surface1";
|
|
279
|
+
};
|
|
280
|
+
readonly RadioGroupItem: any;
|
|
281
|
+
readonly TooltipArrow: {
|
|
282
|
+
readonly template: "surface1";
|
|
283
|
+
};
|
|
284
|
+
readonly SliderTrackActive: {
|
|
285
|
+
readonly template: "surface3";
|
|
286
|
+
};
|
|
287
|
+
readonly SliderTrack: {
|
|
288
|
+
readonly template: "surface1";
|
|
289
|
+
};
|
|
290
|
+
readonly SliderThumb: any;
|
|
291
|
+
readonly Tooltip: any;
|
|
292
|
+
readonly ProgressIndicator: any;
|
|
293
|
+
readonly SheetOverlay: {
|
|
294
|
+
parent: string;
|
|
295
|
+
theme: {
|
|
296
|
+
background: string;
|
|
297
|
+
};
|
|
298
|
+
}[];
|
|
299
|
+
readonly DialogOverlay: {
|
|
300
|
+
parent: string;
|
|
301
|
+
theme: {
|
|
302
|
+
background: string;
|
|
303
|
+
};
|
|
304
|
+
}[];
|
|
305
|
+
readonly ModalOverlay: {
|
|
306
|
+
parent: string;
|
|
307
|
+
theme: {
|
|
308
|
+
background: string;
|
|
309
|
+
};
|
|
310
|
+
}[];
|
|
311
|
+
readonly Input: any;
|
|
312
|
+
readonly TextArea: any;
|
|
313
|
+
};
|
|
314
|
+
export declare const defaultSubThemes: {
|
|
315
|
+
readonly alt1: {
|
|
316
|
+
readonly template: "alt1";
|
|
317
|
+
};
|
|
318
|
+
readonly alt2: {
|
|
319
|
+
readonly template: "alt2";
|
|
320
|
+
};
|
|
321
|
+
readonly active: {
|
|
322
|
+
readonly template: "surface3";
|
|
323
|
+
};
|
|
324
|
+
readonly surface1: {
|
|
325
|
+
readonly template: "surface1";
|
|
326
|
+
};
|
|
327
|
+
readonly surface2: {
|
|
328
|
+
readonly template: "surface2";
|
|
329
|
+
};
|
|
330
|
+
readonly surface3: {
|
|
331
|
+
readonly template: "surface3";
|
|
332
|
+
};
|
|
333
|
+
readonly surface4: {
|
|
334
|
+
readonly template: "surfaceActive";
|
|
335
|
+
};
|
|
336
|
+
};
|
|
469
337
|
declare const themesIn: {
|
|
470
338
|
readonly light: {
|
|
471
339
|
readonly template: "base";
|
|
@@ -15732,7 +15600,8 @@ declare const themesIn: {
|
|
|
15732
15600
|
};
|
|
15733
15601
|
};
|
|
15734
15602
|
};
|
|
15735
|
-
|
|
15603
|
+
type ThemeKeys = keyof typeof defaultTemplates.light_base | keyof typeof nonInherited.light;
|
|
15604
|
+
export type Theme = Record<ThemeKeys, string>;
|
|
15736
15605
|
export type ThemesOut = Record<keyof typeof themesIn, Theme>;
|
|
15737
15606
|
export declare const themes: ThemesOut;
|
|
15738
15607
|
export declare const size: {
|