gradio-pr-bot commited on
Commit
0e6bb0f
·
verified ·
1 Parent(s): db360c4

Upload folder using huggingface_hub

Browse files
6.0.2/theme/package.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@gradio/theme",
3
+ "version": "0.5.0",
4
+ "description": "Gradio UI packages",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "author": "",
8
+ "license": "ISC",
9
+ "private": false,
10
+ "scripts": {
11
+ "generate": "pollen -c src/pollen.config.cjs",
12
+ "package": "svelte-package --input=. --tsconfig=../../tsconfig.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "gradio": "./src/index.ts",
17
+ "import": "./dist/src/index.js",
18
+ "types": "./dist/src/index.d.ts"
19
+ },
20
+ "./reset.css": {
21
+ "gradio": "./src/reset.css",
22
+ "import": "./dist/src/reset.css"
23
+ },
24
+ "./global.css": {
25
+ "gradio": "./src/global.css",
26
+ "import": "./dist/src/global.css"
27
+ },
28
+ "./tokens": {
29
+ "gradio": "./src/tokens.ts",
30
+ "import": "./dist/src/tokens.js"
31
+ },
32
+ "./typography.css": {
33
+ "gradio": "./src/typography.css",
34
+ "import": "./dist/src/typography.css"
35
+ },
36
+ "./gradio-style.scss": {
37
+ "gradio": "./src/gradio-style.scss",
38
+ "import": "./dist/src/gradio-style.scss"
39
+ },
40
+ "./pollen.css": {
41
+ "gradio": "./src/pollen.css",
42
+ "import": "./dist/src/pollen.css"
43
+ },
44
+ "./package.json": "./package.json"
45
+ },
46
+ "peerDependencies": {
47
+ "svelte": "^5.43.4"
48
+ },
49
+ "main_changeset": true,
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "git+https://github.com/gradio-app/gradio.git",
53
+ "directory": "js/theme"
54
+ }
55
+ }
6.0.2/theme/src/colors.ts ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // import tw_colors from "tailwindcss/colors";
2
+
3
+ export const ordered_colors = [
4
+ "red",
5
+ "green",
6
+ "blue",
7
+ "yellow",
8
+ "purple",
9
+ "teal",
10
+ "orange",
11
+ "cyan",
12
+ "lime",
13
+ "pink"
14
+ ] as const;
15
+ interface ColorPair {
16
+ primary: string;
17
+ secondary: string;
18
+ }
19
+
20
+ interface Colors {
21
+ red: ColorPair;
22
+ green: ColorPair;
23
+ blue: ColorPair;
24
+ yellow: ColorPair;
25
+ purple: ColorPair;
26
+ teal: ColorPair;
27
+ orange: ColorPair;
28
+ cyan: ColorPair;
29
+ lime: ColorPair;
30
+ pink: ColorPair;
31
+ }
32
+
33
+ // https://play.tailwindcss.com/ZubQYya0aN
34
+ export const color_values = [
35
+ { color: "red", primary: 600, secondary: 100 },
36
+ { color: "green", primary: 600, secondary: 100 },
37
+ { color: "blue", primary: 600, secondary: 100 },
38
+ { color: "yellow", primary: 500, secondary: 100 },
39
+ { color: "purple", primary: 600, secondary: 100 },
40
+ { color: "teal", primary: 600, secondary: 100 },
41
+ { color: "orange", primary: 600, secondary: 100 },
42
+ { color: "cyan", primary: 600, secondary: 100 },
43
+ { color: "lime", primary: 500, secondary: 100 },
44
+ { color: "pink", primary: 600, secondary: 100 }
45
+ ] as const;
46
+
47
+ const tw_colors = {
48
+ inherit: "inherit",
49
+ current: "currentColor",
50
+ transparent: "transparent",
51
+ black: "#000",
52
+ white: "#fff",
53
+ slate: {
54
+ 50: "#f8fafc",
55
+ 100: "#f1f5f9",
56
+ 200: "#e2e8f0",
57
+ 300: "#cbd5e1",
58
+ 400: "#94a3b8",
59
+ 500: "#64748b",
60
+ 600: "#475569",
61
+ 700: "#334155",
62
+ 800: "#1e293b",
63
+ 900: "#0f172a",
64
+ 950: "#020617"
65
+ },
66
+ gray: {
67
+ 50: "#f9fafb",
68
+ 100: "#f3f4f6",
69
+ 200: "#e5e7eb",
70
+ 300: "#d1d5db",
71
+ 400: "#9ca3af",
72
+ 500: "#6b7280",
73
+ 600: "#4b5563",
74
+ 700: "#374151",
75
+ 800: "#1f2937",
76
+ 900: "#111827",
77
+ 950: "#030712"
78
+ },
79
+ zinc: {
80
+ 50: "#fafafa",
81
+ 100: "#f4f4f5",
82
+ 200: "#e4e4e7",
83
+ 300: "#d4d4d8",
84
+ 400: "#a1a1aa",
85
+ 500: "#71717a",
86
+ 600: "#52525b",
87
+ 700: "#3f3f46",
88
+ 800: "#27272a",
89
+ 900: "#18181b",
90
+ 950: "#09090b"
91
+ },
92
+ neutral: {
93
+ 50: "#fafafa",
94
+ 100: "#f5f5f5",
95
+ 200: "#e5e5e5",
96
+ 300: "#d4d4d4",
97
+ 400: "#a3a3a3",
98
+ 500: "#737373",
99
+ 600: "#525252",
100
+ 700: "#404040",
101
+ 800: "#262626",
102
+ 900: "#171717",
103
+ 950: "#0a0a0a"
104
+ },
105
+ stone: {
106
+ 50: "#fafaf9",
107
+ 100: "#f5f5f4",
108
+ 200: "#e7e5e4",
109
+ 300: "#d6d3d1",
110
+ 400: "#a8a29e",
111
+ 500: "#78716c",
112
+ 600: "#57534e",
113
+ 700: "#44403c",
114
+ 800: "#292524",
115
+ 900: "#1c1917",
116
+ 950: "#0c0a09"
117
+ },
118
+ red: {
119
+ 50: "#fef2f2",
120
+ 100: "#fee2e2",
121
+ 200: "#fecaca",
122
+ 300: "#fca5a5",
123
+ 400: "#f87171",
124
+ 500: "#ef4444",
125
+ 600: "#dc2626",
126
+ 700: "#b91c1c",
127
+ 800: "#991b1b",
128
+ 900: "#7f1d1d",
129
+ 950: "#450a0a"
130
+ },
131
+ orange: {
132
+ 50: "#fff7ed",
133
+ 100: "#ffedd5",
134
+ 200: "#fed7aa",
135
+ 300: "#fdba74",
136
+ 400: "#fb923c",
137
+ 500: "#f97316",
138
+ 600: "#ea580c",
139
+ 700: "#c2410c",
140
+ 800: "#9a3412",
141
+ 900: "#7c2d12",
142
+ 950: "#431407"
143
+ },
144
+ amber: {
145
+ 50: "#fffbeb",
146
+ 100: "#fef3c7",
147
+ 200: "#fde68a",
148
+ 300: "#fcd34d",
149
+ 400: "#fbbf24",
150
+ 500: "#f59e0b",
151
+ 600: "#d97706",
152
+ 700: "#b45309",
153
+ 800: "#92400e",
154
+ 900: "#78350f",
155
+ 950: "#451a03"
156
+ },
157
+ yellow: {
158
+ 50: "#fefce8",
159
+ 100: "#fef9c3",
160
+ 200: "#fef08a",
161
+ 300: "#fde047",
162
+ 400: "#facc15",
163
+ 500: "#eab308",
164
+ 600: "#ca8a04",
165
+ 700: "#a16207",
166
+ 800: "#854d0e",
167
+ 900: "#713f12",
168
+ 950: "#422006"
169
+ },
170
+ lime: {
171
+ 50: "#f7fee7",
172
+ 100: "#ecfccb",
173
+ 200: "#d9f99d",
174
+ 300: "#bef264",
175
+ 400: "#a3e635",
176
+ 500: "#84cc16",
177
+ 600: "#65a30d",
178
+ 700: "#4d7c0f",
179
+ 800: "#3f6212",
180
+ 900: "#365314",
181
+ 950: "#1a2e05"
182
+ },
183
+ green: {
184
+ 50: "#f0fdf4",
185
+ 100: "#dcfce7",
186
+ 200: "#bbf7d0",
187
+ 300: "#86efac",
188
+ 400: "#4ade80",
189
+ 500: "#22c55e",
190
+ 600: "#16a34a",
191
+ 700: "#15803d",
192
+ 800: "#166534",
193
+ 900: "#14532d",
194
+ 950: "#052e16"
195
+ },
196
+ emerald: {
197
+ 50: "#ecfdf5",
198
+ 100: "#d1fae5",
199
+ 200: "#a7f3d0",
200
+ 300: "#6ee7b7",
201
+ 400: "#34d399",
202
+ 500: "#10b981",
203
+ 600: "#059669",
204
+ 700: "#047857",
205
+ 800: "#065f46",
206
+ 900: "#064e3b",
207
+ 950: "#022c22"
208
+ },
209
+ teal: {
210
+ 50: "#f0fdfa",
211
+ 100: "#ccfbf1",
212
+ 200: "#99f6e4",
213
+ 300: "#5eead4",
214
+ 400: "#2dd4bf",
215
+ 500: "#14b8a6",
216
+ 600: "#0d9488",
217
+ 700: "#0f766e",
218
+ 800: "#115e59",
219
+ 900: "#134e4a",
220
+ 950: "#042f2e"
221
+ },
222
+ cyan: {
223
+ 50: "#ecfeff",
224
+ 100: "#cffafe",
225
+ 200: "#a5f3fc",
226
+ 300: "#67e8f9",
227
+ 400: "#22d3ee",
228
+ 500: "#06b6d4",
229
+ 600: "#0891b2",
230
+ 700: "#0e7490",
231
+ 800: "#155e75",
232
+ 900: "#164e63",
233
+ 950: "#083344"
234
+ },
235
+ sky: {
236
+ 50: "#f0f9ff",
237
+ 100: "#e0f2fe",
238
+ 200: "#bae6fd",
239
+ 300: "#7dd3fc",
240
+ 400: "#38bdf8",
241
+ 500: "#0ea5e9",
242
+ 600: "#0284c7",
243
+ 700: "#0369a1",
244
+ 800: "#075985",
245
+ 900: "#0c4a6e",
246
+ 950: "#082f49"
247
+ },
248
+ blue: {
249
+ 50: "#eff6ff",
250
+ 100: "#dbeafe",
251
+ 200: "#bfdbfe",
252
+ 300: "#93c5fd",
253
+ 400: "#60a5fa",
254
+ 500: "#3b82f6",
255
+ 600: "#2563eb",
256
+ 700: "#1d4ed8",
257
+ 800: "#1e40af",
258
+ 900: "#1e3a8a",
259
+ 950: "#172554"
260
+ },
261
+ indigo: {
262
+ 50: "#eef2ff",
263
+ 100: "#e0e7ff",
264
+ 200: "#c7d2fe",
265
+ 300: "#a5b4fc",
266
+ 400: "#818cf8",
267
+ 500: "#6366f1",
268
+ 600: "#4f46e5",
269
+ 700: "#4338ca",
270
+ 800: "#3730a3",
271
+ 900: "#312e81",
272
+ 950: "#1e1b4b"
273
+ },
274
+ violet: {
275
+ 50: "#f5f3ff",
276
+ 100: "#ede9fe",
277
+ 200: "#ddd6fe",
278
+ 300: "#c4b5fd",
279
+ 400: "#a78bfa",
280
+ 500: "#8b5cf6",
281
+ 600: "#7c3aed",
282
+ 700: "#6d28d9",
283
+ 800: "#5b21b6",
284
+ 900: "#4c1d95",
285
+ 950: "#2e1065"
286
+ },
287
+ purple: {
288
+ 50: "#faf5ff",
289
+ 100: "#f3e8ff",
290
+ 200: "#e9d5ff",
291
+ 300: "#d8b4fe",
292
+ 400: "#c084fc",
293
+ 500: "#a855f7",
294
+ 600: "#9333ea",
295
+ 700: "#7e22ce",
296
+ 800: "#6b21a8",
297
+ 900: "#581c87",
298
+ 950: "#3b0764"
299
+ },
300
+ fuchsia: {
301
+ 50: "#fdf4ff",
302
+ 100: "#fae8ff",
303
+ 200: "#f5d0fe",
304
+ 300: "#f0abfc",
305
+ 400: "#e879f9",
306
+ 500: "#d946ef",
307
+ 600: "#c026d3",
308
+ 700: "#a21caf",
309
+ 800: "#86198f",
310
+ 900: "#701a75",
311
+ 950: "#4a044e"
312
+ },
313
+ pink: {
314
+ 50: "#fdf2f8",
315
+ 100: "#fce7f3",
316
+ 200: "#fbcfe8",
317
+ 300: "#f9a8d4",
318
+ 400: "#f472b6",
319
+ 500: "#ec4899",
320
+ 600: "#db2777",
321
+ 700: "#be185d",
322
+ 800: "#9d174d",
323
+ 900: "#831843",
324
+ 950: "#500724"
325
+ },
326
+ rose: {
327
+ 50: "#fff1f2",
328
+ 100: "#ffe4e6",
329
+ 200: "#fecdd3",
330
+ 300: "#fda4af",
331
+ 400: "#fb7185",
332
+ 500: "#f43f5e",
333
+ 600: "#e11d48",
334
+ 700: "#be123c",
335
+ 800: "#9f1239",
336
+ 900: "#881337",
337
+ 950: "#4c0519"
338
+ }
339
+ };
340
+
341
+ export const colors = color_values.reduce(
342
+ (acc, { color, primary, secondary }) => ({
343
+ ...acc,
344
+ [color]: {
345
+ primary: tw_colors[color][primary],
346
+ secondary: tw_colors[color][secondary]
347
+ }
348
+ }),
349
+ {} as Colors
350
+ );
6.0.2/theme/src/index.ts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ // export { default as reset } from "./reset.css";
2
+ // export { default as global } from "./global.css";
3
+ // export { default as css } from "./pollen.css";
4
+ // export { default as typography } from "./typography.css";
5
+
6
+ export * from "./colors.js";