@yunlefun/ui 0.0.6 → 0.1.0

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.
@@ -0,0 +1,2 @@
1
+ // TypeScript 6 checks side-effect imports, including stylesheet export aliases.
2
+ export {}
@@ -0,0 +1,259 @@
1
+ /* YunLeFun Design · Editor profile. Generated from packages/ui/tokens/source.mjs. */
2
+
3
+ @layer ylf.tokens, ylf.compat, ylf.profile, ylf.adapters;
4
+
5
+ @layer ylf.profile {
6
+ :root {
7
+ --ylf-editor-font: var(
8
+ --ylf-font-ui,
9
+ -apple-system,
10
+ BlinkMacSystemFont,
11
+ 'Segoe UI',
12
+ 'PingFang SC',
13
+ 'Hiragino Sans GB',
14
+ 'Microsoft YaHei',
15
+ system-ui,
16
+ sans-serif
17
+ );
18
+ --ylf-editor-text: 12px;
19
+ --ylf-editor-caption: 11px;
20
+ --ylf-editor-control-sm: 24px;
21
+ --ylf-editor-control: 28px;
22
+ --ylf-editor-row: 32px;
23
+ --ylf-editor-header: 32px;
24
+ --ylf-editor-radius: 5px;
25
+ --ylf-editor-panel-radius: 10px;
26
+ --ylf-editor-panel-width: 272px;
27
+ }
28
+
29
+ :root,
30
+ .light,
31
+ .ylf-theme-light {
32
+ --ylf-editor-bg: #f6f6f7;
33
+ --ylf-editor-chrome: #ebebed;
34
+ --ylf-editor-panel: #f6f6f7;
35
+ --ylf-editor-field: #ffffff;
36
+ --ylf-editor-workspace: #d7d7da;
37
+ --ylf-editor-fg: #292a2e;
38
+ --ylf-editor-muted: #5c5d65;
39
+ --ylf-editor-border: rgb(25 25 30 / 13%);
40
+ --ylf-editor-accent: var(--ylf-c-brand, #2563eb);
41
+ --ylf-editor-selection: color-mix(in srgb, var(--ylf-editor-accent) 10%, transparent);
42
+ --ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 8%), 0 10px 28px -8px rgb(0 0 0 / 18%);
43
+ }
44
+
45
+ .dark,
46
+ .ylf-theme-dark {
47
+ --ylf-editor-bg: #242426;
48
+ --ylf-editor-chrome: #303033;
49
+ --ylf-editor-panel: #292a2d;
50
+ --ylf-editor-field: #353639;
51
+ --ylf-editor-workspace: #202123;
52
+ --ylf-editor-fg: #eeeef0;
53
+ --ylf-editor-muted: #b1b1b8;
54
+ --ylf-editor-border: rgb(255 255 255 / 11%);
55
+ --ylf-editor-accent: var(--ylf-c-brand, #60a5fa);
56
+ --ylf-editor-selection: color-mix(in srgb, var(--ylf-editor-accent) 16%, transparent);
57
+ --ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 20%), 0 10px 28px -8px rgb(0 0 0 / 40%);
58
+ }
59
+
60
+ [data-ylf-editor-theme='light'] {
61
+ --ylf-editor-bg: #f6f6f7;
62
+ --ylf-editor-chrome: #ebebed;
63
+ --ylf-editor-panel: #f6f6f7;
64
+ --ylf-editor-field: #ffffff;
65
+ --ylf-editor-workspace: #d7d7da;
66
+ --ylf-editor-fg: #292a2e;
67
+ --ylf-editor-muted: #5c5d65;
68
+ --ylf-editor-border: rgb(25 25 30 / 13%);
69
+ --ylf-editor-accent: var(--ylf-c-brand, #2563eb);
70
+ --ylf-editor-selection: color-mix(in srgb, var(--ylf-editor-accent) 10%, transparent);
71
+ --ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 8%), 0 10px 28px -8px rgb(0 0 0 / 18%);
72
+ --ylf-c-brand: var(--ylf-palette-blue);
73
+ --ylf-c-brand-hover: #1d4ed8;
74
+ --ylf-c-brand-active: #1e40af;
75
+ --ylf-c-brand-soft: #eff6ff;
76
+ --ylf-accent-blue: var(--ylf-c-brand);
77
+ --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
78
+ --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
79
+ --ylf-accent-blue-text: var(--ylf-c-brand);
80
+ --ylf-accent-blue-on: var(--ylf-c-text-on-accent);
81
+ --ylf-accent: var(--ylf-accent-blue);
82
+ --ylf-accent-hover: var(--ylf-accent-blue-hover);
83
+ --ylf-accent-soft: var(--ylf-accent-blue-soft);
84
+ --ylf-accent-text: var(--ylf-accent-blue-text);
85
+ --ylf-accent-on: var(--ylf-accent-blue-on);
86
+ --ylf-accent-sun-soft: #fef9c3;
87
+ --ylf-accent-sun-text: #854d0e;
88
+ --ylf-accent-cyan-soft: #cffafe;
89
+ --ylf-accent-cyan-text: #155e75;
90
+ --ylf-accent-coral-soft: #ffede6;
91
+ --ylf-accent-coral-text: #9a3412;
92
+ --ylf-accent-pink-soft: #fce7f3;
93
+ --ylf-accent-pink-text: #9d174d;
94
+ --ylf-accent-green-soft: #dcfce7;
95
+ --ylf-accent-green-text: #166534;
96
+ --ylf-status-success: var(--ylf-accent-green);
97
+ --ylf-status-success-hover: var(--ylf-accent-green-hover);
98
+ --ylf-status-success-on: var(--ylf-accent-green-on);
99
+ --ylf-status-success-soft: var(--ylf-accent-green-soft);
100
+ --ylf-status-success-text: var(--ylf-accent-green-text);
101
+ --ylf-status-warning: var(--ylf-accent-sun);
102
+ --ylf-status-warning-hover: var(--ylf-accent-sun-hover);
103
+ --ylf-status-warning-on: var(--ylf-accent-sun-on);
104
+ --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
105
+ --ylf-status-warning-text: var(--ylf-accent-sun-text);
106
+ --ylf-status-danger: var(--ylf-accent-coral);
107
+ --ylf-status-danger-hover: var(--ylf-accent-coral-hover);
108
+ --ylf-status-danger-on: var(--ylf-accent-coral-on);
109
+ --ylf-status-danger-soft: var(--ylf-accent-coral-soft);
110
+ --ylf-status-danger-text: var(--ylf-accent-coral-text);
111
+ --ylf-status-info: var(--ylf-accent-cyan);
112
+ --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
113
+ --ylf-status-info-on: var(--ylf-accent-cyan-on);
114
+ --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
115
+ --ylf-status-info-text: var(--ylf-accent-cyan-text);
116
+ --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
117
+ --ylf-c-feature-text: var(--ylf-c-text);
118
+ --ylf-c-text-on-accent: #ffffff;
119
+ --ylf-c-bg-mute: #e2e8f0;
120
+ --ylf-c-panel: rgba(255, 255, 255, 0.96);
121
+ --ylf-c-highlight: rgba(255, 255, 255, 0.9);
122
+ --ylf-c-edge: rgba(30, 64, 115, 0.12);
123
+ --ylf-c-overlay: rgba(13, 17, 32, 0.45);
124
+ --ylf-ring-color: var(--ylf-c-brand);
125
+ --ylf-glass-bg: rgba(255, 255, 255, 0.82);
126
+ --ylf-glass-border: rgba(255, 255, 255, 0.7);
127
+ --ylf-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
128
+ --ylf-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);
129
+ --ylf-shadow-lg: 0 22px 56px -14px rgba(15, 23, 42, 0.22);
130
+ --ylf-shadow-control:
131
+ inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(15, 23, 42, 0.06), 0 3px 6px -4px rgba(15, 23, 42, 0.16);
132
+ --ylf-shadow-inset: inset 0 1px 3px rgba(15, 23, 42, 0.08);
133
+ --ylf-shadow-panel:
134
+ inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 8px 16px -8px rgba(15, 23, 42, 0.14),
135
+ 0 28px 64px -20px rgba(24, 52, 102, 0.24);
136
+ --ylf-glow-brand: 0 6px 18px -8px rgba(37, 99, 235, 0.35);
137
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(37, 99, 235, 0.4);
138
+ }
139
+
140
+ [data-ylf-editor-theme='dark'] {
141
+ --ylf-editor-bg: #242426;
142
+ --ylf-editor-chrome: #303033;
143
+ --ylf-editor-panel: #292a2d;
144
+ --ylf-editor-field: #353639;
145
+ --ylf-editor-workspace: #202123;
146
+ --ylf-editor-fg: #eeeef0;
147
+ --ylf-editor-muted: #b1b1b8;
148
+ --ylf-editor-border: rgb(255 255 255 / 11%);
149
+ --ylf-editor-accent: var(--ylf-c-brand, #60a5fa);
150
+ --ylf-editor-selection: color-mix(in srgb, var(--ylf-editor-accent) 16%, transparent);
151
+ --ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 20%), 0 10px 28px -8px rgb(0 0 0 / 40%);
152
+ --ylf-c-brand: #60a5fa;
153
+ --ylf-c-brand-hover: #93c5fd;
154
+ --ylf-c-brand-active: #3b82f6;
155
+ --ylf-c-brand-soft: #15264a;
156
+ --ylf-accent-blue: var(--ylf-c-brand);
157
+ --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
158
+ --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
159
+ --ylf-accent-blue-text: var(--ylf-c-brand);
160
+ --ylf-accent-blue-on: var(--ylf-c-text-on-accent);
161
+ --ylf-accent: var(--ylf-accent-blue);
162
+ --ylf-accent-hover: var(--ylf-accent-blue-hover);
163
+ --ylf-accent-soft: var(--ylf-accent-blue-soft);
164
+ --ylf-accent-text: var(--ylf-accent-blue-text);
165
+ --ylf-accent-on: var(--ylf-accent-blue-on);
166
+ --ylf-accent-sun-soft: #30290f;
167
+ --ylf-accent-sun-text: #fde047;
168
+ --ylf-accent-cyan-soft: #10313d;
169
+ --ylf-accent-cyan-text: #67e8f9;
170
+ --ylf-accent-coral-soft: #39231f;
171
+ --ylf-accent-coral-text: #fda48c;
172
+ --ylf-accent-pink-soft: #351e32;
173
+ --ylf-accent-pink-text: #f9a8d4;
174
+ --ylf-accent-green-soft: #142e26;
175
+ --ylf-accent-green-text: #86efac;
176
+ --ylf-status-success: var(--ylf-accent-green);
177
+ --ylf-status-success-hover: var(--ylf-accent-green-hover);
178
+ --ylf-status-success-on: var(--ylf-accent-green-on);
179
+ --ylf-status-success-soft: var(--ylf-accent-green-soft);
180
+ --ylf-status-success-text: var(--ylf-accent-green-text);
181
+ --ylf-status-warning: var(--ylf-accent-sun);
182
+ --ylf-status-warning-hover: var(--ylf-accent-sun-hover);
183
+ --ylf-status-warning-on: var(--ylf-accent-sun-on);
184
+ --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
185
+ --ylf-status-warning-text: var(--ylf-accent-sun-text);
186
+ --ylf-status-danger: var(--ylf-accent-coral);
187
+ --ylf-status-danger-hover: var(--ylf-accent-coral-hover);
188
+ --ylf-status-danger-on: var(--ylf-accent-coral-on);
189
+ --ylf-status-danger-soft: var(--ylf-accent-coral-soft);
190
+ --ylf-status-danger-text: var(--ylf-accent-coral-text);
191
+ --ylf-status-info: var(--ylf-accent-cyan);
192
+ --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
193
+ --ylf-status-info-on: var(--ylf-accent-cyan-on);
194
+ --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
195
+ --ylf-status-info-text: var(--ylf-accent-cyan-text);
196
+ --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
197
+ --ylf-c-feature-text: var(--ylf-c-text);
198
+ --ylf-c-text-on-accent: #0f172a;
199
+ --ylf-c-bg-mute: #22304a;
200
+ --ylf-c-panel: rgba(20, 29, 43, 0.96);
201
+ --ylf-c-highlight: rgba(186, 214, 255, 0.1);
202
+ --ylf-c-edge: rgba(2, 6, 15, 0.55);
203
+ --ylf-c-overlay: rgba(2, 6, 15, 0.72);
204
+ --ylf-ring-color: var(--ylf-c-brand);
205
+ --ylf-glass-bg: rgba(20, 29, 43, 0.9);
206
+ --ylf-glass-border: rgba(96, 165, 250, 0.18);
207
+ --ylf-shadow-sm: 0 2px 10px -2px rgba(2, 6, 15, 0.55);
208
+ --ylf-shadow: 0 12px 30px -8px rgba(2, 6, 15, 0.6);
209
+ --ylf-shadow-lg: 0 24px 60px -14px rgba(2, 6, 15, 0.65);
210
+ --ylf-shadow-control:
211
+ inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(2, 6, 15, 0.3), 0 4px 8px -4px rgba(2, 6, 15, 0.35);
212
+ --ylf-shadow-inset: inset 0 1px 4px rgba(2, 6, 15, 0.4);
213
+ --ylf-shadow-panel:
214
+ inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 10px 20px -8px rgba(2, 6, 15, 0.4),
215
+ 0 32px 72px -18px rgba(2, 6, 15, 0.6);
216
+ --ylf-glow-brand: 0 6px 18px -8px rgba(96, 165, 250, 0.3);
217
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(96, 165, 250, 0.4);
218
+ }
219
+
220
+ @media (pointer: coarse) {
221
+ :root {
222
+ --ylf-editor-control-sm: 40px;
223
+ --ylf-editor-control: 40px;
224
+ --ylf-editor-row: 44px;
225
+ --ylf-editor-header: 44px;
226
+ }
227
+ }
228
+
229
+ [data-ylf-profile='editor'],
230
+ [data-ylf-profile='editor'] :is(.light, .dark, .ylf-theme-light, .ylf-theme-dark, [data-ylf-editor-theme]) {
231
+ --ylf-c-bg: var(--ylf-editor-bg);
232
+ --ylf-c-bg-soft: var(--ylf-editor-chrome);
233
+ --ylf-c-bg-mute: var(--ylf-editor-chrome);
234
+ --ylf-c-surface: var(--ylf-editor-field);
235
+ --ylf-c-surface-raised: var(--ylf-editor-panel);
236
+ --ylf-c-surface-inset: var(--ylf-editor-chrome);
237
+ --ylf-c-panel: var(--ylf-editor-panel);
238
+ --ylf-c-text: var(--ylf-editor-fg);
239
+ --ylf-c-text-2: var(--ylf-editor-muted);
240
+ --ylf-c-text-3: var(--ylf-editor-muted);
241
+ --ylf-c-placeholder: var(--ylf-editor-muted);
242
+ --ylf-c-border: var(--ylf-editor-border);
243
+ --ylf-c-border-strong: var(--ylf-editor-border);
244
+ --ylf-c-brand-soft: var(--ylf-editor-selection);
245
+ --ylf-shadow-panel: var(--ylf-editor-shadow);
246
+ --ylf-font-body: var(--ylf-editor-font);
247
+ --ylf-radius: var(--ylf-editor-radius);
248
+ --ylf-radius-sm: var(--ylf-editor-radius);
249
+ --ylf-radius-lg: var(--ylf-editor-panel-radius);
250
+ --ylf-control-h-sm: var(--ylf-editor-control-sm);
251
+ --ylf-control-h: var(--ylf-editor-control);
252
+ --ylf-control-h-lg: var(--ylf-editor-row);
253
+ --ylf-control-radius: var(--ylf-editor-radius);
254
+ --ylf-control-radius-sm: var(--ylf-editor-radius);
255
+ --ylf-panel-radius: var(--ylf-editor-panel-radius);
256
+ --ylf-control-font-size: var(--ylf-editor-text);
257
+ --ylf-control-font-size-sm: var(--ylf-editor-caption);
258
+ }
259
+ }
@@ -0,0 +1,403 @@
1
+ /* =============================================================================
2
+ * YunLeFun Design · 晴空蓝为主,高饱和纯色点缀(自动生成,请勿手改)
3
+ * 源文件:packages/ui/tokens/source.mjs
4
+ * ============================================================================= */
5
+
6
+ @layer ylf.tokens, ylf.compat, ylf.profile, ylf.adapters;
7
+
8
+ @layer ylf.tokens {
9
+ :root,
10
+ .light,
11
+ .ylf-theme-light {
12
+ --ylf-palette-blue: #2563eb;
13
+ --ylf-palette-sun: #facc15;
14
+ --ylf-palette-cyan: #06b6d4;
15
+ --ylf-palette-coral: #ff6b4a;
16
+ --ylf-palette-pink: #ec4899;
17
+ --ylf-palette-green: #22c55e;
18
+ --ylf-spectrum-stops:
19
+ var(--ylf-palette-blue) 0% 16.667%, var(--ylf-palette-cyan) 16.667% 33.333%, var(--ylf-palette-green) 33.333% 50%,
20
+ var(--ylf-palette-sun) 50% 66.667%, var(--ylf-palette-coral) 66.667% 83.333%, var(--ylf-palette-pink) 83.333% 100%;
21
+ --ylf-c-brand: var(--ylf-palette-blue);
22
+ --ylf-c-brand-hover: #1d4ed8;
23
+ --ylf-c-brand-active: #1e40af;
24
+ --ylf-c-brand-soft: #eff6ff;
25
+ --ylf-accent-blue: var(--ylf-c-brand);
26
+ --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
27
+ --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
28
+ --ylf-accent-blue-text: var(--ylf-c-brand);
29
+ --ylf-accent-blue-on: var(--ylf-c-text-on-accent);
30
+ --ylf-accent: var(--ylf-accent-blue);
31
+ --ylf-accent-hover: var(--ylf-accent-blue-hover);
32
+ --ylf-accent-soft: var(--ylf-accent-blue-soft);
33
+ --ylf-accent-text: var(--ylf-accent-blue-text);
34
+ --ylf-accent-on: var(--ylf-accent-blue-on);
35
+ --ylf-hero-start: #2563eb;
36
+ --ylf-hero-middle: #0f74b8;
37
+ --ylf-hero-end: #0369a1;
38
+ --ylf-hero-hover-start: #1d4ed8;
39
+ --ylf-hero-hover-middle: #096ba9;
40
+ --ylf-hero-hover-end: #075985;
41
+ --ylf-hero-foreground: #ffffff;
42
+ --ylf-hero-background: linear-gradient(
43
+ 115deg,
44
+ var(--ylf-hero-start),
45
+ var(--ylf-hero-middle) 58%,
46
+ var(--ylf-hero-end)
47
+ );
48
+ --ylf-hero-background-hover: linear-gradient(
49
+ 115deg,
50
+ var(--ylf-hero-hover-start),
51
+ var(--ylf-hero-hover-middle) 58%,
52
+ var(--ylf-hero-hover-end)
53
+ );
54
+ --ylf-hero-border: rgb(255 255 255 / 0.16);
55
+ --ylf-hero-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 12px 26px -14px rgb(3 105 161 / 0.58);
56
+ --ylf-hero-shadow-hover: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 14px 30px -14px rgb(3 105 161 / 0.58);
57
+ --ylf-accent-sun: var(--ylf-palette-sun);
58
+ --ylf-accent-sun-hover: #eab308;
59
+ --ylf-accent-sun-soft: #fef9c3;
60
+ --ylf-accent-sun-text: #854d0e;
61
+ --ylf-accent-sun-on: #64380e;
62
+ --ylf-accent-cyan: var(--ylf-palette-cyan);
63
+ --ylf-accent-cyan-hover: #22d3ee;
64
+ --ylf-accent-cyan-soft: #cffafe;
65
+ --ylf-accent-cyan-text: #155e75;
66
+ --ylf-accent-cyan-on: #083e4f;
67
+ --ylf-accent-coral: var(--ylf-palette-coral);
68
+ --ylf-accent-coral-hover: #ff856b;
69
+ --ylf-accent-coral-soft: #ffede6;
70
+ --ylf-accent-coral-text: #9a3412;
71
+ --ylf-accent-coral-on: #551b0a;
72
+ --ylf-accent-pink: var(--ylf-palette-pink);
73
+ --ylf-accent-pink-hover: #f472b6;
74
+ --ylf-accent-pink-soft: #fce7f3;
75
+ --ylf-accent-pink-text: #9d174d;
76
+ --ylf-accent-pink-on: #400a2b;
77
+ --ylf-accent-green: var(--ylf-palette-green);
78
+ --ylf-accent-green-hover: #4ade80;
79
+ --ylf-accent-green-soft: #dcfce7;
80
+ --ylf-accent-green-text: #166534;
81
+ --ylf-accent-green-on: #124324;
82
+ --ylf-c-feature: var(--ylf-accent-sun);
83
+ --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
84
+ --ylf-c-feature-text: var(--ylf-c-text);
85
+ --ylf-status-success: var(--ylf-accent-green);
86
+ --ylf-status-success-hover: var(--ylf-accent-green-hover);
87
+ --ylf-status-success-on: var(--ylf-accent-green-on);
88
+ --ylf-status-success-soft: var(--ylf-accent-green-soft);
89
+ --ylf-status-success-text: var(--ylf-accent-green-text);
90
+ --ylf-status-warning: var(--ylf-accent-sun);
91
+ --ylf-status-warning-hover: var(--ylf-accent-sun-hover);
92
+ --ylf-status-warning-on: var(--ylf-accent-sun-on);
93
+ --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
94
+ --ylf-status-warning-text: var(--ylf-accent-sun-text);
95
+ --ylf-status-danger: var(--ylf-accent-coral);
96
+ --ylf-status-danger-hover: var(--ylf-accent-coral-hover);
97
+ --ylf-status-danger-on: var(--ylf-accent-coral-on);
98
+ --ylf-status-danger-soft: var(--ylf-accent-coral-soft);
99
+ --ylf-status-danger-text: var(--ylf-accent-coral-text);
100
+ --ylf-status-info: var(--ylf-accent-cyan);
101
+ --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
102
+ --ylf-status-info-on: var(--ylf-accent-cyan-on);
103
+ --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
104
+ --ylf-status-info-text: var(--ylf-accent-cyan-text);
105
+ --ylf-c-bg: #f8fafc;
106
+ --ylf-c-bg-soft: #f1f5f9;
107
+ --ylf-c-bg-mute: #e2e8f0;
108
+ --ylf-c-surface: #ffffff;
109
+ --ylf-c-surface-raised: #f6f9ff;
110
+ --ylf-c-surface-inset: #edf2f8;
111
+ --ylf-c-highlight: rgba(255, 255, 255, 0.9);
112
+ --ylf-c-panel: rgba(255, 255, 255, 0.96);
113
+ --ylf-c-edge: rgba(30, 64, 115, 0.12);
114
+ --ylf-c-text: #0f172a;
115
+ --ylf-c-text-2: #475569;
116
+ --ylf-c-text-3: #5a697e;
117
+ --ylf-c-placeholder: var(--ylf-c-text-3);
118
+ --ylf-c-text-on-accent: #ffffff;
119
+ --ylf-c-border: #e2e8f0;
120
+ --ylf-c-border-strong: #cbd5e1;
121
+ --ylf-c-overlay: rgba(13, 17, 32, 0.45);
122
+ --ylf-glass-bg: rgba(255, 255, 255, 0.82);
123
+ --ylf-glass-border: rgba(255, 255, 255, 0.7);
124
+ --ylf-glass-blur: saturate(160%) blur(16px);
125
+ --ylf-overlay-blur: saturate(85%) blur(10px);
126
+ --ylf-radius-2xs: 4px;
127
+ --ylf-radius-xs: 6px;
128
+ --ylf-radius-sm: 10px;
129
+ --ylf-radius: 14px;
130
+ --ylf-radius-lg: 20px;
131
+ --ylf-radius-xl: 28px;
132
+ --ylf-radius-pill: 999px;
133
+ --ylf-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
134
+ --ylf-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);
135
+ --ylf-shadow-lg: 0 22px 56px -14px rgba(15, 23, 42, 0.22);
136
+ --ylf-shadow-control:
137
+ inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(15, 23, 42, 0.06), 0 3px 6px -4px rgba(15, 23, 42, 0.16);
138
+ --ylf-shadow-inset: inset 0 1px 3px rgba(15, 23, 42, 0.08);
139
+ --ylf-shadow-panel:
140
+ inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 8px 16px -8px rgba(15, 23, 42, 0.14),
141
+ 0 28px 64px -20px rgba(24, 52, 102, 0.24);
142
+ --ylf-glow-brand: 0 6px 18px -8px rgba(37, 99, 235, 0.35);
143
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(37, 99, 235, 0.4);
144
+ --ylf-font-display:
145
+ 'Baloo 2', 'ZCOOL KuaiLe', ui-rounded, 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'PingFang SC',
146
+ 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', sans-serif;
147
+ --ylf-font-wordmark: var(--ylf-font-display);
148
+ --ylf-font-heading:
149
+ ui-rounded, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', system-ui,
150
+ sans-serif;
151
+ --ylf-font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
152
+ --ylf-font-ui:
153
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui,
154
+ sans-serif;
155
+ --ylf-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
156
+ --ylf-text-2xs: 0.6875rem;
157
+ --ylf-text-xs: 0.75rem;
158
+ --ylf-text-sm: 0.875rem;
159
+ --ylf-text-base: 1rem;
160
+ --ylf-text-lg: 1.25rem;
161
+ --ylf-text-xl: 1.5rem;
162
+ --ylf-text-2xl: 2rem;
163
+ --ylf-text-display: clamp(2.25rem, 4.5vw, 4rem);
164
+ --ylf-leading-heading: 1.25;
165
+ --ylf-leading-normal: 1.5;
166
+ --ylf-leading-body: 1.75;
167
+ --ylf-space-1: 4px;
168
+ --ylf-space-2: 8px;
169
+ --ylf-space-3: 12px;
170
+ --ylf-space-4: 16px;
171
+ --ylf-space-5: 20px;
172
+ --ylf-space-6: 24px;
173
+ --ylf-space-8: 32px;
174
+ --ylf-space-10: 40px;
175
+ --ylf-space-12: 48px;
176
+ --ylf-space-16: 64px;
177
+ --ylf-space-0_5: 2px;
178
+ --ylf-space-1_5: 6px;
179
+ --ylf-layout-page: 1200px;
180
+ --ylf-layout-reading: 720px;
181
+ --ylf-z-base: 1;
182
+ --ylf-z-sticky: 50;
183
+ --ylf-z-overlay: 100;
184
+ --ylf-z-modal: 101;
185
+ --ylf-z-popover: 105;
186
+ --ylf-z-tooltip: 110;
187
+ --ylf-z-toast: 120;
188
+ --ylf-ring-width: 2px;
189
+ --ylf-ring-offset: 2px;
190
+ --ylf-ring-color: var(--ylf-c-brand);
191
+ --ylf-disabled-opacity: 0.48;
192
+ --ylf-control-h-sm: 34px;
193
+ --ylf-control-h: 44px;
194
+ --ylf-control-h-lg: 48px;
195
+ --ylf-control-h-xl: 56px;
196
+ --ylf-control-radius-sm: var(--ylf-radius-sm);
197
+ --ylf-control-radius: var(--ylf-radius);
198
+ --ylf-panel-radius: var(--ylf-radius-lg);
199
+ --ylf-control-font-size-sm: 0.8125rem;
200
+ --ylf-control-font-size: 0.9375rem;
201
+ --ylf-grid-size: 32px;
202
+ --ylf-c-grid: rgba(37, 99, 235, 0.06);
203
+ --ylf-c-sky: #dbeafe;
204
+ --ylf-c-cloud: #ffffff;
205
+ --ylf-cloud-highlight: #fffefa;
206
+ --ylf-cloud-body: #f2f8ff;
207
+ --ylf-cloud-shade: #c6dff5;
208
+ --ylf-cloud-shadow: #83addb;
209
+ --ylf-cloud-rim: #ffffff;
210
+ --ylf-cloud-face: #5a7fae;
211
+ --ylf-cloud-haze-color: #9cc6ef;
212
+ --ylf-touch-target: 44px;
213
+ --ylf-viewport-gutter: 16px;
214
+ --ylf-duration-press: 100ms;
215
+ --ylf-duration-enter: 240ms;
216
+ --ylf-duration-exit: 160ms;
217
+ --ylf-press-scale: 0.98;
218
+ --ylf-hover-lift: -1px;
219
+ --ylf-duration-fast: 160ms;
220
+ --ylf-duration-normal: 240ms;
221
+ --ylf-duration-slow: 480ms;
222
+ --ylf-ease-standard: cubic-bezier(0.2, 0, 0, 1);
223
+ --ylf-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
224
+ --ylf-ease-spring: linear(
225
+ 0,
226
+ 0.009,
227
+ 0.035 2.1%,
228
+ 0.141 4.4%,
229
+ 0.723 12.9%,
230
+ 0.938 16.7%,
231
+ 1.017 19.4%,
232
+ 1.067,
233
+ 1.089 24.6%,
234
+ 1.088 27.4%,
235
+ 1.061 31.2%,
236
+ 1.008 38.7%,
237
+ 0.988 44.4%,
238
+ 0.999 61.5%,
239
+ 1
240
+ );
241
+ }
242
+
243
+ .dark,
244
+ .ylf-theme-dark {
245
+ --ylf-c-brand: #60a5fa;
246
+ --ylf-c-brand-hover: #93c5fd;
247
+ --ylf-c-brand-active: #3b82f6;
248
+ --ylf-c-brand-soft: #15264a;
249
+ --ylf-accent-blue: var(--ylf-c-brand);
250
+ --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
251
+ --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
252
+ --ylf-accent-blue-text: var(--ylf-c-brand);
253
+ --ylf-accent-blue-on: var(--ylf-c-text-on-accent);
254
+ --ylf-accent: var(--ylf-accent-blue);
255
+ --ylf-accent-hover: var(--ylf-accent-blue-hover);
256
+ --ylf-accent-soft: var(--ylf-accent-blue-soft);
257
+ --ylf-accent-text: var(--ylf-accent-blue-text);
258
+ --ylf-accent-on: var(--ylf-accent-blue-on);
259
+ --ylf-accent-sun-soft: #30290f;
260
+ --ylf-accent-sun-text: #fde047;
261
+ --ylf-accent-cyan-soft: #10313d;
262
+ --ylf-accent-cyan-text: #67e8f9;
263
+ --ylf-accent-coral-soft: #39231f;
264
+ --ylf-accent-coral-text: #fda48c;
265
+ --ylf-accent-pink-soft: #351e32;
266
+ --ylf-accent-pink-text: #f9a8d4;
267
+ --ylf-accent-green-soft: #142e26;
268
+ --ylf-accent-green-text: #86efac;
269
+ --ylf-status-success: var(--ylf-accent-green);
270
+ --ylf-status-success-hover: var(--ylf-accent-green-hover);
271
+ --ylf-status-success-on: var(--ylf-accent-green-on);
272
+ --ylf-status-success-soft: var(--ylf-accent-green-soft);
273
+ --ylf-status-success-text: var(--ylf-accent-green-text);
274
+ --ylf-status-warning: var(--ylf-accent-sun);
275
+ --ylf-status-warning-hover: var(--ylf-accent-sun-hover);
276
+ --ylf-status-warning-on: var(--ylf-accent-sun-on);
277
+ --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
278
+ --ylf-status-warning-text: var(--ylf-accent-sun-text);
279
+ --ylf-status-danger: var(--ylf-accent-coral);
280
+ --ylf-status-danger-hover: var(--ylf-accent-coral-hover);
281
+ --ylf-status-danger-on: var(--ylf-accent-coral-on);
282
+ --ylf-status-danger-soft: var(--ylf-accent-coral-soft);
283
+ --ylf-status-danger-text: var(--ylf-accent-coral-text);
284
+ --ylf-status-info: var(--ylf-accent-cyan);
285
+ --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
286
+ --ylf-status-info-on: var(--ylf-accent-cyan-on);
287
+ --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
288
+ --ylf-status-info-text: var(--ylf-accent-cyan-text);
289
+ --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
290
+ --ylf-c-feature-text: var(--ylf-c-text);
291
+ --ylf-c-text-on-accent: #0f172a;
292
+ --ylf-c-bg-mute: #22304a;
293
+ --ylf-c-panel: rgba(20, 29, 43, 0.96);
294
+ --ylf-c-highlight: rgba(186, 214, 255, 0.1);
295
+ --ylf-c-edge: rgba(2, 6, 15, 0.55);
296
+ --ylf-c-overlay: rgba(2, 6, 15, 0.72);
297
+ --ylf-ring-color: var(--ylf-c-brand);
298
+ --ylf-glass-bg: rgba(20, 29, 43, 0.9);
299
+ --ylf-glass-border: rgba(96, 165, 250, 0.18);
300
+ --ylf-shadow-sm: 0 2px 10px -2px rgba(2, 6, 15, 0.55);
301
+ --ylf-shadow: 0 12px 30px -8px rgba(2, 6, 15, 0.6);
302
+ --ylf-shadow-lg: 0 24px 60px -14px rgba(2, 6, 15, 0.65);
303
+ --ylf-shadow-control:
304
+ inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(2, 6, 15, 0.3), 0 4px 8px -4px rgba(2, 6, 15, 0.35);
305
+ --ylf-shadow-inset: inset 0 1px 4px rgba(2, 6, 15, 0.4);
306
+ --ylf-shadow-panel:
307
+ inset 0 1px 0 var(--ylf-c-highlight), 0 0 0 1px var(--ylf-c-edge), 0 10px 20px -8px rgba(2, 6, 15, 0.4),
308
+ 0 32px 72px -18px rgba(2, 6, 15, 0.6);
309
+ --ylf-glow-brand: 0 6px 18px -8px rgba(96, 165, 250, 0.3);
310
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(96, 165, 250, 0.4);
311
+ --ylf-c-bg: #0b111c;
312
+ --ylf-c-bg-soft: #101826;
313
+ --ylf-c-surface: #141d2b;
314
+ --ylf-c-surface-raised: #1b2638;
315
+ --ylf-c-surface-inset: #080d16;
316
+ --ylf-c-text: #e7eef8;
317
+ --ylf-c-text-2: #b9c6d9;
318
+ --ylf-c-text-3: #8d9db4;
319
+ --ylf-c-placeholder: var(--ylf-c-text-3);
320
+ --ylf-c-border: #24324a;
321
+ --ylf-c-border-strong: #36486a;
322
+ --ylf-c-grid: rgba(96, 165, 250, 0.08);
323
+ --ylf-c-sky: #13233a;
324
+ --ylf-c-cloud: #22304a;
325
+ --ylf-cloud-highlight: #a6bcd8;
326
+ --ylf-cloud-body: #3e5679;
327
+ --ylf-cloud-shade: #1c2b44;
328
+ --ylf-cloud-shadow: #0a1424;
329
+ --ylf-cloud-rim: #cfdff2;
330
+ --ylf-cloud-face: #0e1a2d;
331
+ --ylf-cloud-haze-color: #1f3354;
332
+ }
333
+
334
+ @media (prefers-reduced-motion: reduce) {
335
+ :root,
336
+ .light,
337
+ .dark,
338
+ .ylf-theme-light,
339
+ .ylf-theme-dark {
340
+ --ylf-duration-press: 0ms;
341
+ --ylf-duration-enter: 0ms;
342
+ --ylf-duration-exit: 0ms;
343
+ --ylf-press-scale: 1;
344
+ --ylf-hover-lift: 0px;
345
+ --ylf-duration-fast: 0ms;
346
+ --ylf-duration-normal: 0ms;
347
+ --ylf-duration-slow: 0ms;
348
+ }
349
+ }
350
+
351
+ [data-ylf-tone='blue'] {
352
+ --ylf-accent-blue: var(--ylf-c-brand);
353
+ --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
354
+ --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
355
+ --ylf-accent-blue-text: var(--ylf-c-brand);
356
+ --ylf-accent-blue-on: var(--ylf-c-text-on-accent);
357
+ --ylf-accent: var(--ylf-accent-blue);
358
+ --ylf-accent-hover: var(--ylf-accent-blue-hover);
359
+ --ylf-accent-soft: var(--ylf-accent-blue-soft);
360
+ --ylf-accent-text: var(--ylf-accent-blue-text);
361
+ --ylf-accent-on: var(--ylf-accent-blue-on);
362
+ }
363
+
364
+ [data-ylf-tone='sun'] {
365
+ --ylf-accent: var(--ylf-accent-sun);
366
+ --ylf-accent-hover: var(--ylf-accent-sun-hover);
367
+ --ylf-accent-soft: var(--ylf-accent-sun-soft);
368
+ --ylf-accent-text: var(--ylf-accent-sun-text);
369
+ --ylf-accent-on: var(--ylf-accent-sun-on);
370
+ }
371
+
372
+ [data-ylf-tone='cyan'] {
373
+ --ylf-accent: var(--ylf-accent-cyan);
374
+ --ylf-accent-hover: var(--ylf-accent-cyan-hover);
375
+ --ylf-accent-soft: var(--ylf-accent-cyan-soft);
376
+ --ylf-accent-text: var(--ylf-accent-cyan-text);
377
+ --ylf-accent-on: var(--ylf-accent-cyan-on);
378
+ }
379
+
380
+ [data-ylf-tone='coral'] {
381
+ --ylf-accent: var(--ylf-accent-coral);
382
+ --ylf-accent-hover: var(--ylf-accent-coral-hover);
383
+ --ylf-accent-soft: var(--ylf-accent-coral-soft);
384
+ --ylf-accent-text: var(--ylf-accent-coral-text);
385
+ --ylf-accent-on: var(--ylf-accent-coral-on);
386
+ }
387
+
388
+ [data-ylf-tone='pink'] {
389
+ --ylf-accent: var(--ylf-accent-pink);
390
+ --ylf-accent-hover: var(--ylf-accent-pink-hover);
391
+ --ylf-accent-soft: var(--ylf-accent-pink-soft);
392
+ --ylf-accent-text: var(--ylf-accent-pink-text);
393
+ --ylf-accent-on: var(--ylf-accent-pink-on);
394
+ }
395
+
396
+ [data-ylf-tone='green'] {
397
+ --ylf-accent: var(--ylf-accent-green);
398
+ --ylf-accent-hover: var(--ylf-accent-green-hover);
399
+ --ylf-accent-soft: var(--ylf-accent-green-soft);
400
+ --ylf-accent-text: var(--ylf-accent-green-text);
401
+ --ylf-accent-on: var(--ylf-accent-green-on);
402
+ }
403
+ }