@react-native-rethemed/chakra-ui-tokens 0.1.0 → 0.1.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/README.md +2 -0
- package/dist/colors.cjs +603 -0
- package/dist/colors.d.cts +601 -0
- package/dist/colors.d.mts +601 -0
- package/dist/colors.mjs +602 -0
- package/dist/index.cjs +31 -0
- package/dist/{esm/index.d.ts → index.d.cts} +5 -3
- package/dist/{cjs/index.d.ts → index.d.mts} +5 -3
- package/dist/index.mjs +21 -0
- package/dist/scales.cjs +213 -0
- package/dist/scales.d.cts +197 -0
- package/dist/scales.d.mts +197 -0
- package/dist/scales.mjs +206 -0
- package/package.json +13 -15
- package/dist/cjs/colors.d.ts +0 -599
- package/dist/cjs/colors.js +0 -386
- package/dist/cjs/index.js +0 -37
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/scales.d.ts +0 -195
- package/dist/cjs/scales.js +0 -188
- package/dist/esm/colors.d.ts +0 -599
- package/dist/esm/colors.js +0 -383
- package/dist/esm/index.js +0 -25
- package/dist/esm/package.json +0 -1
- package/dist/esm/scales.d.ts +0 -195
- package/dist/esm/scales.js +0 -185
package/dist/cjs/colors.js
DELETED
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Color tokens mirroring Chakra UI's Color Tokens / Semantic Tokens.
|
|
4
|
-
* https://www.chakra-ui.com/docs/theming/colors
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.semanticColors = exports.colors = void 0;
|
|
8
|
-
exports.colors = {
|
|
9
|
-
white: '#ffffff',
|
|
10
|
-
black: '#000000',
|
|
11
|
-
'gray.50': '#fafafa',
|
|
12
|
-
'gray.100': '#f4f4f5',
|
|
13
|
-
'gray.200': '#e4e4e7',
|
|
14
|
-
'gray.300': '#d4d4d8',
|
|
15
|
-
'gray.400': '#a1a1aa',
|
|
16
|
-
'gray.500': '#71717a',
|
|
17
|
-
'gray.600': '#52525b',
|
|
18
|
-
'gray.700': '#3f3f46',
|
|
19
|
-
'gray.800': '#27272a',
|
|
20
|
-
'gray.900': '#18181b',
|
|
21
|
-
'gray.950': '#111111',
|
|
22
|
-
'neutral.50': '#fafafa',
|
|
23
|
-
'neutral.100': '#f5f5f5',
|
|
24
|
-
'neutral.200': '#e5e5e5',
|
|
25
|
-
'neutral.300': '#d4d4d4',
|
|
26
|
-
'neutral.400': '#a3a3a3',
|
|
27
|
-
'neutral.500': '#737373',
|
|
28
|
-
'neutral.600': '#525252',
|
|
29
|
-
'neutral.700': '#404040',
|
|
30
|
-
'neutral.800': '#262626',
|
|
31
|
-
'neutral.900': '#171717',
|
|
32
|
-
'neutral.950': '#0a0a0a',
|
|
33
|
-
'red.50': '#fef2f2',
|
|
34
|
-
'red.100': '#fee2e2',
|
|
35
|
-
'red.200': '#fecaca',
|
|
36
|
-
'red.300': '#fca5a5',
|
|
37
|
-
'red.400': '#f87171',
|
|
38
|
-
'red.500': '#ef4444',
|
|
39
|
-
'red.600': '#dc2626',
|
|
40
|
-
'red.700': '#991919',
|
|
41
|
-
'red.800': '#511111',
|
|
42
|
-
'red.900': '#300c0c',
|
|
43
|
-
'red.950': '#1f0808',
|
|
44
|
-
'orange.50': '#fff7ed',
|
|
45
|
-
'orange.100': '#ffedd5',
|
|
46
|
-
'orange.200': '#fed7aa',
|
|
47
|
-
'orange.300': '#fdba74',
|
|
48
|
-
'orange.400': '#fb923c',
|
|
49
|
-
'orange.500': '#f97316',
|
|
50
|
-
'orange.600': '#ea580c',
|
|
51
|
-
'orange.700': '#92310a',
|
|
52
|
-
'orange.800': '#6c2710',
|
|
53
|
-
'orange.900': '#3b1106',
|
|
54
|
-
'orange.950': '#220a04',
|
|
55
|
-
'yellow.50': '#fefce8',
|
|
56
|
-
'yellow.100': '#fef9c3',
|
|
57
|
-
'yellow.200': '#fef08a',
|
|
58
|
-
'yellow.300': '#fde047',
|
|
59
|
-
'yellow.400': '#facc15',
|
|
60
|
-
'yellow.500': '#eab308',
|
|
61
|
-
'yellow.600': '#ca8a04',
|
|
62
|
-
'yellow.700': '#845209',
|
|
63
|
-
'yellow.800': '#713f12',
|
|
64
|
-
'yellow.900': '#422006',
|
|
65
|
-
'yellow.950': '#281304',
|
|
66
|
-
'green.50': '#f0fdf4',
|
|
67
|
-
'green.100': '#dcfce7',
|
|
68
|
-
'green.200': '#bbf7d0',
|
|
69
|
-
'green.300': '#86efac',
|
|
70
|
-
'green.400': '#4ade80',
|
|
71
|
-
'green.500': '#22c55e',
|
|
72
|
-
'green.600': '#16a34a',
|
|
73
|
-
'green.700': '#116932',
|
|
74
|
-
'green.800': '#124a28',
|
|
75
|
-
'green.900': '#042713',
|
|
76
|
-
'green.950': '#03190c',
|
|
77
|
-
'teal.50': '#f0fdfa',
|
|
78
|
-
'teal.100': '#ccfbf1',
|
|
79
|
-
'teal.200': '#99f6e4',
|
|
80
|
-
'teal.300': '#5eead4',
|
|
81
|
-
'teal.400': '#2dd4bf',
|
|
82
|
-
'teal.500': '#14b8a6',
|
|
83
|
-
'teal.600': '#0d9488',
|
|
84
|
-
'teal.700': '#0c5d56',
|
|
85
|
-
'teal.800': '#114240',
|
|
86
|
-
'teal.900': '#032726',
|
|
87
|
-
'teal.950': '#021716',
|
|
88
|
-
'blue.50': '#eff6ff',
|
|
89
|
-
'blue.100': '#dbeafe',
|
|
90
|
-
'blue.200': '#bfdbfe',
|
|
91
|
-
'blue.300': '#a3cfff',
|
|
92
|
-
'blue.400': '#60a5fa',
|
|
93
|
-
'blue.500': '#3b82f6',
|
|
94
|
-
'blue.600': '#2563eb',
|
|
95
|
-
'blue.700': '#173da6',
|
|
96
|
-
'blue.800': '#1a3478',
|
|
97
|
-
'blue.900': '#14204a',
|
|
98
|
-
'blue.950': '#0c142e',
|
|
99
|
-
'cyan.50': '#ecfeff',
|
|
100
|
-
'cyan.100': '#cffafe',
|
|
101
|
-
'cyan.200': '#a5f3fc',
|
|
102
|
-
'cyan.300': '#67e8f9',
|
|
103
|
-
'cyan.400': '#22d3ee',
|
|
104
|
-
'cyan.500': '#06b6d4',
|
|
105
|
-
'cyan.600': '#0891b2',
|
|
106
|
-
'cyan.700': '#0c5c72',
|
|
107
|
-
'cyan.800': '#134152',
|
|
108
|
-
'cyan.900': '#072a38',
|
|
109
|
-
'cyan.950': '#051b24',
|
|
110
|
-
'purple.50': '#faf5ff',
|
|
111
|
-
'purple.100': '#f3e8ff',
|
|
112
|
-
'purple.200': '#e9d5ff',
|
|
113
|
-
'purple.300': '#d8b4fe',
|
|
114
|
-
'purple.400': '#c084fc',
|
|
115
|
-
'purple.500': '#a855f7',
|
|
116
|
-
'purple.600': '#9333ea',
|
|
117
|
-
'purple.700': '#641ba3',
|
|
118
|
-
'purple.800': '#4a1772',
|
|
119
|
-
'purple.900': '#2f0553',
|
|
120
|
-
'purple.950': '#1a032e',
|
|
121
|
-
'pink.50': '#fdf2f8',
|
|
122
|
-
'pink.100': '#fce7f3',
|
|
123
|
-
'pink.200': '#fbcfe8',
|
|
124
|
-
'pink.300': '#f9a8d4',
|
|
125
|
-
'pink.400': '#f472b6',
|
|
126
|
-
'pink.500': '#ec4899',
|
|
127
|
-
'pink.600': '#db2777',
|
|
128
|
-
'pink.700': '#a41752',
|
|
129
|
-
'pink.800': '#6d0e34',
|
|
130
|
-
'pink.900': '#45061f',
|
|
131
|
-
'pink.950': '#2c0514',
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Scheme-dependent colors in `ThemeConfig['semanticTokens']['colors']`'s
|
|
135
|
-
* shape: group -> token -> scheme, so `'fg.default'` resolves in one lookup.
|
|
136
|
-
*/
|
|
137
|
-
exports.semanticColors = {
|
|
138
|
-
primary: {
|
|
139
|
-
bg: { light: exports.colors.black, dark: exports.colors.white },
|
|
140
|
-
fg: { light: exports.colors.white, dark: exports.colors.black },
|
|
141
|
-
},
|
|
142
|
-
bg: {
|
|
143
|
-
default: { light: exports.colors.white, dark: exports.colors.black },
|
|
144
|
-
subtle: { light: exports.colors['gray.50'], dark: exports.colors['gray.950'] },
|
|
145
|
-
muted: { light: exports.colors['gray.100'], dark: exports.colors['gray.900'] },
|
|
146
|
-
emphasized: {
|
|
147
|
-
light: exports.colors['gray.200'],
|
|
148
|
-
dark: exports.colors['gray.700'],
|
|
149
|
-
},
|
|
150
|
-
inverted: { light: exports.colors.black, dark: exports.colors.white },
|
|
151
|
-
panel: { light: exports.colors.white, dark: exports.colors['gray.950'] },
|
|
152
|
-
error: { light: exports.colors['red.50'], dark: exports.colors['red.950'] },
|
|
153
|
-
warning: {
|
|
154
|
-
light: exports.colors['yellow.50'],
|
|
155
|
-
dark: exports.colors['yellow.950'],
|
|
156
|
-
},
|
|
157
|
-
success: { light: exports.colors['green.50'], dark: exports.colors['green.950'] },
|
|
158
|
-
info: { light: exports.colors['blue.50'], dark: exports.colors['blue.950'] },
|
|
159
|
-
},
|
|
160
|
-
border: {
|
|
161
|
-
default: { light: exports.colors['gray.200'], dark: exports.colors['gray.800'] },
|
|
162
|
-
muted: { light: exports.colors['gray.100'], dark: exports.colors['gray.900'] },
|
|
163
|
-
subtle: { light: exports.colors['gray.50'], dark: exports.colors['gray.950'] },
|
|
164
|
-
emphasized: {
|
|
165
|
-
light: exports.colors['gray.300'],
|
|
166
|
-
dark: exports.colors['gray.700'],
|
|
167
|
-
},
|
|
168
|
-
inverted: { light: exports.colors['gray.800'], dark: exports.colors['gray.200'] },
|
|
169
|
-
error: { light: exports.colors['red.500'], dark: exports.colors['red.400'] },
|
|
170
|
-
warning: {
|
|
171
|
-
light: exports.colors['orange.500'],
|
|
172
|
-
dark: exports.colors['orange.400'],
|
|
173
|
-
},
|
|
174
|
-
success: {
|
|
175
|
-
light: exports.colors['green.500'],
|
|
176
|
-
dark: exports.colors['green.400'],
|
|
177
|
-
},
|
|
178
|
-
info: { light: exports.colors['blue.500'], dark: exports.colors['blue.400'] },
|
|
179
|
-
},
|
|
180
|
-
fg: {
|
|
181
|
-
default: { light: exports.colors.black, dark: exports.colors['gray.50'] },
|
|
182
|
-
muted: { light: exports.colors['gray.600'], dark: exports.colors['gray.400'] },
|
|
183
|
-
subtle: { light: exports.colors['gray.400'], dark: exports.colors['gray.500'] },
|
|
184
|
-
inverted: { light: exports.colors['gray.50'], dark: exports.colors.black },
|
|
185
|
-
error: { light: exports.colors['red.500'], dark: exports.colors['red.400'] },
|
|
186
|
-
warning: {
|
|
187
|
-
light: exports.colors['orange.600'],
|
|
188
|
-
dark: exports.colors['orange.300'],
|
|
189
|
-
},
|
|
190
|
-
success: {
|
|
191
|
-
light: exports.colors['green.600'],
|
|
192
|
-
dark: exports.colors['green.300'],
|
|
193
|
-
},
|
|
194
|
-
info: { light: exports.colors['blue.600'], dark: exports.colors['blue.300'] },
|
|
195
|
-
},
|
|
196
|
-
gray: {
|
|
197
|
-
contrast: { light: exports.colors.white, dark: exports.colors.black },
|
|
198
|
-
fg: { light: exports.colors['gray.800'], dark: exports.colors['gray.200'] },
|
|
199
|
-
subtle: { light: exports.colors['gray.100'], dark: exports.colors['gray.900'] },
|
|
200
|
-
muted: { light: exports.colors['gray.200'], dark: exports.colors['gray.800'] },
|
|
201
|
-
emphasized: {
|
|
202
|
-
light: exports.colors['gray.300'],
|
|
203
|
-
dark: exports.colors['gray.700'],
|
|
204
|
-
},
|
|
205
|
-
solid: { light: exports.colors['gray.900'], dark: exports.colors.white },
|
|
206
|
-
focusRing: {
|
|
207
|
-
light: exports.colors['gray.400'],
|
|
208
|
-
dark: exports.colors['gray.400'],
|
|
209
|
-
},
|
|
210
|
-
border: { light: exports.colors['gray.200'], dark: exports.colors['gray.800'] },
|
|
211
|
-
},
|
|
212
|
-
red: {
|
|
213
|
-
contrast: { light: exports.colors.white, dark: exports.colors.white },
|
|
214
|
-
fg: { light: exports.colors['red.700'], dark: exports.colors['red.300'] },
|
|
215
|
-
subtle: { light: exports.colors['red.100'], dark: exports.colors['red.900'] },
|
|
216
|
-
muted: { light: exports.colors['red.200'], dark: exports.colors['red.800'] },
|
|
217
|
-
emphasized: { light: exports.colors['red.300'], dark: exports.colors['red.700'] },
|
|
218
|
-
solid: { light: exports.colors['red.600'], dark: exports.colors['red.600'] },
|
|
219
|
-
focusRing: { light: exports.colors['red.500'], dark: exports.colors['red.500'] },
|
|
220
|
-
border: { light: exports.colors['red.500'], dark: exports.colors['red.400'] },
|
|
221
|
-
},
|
|
222
|
-
pink: {
|
|
223
|
-
contrast: { light: exports.colors.white, dark: exports.colors.white },
|
|
224
|
-
fg: { light: exports.colors['pink.700'], dark: exports.colors['pink.300'] },
|
|
225
|
-
subtle: { light: exports.colors['pink.100'], dark: exports.colors['pink.900'] },
|
|
226
|
-
muted: { light: exports.colors['pink.200'], dark: exports.colors['pink.800'] },
|
|
227
|
-
emphasized: {
|
|
228
|
-
light: exports.colors['pink.300'],
|
|
229
|
-
dark: exports.colors['pink.700'],
|
|
230
|
-
},
|
|
231
|
-
solid: { light: exports.colors['pink.600'], dark: exports.colors['pink.600'] },
|
|
232
|
-
focusRing: {
|
|
233
|
-
light: exports.colors['pink.500'],
|
|
234
|
-
dark: exports.colors['pink.500'],
|
|
235
|
-
},
|
|
236
|
-
border: { light: exports.colors['pink.500'], dark: exports.colors['pink.400'] },
|
|
237
|
-
},
|
|
238
|
-
purple: {
|
|
239
|
-
contrast: { light: exports.colors.white, dark: exports.colors.white },
|
|
240
|
-
fg: { light: exports.colors['purple.700'], dark: exports.colors['purple.300'] },
|
|
241
|
-
subtle: {
|
|
242
|
-
light: exports.colors['purple.100'],
|
|
243
|
-
dark: exports.colors['purple.900'],
|
|
244
|
-
},
|
|
245
|
-
muted: {
|
|
246
|
-
light: exports.colors['purple.200'],
|
|
247
|
-
dark: exports.colors['purple.800'],
|
|
248
|
-
},
|
|
249
|
-
emphasized: {
|
|
250
|
-
light: exports.colors['purple.300'],
|
|
251
|
-
dark: exports.colors['purple.700'],
|
|
252
|
-
},
|
|
253
|
-
solid: {
|
|
254
|
-
light: exports.colors['purple.600'],
|
|
255
|
-
dark: exports.colors['purple.600'],
|
|
256
|
-
},
|
|
257
|
-
focusRing: {
|
|
258
|
-
light: exports.colors['purple.500'],
|
|
259
|
-
dark: exports.colors['purple.500'],
|
|
260
|
-
},
|
|
261
|
-
border: {
|
|
262
|
-
light: exports.colors['purple.500'],
|
|
263
|
-
dark: exports.colors['purple.400'],
|
|
264
|
-
},
|
|
265
|
-
},
|
|
266
|
-
cyan: {
|
|
267
|
-
contrast: { light: exports.colors.white, dark: exports.colors.white },
|
|
268
|
-
fg: { light: exports.colors['cyan.700'], dark: exports.colors['cyan.300'] },
|
|
269
|
-
subtle: { light: exports.colors['cyan.100'], dark: exports.colors['cyan.900'] },
|
|
270
|
-
muted: { light: exports.colors['cyan.200'], dark: exports.colors['cyan.800'] },
|
|
271
|
-
emphasized: {
|
|
272
|
-
light: exports.colors['cyan.300'],
|
|
273
|
-
dark: exports.colors['cyan.700'],
|
|
274
|
-
},
|
|
275
|
-
solid: { light: exports.colors['cyan.600'], dark: exports.colors['cyan.600'] },
|
|
276
|
-
focusRing: {
|
|
277
|
-
light: exports.colors['cyan.500'],
|
|
278
|
-
dark: exports.colors['cyan.500'],
|
|
279
|
-
},
|
|
280
|
-
border: { light: exports.colors['cyan.500'], dark: exports.colors['cyan.400'] },
|
|
281
|
-
},
|
|
282
|
-
blue: {
|
|
283
|
-
contrast: { light: exports.colors.white, dark: exports.colors.white },
|
|
284
|
-
fg: { light: exports.colors['blue.700'], dark: exports.colors['blue.300'] },
|
|
285
|
-
subtle: { light: exports.colors['blue.100'], dark: exports.colors['blue.900'] },
|
|
286
|
-
muted: { light: exports.colors['blue.200'], dark: exports.colors['blue.800'] },
|
|
287
|
-
emphasized: {
|
|
288
|
-
light: exports.colors['blue.300'],
|
|
289
|
-
dark: exports.colors['blue.700'],
|
|
290
|
-
},
|
|
291
|
-
solid: { light: exports.colors['blue.600'], dark: exports.colors['blue.600'] },
|
|
292
|
-
focusRing: {
|
|
293
|
-
light: exports.colors['blue.500'],
|
|
294
|
-
dark: exports.colors['blue.500'],
|
|
295
|
-
},
|
|
296
|
-
border: { light: exports.colors['blue.500'], dark: exports.colors['blue.400'] },
|
|
297
|
-
},
|
|
298
|
-
teal: {
|
|
299
|
-
contrast: { light: exports.colors.white, dark: exports.colors.white },
|
|
300
|
-
fg: { light: exports.colors['teal.700'], dark: exports.colors['teal.300'] },
|
|
301
|
-
subtle: { light: exports.colors['teal.100'], dark: exports.colors['teal.900'] },
|
|
302
|
-
muted: { light: exports.colors['teal.200'], dark: exports.colors['teal.800'] },
|
|
303
|
-
emphasized: {
|
|
304
|
-
light: exports.colors['teal.300'],
|
|
305
|
-
dark: exports.colors['teal.700'],
|
|
306
|
-
},
|
|
307
|
-
solid: { light: exports.colors['teal.600'], dark: exports.colors['teal.600'] },
|
|
308
|
-
focusRing: {
|
|
309
|
-
light: exports.colors['teal.500'],
|
|
310
|
-
dark: exports.colors['teal.500'],
|
|
311
|
-
},
|
|
312
|
-
border: { light: exports.colors['teal.500'], dark: exports.colors['teal.400'] },
|
|
313
|
-
},
|
|
314
|
-
green: {
|
|
315
|
-
contrast: { light: exports.colors.white, dark: exports.colors.white },
|
|
316
|
-
fg: { light: exports.colors['green.700'], dark: exports.colors['green.300'] },
|
|
317
|
-
subtle: { light: exports.colors['green.100'], dark: exports.colors['green.900'] },
|
|
318
|
-
muted: { light: exports.colors['green.200'], dark: exports.colors['green.800'] },
|
|
319
|
-
emphasized: {
|
|
320
|
-
light: exports.colors['green.300'],
|
|
321
|
-
dark: exports.colors['green.700'],
|
|
322
|
-
},
|
|
323
|
-
solid: { light: exports.colors['green.600'], dark: exports.colors['green.600'] },
|
|
324
|
-
focusRing: {
|
|
325
|
-
light: exports.colors['green.500'],
|
|
326
|
-
dark: exports.colors['green.500'],
|
|
327
|
-
},
|
|
328
|
-
border: { light: exports.colors['green.500'], dark: exports.colors['green.400'] },
|
|
329
|
-
},
|
|
330
|
-
yellow: {
|
|
331
|
-
contrast: { light: exports.colors.black, dark: exports.colors.black },
|
|
332
|
-
fg: { light: exports.colors['yellow.800'], dark: exports.colors['yellow.300'] },
|
|
333
|
-
subtle: {
|
|
334
|
-
light: exports.colors['yellow.100'],
|
|
335
|
-
dark: exports.colors['yellow.900'],
|
|
336
|
-
},
|
|
337
|
-
muted: {
|
|
338
|
-
light: exports.colors['yellow.200'],
|
|
339
|
-
dark: exports.colors['yellow.800'],
|
|
340
|
-
},
|
|
341
|
-
emphasized: {
|
|
342
|
-
light: exports.colors['yellow.300'],
|
|
343
|
-
dark: exports.colors['yellow.700'],
|
|
344
|
-
},
|
|
345
|
-
solid: {
|
|
346
|
-
light: exports.colors['yellow.300'],
|
|
347
|
-
dark: exports.colors['yellow.300'],
|
|
348
|
-
},
|
|
349
|
-
focusRing: {
|
|
350
|
-
light: exports.colors['yellow.500'],
|
|
351
|
-
dark: exports.colors['yellow.500'],
|
|
352
|
-
},
|
|
353
|
-
border: {
|
|
354
|
-
light: exports.colors['yellow.500'],
|
|
355
|
-
dark: exports.colors['yellow.500'],
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
orange: {
|
|
359
|
-
contrast: { light: exports.colors.white, dark: exports.colors.black },
|
|
360
|
-
fg: { light: exports.colors['orange.700'], dark: exports.colors['orange.300'] },
|
|
361
|
-
subtle: {
|
|
362
|
-
light: exports.colors['orange.100'],
|
|
363
|
-
dark: exports.colors['orange.900'],
|
|
364
|
-
},
|
|
365
|
-
muted: {
|
|
366
|
-
light: exports.colors['orange.200'],
|
|
367
|
-
dark: exports.colors['orange.800'],
|
|
368
|
-
},
|
|
369
|
-
emphasized: {
|
|
370
|
-
light: exports.colors['orange.300'],
|
|
371
|
-
dark: exports.colors['orange.700'],
|
|
372
|
-
},
|
|
373
|
-
solid: {
|
|
374
|
-
light: exports.colors['orange.600'],
|
|
375
|
-
dark: exports.colors['orange.600'],
|
|
376
|
-
},
|
|
377
|
-
focusRing: {
|
|
378
|
-
light: exports.colors['orange.500'],
|
|
379
|
-
dark: exports.colors['orange.500'],
|
|
380
|
-
},
|
|
381
|
-
border: {
|
|
382
|
-
light: exports.colors['orange.500'],
|
|
383
|
-
dark: exports.colors['orange.400'],
|
|
384
|
-
},
|
|
385
|
-
},
|
|
386
|
-
};
|
package/dist/cjs/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zIndices = exports.spacing = exports.shadows = exports.semanticColors = exports.radii = exports.lineHeights = exports.letterSpacings = exports.fontWeights = exports.fontSizes = exports.colors = exports.chakraUiTheme = void 0;
|
|
4
|
-
const config_1 = require("@react-native-rethemed/core/config");
|
|
5
|
-
const colors_1 = require("./colors");
|
|
6
|
-
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return colors_1.colors; } });
|
|
7
|
-
Object.defineProperty(exports, "semanticColors", { enumerable: true, get: function () { return colors_1.semanticColors; } });
|
|
8
|
-
const scales_1 = require("./scales");
|
|
9
|
-
Object.defineProperty(exports, "fontSizes", { enumerable: true, get: function () { return scales_1.fontSizes; } });
|
|
10
|
-
Object.defineProperty(exports, "fontWeights", { enumerable: true, get: function () { return scales_1.fontWeights; } });
|
|
11
|
-
Object.defineProperty(exports, "letterSpacings", { enumerable: true, get: function () { return scales_1.letterSpacings; } });
|
|
12
|
-
Object.defineProperty(exports, "lineHeights", { enumerable: true, get: function () { return scales_1.lineHeights; } });
|
|
13
|
-
Object.defineProperty(exports, "radii", { enumerable: true, get: function () { return scales_1.radii; } });
|
|
14
|
-
Object.defineProperty(exports, "shadows", { enumerable: true, get: function () { return scales_1.shadows; } });
|
|
15
|
-
Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return scales_1.spacing; } });
|
|
16
|
-
Object.defineProperty(exports, "zIndices", { enumerable: true, get: function () { return scales_1.zIndices; } });
|
|
17
|
-
exports.chakraUiTheme = (0, config_1.defineTheme)({
|
|
18
|
-
tokens: {
|
|
19
|
-
colors: colors_1.colors,
|
|
20
|
-
radii: scales_1.radii,
|
|
21
|
-
spacing: scales_1.spacing,
|
|
22
|
-
fontSizes: scales_1.fontSizes,
|
|
23
|
-
fontWeights: scales_1.fontWeights,
|
|
24
|
-
lineHeights: scales_1.lineHeights,
|
|
25
|
-
letterSpacings: scales_1.letterSpacings,
|
|
26
|
-
zIndices: scales_1.zIndices,
|
|
27
|
-
shadows: scales_1.shadows,
|
|
28
|
-
},
|
|
29
|
-
semanticTokens: {
|
|
30
|
-
colors: colors_1.semanticColors,
|
|
31
|
-
},
|
|
32
|
-
// Chakra's body text size; `lineHeights` are ratios of it when a style has
|
|
33
|
-
// no `fontSize` of its own.
|
|
34
|
-
defaults: {
|
|
35
|
-
fontSize: 'md',
|
|
36
|
-
},
|
|
37
|
-
});
|
package/dist/cjs/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|
package/dist/cjs/scales.d.ts
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Radius scale, aligned with Chakra UI's radii tokens.
|
|
3
|
-
* https://www.chakra-ui.com/docs/theming/radii
|
|
4
|
-
*/
|
|
5
|
-
export declare const radii: {
|
|
6
|
-
readonly none: 0;
|
|
7
|
-
readonly '2xs': 1;
|
|
8
|
-
readonly xs: 2;
|
|
9
|
-
readonly sm: 4;
|
|
10
|
-
readonly md: 6;
|
|
11
|
-
readonly lg: 8;
|
|
12
|
-
readonly xl: 12;
|
|
13
|
-
readonly '2xl': 16;
|
|
14
|
-
readonly '3xl': 24;
|
|
15
|
-
readonly '4xl': 32;
|
|
16
|
-
readonly full: 9999;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Spacing scale, aligned with Chakra UI's spacing tokens. 1 unit = 4px,
|
|
20
|
-
* matching Chakra/Tailwind's proportional scale.
|
|
21
|
-
* https://www.chakra-ui.com/docs/theming/spacing
|
|
22
|
-
*/
|
|
23
|
-
export declare const spacing: {
|
|
24
|
-
readonly px: 1;
|
|
25
|
-
readonly 0: 0;
|
|
26
|
-
readonly 0.5: 2;
|
|
27
|
-
readonly 1: 4;
|
|
28
|
-
readonly 1.5: 6;
|
|
29
|
-
readonly 2: 8;
|
|
30
|
-
readonly 2.5: 10;
|
|
31
|
-
readonly 3: 12;
|
|
32
|
-
readonly 3.5: 14;
|
|
33
|
-
readonly 4: 16;
|
|
34
|
-
readonly 5: 20;
|
|
35
|
-
readonly 6: 24;
|
|
36
|
-
readonly 7: 28;
|
|
37
|
-
readonly 8: 32;
|
|
38
|
-
readonly 9: 36;
|
|
39
|
-
readonly 10: 40;
|
|
40
|
-
readonly 11: 44;
|
|
41
|
-
readonly 12: 48;
|
|
42
|
-
readonly 14: 56;
|
|
43
|
-
readonly 16: 64;
|
|
44
|
-
readonly 20: 80;
|
|
45
|
-
readonly 24: 96;
|
|
46
|
-
readonly 28: 112;
|
|
47
|
-
readonly 32: 128;
|
|
48
|
-
readonly 36: 144;
|
|
49
|
-
readonly 40: 160;
|
|
50
|
-
readonly 44: 176;
|
|
51
|
-
readonly 48: 192;
|
|
52
|
-
readonly 52: 208;
|
|
53
|
-
readonly 56: 224;
|
|
54
|
-
readonly 60: 240;
|
|
55
|
-
readonly 64: 256;
|
|
56
|
-
readonly 72: 288;
|
|
57
|
-
readonly 80: 320;
|
|
58
|
-
readonly 96: 384;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Font size scale, aligned with Chakra UI's fontSizes tokens.
|
|
62
|
-
* https://www.chakra-ui.com/docs/theming/typography
|
|
63
|
-
*/
|
|
64
|
-
export declare const fontSizes: {
|
|
65
|
-
readonly '2xs': 10;
|
|
66
|
-
readonly xs: 12;
|
|
67
|
-
readonly sm: 14;
|
|
68
|
-
readonly md: 16;
|
|
69
|
-
readonly lg: 18;
|
|
70
|
-
readonly xl: 20;
|
|
71
|
-
readonly '2xl': 24;
|
|
72
|
-
readonly '3xl': 30;
|
|
73
|
-
readonly '4xl': 36;
|
|
74
|
-
readonly '5xl': 48;
|
|
75
|
-
readonly '6xl': 60;
|
|
76
|
-
readonly '7xl': 72;
|
|
77
|
-
readonly '8xl': 96;
|
|
78
|
-
readonly '9xl': 128;
|
|
79
|
-
};
|
|
80
|
-
/** Font weight scale — the standard 9-step CSS scale (thin..black). */
|
|
81
|
-
export declare const fontWeights: {
|
|
82
|
-
readonly thin: "100";
|
|
83
|
-
readonly extralight: "200";
|
|
84
|
-
readonly light: "300";
|
|
85
|
-
readonly normal: "400";
|
|
86
|
-
readonly medium: "500";
|
|
87
|
-
readonly semibold: "600";
|
|
88
|
-
readonly bold: "700";
|
|
89
|
-
readonly extrabold: "800";
|
|
90
|
-
readonly black: "900";
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Line height scale, aligned with Chakra UI's lineHeights tokens: unitless
|
|
94
|
-
* ratios, as Chakra defines them. `themed` resolves a token to
|
|
95
|
-
* `fontSize × ratio` (see `defaults.fontSize` for styles without a fontSize).
|
|
96
|
-
*/
|
|
97
|
-
export declare const lineHeights: {
|
|
98
|
-
readonly shorter: 1.25;
|
|
99
|
-
readonly short: 1.375;
|
|
100
|
-
readonly moderate: 1.5;
|
|
101
|
-
readonly tall: 1.625;
|
|
102
|
-
readonly taller: 2;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Letter spacing scale. Chakra's tokens are em-based; these are the
|
|
106
|
-
* approximate px equivalents at a 16px base font size.
|
|
107
|
-
*/
|
|
108
|
-
export declare const letterSpacings: {
|
|
109
|
-
readonly tighter: -0.8;
|
|
110
|
-
readonly tight: -0.4;
|
|
111
|
-
readonly wide: 0.4;
|
|
112
|
-
readonly wider: 0.8;
|
|
113
|
-
readonly widest: 1.6;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* z-index scale, aligned with Chakra UI's zIndices tokens.
|
|
117
|
-
* https://www.chakra-ui.com/docs/theming/z-index
|
|
118
|
-
*/
|
|
119
|
-
export declare const zIndices: {
|
|
120
|
-
readonly hide: -1;
|
|
121
|
-
readonly base: 0;
|
|
122
|
-
readonly docked: 10;
|
|
123
|
-
readonly dropdown: 1000;
|
|
124
|
-
readonly sticky: 1100;
|
|
125
|
-
readonly banner: 1200;
|
|
126
|
-
readonly overlay: 1300;
|
|
127
|
-
readonly modal: 1400;
|
|
128
|
-
readonly popover: 1500;
|
|
129
|
-
readonly skipNav: 1600;
|
|
130
|
-
readonly toast: 1700;
|
|
131
|
-
readonly tooltip: 1800;
|
|
132
|
-
readonly max: 2147483647;
|
|
133
|
-
};
|
|
134
|
-
export declare const shadows: {
|
|
135
|
-
readonly xs: {
|
|
136
|
-
readonly shadowColor: "#000000";
|
|
137
|
-
readonly shadowOffset: {
|
|
138
|
-
readonly width: 0;
|
|
139
|
-
readonly height: 1;
|
|
140
|
-
};
|
|
141
|
-
readonly shadowOpacity: 0.05;
|
|
142
|
-
readonly shadowRadius: 1;
|
|
143
|
-
readonly elevation: 1;
|
|
144
|
-
};
|
|
145
|
-
readonly sm: {
|
|
146
|
-
readonly shadowColor: "#000000";
|
|
147
|
-
readonly shadowOffset: {
|
|
148
|
-
readonly width: 0;
|
|
149
|
-
readonly height: 1;
|
|
150
|
-
};
|
|
151
|
-
readonly shadowOpacity: 0.1;
|
|
152
|
-
readonly shadowRadius: 2;
|
|
153
|
-
readonly elevation: 2;
|
|
154
|
-
};
|
|
155
|
-
readonly md: {
|
|
156
|
-
readonly shadowColor: "#000000";
|
|
157
|
-
readonly shadowOffset: {
|
|
158
|
-
readonly width: 0;
|
|
159
|
-
readonly height: 2;
|
|
160
|
-
};
|
|
161
|
-
readonly shadowOpacity: 0.12;
|
|
162
|
-
readonly shadowRadius: 6;
|
|
163
|
-
readonly elevation: 4;
|
|
164
|
-
};
|
|
165
|
-
readonly lg: {
|
|
166
|
-
readonly shadowColor: "#000000";
|
|
167
|
-
readonly shadowOffset: {
|
|
168
|
-
readonly width: 0;
|
|
169
|
-
readonly height: 4;
|
|
170
|
-
};
|
|
171
|
-
readonly shadowOpacity: 0.14;
|
|
172
|
-
readonly shadowRadius: 10;
|
|
173
|
-
readonly elevation: 8;
|
|
174
|
-
};
|
|
175
|
-
readonly xl: {
|
|
176
|
-
readonly shadowColor: "#000000";
|
|
177
|
-
readonly shadowOffset: {
|
|
178
|
-
readonly width: 0;
|
|
179
|
-
readonly height: 8;
|
|
180
|
-
};
|
|
181
|
-
readonly shadowOpacity: 0.16;
|
|
182
|
-
readonly shadowRadius: 16;
|
|
183
|
-
readonly elevation: 12;
|
|
184
|
-
};
|
|
185
|
-
readonly '2xl': {
|
|
186
|
-
readonly shadowColor: "#000000";
|
|
187
|
-
readonly shadowOffset: {
|
|
188
|
-
readonly width: 0;
|
|
189
|
-
readonly height: 12;
|
|
190
|
-
};
|
|
191
|
-
readonly shadowOpacity: 0.2;
|
|
192
|
-
readonly shadowRadius: 24;
|
|
193
|
-
readonly elevation: 16;
|
|
194
|
-
};
|
|
195
|
-
};
|