@react-native-rethemed/shadcn-ui-tokens 0.1.0 → 0.1.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/README.md +2 -0
- package/dist/index.cjs +35 -0
- package/dist/index.d.cts +153 -0
- package/dist/index.d.mts +153 -0
- package/dist/index.mjs +31 -0
- package/dist/tokens.gen.cjs +899 -0
- package/dist/tokens.gen.d.cts +897 -0
- package/dist/tokens.gen.d.mts +897 -0
- package/dist/tokens.gen.mjs +898 -0
- package/package.json +14 -16
- package/dist/cjs/index.d.ts +0 -151
- package/dist/cjs/index.js +0 -33
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/tokens.gen.d.ts +0 -895
- package/dist/cjs/tokens.gen.js +0 -249
- package/dist/esm/index.d.ts +0 -151
- package/dist/esm/index.js +0 -29
- package/dist/esm/package.json +0 -1
- package/dist/esm/tokens.gen.d.ts +0 -895
- package/dist/esm/tokens.gen.js +0 -246
package/dist/cjs/tokens.gen.js
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Generated by scripts/generate.ts from the shadcn/ui registry (shadcn-ui/ui@0e3abd6, synced 2026-10-06).
|
|
3
|
-
// Do not edit by hand: run `pnpm sync` and `pnpm generate` instead.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.radii = exports.baseColors = void 0;
|
|
6
|
-
/** Each base color's `cssVarsV4` as top-level semantic colors with shadcn/ui's names (`primary`, `primary-foreground`, `chart-1`, `sidebar-ring`), oklch converted to hex. */
|
|
7
|
-
exports.baseColors = {
|
|
8
|
-
neutral: {
|
|
9
|
-
background: { light: '#ffffff', dark: '#0a0a0a' },
|
|
10
|
-
foreground: { light: '#0a0a0a', dark: '#fafafa' },
|
|
11
|
-
card: { light: '#ffffff', dark: '#171717' },
|
|
12
|
-
'card-foreground': { light: '#0a0a0a', dark: '#fafafa' },
|
|
13
|
-
popover: { light: '#ffffff', dark: '#171717' },
|
|
14
|
-
'popover-foreground': { light: '#0a0a0a', dark: '#fafafa' },
|
|
15
|
-
primary: { light: '#171717', dark: '#e5e5e5' },
|
|
16
|
-
'primary-foreground': { light: '#fafafa', dark: '#171717' },
|
|
17
|
-
secondary: { light: '#f5f5f5', dark: '#262626' },
|
|
18
|
-
'secondary-foreground': { light: '#171717', dark: '#fafafa' },
|
|
19
|
-
muted: { light: '#f5f5f5', dark: '#262626' },
|
|
20
|
-
'muted-foreground': { light: '#737373', dark: '#a1a1a1' },
|
|
21
|
-
accent: { light: '#f5f5f5', dark: '#262626' },
|
|
22
|
-
'accent-foreground': { light: '#171717', dark: '#fafafa' },
|
|
23
|
-
destructive: { light: '#e7000b', dark: '#ff6467' },
|
|
24
|
-
border: { light: '#e5e5e5', dark: '#ffffff1a' },
|
|
25
|
-
input: { light: '#e5e5e5', dark: '#ffffff26' },
|
|
26
|
-
ring: { light: '#a1a1a1', dark: '#737373' },
|
|
27
|
-
'chart-1': { light: '#d4d4d4', dark: '#d4d4d4' },
|
|
28
|
-
'chart-2': { light: '#737373', dark: '#737373' },
|
|
29
|
-
'chart-3': { light: '#525252', dark: '#525252' },
|
|
30
|
-
'chart-4': { light: '#404040', dark: '#404040' },
|
|
31
|
-
'chart-5': { light: '#262626', dark: '#262626' },
|
|
32
|
-
sidebar: { light: '#fafafa', dark: '#171717' },
|
|
33
|
-
'sidebar-foreground': { light: '#0a0a0a', dark: '#fafafa' },
|
|
34
|
-
'sidebar-primary': { light: '#171717', dark: '#1447e6' },
|
|
35
|
-
'sidebar-primary-foreground': { light: '#fafafa', dark: '#fafafa' },
|
|
36
|
-
'sidebar-accent': { light: '#f5f5f5', dark: '#262626' },
|
|
37
|
-
'sidebar-accent-foreground': { light: '#171717', dark: '#fafafa' },
|
|
38
|
-
'sidebar-border': { light: '#e5e5e5', dark: '#ffffff1a' },
|
|
39
|
-
'sidebar-ring': { light: '#a1a1a1', dark: '#737373' },
|
|
40
|
-
},
|
|
41
|
-
stone: {
|
|
42
|
-
background: { light: '#ffffff', dark: '#0c0a09' },
|
|
43
|
-
foreground: { light: '#0c0a09', dark: '#fafaf9' },
|
|
44
|
-
card: { light: '#ffffff', dark: '#1c1917' },
|
|
45
|
-
'card-foreground': { light: '#0c0a09', dark: '#fafaf9' },
|
|
46
|
-
popover: { light: '#ffffff', dark: '#1c1917' },
|
|
47
|
-
'popover-foreground': { light: '#0c0a09', dark: '#fafaf9' },
|
|
48
|
-
primary: { light: '#1c1917', dark: '#e7e5e4' },
|
|
49
|
-
'primary-foreground': { light: '#fafaf9', dark: '#1c1917' },
|
|
50
|
-
secondary: { light: '#f5f5f4', dark: '#292524' },
|
|
51
|
-
'secondary-foreground': { light: '#1c1917', dark: '#fafaf9' },
|
|
52
|
-
muted: { light: '#f5f5f4', dark: '#292524' },
|
|
53
|
-
'muted-foreground': { light: '#79716b', dark: '#a6a09b' },
|
|
54
|
-
accent: { light: '#f5f5f4', dark: '#292524' },
|
|
55
|
-
'accent-foreground': { light: '#1c1917', dark: '#fafaf9' },
|
|
56
|
-
destructive: { light: '#e7000b', dark: '#ff6467' },
|
|
57
|
-
border: { light: '#e7e5e4', dark: '#ffffff1a' },
|
|
58
|
-
input: { light: '#e7e5e4', dark: '#ffffff26' },
|
|
59
|
-
ring: { light: '#a6a09b', dark: '#79716b' },
|
|
60
|
-
'chart-1': { light: '#d6d3d1', dark: '#d6d3d1' },
|
|
61
|
-
'chart-2': { light: '#79716b', dark: '#79716b' },
|
|
62
|
-
'chart-3': { light: '#57534d', dark: '#57534d' },
|
|
63
|
-
'chart-4': { light: '#44403b', dark: '#44403b' },
|
|
64
|
-
'chart-5': { light: '#292524', dark: '#292524' },
|
|
65
|
-
sidebar: { light: '#fafaf9', dark: '#1c1917' },
|
|
66
|
-
'sidebar-foreground': { light: '#0c0a09', dark: '#fafaf9' },
|
|
67
|
-
'sidebar-primary': { light: '#1c1917', dark: '#1447e6' },
|
|
68
|
-
'sidebar-primary-foreground': { light: '#fafaf9', dark: '#fafaf9' },
|
|
69
|
-
'sidebar-accent': { light: '#f5f5f4', dark: '#292524' },
|
|
70
|
-
'sidebar-accent-foreground': { light: '#1c1917', dark: '#fafaf9' },
|
|
71
|
-
'sidebar-border': { light: '#e7e5e4', dark: '#ffffff1a' },
|
|
72
|
-
'sidebar-ring': { light: '#a6a09b', dark: '#79716b' },
|
|
73
|
-
},
|
|
74
|
-
zinc: {
|
|
75
|
-
background: { light: '#ffffff', dark: '#09090b' },
|
|
76
|
-
foreground: { light: '#09090b', dark: '#fafafa' },
|
|
77
|
-
card: { light: '#ffffff', dark: '#18181b' },
|
|
78
|
-
'card-foreground': { light: '#09090b', dark: '#fafafa' },
|
|
79
|
-
popover: { light: '#ffffff', dark: '#18181b' },
|
|
80
|
-
'popover-foreground': { light: '#09090b', dark: '#fafafa' },
|
|
81
|
-
primary: { light: '#18181b', dark: '#e4e4e7' },
|
|
82
|
-
'primary-foreground': { light: '#fafafa', dark: '#18181b' },
|
|
83
|
-
secondary: { light: '#f4f4f5', dark: '#27272a' },
|
|
84
|
-
'secondary-foreground': { light: '#18181b', dark: '#fafafa' },
|
|
85
|
-
muted: { light: '#f4f4f5', dark: '#27272a' },
|
|
86
|
-
'muted-foreground': { light: '#71717b', dark: '#9f9fa9' },
|
|
87
|
-
accent: { light: '#f4f4f5', dark: '#27272a' },
|
|
88
|
-
'accent-foreground': { light: '#18181b', dark: '#fafafa' },
|
|
89
|
-
destructive: { light: '#e7000b', dark: '#ff6467' },
|
|
90
|
-
border: { light: '#e4e4e7', dark: '#ffffff1a' },
|
|
91
|
-
input: { light: '#e4e4e7', dark: '#ffffff26' },
|
|
92
|
-
ring: { light: '#9f9fa9', dark: '#71717b' },
|
|
93
|
-
'chart-1': { light: '#d4d4d8', dark: '#d4d4d8' },
|
|
94
|
-
'chart-2': { light: '#71717b', dark: '#71717b' },
|
|
95
|
-
'chart-3': { light: '#52525c', dark: '#52525c' },
|
|
96
|
-
'chart-4': { light: '#3f3f46', dark: '#3f3f46' },
|
|
97
|
-
'chart-5': { light: '#27272a', dark: '#27272a' },
|
|
98
|
-
sidebar: { light: '#fafafa', dark: '#18181b' },
|
|
99
|
-
'sidebar-foreground': { light: '#09090b', dark: '#fafafa' },
|
|
100
|
-
'sidebar-primary': { light: '#18181b', dark: '#1447e6' },
|
|
101
|
-
'sidebar-primary-foreground': { light: '#fafafa', dark: '#fafafa' },
|
|
102
|
-
'sidebar-accent': { light: '#f4f4f5', dark: '#27272a' },
|
|
103
|
-
'sidebar-accent-foreground': { light: '#18181b', dark: '#fafafa' },
|
|
104
|
-
'sidebar-border': { light: '#e4e4e7', dark: '#ffffff1a' },
|
|
105
|
-
'sidebar-ring': { light: '#9f9fa9', dark: '#71717b' },
|
|
106
|
-
},
|
|
107
|
-
mauve: {
|
|
108
|
-
background: { light: '#ffffff', dark: '#0c090c' },
|
|
109
|
-
foreground: { light: '#0c090c', dark: '#fafafa' },
|
|
110
|
-
card: { light: '#ffffff', dark: '#1d161e' },
|
|
111
|
-
'card-foreground': { light: '#0c090c', dark: '#fafafa' },
|
|
112
|
-
popover: { light: '#ffffff', dark: '#1d161e' },
|
|
113
|
-
'popover-foreground': { light: '#0c090c', dark: '#fafafa' },
|
|
114
|
-
primary: { light: '#1d161e', dark: '#e7e4e7' },
|
|
115
|
-
'primary-foreground': { light: '#fafafa', dark: '#1d161e' },
|
|
116
|
-
secondary: { light: '#f3f1f3', dark: '#2a212c' },
|
|
117
|
-
'secondary-foreground': { light: '#1d161e', dark: '#fafafa' },
|
|
118
|
-
muted: { light: '#f3f1f3', dark: '#2a212c' },
|
|
119
|
-
'muted-foreground': { light: '#79697b', dark: '#a89ea9' },
|
|
120
|
-
accent: { light: '#f3f1f3', dark: '#2a212c' },
|
|
121
|
-
'accent-foreground': { light: '#1d161e', dark: '#fafafa' },
|
|
122
|
-
destructive: { light: '#e7000b', dark: '#ff6467' },
|
|
123
|
-
border: { light: '#e7e4e7', dark: '#ffffff1a' },
|
|
124
|
-
input: { light: '#e7e4e7', dark: '#ffffff26' },
|
|
125
|
-
ring: { light: '#a89ea9', dark: '#79697b' },
|
|
126
|
-
'chart-1': { light: '#d7d0d7', dark: '#d7d0d7' },
|
|
127
|
-
'chart-2': { light: '#79697b', dark: '#79697b' },
|
|
128
|
-
'chart-3': { light: '#594c5b', dark: '#594c5b' },
|
|
129
|
-
'chart-4': { light: '#463947', dark: '#463947' },
|
|
130
|
-
'chart-5': { light: '#2a212c', dark: '#2a212c' },
|
|
131
|
-
sidebar: { light: '#fafafa', dark: '#1d161e' },
|
|
132
|
-
'sidebar-foreground': { light: '#0c090c', dark: '#fafafa' },
|
|
133
|
-
'sidebar-primary': { light: '#1d161e', dark: '#1447e6' },
|
|
134
|
-
'sidebar-primary-foreground': { light: '#fafafa', dark: '#fafafa' },
|
|
135
|
-
'sidebar-accent': { light: '#f3f1f3', dark: '#2a212c' },
|
|
136
|
-
'sidebar-accent-foreground': { light: '#1d161e', dark: '#fafafa' },
|
|
137
|
-
'sidebar-border': { light: '#e7e4e7', dark: '#ffffff1a' },
|
|
138
|
-
'sidebar-ring': { light: '#a89ea9', dark: '#79697b' },
|
|
139
|
-
},
|
|
140
|
-
olive: {
|
|
141
|
-
background: { light: '#ffffff', dark: '#0c0c09' },
|
|
142
|
-
foreground: { light: '#0c0c09', dark: '#fbfbf9' },
|
|
143
|
-
card: { light: '#ffffff', dark: '#1d1d16' },
|
|
144
|
-
'card-foreground': { light: '#0c0c09', dark: '#fbfbf9' },
|
|
145
|
-
popover: { light: '#ffffff', dark: '#1d1d16' },
|
|
146
|
-
'popover-foreground': { light: '#0c0c09', dark: '#fbfbf9' },
|
|
147
|
-
primary: { light: '#1d1d16', dark: '#e8e8e3' },
|
|
148
|
-
'primary-foreground': { light: '#fbfbf9', dark: '#1d1d16' },
|
|
149
|
-
secondary: { light: '#f4f4f0', dark: '#2b2b22' },
|
|
150
|
-
'secondary-foreground': { light: '#1d1d16', dark: '#fbfbf9' },
|
|
151
|
-
muted: { light: '#f4f4f0', dark: '#2b2b22' },
|
|
152
|
-
'muted-foreground': { light: '#7c7c67', dark: '#abab9c' },
|
|
153
|
-
accent: { light: '#f4f4f0', dark: '#2b2b22' },
|
|
154
|
-
'accent-foreground': { light: '#1d1d16', dark: '#fbfbf9' },
|
|
155
|
-
destructive: { light: '#e7000b', dark: '#ff6467' },
|
|
156
|
-
border: { light: '#e8e8e3', dark: '#ffffff1a' },
|
|
157
|
-
input: { light: '#e8e8e3', dark: '#ffffff26' },
|
|
158
|
-
ring: { light: '#abab9c', dark: '#7c7c67' },
|
|
159
|
-
'chart-1': { light: '#d8d8d0', dark: '#d8d8d0' },
|
|
160
|
-
'chart-2': { light: '#7c7c67', dark: '#7c7c67' },
|
|
161
|
-
'chart-3': { light: '#5b5b4b', dark: '#5b5b4b' },
|
|
162
|
-
'chart-4': { light: '#474739', dark: '#474739' },
|
|
163
|
-
'chart-5': { light: '#2b2b22', dark: '#2b2b22' },
|
|
164
|
-
sidebar: { light: '#fbfbf9', dark: '#1d1d16' },
|
|
165
|
-
'sidebar-foreground': { light: '#0c0c09', dark: '#fbfbf9' },
|
|
166
|
-
'sidebar-primary': { light: '#1d1d16', dark: '#1447e6' },
|
|
167
|
-
'sidebar-primary-foreground': { light: '#fbfbf9', dark: '#fbfbf9' },
|
|
168
|
-
'sidebar-accent': { light: '#f4f4f0', dark: '#2b2b22' },
|
|
169
|
-
'sidebar-accent-foreground': { light: '#1d1d16', dark: '#fbfbf9' },
|
|
170
|
-
'sidebar-border': { light: '#e8e8e3', dark: '#ffffff1a' },
|
|
171
|
-
'sidebar-ring': { light: '#abab9c', dark: '#7c7c67' },
|
|
172
|
-
},
|
|
173
|
-
mist: {
|
|
174
|
-
background: { light: '#ffffff', dark: '#090b0c' },
|
|
175
|
-
foreground: { light: '#090b0c', dark: '#f9fbfb' },
|
|
176
|
-
card: { light: '#ffffff', dark: '#161b1d' },
|
|
177
|
-
'card-foreground': { light: '#090b0c', dark: '#f9fbfb' },
|
|
178
|
-
popover: { light: '#ffffff', dark: '#161b1d' },
|
|
179
|
-
'popover-foreground': { light: '#090b0c', dark: '#f9fbfb' },
|
|
180
|
-
primary: { light: '#161b1d', dark: '#e3e7e8' },
|
|
181
|
-
'primary-foreground': { light: '#f9fbfb', dark: '#161b1d' },
|
|
182
|
-
secondary: { light: '#f1f3f3', dark: '#22292b' },
|
|
183
|
-
'secondary-foreground': { light: '#161b1d', dark: '#f9fbfb' },
|
|
184
|
-
muted: { light: '#f1f3f3', dark: '#22292b' },
|
|
185
|
-
'muted-foreground': { light: '#67787c', dark: '#9ca8ab' },
|
|
186
|
-
accent: { light: '#f1f3f3', dark: '#22292b' },
|
|
187
|
-
'accent-foreground': { light: '#161b1d', dark: '#f9fbfb' },
|
|
188
|
-
destructive: { light: '#e7000b', dark: '#ff6467' },
|
|
189
|
-
border: { light: '#e3e7e8', dark: '#ffffff1a' },
|
|
190
|
-
input: { light: '#e3e7e8', dark: '#ffffff26' },
|
|
191
|
-
ring: { light: '#9ca8ab', dark: '#67787c' },
|
|
192
|
-
'chart-1': { light: '#d0d6d8', dark: '#d0d6d8' },
|
|
193
|
-
'chart-2': { light: '#67787c', dark: '#67787c' },
|
|
194
|
-
'chart-3': { light: '#4b585b', dark: '#4b585b' },
|
|
195
|
-
'chart-4': { light: '#394447', dark: '#394447' },
|
|
196
|
-
'chart-5': { light: '#22292b', dark: '#22292b' },
|
|
197
|
-
sidebar: { light: '#f9fbfb', dark: '#161b1d' },
|
|
198
|
-
'sidebar-foreground': { light: '#090b0c', dark: '#f9fbfb' },
|
|
199
|
-
'sidebar-primary': { light: '#161b1d', dark: '#1447e6' },
|
|
200
|
-
'sidebar-primary-foreground': { light: '#f9fbfb', dark: '#f9fbfb' },
|
|
201
|
-
'sidebar-accent': { light: '#f1f3f3', dark: '#22292b' },
|
|
202
|
-
'sidebar-accent-foreground': { light: '#161b1d', dark: '#f9fbfb' },
|
|
203
|
-
'sidebar-border': { light: '#e3e7e8', dark: '#ffffff1a' },
|
|
204
|
-
'sidebar-ring': { light: '#9ca8ab', dark: '#67787c' },
|
|
205
|
-
},
|
|
206
|
-
taupe: {
|
|
207
|
-
background: { light: '#ffffff', dark: '#0c0a09' },
|
|
208
|
-
foreground: { light: '#0c0a09', dark: '#fbfaf9' },
|
|
209
|
-
card: { light: '#ffffff', dark: '#1d1816' },
|
|
210
|
-
'card-foreground': { light: '#0c0a09', dark: '#fbfaf9' },
|
|
211
|
-
popover: { light: '#ffffff', dark: '#1d1816' },
|
|
212
|
-
'popover-foreground': { light: '#0c0a09', dark: '#fbfaf9' },
|
|
213
|
-
primary: { light: '#1d1816', dark: '#e8e4e3' },
|
|
214
|
-
'primary-foreground': { light: '#fbfaf9', dark: '#1d1816' },
|
|
215
|
-
secondary: { light: '#f3f1f1', dark: '#2b2422' },
|
|
216
|
-
'secondary-foreground': { light: '#1d1816', dark: '#fbfaf9' },
|
|
217
|
-
muted: { light: '#f3f1f1', dark: '#2b2422' },
|
|
218
|
-
'muted-foreground': { light: '#7c6d67', dark: '#aba09c' },
|
|
219
|
-
accent: { light: '#f3f1f1', dark: '#2b2422' },
|
|
220
|
-
'accent-foreground': { light: '#1d1816', dark: '#fbfaf9' },
|
|
221
|
-
destructive: { light: '#e7000b', dark: '#ff6467' },
|
|
222
|
-
border: { light: '#e8e4e3', dark: '#ffffff1a' },
|
|
223
|
-
input: { light: '#e8e4e3', dark: '#ffffff26' },
|
|
224
|
-
ring: { light: '#aba09c', dark: '#7c6d67' },
|
|
225
|
-
'chart-1': { light: '#d8d2d0', dark: '#d8d2d0' },
|
|
226
|
-
'chart-2': { light: '#7c6d67', dark: '#7c6d67' },
|
|
227
|
-
'chart-3': { light: '#5b4f4b', dark: '#5b4f4b' },
|
|
228
|
-
'chart-4': { light: '#473c39', dark: '#473c39' },
|
|
229
|
-
'chart-5': { light: '#2b2422', dark: '#2b2422' },
|
|
230
|
-
sidebar: { light: '#fbfaf9', dark: '#1d1816' },
|
|
231
|
-
'sidebar-foreground': { light: '#0c0a09', dark: '#fbfaf9' },
|
|
232
|
-
'sidebar-primary': { light: '#1d1816', dark: '#1447e6' },
|
|
233
|
-
'sidebar-primary-foreground': { light: '#fbfaf9', dark: '#fbfaf9' },
|
|
234
|
-
'sidebar-accent': { light: '#f3f1f1', dark: '#2b2422' },
|
|
235
|
-
'sidebar-accent-foreground': { light: '#1d1816', dark: '#fbfaf9' },
|
|
236
|
-
'sidebar-border': { light: '#e8e4e3', dark: '#ffffff1a' },
|
|
237
|
-
'sidebar-ring': { light: '#aba09c', dark: '#7c6d67' },
|
|
238
|
-
},
|
|
239
|
-
};
|
|
240
|
-
/** `--radius` (0.625rem) and the `radius-*` scale shadcn/ui derives from it, in points. */
|
|
241
|
-
exports.radii = {
|
|
242
|
-
sm: 6,
|
|
243
|
-
md: 8,
|
|
244
|
-
lg: 10,
|
|
245
|
-
xl: 14,
|
|
246
|
-
'2xl': 18,
|
|
247
|
-
'3xl': 22,
|
|
248
|
-
'4xl': 26,
|
|
249
|
-
};
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { baseColors, radii } from './tokens.gen.js';
|
|
2
|
-
/** A shadcn/ui base color: `neutral` (the default), `stone`, `zinc`, … */
|
|
3
|
-
export type BaseColor = keyof typeof baseColors;
|
|
4
|
-
/** The default base color's semantic colors (`neutral`). */
|
|
5
|
-
export declare const semanticColors: {
|
|
6
|
-
readonly background: {
|
|
7
|
-
readonly light: "#ffffff";
|
|
8
|
-
readonly dark: "#0a0a0a";
|
|
9
|
-
};
|
|
10
|
-
readonly foreground: {
|
|
11
|
-
readonly light: "#0a0a0a";
|
|
12
|
-
readonly dark: "#fafafa";
|
|
13
|
-
};
|
|
14
|
-
readonly card: {
|
|
15
|
-
readonly light: "#ffffff";
|
|
16
|
-
readonly dark: "#171717";
|
|
17
|
-
};
|
|
18
|
-
readonly 'card-foreground': {
|
|
19
|
-
readonly light: "#0a0a0a";
|
|
20
|
-
readonly dark: "#fafafa";
|
|
21
|
-
};
|
|
22
|
-
readonly popover: {
|
|
23
|
-
readonly light: "#ffffff";
|
|
24
|
-
readonly dark: "#171717";
|
|
25
|
-
};
|
|
26
|
-
readonly 'popover-foreground': {
|
|
27
|
-
readonly light: "#0a0a0a";
|
|
28
|
-
readonly dark: "#fafafa";
|
|
29
|
-
};
|
|
30
|
-
readonly primary: {
|
|
31
|
-
readonly light: "#171717";
|
|
32
|
-
readonly dark: "#e5e5e5";
|
|
33
|
-
};
|
|
34
|
-
readonly 'primary-foreground': {
|
|
35
|
-
readonly light: "#fafafa";
|
|
36
|
-
readonly dark: "#171717";
|
|
37
|
-
};
|
|
38
|
-
readonly secondary: {
|
|
39
|
-
readonly light: "#f5f5f5";
|
|
40
|
-
readonly dark: "#262626";
|
|
41
|
-
};
|
|
42
|
-
readonly 'secondary-foreground': {
|
|
43
|
-
readonly light: "#171717";
|
|
44
|
-
readonly dark: "#fafafa";
|
|
45
|
-
};
|
|
46
|
-
readonly muted: {
|
|
47
|
-
readonly light: "#f5f5f5";
|
|
48
|
-
readonly dark: "#262626";
|
|
49
|
-
};
|
|
50
|
-
readonly 'muted-foreground': {
|
|
51
|
-
readonly light: "#737373";
|
|
52
|
-
readonly dark: "#a1a1a1";
|
|
53
|
-
};
|
|
54
|
-
readonly accent: {
|
|
55
|
-
readonly light: "#f5f5f5";
|
|
56
|
-
readonly dark: "#262626";
|
|
57
|
-
};
|
|
58
|
-
readonly 'accent-foreground': {
|
|
59
|
-
readonly light: "#171717";
|
|
60
|
-
readonly dark: "#fafafa";
|
|
61
|
-
};
|
|
62
|
-
readonly destructive: {
|
|
63
|
-
readonly light: "#e7000b";
|
|
64
|
-
readonly dark: "#ff6467";
|
|
65
|
-
};
|
|
66
|
-
readonly border: {
|
|
67
|
-
readonly light: "#e5e5e5";
|
|
68
|
-
readonly dark: "#ffffff1a";
|
|
69
|
-
};
|
|
70
|
-
readonly input: {
|
|
71
|
-
readonly light: "#e5e5e5";
|
|
72
|
-
readonly dark: "#ffffff26";
|
|
73
|
-
};
|
|
74
|
-
readonly ring: {
|
|
75
|
-
readonly light: "#a1a1a1";
|
|
76
|
-
readonly dark: "#737373";
|
|
77
|
-
};
|
|
78
|
-
readonly 'chart-1': {
|
|
79
|
-
readonly light: "#d4d4d4";
|
|
80
|
-
readonly dark: "#d4d4d4";
|
|
81
|
-
};
|
|
82
|
-
readonly 'chart-2': {
|
|
83
|
-
readonly light: "#737373";
|
|
84
|
-
readonly dark: "#737373";
|
|
85
|
-
};
|
|
86
|
-
readonly 'chart-3': {
|
|
87
|
-
readonly light: "#525252";
|
|
88
|
-
readonly dark: "#525252";
|
|
89
|
-
};
|
|
90
|
-
readonly 'chart-4': {
|
|
91
|
-
readonly light: "#404040";
|
|
92
|
-
readonly dark: "#404040";
|
|
93
|
-
};
|
|
94
|
-
readonly 'chart-5': {
|
|
95
|
-
readonly light: "#262626";
|
|
96
|
-
readonly dark: "#262626";
|
|
97
|
-
};
|
|
98
|
-
readonly sidebar: {
|
|
99
|
-
readonly light: "#fafafa";
|
|
100
|
-
readonly dark: "#171717";
|
|
101
|
-
};
|
|
102
|
-
readonly 'sidebar-foreground': {
|
|
103
|
-
readonly light: "#0a0a0a";
|
|
104
|
-
readonly dark: "#fafafa";
|
|
105
|
-
};
|
|
106
|
-
readonly 'sidebar-primary': {
|
|
107
|
-
readonly light: "#171717";
|
|
108
|
-
readonly dark: "#1447e6";
|
|
109
|
-
};
|
|
110
|
-
readonly 'sidebar-primary-foreground': {
|
|
111
|
-
readonly light: "#fafafa";
|
|
112
|
-
readonly dark: "#fafafa";
|
|
113
|
-
};
|
|
114
|
-
readonly 'sidebar-accent': {
|
|
115
|
-
readonly light: "#f5f5f5";
|
|
116
|
-
readonly dark: "#262626";
|
|
117
|
-
};
|
|
118
|
-
readonly 'sidebar-accent-foreground': {
|
|
119
|
-
readonly light: "#171717";
|
|
120
|
-
readonly dark: "#fafafa";
|
|
121
|
-
};
|
|
122
|
-
readonly 'sidebar-border': {
|
|
123
|
-
readonly light: "#e5e5e5";
|
|
124
|
-
readonly dark: "#ffffff1a";
|
|
125
|
-
};
|
|
126
|
-
readonly 'sidebar-ring': {
|
|
127
|
-
readonly light: "#a1a1a1";
|
|
128
|
-
readonly dark: "#737373";
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* shadcn/ui's default theme (base color `neutral`), converted for React
|
|
133
|
-
* Native. shadcn/ui is Tailwind CSS plus CSS variables, so this is
|
|
134
|
-
* `tailwindCssTheme` (spacing, typography, shadows, the color palette) with
|
|
135
|
-
* shadcn/ui's colors and radii on top, the same layering as a shadcn/ui
|
|
136
|
-
* project's `globals.css`.
|
|
137
|
-
*
|
|
138
|
-
* - Semantic colors use shadcn/ui's names as top-level colors, so styles
|
|
139
|
-
* read like the class names: `bg-primary text-primary-foreground` is
|
|
140
|
-
* `themed.view({ backgroundColor: 'primary' })` /
|
|
141
|
-
* `themed.text({ color: 'primary-foreground' })`. oklch is converted to
|
|
142
|
-
* hex; translucent dark-mode borders become 8-digit hex.
|
|
143
|
-
* - `radii`: `--radius` (10) and the `radius-sm`…`radius-4xl` scale derived
|
|
144
|
-
* from it replace Tailwind's, like shadcn/ui's `@theme inline`.
|
|
145
|
-
* - Other base colors: `baseColors.zinc`, … — switch with
|
|
146
|
-
* `extendTheme(shadcnUiTheme, { semanticTokens: { colors: baseColors.zinc } })`.
|
|
147
|
-
* - Values come from the shadcn/ui registry snapshot in `scripts/registry/`
|
|
148
|
-
* (`pnpm sync`), converted by `scripts/generate.ts`.
|
|
149
|
-
*/
|
|
150
|
-
export declare const shadcnUiTheme: import("@react-native-rethemed/core/config").ThemeConfig;
|
|
151
|
-
export { baseColors, radii };
|
package/dist/esm/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { extendTheme } from '@react-native-rethemed/core/config';
|
|
2
|
-
import { tailwindCssTheme } from '@react-native-rethemed/tailwind-css-tokens';
|
|
3
|
-
import { baseColors, radii } from './tokens.gen.js';
|
|
4
|
-
/** The default base color's semantic colors (`neutral`). */
|
|
5
|
-
export const semanticColors = baseColors.neutral;
|
|
6
|
-
/**
|
|
7
|
-
* shadcn/ui's default theme (base color `neutral`), converted for React
|
|
8
|
-
* Native. shadcn/ui is Tailwind CSS plus CSS variables, so this is
|
|
9
|
-
* `tailwindCssTheme` (spacing, typography, shadows, the color palette) with
|
|
10
|
-
* shadcn/ui's colors and radii on top, the same layering as a shadcn/ui
|
|
11
|
-
* project's `globals.css`.
|
|
12
|
-
*
|
|
13
|
-
* - Semantic colors use shadcn/ui's names as top-level colors, so styles
|
|
14
|
-
* read like the class names: `bg-primary text-primary-foreground` is
|
|
15
|
-
* `themed.view({ backgroundColor: 'primary' })` /
|
|
16
|
-
* `themed.text({ color: 'primary-foreground' })`. oklch is converted to
|
|
17
|
-
* hex; translucent dark-mode borders become 8-digit hex.
|
|
18
|
-
* - `radii`: `--radius` (10) and the `radius-sm`…`radius-4xl` scale derived
|
|
19
|
-
* from it replace Tailwind's, like shadcn/ui's `@theme inline`.
|
|
20
|
-
* - Other base colors: `baseColors.zinc`, … — switch with
|
|
21
|
-
* `extendTheme(shadcnUiTheme, { semanticTokens: { colors: baseColors.zinc } })`.
|
|
22
|
-
* - Values come from the shadcn/ui registry snapshot in `scripts/registry/`
|
|
23
|
-
* (`pnpm sync`), converted by `scripts/generate.ts`.
|
|
24
|
-
*/
|
|
25
|
-
export const shadcnUiTheme = extendTheme(tailwindCssTheme, {
|
|
26
|
-
tokens: { radii },
|
|
27
|
-
semanticTokens: { colors: semanticColors },
|
|
28
|
-
});
|
|
29
|
-
export { baseColors, radii };
|
package/dist/esm/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module"}
|