@lark-apaas/miaoda-core 0.0.1-alpha.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/LICENSE +13 -0
- package/README.md +8 -0
- package/lib/apis/components/AppContainer.d.ts +1 -0
- package/lib/apis/components/AppContainer.js +2 -0
- package/lib/apis/components/ErrorRender.d.ts +1 -0
- package/lib/apis/components/ErrorRender.js +2 -0
- package/lib/apis/components/NotFoundRender.d.ts +1 -0
- package/lib/apis/components/NotFoundRender.js +2 -0
- package/lib/apis/components/SidebarNav.d.ts +1 -0
- package/lib/apis/components/SidebarNav.js +2 -0
- package/lib/apis/components/User.d.ts +1 -0
- package/lib/apis/components/User.js +1 -0
- package/lib/apis/components/Welcome.d.ts +1 -0
- package/lib/apis/components/Welcome.js +2 -0
- package/lib/apis/constants/img-resources/avatar.d.ts +11 -0
- package/lib/apis/constants/img-resources/avatar.js +12 -0
- package/lib/apis/constants/img-resources/banner.d.ts +24 -0
- package/lib/apis/constants/img-resources/banner.js +25 -0
- package/lib/apis/constants/img-resources/cover.d.ts +36 -0
- package/lib/apis/constants/img-resources/cover.js +37 -0
- package/lib/apis/dataloom.d.ts +1 -0
- package/lib/apis/dataloom.js +2 -0
- package/lib/apis/hooks/useAppInfo.d.ts +1 -0
- package/lib/apis/hooks/useAppInfo.js +1 -0
- package/lib/apis/hooks/useCurrentUserProfile.d.ts +1 -0
- package/lib/apis/hooks/useCurrentUserProfile.js +1 -0
- package/lib/apis/logger.d.ts +1 -0
- package/lib/apis/logger.js +1 -0
- package/lib/apis/tools/generateImage.d.ts +1 -0
- package/lib/apis/tools/generateImage.js +1 -0
- package/lib/apis/tools/generateTextStream.d.ts +1 -0
- package/lib/apis/tools/generateTextStream.js +1 -0
- package/lib/apis/tools/getAppInfo.d.ts +1 -0
- package/lib/apis/tools/getAppInfo.js +1 -0
- package/lib/apis/tools/getCurrentUserProfile.d.ts +1 -0
- package/lib/apis/tools/getCurrentUserProfile.js +1 -0
- package/lib/apis/tools/storage.d.ts +1 -0
- package/lib/apis/tools/storage.js +4 -0
- package/lib/apis/udt-types.d.ts +16 -0
- package/lib/apis/udt-types.js +0 -0
- package/lib/apis/utils/registerChinaMap.d.ts +1 -0
- package/lib/apis/utils/registerChinaMap.js +103319 -0
- package/lib/components/AppContainer/IframeBridge.d.ts +4 -0
- package/lib/components/AppContainer/IframeBridge.js +92 -0
- package/lib/components/AppContainer/LogInterceptor.d.ts +1 -0
- package/lib/components/AppContainer/LogInterceptor.js +44 -0
- package/lib/components/AppContainer/PageHoc.d.ts +4 -0
- package/lib/components/AppContainer/PageHoc.js +40 -0
- package/lib/components/AppContainer/api-proxy/core.d.ts +188 -0
- package/lib/components/AppContainer/api-proxy/core.js +290 -0
- package/lib/components/AppContainer/dayjsPlugins.d.ts +1 -0
- package/lib/components/AppContainer/dayjsPlugins.js +69 -0
- package/lib/components/AppContainer/index.d.ts +7 -0
- package/lib/components/AppContainer/index.js +65 -0
- package/lib/components/AppContainer/sonner.css +101 -0
- package/lib/components/AppContainer/sonner.d.ts +8 -0
- package/lib/components/AppContainer/sonner.js +26 -0
- package/lib/components/AppContainer/utils/api-panel.d.ts +11 -0
- package/lib/components/AppContainer/utils/api-panel.js +21 -0
- package/lib/components/AppContainer/utils/childApi.d.ts +5 -0
- package/lib/components/AppContainer/utils/childApi.js +26 -0
- package/lib/components/AppContainer/utils/listenHot.d.ts +1 -0
- package/lib/components/AppContainer/utils/listenHot.js +43 -0
- package/lib/components/ErrorRender/index.d.ts +5 -0
- package/lib/components/ErrorRender/index.js +79 -0
- package/lib/components/NotFoundRender/index.d.ts +3 -0
- package/lib/components/NotFoundRender/index.js +59 -0
- package/lib/components/SidebarNav/DrawerNav.d.ts +3 -0
- package/lib/components/SidebarNav/DrawerNav.js +64 -0
- package/lib/components/SidebarNav/DropdownNav.d.ts +3 -0
- package/lib/components/SidebarNav/DropdownNav.js +40 -0
- package/lib/components/SidebarNav/Sidebar.d.ts +3 -0
- package/lib/components/SidebarNav/Sidebar.js +33 -0
- package/lib/components/SidebarNav/index.d.ts +5 -0
- package/lib/components/SidebarNav/index.js +61 -0
- package/lib/components/User/UserDisplay.d.ts +9 -0
- package/lib/components/User/UserDisplay.js +39 -0
- package/lib/components/User/UserProfile/UserProfile.css +34 -0
- package/lib/components/User/UserProfile/UserProfile.d.ts +6 -0
- package/lib/components/User/UserProfile/UserProfile.js +41 -0
- package/lib/components/User/UserProfile/UserProfileContainer.d.ts +4 -0
- package/lib/components/User/UserProfile/UserProfileContainer.js +8 -0
- package/lib/components/User/UserProfile/UserProfileSkeleton.d.ts +3 -0
- package/lib/components/User/UserProfile/UserProfileSkeleton.js +36 -0
- package/lib/components/User/UserProfile/UserProfileUI.d.ts +8 -0
- package/lib/components/User/UserProfile/UserProfileUI.js +113 -0
- package/lib/components/User/UserProfile/index.d.ts +1 -0
- package/lib/components/User/UserProfile/index.js +2 -0
- package/lib/components/User/UserProfile/type.d.ts +8 -0
- package/lib/components/User/UserProfile/type.js +0 -0
- package/lib/components/User/UserProfile/utils.d.ts +5 -0
- package/lib/components/User/UserProfile/utils.js +26 -0
- package/lib/components/User/UserSelect.css +11 -0
- package/lib/components/User/UserSelect.d.ts +11 -0
- package/lib/components/User/UserSelect.js +172 -0
- package/lib/components/User/UserWithAvatar.d.ts +3 -0
- package/lib/components/User/UserWithAvatar.js +41 -0
- package/lib/components/User/index.d.ts +7 -0
- package/lib/components/User/index.js +5 -0
- package/lib/components/User/type.d.ts +13 -0
- package/lib/components/User/type.js +0 -0
- package/lib/components/Welcome/index.d.ts +3 -0
- package/lib/components/Welcome/index.js +17 -0
- package/lib/components/common/LogoInfo.d.ts +5 -0
- package/lib/components/common/LogoInfo.js +30 -0
- package/lib/components/common/NavItem.d.ts +20 -0
- package/lib/components/common/NavItem.js +112 -0
- package/lib/components/common/NavMenu.d.ts +9 -0
- package/lib/components/common/NavMenu.js +50 -0
- package/lib/components/common/UserAvatarLayout.d.ts +4 -0
- package/lib/components/common/UserAvatarLayout.js +41 -0
- package/lib/components/common/UserAvatarMenu.d.ts +4 -0
- package/lib/components/common/UserAvatarMenu.js +58 -0
- package/lib/components/common/index.d.ts +9 -0
- package/lib/components/common/index.js +10 -0
- package/lib/components/index.d.ts +8 -0
- package/lib/components/index.js +6 -0
- package/lib/components/theme/ThemeProvider.d.ts +20 -0
- package/lib/components/theme/ThemeProvider.js +75 -0
- package/lib/components/theme/constants.d.ts +48 -0
- package/lib/components/theme/constants.js +557 -0
- package/lib/components/theme/index.d.ts +4 -0
- package/lib/components/theme/index.js +5 -0
- package/lib/components/theme/miaoDarkTheme.d.ts +2 -0
- package/lib/components/theme/miaoDarkTheme.js +310 -0
- package/lib/components/theme/miaoLightTheme.d.ts +2 -0
- package/lib/components/theme/miaoLightTheme.js +296 -0
- package/lib/components/theme/ui-config.d.ts +1 -0
- package/lib/components/theme/ui-config.js +2 -0
- package/lib/components/theme/util.d.ts +20 -0
- package/lib/components/theme/util.js +188 -0
- package/lib/font-family.css +40 -0
- package/lib/hooks/index.d.ts +5 -0
- package/lib/hooks/index.js +5 -0
- package/lib/hooks/useAppInfo.d.ts +6 -0
- package/lib/hooks/useAppInfo.js +21 -0
- package/lib/hooks/useCurrentUserProfile.d.ts +12 -0
- package/lib/hooks/useCurrentUserProfile.js +58 -0
- package/lib/hooks/useIsMobile.d.ts +1 -0
- package/lib/hooks/useIsMobile.js +20 -0
- package/lib/hooks/useLogout.d.ts +4 -0
- package/lib/hooks/useLogout.js +37 -0
- package/lib/hooks/useTheme.d.ts +4 -0
- package/lib/hooks/useTheme.js +8 -0
- package/lib/hooks/useUpdatingRef.d.ts +1 -0
- package/lib/hooks/useUpdatingRef.js +7 -0
- package/lib/index.css +5 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -0
- package/lib/inspector.dev.css +10 -0
- package/lib/integrations/dataloom.d.ts +2 -0
- package/lib/integrations/dataloom.js +32 -0
- package/lib/integrations/generateImage.d.ts +1 -0
- package/lib/integrations/generateImage.js +47 -0
- package/lib/integrations/generateTextStream.d.ts +21 -0
- package/lib/integrations/generateTextStream.js +98 -0
- package/lib/integrations/getAppInfo.d.ts +2 -0
- package/lib/integrations/getAppInfo.js +14 -0
- package/lib/integrations/getCurrentUserProfile.d.ts +6 -0
- package/lib/integrations/getCurrentUserProfile.js +5 -0
- package/lib/logger/index.d.ts +6 -0
- package/lib/logger/index.js +54 -0
- package/lib/override.css +29 -0
- package/lib/tailwind-theme.css +335 -0
- package/lib/theme-layer.css +3 -0
- package/lib/types/common.d.ts +4 -0
- package/lib/types/common.js +0 -0
- package/lib/types/iframe-events.d.ts +55 -0
- package/lib/types/iframe-events.js +0 -0
- package/lib/types/index.d.ts +43 -0
- package/lib/types/index.js +0 -0
- package/lib/utils/copyToClipboard.d.ts +6 -0
- package/lib/utils/copyToClipboard.js +32 -0
- package/lib/utils/getAppId.d.ts +6 -0
- package/lib/utils/getAppId.js +11 -0
- package/lib/utils/getCsrfToken.d.ts +5 -0
- package/lib/utils/getCsrfToken.js +10 -0
- package/lib/utils/getEnvPath.d.ts +4 -0
- package/lib/utils/getEnvPath.js +4 -0
- package/lib/utils/getInitialInfo.d.ts +20 -0
- package/lib/utils/getInitialInfo.js +32 -0
- package/lib/utils/getParentOrigin.d.ts +5 -0
- package/lib/utils/getParentOrigin.js +7 -0
- package/lib/utils/getUserProfile.d.ts +47 -0
- package/lib/utils/getUserProfile.js +39 -0
- package/lib/utils/postMessage.d.ts +8 -0
- package/lib/utils/postMessage.js +11 -0
- package/lib/utils/url.d.ts +8 -0
- package/lib/utils/url.js +22 -0
- package/lib/utils/utils.d.ts +20 -0
- package/lib/utils/utils.js +22 -0
- package/package.json +134 -0
@@ -0,0 +1,557 @@
|
|
1
|
+
const themeMetaOptions = {
|
2
|
+
themeColors: {
|
3
|
+
title: '主题色',
|
4
|
+
options: [
|
5
|
+
{
|
6
|
+
value: '--blue-700',
|
7
|
+
color: '#1456F0'
|
8
|
+
},
|
9
|
+
{
|
10
|
+
value: '--teal-300',
|
11
|
+
color: '#08BFB0'
|
12
|
+
},
|
13
|
+
{
|
14
|
+
value: '--red-600',
|
15
|
+
color: '#E30917'
|
16
|
+
},
|
17
|
+
{
|
18
|
+
value: '--cyan-300',
|
19
|
+
color: '#2CB1FD'
|
20
|
+
},
|
21
|
+
{
|
22
|
+
value: '--neutral-950',
|
23
|
+
color: '#1A1A1A'
|
24
|
+
},
|
25
|
+
{
|
26
|
+
value: '--orange-300',
|
27
|
+
color: '#FA8456'
|
28
|
+
},
|
29
|
+
{
|
30
|
+
value: '--yellow-400',
|
31
|
+
color: '#FFC93E'
|
32
|
+
}
|
33
|
+
]
|
34
|
+
},
|
35
|
+
themeRadius: {
|
36
|
+
title: '圆角',
|
37
|
+
options: [
|
38
|
+
{
|
39
|
+
value: {
|
40
|
+
pixel: '0',
|
41
|
+
rem: '0'
|
42
|
+
},
|
43
|
+
iconUrl: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/border-radius_ssm.svg',
|
44
|
+
size: 'ssm'
|
45
|
+
},
|
46
|
+
{
|
47
|
+
value: {
|
48
|
+
pixel: '8',
|
49
|
+
rem: '0.625'
|
50
|
+
},
|
51
|
+
iconUrl: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/border-radius_m.svg',
|
52
|
+
size: 'm'
|
53
|
+
},
|
54
|
+
{
|
55
|
+
value: {
|
56
|
+
pixel: '12',
|
57
|
+
rem: '0.875'
|
58
|
+
},
|
59
|
+
iconUrl: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/border-radius_l.svg',
|
60
|
+
size: 'l'
|
61
|
+
},
|
62
|
+
{
|
63
|
+
value: {
|
64
|
+
pixel: '24',
|
65
|
+
rem: '1.625'
|
66
|
+
},
|
67
|
+
iconUrl: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/border-radius_xl.svg',
|
68
|
+
size: 'xl'
|
69
|
+
}
|
70
|
+
]
|
71
|
+
},
|
72
|
+
themeSpaces: {
|
73
|
+
title: '间距',
|
74
|
+
options: [
|
75
|
+
{
|
76
|
+
value: {
|
77
|
+
pixel: '28',
|
78
|
+
rem: '0.2',
|
79
|
+
size: {
|
80
|
+
sizeUnit: '3.2',
|
81
|
+
sizeStep: '4'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
iconUrl: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/spacing-ssm.svg',
|
85
|
+
size: 'ssm'
|
86
|
+
},
|
87
|
+
{
|
88
|
+
value: {
|
89
|
+
pixel: '36',
|
90
|
+
rem: '0.25',
|
91
|
+
size: {
|
92
|
+
sizeUnit: '4',
|
93
|
+
sizeStep: '4'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
iconUrl: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/spacing-m.svg',
|
97
|
+
size: 'm'
|
98
|
+
},
|
99
|
+
{
|
100
|
+
value: {
|
101
|
+
pixel: '40',
|
102
|
+
rem: '0.28',
|
103
|
+
size: {
|
104
|
+
sizeUnit: '4.5',
|
105
|
+
sizeStep: '4'
|
106
|
+
}
|
107
|
+
},
|
108
|
+
iconUrl: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/spacing-l.svg',
|
109
|
+
size: 'l'
|
110
|
+
},
|
111
|
+
{
|
112
|
+
value: {
|
113
|
+
pixel: '48',
|
114
|
+
rem: '0.34',
|
115
|
+
size: {
|
116
|
+
sizeUnit: '5.5',
|
117
|
+
sizeStep: '4'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
iconUrl: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/spacing-xl.svg',
|
121
|
+
size: 'xl'
|
122
|
+
}
|
123
|
+
]
|
124
|
+
}
|
125
|
+
};
|
126
|
+
const themeTailwindRadius = themeMetaOptions.themeRadius.options.reduce((acc, cur)=>{
|
127
|
+
acc[cur.size] = cur.value.pixel;
|
128
|
+
return acc;
|
129
|
+
}, {});
|
130
|
+
const themeColorTokenMap = {
|
131
|
+
light: {
|
132
|
+
'--background': 'rgb(255 255 255)',
|
133
|
+
'--foreground': 'rgb(31 35 41)',
|
134
|
+
'--card': 'rgb(255 255 255)',
|
135
|
+
'--card-foreground': 'rgb(31 35 41)',
|
136
|
+
'--popover': 'rgb(255 255 255)',
|
137
|
+
'--popover-foreground': 'rgb(31 35 41)',
|
138
|
+
'--primary': 'rgb(20 86 240)',
|
139
|
+
'--primary-foreground': 'rgb(248 249 250)',
|
140
|
+
'--secondary': 'rgb(242 243 245)',
|
141
|
+
'--secondary-foreground': 'rgb(31 35 41)',
|
142
|
+
'--muted': 'rgb(242 243 245)',
|
143
|
+
'--muted-foreground': 'rgb(143 149 158)',
|
144
|
+
'--accent': 'rgb(242 243 245)',
|
145
|
+
'--accent-foreground': 'rgb(31 35 41)',
|
146
|
+
'--destructive': 'rgb(245 74 69)',
|
147
|
+
'--border': 'rgb(222 224 227)',
|
148
|
+
'--input': 'rgb(222 224 227)',
|
149
|
+
'--ring': 'rgb(208 211 214)',
|
150
|
+
'--chart-1': 'rgb(51 112 235)',
|
151
|
+
'--chart-2': 'rgb(27 206 191)',
|
152
|
+
'--chart-3': 'rgb(255 198 10)',
|
153
|
+
'--chart-4': 'rgb(237 109 12)',
|
154
|
+
'--chart-5': 'rgb(220 161 228)',
|
155
|
+
'--sidebar': 'rgb(250 250 250)',
|
156
|
+
'--sidebar-foreground': 'rgb(31 35 41)',
|
157
|
+
'--sidebar-primary': 'rgb(55 60 67)',
|
158
|
+
'--sidebar-primary-foreground': 'rgb(248 249 250)',
|
159
|
+
'--sidebar-accent': 'rgb(242 243 245)',
|
160
|
+
'--sidebar-accent-foreground': 'rgb(31 35 41)',
|
161
|
+
'--sidebar-border': 'rgb(222 224 227)',
|
162
|
+
'--sidebar-ring': 'rgb(208 211 214)',
|
163
|
+
'--blue-50': '#f0f4ff',
|
164
|
+
'--blue-100': '#e0e9ff',
|
165
|
+
'--blue-200': '#c2d4ff',
|
166
|
+
'--blue-300': '#94b4ff',
|
167
|
+
'--blue-400': '#7aa2ff',
|
168
|
+
'--blue-500': '#5083fb',
|
169
|
+
'--blue-600': '#336df4',
|
170
|
+
'--blue-700': '#1456f0',
|
171
|
+
'--blue-800': '#0442d2',
|
172
|
+
'--blue-900': '#002f9e',
|
173
|
+
'--blue-950': '#002270',
|
174
|
+
'--pink-50': '#fef0f8',
|
175
|
+
'--pink-100': '#fee2f2',
|
176
|
+
'--pink-200': '#f8c4e1',
|
177
|
+
'--pink-300': '#f598cc',
|
178
|
+
'--pink-400': '#eb78b8',
|
179
|
+
'--pink-500': '#df58a5',
|
180
|
+
'--pink-600': '#cc398c',
|
181
|
+
'--pink-700': '#b82879',
|
182
|
+
'--pink-800': '#9d1562',
|
183
|
+
'--pink-900': '#730744',
|
184
|
+
'--pink-950': '#550c35',
|
185
|
+
'--neutral-00': '#ffffff',
|
186
|
+
'--neutral-50': '#f5f6f7',
|
187
|
+
'--neutral-100': '#f2f3f5',
|
188
|
+
'--neutral-200': '#eff0f1',
|
189
|
+
'--neutral-300': '#dee0e3',
|
190
|
+
'--neutral-400': '#d0d3d6',
|
191
|
+
'--neutral-500': '#bbbfc4',
|
192
|
+
'--neutral-600': '#8f959e',
|
193
|
+
'--neutral-650': '#51565d',
|
194
|
+
'--neutral-700': '#646a73',
|
195
|
+
'--neutral-800': '#373c43',
|
196
|
+
'--neutral-900': '#2b2f36',
|
197
|
+
'--neutral-950': '#1f2329',
|
198
|
+
'--neutral-1000': '#000',
|
199
|
+
'--green-50': '#e4fae1',
|
200
|
+
'--green-100': '#d0f5ce',
|
201
|
+
'--green-200': '#95e599',
|
202
|
+
'--green-300': '#5cd168',
|
203
|
+
'--green-400': '#35bd4b',
|
204
|
+
'--green-500': '#32a645',
|
205
|
+
'--green-600': '#258832',
|
206
|
+
'--green-700': '#1a7526',
|
207
|
+
'--green-800': '#0b6017',
|
208
|
+
'--green-900': '#04430c',
|
209
|
+
'--green-950': '#022c07',
|
210
|
+
'--indigo-50': '#f2f3fd',
|
211
|
+
'--indigo-100': '#e9eafb',
|
212
|
+
'--indigo-200': '#cccff9',
|
213
|
+
'--indigo-300': '#abb0f2',
|
214
|
+
'--indigo-400': '#959bee',
|
215
|
+
'--indigo-500': '#757df0',
|
216
|
+
'--indigo-600': '#5b65f5',
|
217
|
+
'--indigo-700': '#4752e6',
|
218
|
+
'--indigo-800': '#333dcc',
|
219
|
+
'--indigo-900': '#1e27a4',
|
220
|
+
'--indigo-950': '#151b70',
|
221
|
+
'--lime-50': '#f2f8d3',
|
222
|
+
'--lime-100': '#e3f0a3',
|
223
|
+
'--lime-200': '#c8dd5f',
|
224
|
+
'--lime-300': '#a2c10b',
|
225
|
+
'--lime-400': '#91ad00',
|
226
|
+
'--lime-500': '#7b9207',
|
227
|
+
'--lime-600': '#6b7f06',
|
228
|
+
'--lime-700': '#5c6d08',
|
229
|
+
'--lime-800': '#4a5804',
|
230
|
+
'--lime-900': '#333d00',
|
231
|
+
'--lime-950': '#262e00',
|
232
|
+
'--orange-50': '#fff3e5',
|
233
|
+
'--orange-100': '#fee7cd',
|
234
|
+
'--orange-200': '#fec48b',
|
235
|
+
'--orange-300': '#ff9d4c',
|
236
|
+
'--orange-400': '#ff811a',
|
237
|
+
'--orange-500': '#ed6d0c',
|
238
|
+
'--orange-600': '#c25705',
|
239
|
+
'--orange-700': '#a44904',
|
240
|
+
'--orange-800': '#853a05',
|
241
|
+
'--orange-900': '#642b02',
|
242
|
+
'--orange-950': '#3b1a02',
|
243
|
+
'--purple-50': '#f5f0fe',
|
244
|
+
'--purple-100': '#efe6fe',
|
245
|
+
'--purple-200': '#dcc9fd',
|
246
|
+
'--purple-300': '#c8a9fc',
|
247
|
+
'--purple-400': '#b791fa',
|
248
|
+
'--purple-500': '#9f6ff1',
|
249
|
+
'--purple-600': '#8d55ed',
|
250
|
+
'--purple-700': '#7a35f0',
|
251
|
+
'--purple-800': '#611fd6',
|
252
|
+
'--purple-900': '#4811a6',
|
253
|
+
'--purple-950': '#2f0080',
|
254
|
+
'--red-50': '#fef0f0',
|
255
|
+
'--red-100': '#fee3e2',
|
256
|
+
'--red-200': '#fdc6c4',
|
257
|
+
'--red-300': '#f89e9b',
|
258
|
+
'--red-400': '#ff7570',
|
259
|
+
'--red-500': '#f54a45',
|
260
|
+
'--red-600': '#e22e28',
|
261
|
+
'--red-700': '#c02a26',
|
262
|
+
'--red-800': '#a11c17',
|
263
|
+
'--red-900': '#741915',
|
264
|
+
'--red-950': '#590603',
|
265
|
+
'--amber-50': '#ffffdb',
|
266
|
+
'--amber-100': '#fffca3',
|
267
|
+
'--amber-200': '#fff67a',
|
268
|
+
'--amber-300': '#fff258',
|
269
|
+
'--amber-400': '#ffe928',
|
270
|
+
'--amber-500': '#e5ce00',
|
271
|
+
'--amber-600': '#c2a800',
|
272
|
+
'--amber-700': '#8f7c00',
|
273
|
+
'--amber-800': '#5c4f00',
|
274
|
+
'--amber-900': '#423700',
|
275
|
+
'--amber-950': '#2c2502',
|
276
|
+
'--teal-50': '#e2f8f5',
|
277
|
+
'--teal-100': '#c4f2ec',
|
278
|
+
'--teal-200': '#6fe8d8',
|
279
|
+
'--teal-300': '#33d6c0',
|
280
|
+
'--teal-400': '#2dbeab',
|
281
|
+
'--teal-500': '#10a893',
|
282
|
+
'--teal-600': '#0f8575',
|
283
|
+
'--teal-700': '#067062',
|
284
|
+
'--teal-800': '#045d51',
|
285
|
+
'--teal-900': '#03443b',
|
286
|
+
'--teal-950': '#02312a',
|
287
|
+
'--cyan-50': '#e7f8fe',
|
288
|
+
'--cyan-100': '#caeffc',
|
289
|
+
'--cyan-200': '#97dcfc',
|
290
|
+
'--cyan-300': '#3ec3f7',
|
291
|
+
'--cyan-400': '#25b0e7',
|
292
|
+
'--cyan-500': '#1295ca',
|
293
|
+
'--cyan-600': '#047fb0',
|
294
|
+
'--cyan-700': '#076a94',
|
295
|
+
'--cyan-800': '#0f587a',
|
296
|
+
'--cyan-900': '#06415c',
|
297
|
+
'--cyan-950': '#072b3d',
|
298
|
+
'--yellow-50': '#fbf4df',
|
299
|
+
'--yellow-100': '#faedc2',
|
300
|
+
'--yellow-200': '#fcdf7e',
|
301
|
+
'--yellow-300': '#fad355',
|
302
|
+
'--yellow-400': '#ffc60a',
|
303
|
+
'--yellow-500': '#d99904',
|
304
|
+
'--yellow-600': '#ad7a03',
|
305
|
+
'--yellow-700': '#865b03',
|
306
|
+
'--yellow-800': '#6f4a01',
|
307
|
+
'--yellow-900': '#573601',
|
308
|
+
'--yellow-950': '#382201',
|
309
|
+
'--violet-50': '#fceefc',
|
310
|
+
'--violet-100': '#f9e2f9',
|
311
|
+
'--violet-200': '#f3c4f3',
|
312
|
+
'--violet-300': '#e59ce5',
|
313
|
+
'--violet-400': '#de81de',
|
314
|
+
'--violet-500': '#cf5ecf',
|
315
|
+
'--violet-600': '#bf3dbf',
|
316
|
+
'--violet-700': '#a630a6',
|
317
|
+
'--violet-800': '#872787',
|
318
|
+
'--violet-900': '#6a116a',
|
319
|
+
'--violet-950': '#520052',
|
320
|
+
'--fontReverse': '#fff',
|
321
|
+
'--bgContentBase': '#f8f9fa',
|
322
|
+
'--bgMask': '0, 0, 0, 0.4',
|
323
|
+
'--bgTextSelection': '20, 86, 240, 0.3',
|
324
|
+
'--lineDividerDefault': '31, 35, 41, 0.15',
|
325
|
+
'--lineDividerModule': '31, 35, 41, 0.15',
|
326
|
+
'--font-sans': "'Geist', 'Geist Fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji','Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
327
|
+
'--font-serif': "'Geist', 'Geist Fallback', ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif",
|
328
|
+
'--font-mono': 'Source Code Pro, monospace',
|
329
|
+
'--radius': '0.5rem',
|
330
|
+
'--shadow-2xs': '0px 6px 12px 0px rgb(31 35 41 / 0.01)',
|
331
|
+
'--shadow-xs': '0px 6px 12px 0px rgb(31 35 41 / 0.01)',
|
332
|
+
'--shadow-sm': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 1px 2px -1px rgb(31 35 41 / 0.03)',
|
333
|
+
'--shadow': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 1px 2px -1px rgb(31 35 41 / 0.03)',
|
334
|
+
'--shadow-md': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 2px 4px -1px rgb(31 35 41 / 0.03)',
|
335
|
+
'--shadow-lg': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 4px 6px -1px rgb(31 35 41 / 0.03)',
|
336
|
+
'--shadow-xl': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 8px 10px -1px rgb(31 35 41 / 0.03)',
|
337
|
+
'--shadow-2xl': '0px 6px 12px 0px rgb(31 35 41 / 0.07)',
|
338
|
+
'--spacing': '0.3rem'
|
339
|
+
},
|
340
|
+
dark: {
|
341
|
+
'--background': 'rgb(10 10 10)',
|
342
|
+
'--foreground': 'rgb(235 235 235)',
|
343
|
+
'--card': 'rgb(26 26 26)',
|
344
|
+
'--card-foreground': 'rgb(235 235 235)',
|
345
|
+
'--popover': 'rgb(26 26 26)',
|
346
|
+
'--popover-foreground': 'rgb(235 235 235)',
|
347
|
+
'--primary': 'rgb(51 109 244)',
|
348
|
+
'--primary-foreground': 'rgb(235 235 235)',
|
349
|
+
'--secondary': 'rgb(39 39 42)',
|
350
|
+
'--secondary-foreground': 'rgb(250 250 250)',
|
351
|
+
'--muted': 'rgb(26 26 26)',
|
352
|
+
'--muted-foreground': 'rgb(159 159 169)',
|
353
|
+
'--accent': 'rgb(55 55 55)',
|
354
|
+
'--accent-foreground': 'rgb(250 250 250)',
|
355
|
+
'--destructive': 'rgb(240 91 86)',
|
356
|
+
'--border': 'rgb(235 235 235 / 0.15)',
|
357
|
+
'--input': 'rgb(235 235 235 / 0.15)',
|
358
|
+
'--ring': 'rgb(80 80 80)',
|
359
|
+
'--chart-1': 'rgb(51 109 244)',
|
360
|
+
'--chart-2': 'rgb(0 188 125)',
|
361
|
+
'--chart-3': 'rgb(254 154 0)',
|
362
|
+
'--chart-4': 'rgb(173 70 255)',
|
363
|
+
'--chart-5': 'rgb(255 32 86)',
|
364
|
+
'--sidebar': 'rgb(24 24 27)',
|
365
|
+
'--sidebar-foreground': 'rgb(235 235 235)',
|
366
|
+
'--sidebar-primary': 'rgb(51 109 244)',
|
367
|
+
'--sidebar-primary-foreground': 'rgb(250 250 250)',
|
368
|
+
'--sidebar-accent': 'rgb(39 39 42)',
|
369
|
+
'--sidebar-accent-foreground': 'rgb(250 250 250)',
|
370
|
+
'--sidebar-border': 'rgb(255 255 255 / 0.1)',
|
371
|
+
'--sidebar-ring': 'rgb(113 113 123)',
|
372
|
+
'--blue-50': '#152340',
|
373
|
+
'--blue-100': '#173166',
|
374
|
+
'--blue-200': '#194294',
|
375
|
+
'--blue-300': '#2655b6',
|
376
|
+
'--blue-400': '#275fce',
|
377
|
+
'--blue-500': '#3370eb',
|
378
|
+
'--blue-600': '#4c88ff',
|
379
|
+
'--blue-700': '#75a4ff',
|
380
|
+
'--blue-800': '#8fb4ff',
|
381
|
+
'--blue-900': '#bdd2ff',
|
382
|
+
'--blue-950': '#bdd2ff',
|
383
|
+
'--pink-50': '#3a182b',
|
384
|
+
'--pink-100': '#591c3f',
|
385
|
+
'--pink-200': '#782b57',
|
386
|
+
'--pink-300': '#94386c',
|
387
|
+
'--pink-400': '#ab417d',
|
388
|
+
'--pink-500': '#c24a8e',
|
389
|
+
'--pink-600': '#db5ea4',
|
390
|
+
'--pink-700': '#ed77ba',
|
391
|
+
'--pink-800': '#fc94cf',
|
392
|
+
'--pink-900': '#ffc2e5',
|
393
|
+
'--pink-950': '#ffe0f2',
|
394
|
+
'--neutral-00': '#aaa',
|
395
|
+
'--neutral-50': '#1a1a1a',
|
396
|
+
'--neutral-100': '#292929',
|
397
|
+
'--neutral-200': '#373737',
|
398
|
+
'--neutral-300': '#434343',
|
399
|
+
'--neutral-400': '#505050',
|
400
|
+
'--neutral-500': '#5f5f5f',
|
401
|
+
'--neutral-600': '#757575',
|
402
|
+
'--neutral-700': '#a6a6a6',
|
403
|
+
'--neutral-800': '#e0e0e0',
|
404
|
+
'--neutral-900': '#e8e8e8',
|
405
|
+
'--neutral-950': '#ebebeb',
|
406
|
+
'--neutral-1000': '#fff',
|
407
|
+
'--green-50': '#022c07',
|
408
|
+
'--green-100': '#04430c',
|
409
|
+
'--green-200': '#0b6017',
|
410
|
+
'--green-300': '#1a7526',
|
411
|
+
'--green-400': '#258832',
|
412
|
+
'--green-500': '#32a645',
|
413
|
+
'--green-600': '#35bd4b',
|
414
|
+
'--green-700': '#5cd168',
|
415
|
+
'--green-800': '#95e599',
|
416
|
+
'--green-900': '#d0f5ce',
|
417
|
+
'--green-950': '#e4fae1',
|
418
|
+
'--indigo-50': '#1e204a',
|
419
|
+
'--indigo-100': '#2a2d69',
|
420
|
+
'--indigo-200': '#373d90',
|
421
|
+
'--indigo-300': '#474fb8',
|
422
|
+
'--indigo-400': '#515ad6',
|
423
|
+
'--indigo-500': '#5e68e8',
|
424
|
+
'--indigo-600': '#7b83f7',
|
425
|
+
'--indigo-700': '#9499f7',
|
426
|
+
'--indigo-800': '#aaaff8',
|
427
|
+
'--indigo-900': '#d0d2ff',
|
428
|
+
'--indigo-950': '#e7e7ff',
|
429
|
+
'--lime-50': '#262e00',
|
430
|
+
'--lime-100': '#333d00',
|
431
|
+
'--lime-200': '#4a5804',
|
432
|
+
'--lime-300': '#5c6d08',
|
433
|
+
'--lime-400': '#6b7f06',
|
434
|
+
'--lime-500': '#7b9207',
|
435
|
+
'--lime-600': '#91ad00',
|
436
|
+
'--lime-700': '#a2c10b',
|
437
|
+
'--lime-800': '#c8dd5f',
|
438
|
+
'--lime-900': '#e3f0a3',
|
439
|
+
'--lime-950': '#f2f8d3',
|
440
|
+
'--orange-50': '#3b1a02',
|
441
|
+
'--orange-100': '#642b02',
|
442
|
+
'--orange-200': '#853a05',
|
443
|
+
'--orange-300': '#a44904',
|
444
|
+
'--orange-400': '#c25705',
|
445
|
+
'--orange-500': '#ed6d0c',
|
446
|
+
'--orange-600': '#ff811a',
|
447
|
+
'--orange-700': '#ff9d4c',
|
448
|
+
'--orange-800': '#fec48b',
|
449
|
+
'--orange-900': '#fee7cd',
|
450
|
+
'--orange-950': '#fff3e5',
|
451
|
+
'--purple-50': '#2f0080',
|
452
|
+
'--purple-100': '#4811a6',
|
453
|
+
'--purple-200': '#611fd6',
|
454
|
+
'--purple-300': '#7a35f0',
|
455
|
+
'--purple-400': '#8d55ed',
|
456
|
+
'--purple-500': '#9f6ff1',
|
457
|
+
'--purple-600': '#b791fa',
|
458
|
+
'--purple-700': '#c8a9fc',
|
459
|
+
'--purple-800': '#dcc9fd',
|
460
|
+
'--purple-900': '#efe6fe',
|
461
|
+
'--purple-950': '#f5f0fe',
|
462
|
+
'--red-50': '#590603',
|
463
|
+
'--red-100': '#741915',
|
464
|
+
'--red-200': '#a11c17',
|
465
|
+
'--red-300': '#c02a26',
|
466
|
+
'--red-400': '#e22e28',
|
467
|
+
'--red-500': '#f54a45',
|
468
|
+
'--red-600': '#ff7570',
|
469
|
+
'--red-700': '#f89e9b',
|
470
|
+
'--red-800': '#fdc6c4',
|
471
|
+
'--red-900': '#fee3e2',
|
472
|
+
'--red-950': '#fef0f0',
|
473
|
+
'--amber-50': '#2c2502',
|
474
|
+
'--amber-100': '#423700',
|
475
|
+
'--amber-200': '#5c4f00',
|
476
|
+
'--amber-300': '#8f7c00',
|
477
|
+
'--amber-400': '#c2a800',
|
478
|
+
'--amber-500': '#e5ce00',
|
479
|
+
'--amber-600': '#ffe928',
|
480
|
+
'--amber-700': '#fff258',
|
481
|
+
'--amber-800': '#fff67a',
|
482
|
+
'--amber-900': '#fffca3',
|
483
|
+
'--amber-950': '#ffffdb',
|
484
|
+
'--teal-50': '#02312a',
|
485
|
+
'--teal-100': '#03443b',
|
486
|
+
'--teal-200': '#045d51',
|
487
|
+
'--teal-300': '#067062',
|
488
|
+
'--teal-400': '#0f8575',
|
489
|
+
'--teal-500': '#10a893',
|
490
|
+
'--teal-600': '#2dbeab',
|
491
|
+
'--teal-700': '#33d6c0',
|
492
|
+
'--teal-800': '#6fe8d8',
|
493
|
+
'--teal-900': '#c4f2ec',
|
494
|
+
'--teal-950': '#e2f8f5',
|
495
|
+
'--cyan-50': '#072b3d',
|
496
|
+
'--cyan-100': '#06415c',
|
497
|
+
'--cyan-200': '#0f587a',
|
498
|
+
'--cyan-300': '#076a94',
|
499
|
+
'--cyan-400': '#047fb0',
|
500
|
+
'--cyan-500': '#1295ca',
|
501
|
+
'--cyan-600': '#25b0e7',
|
502
|
+
'--cyan-700': '#3ec3f7',
|
503
|
+
'--cyan-800': '#97dcfc',
|
504
|
+
'--cyan-900': '#caeffc',
|
505
|
+
'--cyan-950': '#e7f8fe',
|
506
|
+
'--yellow-50': '#382201',
|
507
|
+
'--yellow-100': '#573601',
|
508
|
+
'--yellow-200': '#6f4a01',
|
509
|
+
'--yellow-300': '#865b03',
|
510
|
+
'--yellow-400': '#ad7a03',
|
511
|
+
'--yellow-500': '#d99904',
|
512
|
+
'--yellow-600': '#ffc60a',
|
513
|
+
'--yellow-700': '#fad355',
|
514
|
+
'--yellow-800': '#fcdf7e',
|
515
|
+
'--yellow-900': '#faedc2',
|
516
|
+
'--yellow-950': '#fbf4df',
|
517
|
+
'--violet-50': '#520052',
|
518
|
+
'--violet-100': '#6a116a',
|
519
|
+
'--violet-200': '#872787',
|
520
|
+
'--violet-300': '#a630a6',
|
521
|
+
'--violet-400': '#bf3dbf',
|
522
|
+
'--violet-500': '#cf5ecf',
|
523
|
+
'--violet-600': '#de81de',
|
524
|
+
'--violet-700': '#e59ce5',
|
525
|
+
'--violet-800': '#f3c4f3',
|
526
|
+
'--violet-900': '#f9e2f9',
|
527
|
+
'--violet-950': '#fceefc',
|
528
|
+
'--fontReverse': '#000',
|
529
|
+
'--bgContentBase': '#111',
|
530
|
+
'--bgMask': '0, 0, 0, 0.4',
|
531
|
+
'--bgTextSelection': '51, 109, 244, 0.3',
|
532
|
+
'--lineDividerDefault': '255, 255, 255, 0.15',
|
533
|
+
'--lineDividerModule': '255, 255, 255, 0.15',
|
534
|
+
'--font-sans': "'Geist', 'Geist Fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji','Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
535
|
+
'--font-serif': "'Geist', 'Geist Fallback', ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif",
|
536
|
+
'--font-mono': 'Source Code Pro, monospace',
|
537
|
+
'--radius': '0.5rem',
|
538
|
+
'--shadow-2xs': '0px 6px 12px 0px rgb(31 35 41 / 0.01)',
|
539
|
+
'--shadow-xs': '0px 6px 12px 0px rgb(31 35 41 / 0.01)',
|
540
|
+
'--shadow-sm': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 1px 2px -1px rgb(31 35 41 / 0.03)',
|
541
|
+
'--shadow': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 1px 2px -1px rgb(31 35 41 / 0.03)',
|
542
|
+
'--shadow-md': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 2px 4px -1px rgb(31 35 41 / 0.03)',
|
543
|
+
'--shadow-lg': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 4px 6px -1px rgb(31 35 41 / 0.03)',
|
544
|
+
'--shadow-xl': '0px 6px 12px 0px rgb(31 35 41 / 0.03), 0px 8px 10px -1px rgb(31 35 41 / 0.03)',
|
545
|
+
'--shadow-2xl': '0px 6px 12px 0px rgb(31 35 41 / 0.07)',
|
546
|
+
'--spacing': '0.3rem'
|
547
|
+
}
|
548
|
+
};
|
549
|
+
function getKeyByColor(colorValue, theme) {
|
550
|
+
const colorMap = themeColorTokenMap[theme];
|
551
|
+
return Object.keys(colorMap).find((key)=>colorMap[key] === colorValue) || '';
|
552
|
+
}
|
553
|
+
function findValueByPixel(themeSpaces, pixelValue) {
|
554
|
+
if (!pixelValue) return;
|
555
|
+
return themeSpaces.options.find((option)=>option.value.pixel === pixelValue)?.value;
|
556
|
+
}
|
557
|
+
export { findValueByPixel, getKeyByColor, themeColorTokenMap, themeMetaOptions, themeTailwindRadius };
|