@tamagui/tamagui-dev-config 2.7.7 → 3.0.0-beta.643.1
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/createGenericFont.cjs +41 -50
- package/dist/cjs/fonts.cjs +82 -103
- package/dist/cjs/index.cjs +11 -12
- package/dist/cjs/media.cjs +64 -101
- package/dist/cjs/tamagui.dev.config.cjs +48 -82
- package/dist/cjs/themeMetadata.cjs +135 -0
- package/dist/cjs/themes.cjs +45 -0
- package/dist/esm/createGenericFont.mjs +28 -32
- package/dist/esm/createGenericFont.mjs.map +1 -1
- package/dist/esm/fonts.mjs +66 -84
- package/dist/esm/fonts.mjs.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/media.mjs +47 -82
- package/dist/esm/media.mjs.map +1 -1
- package/dist/esm/tamagui.dev.config.mjs +35 -66
- package/dist/esm/tamagui.dev.config.mjs.map +1 -1
- package/dist/esm/themeMetadata.mjs +109 -0
- package/dist/esm/themeMetadata.mjs.map +1 -0
- package/dist/esm/themes.mjs +25 -0
- package/dist/esm/themes.mjs.map +1 -0
- package/package.json +14 -25
- package/src/createGenericFont.ts +4 -4
- package/src/fonts.ts +9 -2
- package/src/media.ts +7 -7
- package/src/tamagui.dev.config.ts +12 -23
- package/src/themeMetadata.ts +128 -0
- package/src/themes.ts +34 -0
- package/dist/cjs/theme.dev.cjs +0 -302
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/theme.dev.mjs +0 -266
- package/dist/esm/theme.dev.mjs.map +0 -1
- package/motion.cjs +0 -1
- package/src/theme.dev.ts +0 -583
package/src/theme.dev.ts
DELETED
|
@@ -1,583 +0,0 @@
|
|
|
1
|
-
// ONLY USED BY KITCHEN SINK FOR TESTS
|
|
2
|
-
|
|
3
|
-
import * as Colors from '@tamagui/colors'
|
|
4
|
-
import { createThemes, defaultComponentThemes } from '@tamagui/theme-builder'
|
|
5
|
-
import { desaturate } from 'color2k'
|
|
6
|
-
|
|
7
|
-
const desat = (colors: Record<string, string>, amount: number) => {
|
|
8
|
-
return Object.fromEntries(
|
|
9
|
-
Object.entries(colors).map(([key, value]) => [key, desaturate(value, amount)])
|
|
10
|
-
)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const colorsGreenDark = desat(Colors.greenDark, 0.2) as typeof Colors.greenDark
|
|
14
|
-
const colorsGreen = desat(Colors.green, 0.2) as typeof Colors.green
|
|
15
|
-
|
|
16
|
-
// with color2k:
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Default themes for the tamagui.dev site
|
|
20
|
-
* If you'd like to create your own themes, use `createThemes`
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
const darkPalette = [
|
|
24
|
-
'#040404',
|
|
25
|
-
'#090909',
|
|
26
|
-
'#111',
|
|
27
|
-
'#151515',
|
|
28
|
-
'#222',
|
|
29
|
-
'#282828',
|
|
30
|
-
'#343434',
|
|
31
|
-
'#424242',
|
|
32
|
-
'#515151',
|
|
33
|
-
'#626262',
|
|
34
|
-
'#a5a5a5',
|
|
35
|
-
'#fff',
|
|
36
|
-
]
|
|
37
|
-
|
|
38
|
-
const lightPalette = [
|
|
39
|
-
'#fff',
|
|
40
|
-
'#f2f2f2',
|
|
41
|
-
'hsl(0, 0%, 93%)',
|
|
42
|
-
'hsl(0, 0%, 91%)',
|
|
43
|
-
'hsl(0, 0%, 88%)',
|
|
44
|
-
'hsl(0, 0%, 85%)',
|
|
45
|
-
'hsl(0, 0%, 82%)',
|
|
46
|
-
'hsl(0, 0%, 76%)',
|
|
47
|
-
'hsl(0, 0%, 56%)',
|
|
48
|
-
'hsl(0, 0%, 50%)',
|
|
49
|
-
'hsl(0, 0%, 42%)',
|
|
50
|
-
'hsl(0, 0%, 9%)',
|
|
51
|
-
]
|
|
52
|
-
|
|
53
|
-
const lightShadows = {
|
|
54
|
-
shadow1: 'rgba(0,0,0,0.04)',
|
|
55
|
-
shadow2: 'rgba(0,0,0,0.08)',
|
|
56
|
-
shadow3: 'rgba(0,0,0,0.16)',
|
|
57
|
-
shadow4: 'rgba(0,0,0,0.24)',
|
|
58
|
-
shadow5: 'rgba(0,0,0,0.32)',
|
|
59
|
-
shadow6: 'rgba(0,0,0,0.4)',
|
|
60
|
-
shadow7: 'rgba(0,0,0,0.5)',
|
|
61
|
-
shadow8: 'rgba(0,0,0,0.6)',
|
|
62
|
-
shadow9: 'rgba(0,0,0,0.7)',
|
|
63
|
-
shadow10: 'rgba(0,0,0,0.8)',
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const darkShadows = {
|
|
67
|
-
shadow1: 'rgba(0,0,0,0.2)',
|
|
68
|
-
shadow2: 'rgba(0,0,0,0.3)',
|
|
69
|
-
shadow3: 'rgba(0,0,0,0.4)',
|
|
70
|
-
shadow4: 'rgba(0,0,0,0.5)',
|
|
71
|
-
shadow5: 'rgba(0,0,0,0.6)',
|
|
72
|
-
shadow6: 'rgba(0,0,0,0.65)',
|
|
73
|
-
shadow7: 'rgba(0,0,0,0.75)',
|
|
74
|
-
shadow8: 'rgba(0,0,0,0.8)',
|
|
75
|
-
shadow9: 'rgba(0,0,0,0.85)',
|
|
76
|
-
shadow10: 'rgba(0,0,0,0.9)',
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const blackColors = {
|
|
80
|
-
black1: darkPalette[0],
|
|
81
|
-
black2: darkPalette[1],
|
|
82
|
-
black3: darkPalette[2],
|
|
83
|
-
black4: darkPalette[3],
|
|
84
|
-
black5: darkPalette[4],
|
|
85
|
-
black6: darkPalette[5],
|
|
86
|
-
black7: darkPalette[6],
|
|
87
|
-
black8: darkPalette[7],
|
|
88
|
-
black9: darkPalette[8],
|
|
89
|
-
black10: darkPalette[9],
|
|
90
|
-
black11: darkPalette[10],
|
|
91
|
-
black12: darkPalette[11],
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const whiteColors = {
|
|
95
|
-
white1: lightPalette[0],
|
|
96
|
-
white2: lightPalette[1],
|
|
97
|
-
white3: lightPalette[2],
|
|
98
|
-
white4: lightPalette[3],
|
|
99
|
-
white5: lightPalette[4],
|
|
100
|
-
white6: lightPalette[5],
|
|
101
|
-
white7: lightPalette[6],
|
|
102
|
-
white8: lightPalette[7],
|
|
103
|
-
white9: lightPalette[8],
|
|
104
|
-
white10: lightPalette[9],
|
|
105
|
-
white11: lightPalette[10],
|
|
106
|
-
white12: lightPalette[11],
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const jadeDark = [
|
|
110
|
-
'hsla(165, 100%, 4%, 1)',
|
|
111
|
-
'hsla(165, 100%, 8%, 1)',
|
|
112
|
-
'hsla(165, 100%, 12%, 1)',
|
|
113
|
-
'hsla(165, 100%, 18%, 1)',
|
|
114
|
-
'hsla(165, 100%, 25%, 1)',
|
|
115
|
-
'hsla(165, 100%, 35%, 1)',
|
|
116
|
-
'hsla(165, 100%, 45%, 1)',
|
|
117
|
-
'hsla(165, 100%, 55%, 1)',
|
|
118
|
-
'hsla(165, 100%, 65%, 1)',
|
|
119
|
-
'hsla(165, 100%, 75%, 1)',
|
|
120
|
-
'hsla(165, 100%, 85%, 1)',
|
|
121
|
-
'hsla(165, 100%, 90%, 1)',
|
|
122
|
-
]
|
|
123
|
-
|
|
124
|
-
const jadeLight = [
|
|
125
|
-
'hsla(165, 100%, 90%, 1)',
|
|
126
|
-
'hsla(165, 100%, 85%, 1)',
|
|
127
|
-
'hsla(165, 100%, 75%, 1)',
|
|
128
|
-
'hsla(165, 100%, 65%, 1)',
|
|
129
|
-
'hsla(165, 100%, 55%, 1)',
|
|
130
|
-
'hsla(165, 100%, 45%, 1)',
|
|
131
|
-
'hsla(165, 100%, 35%, 1)',
|
|
132
|
-
'hsla(165, 100%, 25%, 1)',
|
|
133
|
-
'hsla(165, 100%, 18%, 1)',
|
|
134
|
-
'hsla(165, 100%, 12%, 1)',
|
|
135
|
-
'hsla(165, 100%, 8%, 1)',
|
|
136
|
-
'hsla(165, 100%, 4%, 1)',
|
|
137
|
-
]
|
|
138
|
-
|
|
139
|
-
const supremeDark = [
|
|
140
|
-
'hsla(358, 100%, 35%, 1)',
|
|
141
|
-
'hsla(358, 100%, 38%, 1)',
|
|
142
|
-
'hsla(358, 100%, 40%, 1)',
|
|
143
|
-
'hsla(358, 100%, 43%, 1)',
|
|
144
|
-
'hsla(358, 100%, 45%, 1)',
|
|
145
|
-
'hsla(358, 100%, 48%, 1)',
|
|
146
|
-
'hsla(358, 100%, 50%, 1)',
|
|
147
|
-
'hsla(358, 100%, 53%, 1)',
|
|
148
|
-
'hsla(358, 100%, 55%, 1)',
|
|
149
|
-
'hsla(358, 100%, 65%, 1)',
|
|
150
|
-
'hsla(358, 100%, 75%, 1)',
|
|
151
|
-
'hsla(358, 100%, 95%, 1)',
|
|
152
|
-
]
|
|
153
|
-
const supremeLight = [
|
|
154
|
-
'hsla(358, 100%, 50%, 1)',
|
|
155
|
-
'hsla(358, 100%, 49%, 1)',
|
|
156
|
-
'hsla(358, 100%, 48%, 1)',
|
|
157
|
-
'hsla(358, 100%, 46%, 1)',
|
|
158
|
-
'hsla(358, 100%, 45%, 1)',
|
|
159
|
-
'hsla(358, 100%, 44%, 1)',
|
|
160
|
-
'hsla(358, 100%, 43%, 1)',
|
|
161
|
-
'hsla(358, 100%, 41%, 1)',
|
|
162
|
-
'hsla(358, 100%, 40%, 1)',
|
|
163
|
-
'hsla(358, 100%, 35%, 1)',
|
|
164
|
-
'hsla(358, 100%, 100%, 1)',
|
|
165
|
-
'hsla(358, 100%, 100%, 1)',
|
|
166
|
-
]
|
|
167
|
-
|
|
168
|
-
const orangeRedDark = [
|
|
169
|
-
'hsla(17, 100%, 5%, 1)',
|
|
170
|
-
'hsla(17, 100%, 10%, 1)',
|
|
171
|
-
'hsla(17, 100%, 15%, 1)',
|
|
172
|
-
'hsla(17, 100%, 20%, 1)',
|
|
173
|
-
'hsla(17, 100%, 25%, 1)',
|
|
174
|
-
'hsla(17, 100%, 38%, 1)',
|
|
175
|
-
'hsla(17, 100%, 45%, 1)',
|
|
176
|
-
'hsla(17, 100%, 50%, 1)',
|
|
177
|
-
'hsla(17, 100%, 55%, 1)',
|
|
178
|
-
'hsla(17, 100%, 60%, 1)',
|
|
179
|
-
'hsla(17, 100%, 65%, 1)',
|
|
180
|
-
'hsla(17, 100%, 70%, 1)',
|
|
181
|
-
]
|
|
182
|
-
|
|
183
|
-
const orangeRedLight = [
|
|
184
|
-
'hsla(17, 100%, 70%, 1)',
|
|
185
|
-
'hsla(17, 100%, 65%, 1)',
|
|
186
|
-
'hsla(17, 100%, 60%, 1)',
|
|
187
|
-
'hsla(17, 100%, 55%, 1)',
|
|
188
|
-
'hsla(17, 100%, 50%, 1)',
|
|
189
|
-
'hsla(17, 100%, 45%, 1)',
|
|
190
|
-
'hsla(17, 100%, 38%, 1)',
|
|
191
|
-
'hsla(17, 100%, 25%, 1)',
|
|
192
|
-
'hsla(17, 100%, 20%, 1)',
|
|
193
|
-
'hsla(17, 100%, 15%, 1)',
|
|
194
|
-
'hsla(17, 100%, 10%, 1)',
|
|
195
|
-
'hsla(17, 100%, 5%, 1)',
|
|
196
|
-
]
|
|
197
|
-
|
|
198
|
-
const royalBlueDark = [
|
|
199
|
-
'hsla(243, 90%, 5%, 1)',
|
|
200
|
-
'hsla(243, 90%, 10%, 1)',
|
|
201
|
-
'hsla(243, 90%, 15%, 1)',
|
|
202
|
-
'hsla(243, 90%, 20%, 1)',
|
|
203
|
-
'hsla(243, 90%, 25%, 1)',
|
|
204
|
-
'hsla(243, 70%, 41%, 1)',
|
|
205
|
-
'hsla(243, 90%, 45%, 1)',
|
|
206
|
-
'hsla(243, 90%, 50%, 1)',
|
|
207
|
-
'hsla(243, 90%, 55%, 1)',
|
|
208
|
-
'hsla(243, 90%, 60%, 1)',
|
|
209
|
-
'hsla(243, 90%, 65%, 1)',
|
|
210
|
-
'hsla(243, 90%, 70%, 1)',
|
|
211
|
-
]
|
|
212
|
-
|
|
213
|
-
const royalBlueLight = [
|
|
214
|
-
'hsla(243, 90%, 70%, 1)',
|
|
215
|
-
'hsla(243, 90%, 65%, 1)',
|
|
216
|
-
'hsla(243, 90%, 60%, 1)',
|
|
217
|
-
'hsla(243, 90%, 55%, 1)',
|
|
218
|
-
'hsla(243, 90%, 50%, 1)',
|
|
219
|
-
'hsla(243, 90%, 45%, 1)',
|
|
220
|
-
'hsla(243, 70%, 41%, 1)',
|
|
221
|
-
'hsla(243, 90%, 25%, 1)',
|
|
222
|
-
'hsla(243, 90%, 20%, 1)',
|
|
223
|
-
'hsla(243, 90%, 15%, 1)',
|
|
224
|
-
'hsla(243, 90%, 10%, 1)',
|
|
225
|
-
'hsla(243, 90%, 5%, 1)',
|
|
226
|
-
]
|
|
227
|
-
|
|
228
|
-
const burgundyDark = [
|
|
229
|
-
'hsla(334, 60%, 5%, 1)',
|
|
230
|
-
'hsla(334, 60%, 10%, 1)',
|
|
231
|
-
'hsla(334, 60%, 15%, 1)',
|
|
232
|
-
'hsla(334, 60%, 20%, 1)',
|
|
233
|
-
'hsla(334, 60%, 25%, 1)',
|
|
234
|
-
'hsla(334, 60%, 27%, 1)',
|
|
235
|
-
'hsla(334, 60%, 35%, 1)',
|
|
236
|
-
'hsla(334, 60%, 40%, 1)',
|
|
237
|
-
'hsla(334, 60%, 45%, 1)',
|
|
238
|
-
'hsla(334, 60%, 50%, 1)',
|
|
239
|
-
'hsla(334, 60%, 55%, 1)',
|
|
240
|
-
'hsla(334, 60%, 60%, 1)',
|
|
241
|
-
]
|
|
242
|
-
|
|
243
|
-
const burgundyLight = [
|
|
244
|
-
'hsla(334, 60%, 60%, 1)',
|
|
245
|
-
'hsla(334, 60%, 55%, 1)',
|
|
246
|
-
'hsla(334, 60%, 50%, 1)',
|
|
247
|
-
'hsla(334, 60%, 45%, 1)',
|
|
248
|
-
'hsla(334, 60%, 40%, 1)',
|
|
249
|
-
'hsla(334, 60%, 35%, 1)',
|
|
250
|
-
'hsla(334, 60%, 27%, 1)',
|
|
251
|
-
'hsla(334, 60%, 25%, 1)',
|
|
252
|
-
'hsla(334, 60%, 20%, 1)',
|
|
253
|
-
'hsla(334, 60%, 15%, 1)',
|
|
254
|
-
'hsla(334, 60%, 10%, 1)',
|
|
255
|
-
'hsla(334, 60%, 5%, 1)',
|
|
256
|
-
]
|
|
257
|
-
|
|
258
|
-
const tealDark = [
|
|
259
|
-
'hsla(187, 94%, 5%, 1)',
|
|
260
|
-
'hsla(187, 94%, 10%, 1)',
|
|
261
|
-
'hsla(187, 94%, 15%, 1)',
|
|
262
|
-
'hsla(187, 94%, 20%, 1)',
|
|
263
|
-
'hsla(187, 94%, 25%, 1)',
|
|
264
|
-
'hsla(187, 94%, 32%, 1)',
|
|
265
|
-
'hsla(187, 94%, 38%, 1)',
|
|
266
|
-
'hsla(187, 94%, 43%, 1)',
|
|
267
|
-
'hsla(187, 94%, 48%, 1)',
|
|
268
|
-
'hsla(187, 94%, 53%, 1)',
|
|
269
|
-
'hsla(187, 94%, 58%, 1)',
|
|
270
|
-
'hsla(187, 94%, 63%, 1)',
|
|
271
|
-
]
|
|
272
|
-
|
|
273
|
-
const tealLight = [
|
|
274
|
-
'hsla(187, 94%, 63%, 1)',
|
|
275
|
-
'hsla(187, 94%, 58%, 1)',
|
|
276
|
-
'hsla(187, 94%, 53%, 1)',
|
|
277
|
-
'hsla(187, 94%, 48%, 1)',
|
|
278
|
-
'hsla(187, 94%, 43%, 1)',
|
|
279
|
-
'hsla(187, 94%, 38%, 1)',
|
|
280
|
-
'hsla(187, 94%, 32%, 1)',
|
|
281
|
-
'hsla(187, 94%, 25%, 1)',
|
|
282
|
-
'hsla(187, 94%, 20%, 1)',
|
|
283
|
-
'hsla(187, 94%, 15%, 1)',
|
|
284
|
-
'hsla(187, 94%, 10%, 1)',
|
|
285
|
-
'hsla(187, 94%, 5%, 1)',
|
|
286
|
-
]
|
|
287
|
-
|
|
288
|
-
const forestDark = [
|
|
289
|
-
'hsla(162, 64%, 5%, 1)',
|
|
290
|
-
'hsla(162, 64%, 10%, 1)',
|
|
291
|
-
'hsla(162, 64%, 15%, 1)',
|
|
292
|
-
'hsla(162, 64%, 20%, 1)',
|
|
293
|
-
'hsla(162, 64%, 25%, 1)',
|
|
294
|
-
'hsla(162, 64%, 30%, 1)',
|
|
295
|
-
'hsla(162, 64%, 35%, 1)',
|
|
296
|
-
'hsla(162, 64%, 40%, 1)',
|
|
297
|
-
'hsla(162, 64%, 45%, 1)',
|
|
298
|
-
'hsla(162, 64%, 50%, 1)',
|
|
299
|
-
'hsla(162, 64%, 55%, 1)',
|
|
300
|
-
'hsla(162, 64%, 60%, 1)',
|
|
301
|
-
]
|
|
302
|
-
|
|
303
|
-
const forestLight = [
|
|
304
|
-
'hsla(162, 64%, 60%, 1)',
|
|
305
|
-
'hsla(162, 64%, 55%, 1)',
|
|
306
|
-
'hsla(162, 64%, 50%, 1)',
|
|
307
|
-
'hsla(162, 64%, 45%, 1)',
|
|
308
|
-
'hsla(162, 64%, 40%, 1)',
|
|
309
|
-
'hsla(162, 64%, 35%, 1)',
|
|
310
|
-
'hsla(162, 64%, 30%, 1)',
|
|
311
|
-
'hsla(162, 64%, 25%, 1)',
|
|
312
|
-
'hsla(162, 64%, 20%, 1)',
|
|
313
|
-
'hsla(162, 64%, 15%, 1)',
|
|
314
|
-
'hsla(162, 64%, 10%, 1)',
|
|
315
|
-
'hsla(162, 64%, 5%, 1)',
|
|
316
|
-
]
|
|
317
|
-
|
|
318
|
-
const cyanDark = [
|
|
319
|
-
'hsla(186, 32%, 5%, 1)',
|
|
320
|
-
'hsla(186, 32%, 10%, 1)',
|
|
321
|
-
'hsla(186, 32%, 15%, 1)',
|
|
322
|
-
'hsla(186, 32%, 20%, 1)',
|
|
323
|
-
'hsla(186, 32%, 25%, 1)',
|
|
324
|
-
'hsla(186, 32%, 46%, 1)',
|
|
325
|
-
'hsla(186, 32%, 50%, 1)',
|
|
326
|
-
'hsla(186, 32%, 55%, 1)',
|
|
327
|
-
'hsla(186, 32%, 60%, 1)',
|
|
328
|
-
'hsla(186, 32%, 65%, 1)',
|
|
329
|
-
'hsla(186, 32%, 70%, 1)',
|
|
330
|
-
'hsla(186, 32%, 75%, 1)',
|
|
331
|
-
]
|
|
332
|
-
|
|
333
|
-
const cyanLight = [
|
|
334
|
-
'hsla(186, 32%, 75%, 1)',
|
|
335
|
-
'hsla(186, 32%, 70%, 1)',
|
|
336
|
-
'hsla(186, 32%, 65%, 1)',
|
|
337
|
-
'hsla(186, 32%, 60%, 1)',
|
|
338
|
-
'hsla(186, 32%, 55%, 1)',
|
|
339
|
-
'hsla(186, 32%, 50%, 1)',
|
|
340
|
-
'hsla(186, 32%, 46%, 1)',
|
|
341
|
-
'hsla(186, 32%, 25%, 1)',
|
|
342
|
-
'hsla(186, 32%, 20%, 1)',
|
|
343
|
-
'hsla(186, 32%, 15%, 1)',
|
|
344
|
-
'hsla(186, 32%, 10%, 1)',
|
|
345
|
-
'hsla(186, 32%, 5%, 1)',
|
|
346
|
-
]
|
|
347
|
-
|
|
348
|
-
const themes = createThemes({
|
|
349
|
-
componentThemes: defaultComponentThemes,
|
|
350
|
-
|
|
351
|
-
base: {
|
|
352
|
-
palette: {
|
|
353
|
-
dark: darkPalette,
|
|
354
|
-
light: lightPalette,
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
// for values we don't want being inherited onto sub-themes
|
|
358
|
-
extra: {
|
|
359
|
-
light: {
|
|
360
|
-
...Colors.blue,
|
|
361
|
-
...Colors.gray,
|
|
362
|
-
...colorsGreen,
|
|
363
|
-
...Colors.orange,
|
|
364
|
-
...Colors.pink,
|
|
365
|
-
...Colors.purple,
|
|
366
|
-
...Colors.red,
|
|
367
|
-
...Colors.yellow,
|
|
368
|
-
...lightShadows,
|
|
369
|
-
...blackColors,
|
|
370
|
-
...whiteColors,
|
|
371
|
-
shadowColor: lightShadows.shadow1,
|
|
372
|
-
colorBg: '#fff',
|
|
373
|
-
},
|
|
374
|
-
dark: {
|
|
375
|
-
...Colors.blueDark,
|
|
376
|
-
...Colors.grayDark,
|
|
377
|
-
...colorsGreenDark,
|
|
378
|
-
...Colors.orangeDark,
|
|
379
|
-
...Colors.pinkDark,
|
|
380
|
-
...Colors.purpleDark,
|
|
381
|
-
...Colors.redDark,
|
|
382
|
-
...Colors.yellowDark,
|
|
383
|
-
...darkShadows,
|
|
384
|
-
...blackColors,
|
|
385
|
-
...whiteColors,
|
|
386
|
-
shadowColor: darkShadows.shadow1,
|
|
387
|
-
colorBg: '#000',
|
|
388
|
-
},
|
|
389
|
-
},
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
// inverse accent theme
|
|
393
|
-
accent: {
|
|
394
|
-
palette: {
|
|
395
|
-
dark: lightPalette,
|
|
396
|
-
light: darkPalette,
|
|
397
|
-
},
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
childrenThemes: {
|
|
401
|
-
black: {
|
|
402
|
-
palette: {
|
|
403
|
-
dark: Object.values(blackColors),
|
|
404
|
-
light: Object.values(blackColors),
|
|
405
|
-
},
|
|
406
|
-
},
|
|
407
|
-
white: {
|
|
408
|
-
palette: {
|
|
409
|
-
dark: Object.values(whiteColors),
|
|
410
|
-
light: Object.values(whiteColors),
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
gray: {
|
|
414
|
-
palette: {
|
|
415
|
-
dark: Object.values(Colors.grayDark),
|
|
416
|
-
light: Object.values(Colors.gray),
|
|
417
|
-
},
|
|
418
|
-
},
|
|
419
|
-
blue: {
|
|
420
|
-
palette: {
|
|
421
|
-
dark: Object.values(Colors.blueDark),
|
|
422
|
-
light: Object.values(Colors.blue),
|
|
423
|
-
},
|
|
424
|
-
},
|
|
425
|
-
orange: {
|
|
426
|
-
palette: {
|
|
427
|
-
dark: Object.values(Colors.orangeDark),
|
|
428
|
-
light: Object.values(Colors.orange),
|
|
429
|
-
},
|
|
430
|
-
},
|
|
431
|
-
red: {
|
|
432
|
-
palette: {
|
|
433
|
-
dark: Object.values(Colors.redDark),
|
|
434
|
-
light: Object.values(Colors.red),
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
yellow: {
|
|
438
|
-
palette: {
|
|
439
|
-
dark: Object.values(Colors.yellowDark),
|
|
440
|
-
light: Object.values(Colors.yellow),
|
|
441
|
-
},
|
|
442
|
-
},
|
|
443
|
-
green: {
|
|
444
|
-
palette: {
|
|
445
|
-
dark: Object.values(colorsGreenDark),
|
|
446
|
-
light: Object.values(colorsGreen),
|
|
447
|
-
},
|
|
448
|
-
},
|
|
449
|
-
purple: {
|
|
450
|
-
palette: {
|
|
451
|
-
dark: Object.values(Colors.purpleDark),
|
|
452
|
-
light: Object.values(Colors.purple),
|
|
453
|
-
},
|
|
454
|
-
},
|
|
455
|
-
pink: {
|
|
456
|
-
palette: {
|
|
457
|
-
dark: Object.values(Colors.pinkDark),
|
|
458
|
-
light: Object.values(Colors.pink),
|
|
459
|
-
},
|
|
460
|
-
},
|
|
461
|
-
tan: {
|
|
462
|
-
palette: {
|
|
463
|
-
light: [
|
|
464
|
-
'hsla(40, 30%, 98%, 1)',
|
|
465
|
-
'hsla(40, 24%, 94%, 1)',
|
|
466
|
-
'hsla(38, 23%, 91%, 1)',
|
|
467
|
-
'hsla(36, 20%, 90%, 1)',
|
|
468
|
-
'hsla(36, 20%, 88%, 1)',
|
|
469
|
-
'hsla(35, 20%, 85%, 1)',
|
|
470
|
-
'hsla(35, 21%, 74%, 1)',
|
|
471
|
-
'hsla(34, 20%, 70%, 1)',
|
|
472
|
-
'hsla(35, 20%, 67%, 1)',
|
|
473
|
-
'hsla(34, 19%, 47%, 1)',
|
|
474
|
-
'hsla(35, 18%, 37%, 1)',
|
|
475
|
-
'hsla(35, 17%, 20%, 1)',
|
|
476
|
-
],
|
|
477
|
-
dark: [
|
|
478
|
-
'hsla(30, 9%, 10%, 1)',
|
|
479
|
-
'hsla(30, 10%, 12%, 1)',
|
|
480
|
-
'hsla(31, 11%, 18%, 1)',
|
|
481
|
-
'hsla(30, 12%, 23%, 1)',
|
|
482
|
-
'hsla(30, 14%, 28%, 1)',
|
|
483
|
-
'hsla(30, 16%, 33%, 1)',
|
|
484
|
-
'hsla(30, 18%, 38%, 1)',
|
|
485
|
-
'hsla(30, 20%, 45%, 1)',
|
|
486
|
-
'hsla(30, 21%, 50%, 1)',
|
|
487
|
-
'hsla(29, 22%, 58%, 1)',
|
|
488
|
-
'hsla(34, 24%, 70%, 1)',
|
|
489
|
-
'hsla(11, 12%, 79%, 1)',
|
|
490
|
-
],
|
|
491
|
-
},
|
|
492
|
-
},
|
|
493
|
-
|
|
494
|
-
jade: {
|
|
495
|
-
palette: {
|
|
496
|
-
dark: jadeDark,
|
|
497
|
-
light: jadeLight,
|
|
498
|
-
},
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
supreme: {
|
|
502
|
-
palette: {
|
|
503
|
-
dark: supremeDark,
|
|
504
|
-
light: supremeLight,
|
|
505
|
-
},
|
|
506
|
-
},
|
|
507
|
-
|
|
508
|
-
orangeRed: {
|
|
509
|
-
palette: {
|
|
510
|
-
dark: orangeRedDark,
|
|
511
|
-
light: orangeRedLight,
|
|
512
|
-
},
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
royalBlue: {
|
|
516
|
-
palette: {
|
|
517
|
-
dark: royalBlueDark,
|
|
518
|
-
light: royalBlueLight,
|
|
519
|
-
},
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
burgundy: {
|
|
523
|
-
palette: {
|
|
524
|
-
dark: burgundyDark,
|
|
525
|
-
light: burgundyLight,
|
|
526
|
-
},
|
|
527
|
-
},
|
|
528
|
-
|
|
529
|
-
teal: {
|
|
530
|
-
palette: {
|
|
531
|
-
dark: tealDark,
|
|
532
|
-
light: tealLight,
|
|
533
|
-
},
|
|
534
|
-
},
|
|
535
|
-
|
|
536
|
-
forest: {
|
|
537
|
-
palette: {
|
|
538
|
-
dark: forestDark,
|
|
539
|
-
light: forestLight,
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
|
|
543
|
-
cyan: {
|
|
544
|
-
palette: {
|
|
545
|
-
dark: cyanDark,
|
|
546
|
-
light: cyanLight,
|
|
547
|
-
},
|
|
548
|
-
},
|
|
549
|
-
},
|
|
550
|
-
|
|
551
|
-
grandChildrenThemes: {
|
|
552
|
-
accent: {
|
|
553
|
-
template: 'inverse',
|
|
554
|
-
},
|
|
555
|
-
alt1: {
|
|
556
|
-
template: 'alt1',
|
|
557
|
-
},
|
|
558
|
-
alt2: {
|
|
559
|
-
template: 'alt2',
|
|
560
|
-
},
|
|
561
|
-
surface1: {
|
|
562
|
-
template: 'surface1',
|
|
563
|
-
},
|
|
564
|
-
surface2: {
|
|
565
|
-
template: 'surface2',
|
|
566
|
-
},
|
|
567
|
-
surface3: {
|
|
568
|
-
template: 'surface3',
|
|
569
|
-
},
|
|
570
|
-
},
|
|
571
|
-
})
|
|
572
|
-
|
|
573
|
-
export type TamaguiThemes = typeof themes
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* This is an optional production optimization: themes JS can get to 20Kb or more.
|
|
577
|
-
* Tamagui has <1Kb of logic to hydrate themes from CSS, so you can remove the JS.
|
|
578
|
-
* So long as you server render your Tamagui CSS, this will save you bundle size:
|
|
579
|
-
*/
|
|
580
|
-
export const themeDev: TamaguiThemes =
|
|
581
|
-
process.env.TAMAGUI_ENVIRONMENT === 'client' && process.env.NODE_ENV === 'production'
|
|
582
|
-
? ({} as any)
|
|
583
|
-
: (themes as any)
|