@xiaou66/u-styles 0.0.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 ADDED
@@ -0,0 +1,23 @@
1
+ # `u-styles`
2
+
3
+ Shared style token core for the workspace.
4
+
5
+ ## Source of Truth
6
+
7
+ - `src/` is the canonical token source.
8
+ - `dist/theme.css` and `dist/theme.less` are generated assets.
9
+ - `theme-light.less` and `theme-dark.less` are deprecated compatibility files. Do not add new token definitions there.
10
+
11
+ ## Docs
12
+
13
+ - [Package docs index](docs/index.md)
14
+ - [AI collaboration guide](docs/ai-collaboration.md)
15
+ - [Usage guide](docs/usage.md)
16
+ - [Update flow](docs/update-flow.md)
17
+
18
+ ## Quick Links
19
+
20
+ - Theme contract: `src/themes/contract.ts`
21
+ - Theme aliases: `src/themes/legacy-aliases.ts`
22
+ - Token entry: `src/tokens.ts`
23
+ - Runtime entry: `src/runtime/index.ts`
@@ -0,0 +1,145 @@
1
+ export declare function applyTheme(mode: ThemeMode, options?: ApplyThemeOptions): void;
2
+
3
+ declare interface ApplyThemeOptions {
4
+ target?: HTMLElement;
5
+ }
6
+
7
+ export declare const darkTheme: {
8
+ text: {
9
+ primary: string;
10
+ secondary: string;
11
+ placeholder: string;
12
+ disabled: string;
13
+ link: string;
14
+ brand: string;
15
+ danger: string;
16
+ tips: string;
17
+ hover: string;
18
+ };
19
+ surface: {
20
+ page: string;
21
+ panel: string;
22
+ container: string;
23
+ elevated: string;
24
+ hover: string;
25
+ active: string;
26
+ inverse: string;
27
+ popup: string;
28
+ };
29
+ fill: {
30
+ weak: string;
31
+ default: string;
32
+ strong: string;
33
+ stronger: string;
34
+ };
35
+ border: {
36
+ default: string;
37
+ subtle: string;
38
+ strong: string;
39
+ focus: string;
40
+ };
41
+ status: {
42
+ success: string;
43
+ warning: string;
44
+ danger: string;
45
+ info: string;
46
+ };
47
+ };
48
+
49
+ export declare const lightTheme: {
50
+ text: {
51
+ primary: string;
52
+ secondary: string;
53
+ placeholder: string;
54
+ disabled: string;
55
+ link: string;
56
+ brand: string;
57
+ danger: string;
58
+ tips: string;
59
+ hover: string;
60
+ };
61
+ surface: {
62
+ page: string;
63
+ panel: string;
64
+ container: string;
65
+ elevated: string;
66
+ hover: string;
67
+ active: string;
68
+ inverse: string;
69
+ popup: string;
70
+ };
71
+ fill: {
72
+ weak: string;
73
+ default: string;
74
+ strong: string;
75
+ stronger: string;
76
+ };
77
+ border: {
78
+ default: string;
79
+ subtle: string;
80
+ strong: string;
81
+ focus: string;
82
+ };
83
+ status: {
84
+ success: string;
85
+ warning: string;
86
+ danger: string;
87
+ info: string;
88
+ };
89
+ };
90
+
91
+ export declare const primitives: {
92
+ readonly colors: {
93
+ readonly red: readonly ["", "255, 236, 232", "253, 205, 197", "251, 172, 163", "249, 137, 129", "247, 101, 96", "245, 63, 63", "203, 39, 45", "161, 21, 30", "119, 8, 19", "77, 0, 10"];
94
+ readonly gray: readonly ["", "247, 248, 250", "242, 243, 245", "229, 230, 235", "201, 205, 212", "169, 174, 184", "134, 144, 156", "107, 119, 133", "78, 89, 105", "39, 46, 59", "29, 33, 41"];
95
+ readonly green: readonly ["", "232, 255, 234", "175, 240, 181", "123, 225, 136", "76, 210, 99", "35, 195, 67", "0, 180, 42", "0, 154, 41", "0, 128, 38", "0, 102, 34", "0, 77, 28"];
96
+ readonly blue: readonly ["", "0, 26, 77", "5, 47, 120", "19, 76, 163", "41, 113, 207", "70, 153, 250", "90, 170, 251", "125, 193, 252", "161, 213, 253", "198, 232, 254", "234, 248, 255"];
97
+ readonly orange: readonly ["", "255, 247, 232", "255, 228, 186", "255, 207, 139", "255, 182, 93", "255, 154, 46", "255, 125, 0", "210, 95, 0", "166, 69, 0", "121, 46, 0", "77, 27, 0"];
98
+ readonly orangered: readonly ["", "255, 243, 232", "253, 221, 195", "252, 197, 159", "250, 172, 123", "249, 144, 87", "247, 114, 52", "204, 81, 32", "162, 53, 17", "119, 31, 6", "77, 14, 0"];
99
+ readonly gold: readonly ["", "255, 252, 232", "253, 244, 191", "252, 233, 150", "250, 220, 109", "249, 204, 69", "247, 186, 30", "204, 146, 19", "162, 109, 10", "119, 75, 4", "77, 45, 0"];
100
+ readonly yellow: readonly ["", "254, 255, 232", "254, 254, 190", "253, 250, 148", "252, 242, 107", "251, 232, 66", "250, 220, 25", "207, 175, 15", "163, 132, 8", "120, 93, 3", "77, 56, 0"];
101
+ readonly lime: readonly ["", "252, 255, 232", "237, 248, 187", "220, 241, 144", "201, 233, 104", "181, 226, 65", "159, 219, 29", "126, 183, 18", "95, 148, 10", "67, 112, 4", "42, 77, 0"];
102
+ readonly cyan: readonly ["", "232, 255, 251", "183, 244, 236", "137, 233, 224", "94, 223, 214", "55, 212, 207", "20, 201, 201", "13, 165, 170", "7, 130, 139", "3, 97, 108", "0, 66, 77"];
103
+ readonly pinkpurple: readonly ["", "255, 232, 251", "247, 186, 239", "240, 142, 230", "232, 101, 223", "225, 62, 219", "217, 26, 217", "176, 16, 182", "138, 9, 147", "101, 3, 112", "66, 0, 77"];
104
+ readonly magenta: readonly ["", "255, 232, 241", "253, 194, 219", "251, 157, 199", "249, 121, 183", "247, 84, 168", "245, 49, 157", "203, 30, 131", "161, 16, 105", "119, 6, 79", "77, 0, 52"];
105
+ readonly purple: readonly ["", "245, 232, 255", "221, 190, 246", "195, 150, 237", "168, 113, 227", "141, 78, 218", "114, 46, 209", "85, 29, 176", "60, 16, 143", "39, 6, 110", "22, 0, 77"];
106
+ readonly uBlue: readonly ["", "232, 243, 255", "190, 218, 255", "148, 191, 255", "106, 161, 255", "64, 128, 255", "22, 93, 255", "14, 66, 210", "7, 44, 166", "3, 26, 121", "0, 13, 77"];
107
+ };
108
+ readonly colorsDark: {
109
+ readonly red: readonly ["", "77, 0, 10", "119, 6, 17", "161, 22, 31", "203, 46, 52", "245, 78, 78", "247, 105, 101", "249, 141, 134", "251, 176, 167", "253, 209, 202", "255, 240, 236"];
110
+ readonly gray: readonly ["", "23, 23, 26", "46, 46, 48", "72, 72, 73", "95, 95, 96", "120, 120, 122", "146, 146, 147", "171, 171, 172", "197, 197, 197", "223, 223, 223", "246, 246, 246"];
111
+ readonly green: readonly ["", "0, 77, 28", "4, 102, 37", "10, 128, 45", "18, 154, 55", "29, 180, 64", "39, 195, 70", "80, 210, 102", "126, 225, 139", "178, 240, 183", "235, 255, 236"];
112
+ readonly blue: readonly ["", "232, 247, 255", "195, 231, 254", "159, 212, 253", "123, 192, 252", "87, 169, 251", "52, 145, 250", "32, 108, 207", "17, 75, 163", "6, 48, 120", "0, 26, 77"];
113
+ readonly orange: readonly ["", "77, 27, 0", "121, 48, 4", "166, 75, 10", "210, 105, 19", "255, 141, 31", "255, 150, 38", "255, 179, 87", "255, 205, 135", "255, 227, 184", "255, 247, 232"];
114
+ readonly orangered: readonly ["", "77, 14, 0", "119, 30, 5", "162, 55, 20", "204, 87, 41", "247, 126, 69", "249, 146, 90", "250, 173, 125", "252, 198, 161", "253, 222, 197", "255, 244, 235"];
115
+ readonly gold: readonly ["", "77, 45, 0", "119, 75, 4", "162, 111, 15", "204, 150, 31", "247, 192, 52", "249, 204, 68", "250, 220, 108", "252, 233, 149", "253, 244, 190", "255, 252, 232"];
116
+ readonly yellow: readonly ["", "77, 56, 0", "120, 94, 7", "163, 134, 20", "207, 179, 37", "250, 225, 60", "251, 233, 75", "252, 243, 116", "253, 250, 157", "254, 254, 198", "254, 255, 240"];
117
+ readonly lime: readonly ["", "42, 77, 0", "68, 112, 6", "98, 148, 18", "132, 183, 35", "168, 219, 57", "184, 226, 75", "203, 233, 112", "222, 241, 152", "238, 248, 194", "253, 255, 238"];
118
+ readonly cyan: readonly ["", "0, 66, 77", "6, 97, 108", "17, 131, 139", "31, 166, 170", "48, 201, 201", "63, 212, 207", "102, 223, 215", "144, 233, 225", "190, 244, 237", "240, 255, 252"];
119
+ readonly pinkpurple: readonly ["", "66, 0, 77", "101, 3, 112", "138, 13, 147", "176, 27, 182", "217, 46, 217", "225, 61, 219", "232, 102, 223", "240, 146, 230", "247, 193, 240", "255, 242, 253"];
120
+ readonly magenta: readonly ["", "77, 0, 52", "119, 8, 80", "161, 23, 108", "203, 43, 136", "245, 69, 166", "247, 86, 169", "249, 122, 184", "251, 158, 200", "253, 195, 219", "255, 232, 241"];
121
+ readonly purple: readonly ["", "22, 0, 77", "39, 6, 110", "62, 19, 143", "90, 37, 176", "123, 61, 209", "142, 81, 218", "169, 116, 227", "197, 154, 237", "223, 194, 246", "247, 237, 255"];
122
+ readonly uBlue: readonly ["", "0, 13, 77", "4, 27, 121", "14, 50, 166", "29, 77, 210", "48, 111, 255", "60, 126, 255", "104, 159, 255", "147, 190, 255", "190, 218, 255", "234, 244, 255"];
123
+ };
124
+ readonly radius: {
125
+ readonly sm: "4px";
126
+ readonly md: "8px";
127
+ readonly lg: "10px";
128
+ readonly full: "50%";
129
+ };
130
+ readonly shadow: {
131
+ readonly sm: "rgba(0, 0, 0, 0.1) 0px 1px 2px 0px";
132
+ readonly lg: "0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)";
133
+ };
134
+ readonly spacing: {
135
+ readonly xs: "4px";
136
+ readonly sm: "8px";
137
+ readonly md: "12px";
138
+ readonly lg: "16px";
139
+ readonly xl: "24px";
140
+ };
141
+ };
142
+
143
+ declare type ThemeMode = 'light' | 'dark';
144
+
145
+ export { }
@@ -0,0 +1,3 @@
1
+ import { n as darkTheme, r as primitives, t as lightTheme } from "./light-BLV23cx0.mjs";
2
+ import { t as applyTheme } from "./runtime-k8PUQFIG.mjs";
3
+ export { applyTheme, darkTheme, lightTheme, primitives };
@@ -0,0 +1,468 @@
1
+ const primitives = {
2
+ colors: {
3
+ red: [
4
+ "",
5
+ "255, 236, 232",
6
+ "253, 205, 197",
7
+ "251, 172, 163",
8
+ "249, 137, 129",
9
+ "247, 101, 96",
10
+ "245, 63, 63",
11
+ "203, 39, 45",
12
+ "161, 21, 30",
13
+ "119, 8, 19",
14
+ "77, 0, 10"
15
+ ],
16
+ gray: [
17
+ "",
18
+ "247, 248, 250",
19
+ "242, 243, 245",
20
+ "229, 230, 235",
21
+ "201, 205, 212",
22
+ "169, 174, 184",
23
+ "134, 144, 156",
24
+ "107, 119, 133",
25
+ "78, 89, 105",
26
+ "39, 46, 59",
27
+ "29, 33, 41"
28
+ ],
29
+ green: [
30
+ "",
31
+ "232, 255, 234",
32
+ "175, 240, 181",
33
+ "123, 225, 136",
34
+ "76, 210, 99",
35
+ "35, 195, 67",
36
+ "0, 180, 42",
37
+ "0, 154, 41",
38
+ "0, 128, 38",
39
+ "0, 102, 34",
40
+ "0, 77, 28"
41
+ ],
42
+ blue: [
43
+ "",
44
+ "0, 26, 77",
45
+ "5, 47, 120",
46
+ "19, 76, 163",
47
+ "41, 113, 207",
48
+ "70, 153, 250",
49
+ "90, 170, 251",
50
+ "125, 193, 252",
51
+ "161, 213, 253",
52
+ "198, 232, 254",
53
+ "234, 248, 255"
54
+ ],
55
+ orange: [
56
+ "",
57
+ "255, 247, 232",
58
+ "255, 228, 186",
59
+ "255, 207, 139",
60
+ "255, 182, 93",
61
+ "255, 154, 46",
62
+ "255, 125, 0",
63
+ "210, 95, 0",
64
+ "166, 69, 0",
65
+ "121, 46, 0",
66
+ "77, 27, 0"
67
+ ],
68
+ orangered: [
69
+ "",
70
+ "255, 243, 232",
71
+ "253, 221, 195",
72
+ "252, 197, 159",
73
+ "250, 172, 123",
74
+ "249, 144, 87",
75
+ "247, 114, 52",
76
+ "204, 81, 32",
77
+ "162, 53, 17",
78
+ "119, 31, 6",
79
+ "77, 14, 0"
80
+ ],
81
+ gold: [
82
+ "",
83
+ "255, 252, 232",
84
+ "253, 244, 191",
85
+ "252, 233, 150",
86
+ "250, 220, 109",
87
+ "249, 204, 69",
88
+ "247, 186, 30",
89
+ "204, 146, 19",
90
+ "162, 109, 10",
91
+ "119, 75, 4",
92
+ "77, 45, 0"
93
+ ],
94
+ yellow: [
95
+ "",
96
+ "254, 255, 232",
97
+ "254, 254, 190",
98
+ "253, 250, 148",
99
+ "252, 242, 107",
100
+ "251, 232, 66",
101
+ "250, 220, 25",
102
+ "207, 175, 15",
103
+ "163, 132, 8",
104
+ "120, 93, 3",
105
+ "77, 56, 0"
106
+ ],
107
+ lime: [
108
+ "",
109
+ "252, 255, 232",
110
+ "237, 248, 187",
111
+ "220, 241, 144",
112
+ "201, 233, 104",
113
+ "181, 226, 65",
114
+ "159, 219, 29",
115
+ "126, 183, 18",
116
+ "95, 148, 10",
117
+ "67, 112, 4",
118
+ "42, 77, 0"
119
+ ],
120
+ cyan: [
121
+ "",
122
+ "232, 255, 251",
123
+ "183, 244, 236",
124
+ "137, 233, 224",
125
+ "94, 223, 214",
126
+ "55, 212, 207",
127
+ "20, 201, 201",
128
+ "13, 165, 170",
129
+ "7, 130, 139",
130
+ "3, 97, 108",
131
+ "0, 66, 77"
132
+ ],
133
+ pinkpurple: [
134
+ "",
135
+ "255, 232, 251",
136
+ "247, 186, 239",
137
+ "240, 142, 230",
138
+ "232, 101, 223",
139
+ "225, 62, 219",
140
+ "217, 26, 217",
141
+ "176, 16, 182",
142
+ "138, 9, 147",
143
+ "101, 3, 112",
144
+ "66, 0, 77"
145
+ ],
146
+ magenta: [
147
+ "",
148
+ "255, 232, 241",
149
+ "253, 194, 219",
150
+ "251, 157, 199",
151
+ "249, 121, 183",
152
+ "247, 84, 168",
153
+ "245, 49, 157",
154
+ "203, 30, 131",
155
+ "161, 16, 105",
156
+ "119, 6, 79",
157
+ "77, 0, 52"
158
+ ],
159
+ purple: [
160
+ "",
161
+ "245, 232, 255",
162
+ "221, 190, 246",
163
+ "195, 150, 237",
164
+ "168, 113, 227",
165
+ "141, 78, 218",
166
+ "114, 46, 209",
167
+ "85, 29, 176",
168
+ "60, 16, 143",
169
+ "39, 6, 110",
170
+ "22, 0, 77"
171
+ ],
172
+ uBlue: [
173
+ "",
174
+ "232, 243, 255",
175
+ "190, 218, 255",
176
+ "148, 191, 255",
177
+ "106, 161, 255",
178
+ "64, 128, 255",
179
+ "22, 93, 255",
180
+ "14, 66, 210",
181
+ "7, 44, 166",
182
+ "3, 26, 121",
183
+ "0, 13, 77"
184
+ ]
185
+ },
186
+ colorsDark: {
187
+ red: [
188
+ "",
189
+ "77, 0, 10",
190
+ "119, 6, 17",
191
+ "161, 22, 31",
192
+ "203, 46, 52",
193
+ "245, 78, 78",
194
+ "247, 105, 101",
195
+ "249, 141, 134",
196
+ "251, 176, 167",
197
+ "253, 209, 202",
198
+ "255, 240, 236"
199
+ ],
200
+ gray: [
201
+ "",
202
+ "23, 23, 26",
203
+ "46, 46, 48",
204
+ "72, 72, 73",
205
+ "95, 95, 96",
206
+ "120, 120, 122",
207
+ "146, 146, 147",
208
+ "171, 171, 172",
209
+ "197, 197, 197",
210
+ "223, 223, 223",
211
+ "246, 246, 246"
212
+ ],
213
+ green: [
214
+ "",
215
+ "0, 77, 28",
216
+ "4, 102, 37",
217
+ "10, 128, 45",
218
+ "18, 154, 55",
219
+ "29, 180, 64",
220
+ "39, 195, 70",
221
+ "80, 210, 102",
222
+ "126, 225, 139",
223
+ "178, 240, 183",
224
+ "235, 255, 236"
225
+ ],
226
+ blue: [
227
+ "",
228
+ "232, 247, 255",
229
+ "195, 231, 254",
230
+ "159, 212, 253",
231
+ "123, 192, 252",
232
+ "87, 169, 251",
233
+ "52, 145, 250",
234
+ "32, 108, 207",
235
+ "17, 75, 163",
236
+ "6, 48, 120",
237
+ "0, 26, 77"
238
+ ],
239
+ orange: [
240
+ "",
241
+ "77, 27, 0",
242
+ "121, 48, 4",
243
+ "166, 75, 10",
244
+ "210, 105, 19",
245
+ "255, 141, 31",
246
+ "255, 150, 38",
247
+ "255, 179, 87",
248
+ "255, 205, 135",
249
+ "255, 227, 184",
250
+ "255, 247, 232"
251
+ ],
252
+ orangered: [
253
+ "",
254
+ "77, 14, 0",
255
+ "119, 30, 5",
256
+ "162, 55, 20",
257
+ "204, 87, 41",
258
+ "247, 126, 69",
259
+ "249, 146, 90",
260
+ "250, 173, 125",
261
+ "252, 198, 161",
262
+ "253, 222, 197",
263
+ "255, 244, 235"
264
+ ],
265
+ gold: [
266
+ "",
267
+ "77, 45, 0",
268
+ "119, 75, 4",
269
+ "162, 111, 15",
270
+ "204, 150, 31",
271
+ "247, 192, 52",
272
+ "249, 204, 68",
273
+ "250, 220, 108",
274
+ "252, 233, 149",
275
+ "253, 244, 190",
276
+ "255, 252, 232"
277
+ ],
278
+ yellow: [
279
+ "",
280
+ "77, 56, 0",
281
+ "120, 94, 7",
282
+ "163, 134, 20",
283
+ "207, 179, 37",
284
+ "250, 225, 60",
285
+ "251, 233, 75",
286
+ "252, 243, 116",
287
+ "253, 250, 157",
288
+ "254, 254, 198",
289
+ "254, 255, 240"
290
+ ],
291
+ lime: [
292
+ "",
293
+ "42, 77, 0",
294
+ "68, 112, 6",
295
+ "98, 148, 18",
296
+ "132, 183, 35",
297
+ "168, 219, 57",
298
+ "184, 226, 75",
299
+ "203, 233, 112",
300
+ "222, 241, 152",
301
+ "238, 248, 194",
302
+ "253, 255, 238"
303
+ ],
304
+ cyan: [
305
+ "",
306
+ "0, 66, 77",
307
+ "6, 97, 108",
308
+ "17, 131, 139",
309
+ "31, 166, 170",
310
+ "48, 201, 201",
311
+ "63, 212, 207",
312
+ "102, 223, 215",
313
+ "144, 233, 225",
314
+ "190, 244, 237",
315
+ "240, 255, 252"
316
+ ],
317
+ pinkpurple: [
318
+ "",
319
+ "66, 0, 77",
320
+ "101, 3, 112",
321
+ "138, 13, 147",
322
+ "176, 27, 182",
323
+ "217, 46, 217",
324
+ "225, 61, 219",
325
+ "232, 102, 223",
326
+ "240, 146, 230",
327
+ "247, 193, 240",
328
+ "255, 242, 253"
329
+ ],
330
+ magenta: [
331
+ "",
332
+ "77, 0, 52",
333
+ "119, 8, 80",
334
+ "161, 23, 108",
335
+ "203, 43, 136",
336
+ "245, 69, 166",
337
+ "247, 86, 169",
338
+ "249, 122, 184",
339
+ "251, 158, 200",
340
+ "253, 195, 219",
341
+ "255, 232, 241"
342
+ ],
343
+ purple: [
344
+ "",
345
+ "22, 0, 77",
346
+ "39, 6, 110",
347
+ "62, 19, 143",
348
+ "90, 37, 176",
349
+ "123, 61, 209",
350
+ "142, 81, 218",
351
+ "169, 116, 227",
352
+ "197, 154, 237",
353
+ "223, 194, 246",
354
+ "247, 237, 255"
355
+ ],
356
+ uBlue: [
357
+ "",
358
+ "0, 13, 77",
359
+ "4, 27, 121",
360
+ "14, 50, 166",
361
+ "29, 77, 210",
362
+ "48, 111, 255",
363
+ "60, 126, 255",
364
+ "104, 159, 255",
365
+ "147, 190, 255",
366
+ "190, 218, 255",
367
+ "234, 244, 255"
368
+ ]
369
+ },
370
+ radius: {
371
+ sm: "4px",
372
+ md: "8px",
373
+ lg: "10px",
374
+ full: "50%"
375
+ },
376
+ shadow: {
377
+ sm: "rgba(0, 0, 0, 0.1) 0px 1px 2px 0px",
378
+ lg: "0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)"
379
+ },
380
+ spacing: {
381
+ xs: "4px",
382
+ sm: "8px",
383
+ md: "12px",
384
+ lg: "16px",
385
+ xl: "24px"
386
+ }
387
+ }, darkTheme = {
388
+ text: {
389
+ primary: "#ffffff",
390
+ secondary: "rgba(255, 255, 255, 0.55)",
391
+ placeholder: "rgba(255, 255, 255, 0.35)",
392
+ disabled: "rgb(var(--u-blue-5))",
393
+ link: "rgb(var(--u-blue-5))",
394
+ brand: "rgb(var(--u-blue-5))",
395
+ danger: "rgb(var(--red-6))",
396
+ tips: "rgb(var(--gray-5))",
397
+ hover: "rgb(var(--u-blue-5))"
398
+ },
399
+ surface: {
400
+ page: "#303133",
401
+ panel: "#2E2E30",
402
+ container: "#2a2a2b",
403
+ elevated: "#313132",
404
+ hover: "rgb(var(--gray-3), 0.65)",
405
+ active: "rgb(var(--gray-4), 0.65)",
406
+ inverse: "rgb(var(--u-bg-inverse-1))",
407
+ popup: "#373739"
408
+ },
409
+ fill: {
410
+ weak: "rgba(255, 255, 255, .04)",
411
+ default: "rgba(255, 255, 255, .08)",
412
+ strong: "rgba(255, 255, 255, .12)",
413
+ stronger: "rgba(255, 255, 255, .16)"
414
+ },
415
+ border: {
416
+ default: "rgb(var(--gray-3))",
417
+ subtle: "rgb(var(--gray-2))",
418
+ strong: "rgb(var(--gray-4))",
419
+ focus: "rgb(var(--u-blue-5))"
420
+ },
421
+ status: {
422
+ success: "rgb(var(--green-6))",
423
+ warning: "rgb(var(--orange-6))",
424
+ danger: "rgb(var(--red-6))",
425
+ info: "rgb(var(--u-blue-5))"
426
+ }
427
+ }, lightTheme = {
428
+ text: {
429
+ primary: "rgba(0, 0, 0, 0.9)",
430
+ secondary: "rgba(0, 0, 0, 0.6)",
431
+ placeholder: "rgba(0, 0, 0, 0.4)",
432
+ disabled: "rgba(0, 0, 0, 0.26)",
433
+ link: "#003cab",
434
+ brand: "rgb(var(--u-blue-5))",
435
+ danger: "rgb(var(--red-6))",
436
+ tips: "rgb(var(--gray-5))",
437
+ hover: "rgb(var(--u-blue-5))"
438
+ },
439
+ surface: {
440
+ page: "#F4F4F4",
441
+ panel: "#FAFBFB",
442
+ container: "#ffffff",
443
+ elevated: "#ffffff",
444
+ hover: "rgb(var(--gray-3), 0.5)",
445
+ active: "rgb(var(--gray-3), 0.8)",
446
+ inverse: "rgb(var(--u-bg-inverse-1))",
447
+ popup: "#fff"
448
+ },
449
+ fill: {
450
+ weak: "rgb(var(--gray-1))",
451
+ default: "rgb(var(--gray-2))",
452
+ strong: "rgb(var(--gray-3))",
453
+ stronger: "rgb(var(--gray-4))"
454
+ },
455
+ border: {
456
+ default: "rgb(var(--gray-3))",
457
+ subtle: "rgb(var(--gray-2))",
458
+ strong: "rgb(var(--gray-4))",
459
+ focus: "rgb(var(--u-blue-5))"
460
+ },
461
+ status: {
462
+ success: "rgb(var(--green-6))",
463
+ warning: "rgb(var(--orange-6))",
464
+ danger: "rgb(var(--red-6))",
465
+ info: "rgb(var(--u-blue-5))"
466
+ }
467
+ };
468
+ export { darkTheme as n, primitives as r, lightTheme as t };
@@ -0,0 +1,9 @@
1
+ function applyTheme(e, t = {}) {
2
+ let n = t.target ?? document.documentElement;
3
+ if (e === "dark") {
4
+ n.setAttribute("theme-mode", "dark");
5
+ return;
6
+ }
7
+ n.removeAttribute("theme-mode");
8
+ }
9
+ export { applyTheme as t };
@@ -0,0 +1,9 @@
1
+ export declare function applyTheme(mode: ThemeMode, options?: ApplyThemeOptions): void;
2
+
3
+ export declare interface ApplyThemeOptions {
4
+ target?: HTMLElement;
5
+ }
6
+
7
+ export declare type ThemeMode = 'light' | 'dark';
8
+
9
+ export { }
@@ -0,0 +1,2 @@
1
+ import { t as applyTheme } from "./runtime-k8PUQFIG.mjs";
2
+ export { applyTheme };