@yunlefun/ui 0.1.0 → 0.3.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.
@@ -9,7 +9,7 @@
9
9
  :root,
10
10
  .light,
11
11
  .ylf-theme-light {
12
- --ylf-palette-blue: #2563eb;
12
+ --ylf-palette-blue: #006aeb;
13
13
  --ylf-palette-sun: #facc15;
14
14
  --ylf-palette-cyan: #06b6d4;
15
15
  --ylf-palette-coral: #ff6b4a;
@@ -19,9 +19,9 @@
19
19
  var(--ylf-palette-blue) 0% 16.667%, var(--ylf-palette-cyan) 16.667% 33.333%, var(--ylf-palette-green) 33.333% 50%,
20
20
  var(--ylf-palette-sun) 50% 66.667%, var(--ylf-palette-coral) 66.667% 83.333%, var(--ylf-palette-pink) 83.333% 100%;
21
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;
22
+ --ylf-c-brand-hover: #0057c7;
23
+ --ylf-c-brand-active: #0047a6;
24
+ --ylf-c-brand-soft: #f0f7ff;
25
25
  --ylf-accent-blue: var(--ylf-c-brand);
26
26
  --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
27
27
  --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
@@ -32,12 +32,12 @@
32
32
  --ylf-accent-soft: var(--ylf-accent-blue-soft);
33
33
  --ylf-accent-text: var(--ylf-accent-blue-text);
34
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;
35
+ --ylf-hero-start: var(--ylf-palette-blue);
36
+ --ylf-hero-middle: #005ed6;
37
+ --ylf-hero-end: #0051bd;
38
+ --ylf-hero-hover-start: #0057c7;
39
+ --ylf-hero-hover-middle: #004db3;
40
+ --ylf-hero-hover-end: #004199;
41
41
  --ylf-hero-foreground: #ffffff;
42
42
  --ylf-hero-background: linear-gradient(
43
43
  115deg,
@@ -52,33 +52,33 @@
52
52
  var(--ylf-hero-hover-end)
53
53
  );
54
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);
55
+ --ylf-hero-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 12px 26px -14px rgb(0 81 189 / 0.58);
56
+ --ylf-hero-shadow-hover: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 14px 30px -14px rgb(0 81 189 / 0.58);
57
57
  --ylf-accent-sun: var(--ylf-palette-sun);
58
58
  --ylf-accent-sun-hover: #eab308;
59
59
  --ylf-accent-sun-soft: #fef9c3;
60
60
  --ylf-accent-sun-text: #854d0e;
61
61
  --ylf-accent-sun-on: #64380e;
62
62
  --ylf-accent-cyan: var(--ylf-palette-cyan);
63
- --ylf-accent-cyan-hover: #22d3ee;
63
+ --ylf-accent-cyan-hover: #059cb8;
64
64
  --ylf-accent-cyan-soft: #cffafe;
65
65
  --ylf-accent-cyan-text: #155e75;
66
- --ylf-accent-cyan-on: #083e4f;
66
+ --ylf-accent-cyan-on: #032530;
67
67
  --ylf-accent-coral: var(--ylf-palette-coral);
68
- --ylf-accent-coral-hover: #ff856b;
68
+ --ylf-accent-coral-hover: #ef5331;
69
69
  --ylf-accent-coral-soft: #ffede6;
70
70
  --ylf-accent-coral-text: #9a3412;
71
- --ylf-accent-coral-on: #551b0a;
71
+ --ylf-accent-coral-on: #3a0e03;
72
72
  --ylf-accent-pink: var(--ylf-palette-pink);
73
- --ylf-accent-pink-hover: #f472b6;
73
+ --ylf-accent-pink-hover: #e03588;
74
74
  --ylf-accent-pink-soft: #fce7f3;
75
75
  --ylf-accent-pink-text: #9d174d;
76
- --ylf-accent-pink-on: #400a2b;
76
+ --ylf-accent-pink-on: #240317;
77
77
  --ylf-accent-green: var(--ylf-palette-green);
78
- --ylf-accent-green-hover: #4ade80;
78
+ --ylf-accent-green-hover: #18a84e;
79
79
  --ylf-accent-green-soft: #dcfce7;
80
80
  --ylf-accent-green-text: #166534;
81
- --ylf-accent-green-on: #124324;
81
+ --ylf-accent-green-on: #052e16;
82
82
  --ylf-c-feature: var(--ylf-accent-sun);
83
83
  --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
84
84
  --ylf-c-feature-text: var(--ylf-c-text);
@@ -92,16 +92,16 @@
92
92
  --ylf-status-warning-on: var(--ylf-accent-sun-on);
93
93
  --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
94
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
95
  --ylf-status-info: var(--ylf-accent-cyan);
101
96
  --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
102
97
  --ylf-status-info-on: var(--ylf-accent-cyan-on);
103
98
  --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
104
99
  --ylf-status-info-text: var(--ylf-accent-cyan-text);
100
+ --ylf-status-danger: #dc2626;
101
+ --ylf-status-danger-hover: #b91c1c;
102
+ --ylf-status-danger-on: #ffffff;
103
+ --ylf-status-danger-soft: #fef2f2;
104
+ --ylf-status-danger-text: #b91c1c;
105
105
  --ylf-c-bg: #f8fafc;
106
106
  --ylf-c-bg-soft: #f1f5f9;
107
107
  --ylf-c-bg-mute: #e2e8f0;
@@ -118,6 +118,8 @@
118
118
  --ylf-c-text-on-accent: #ffffff;
119
119
  --ylf-c-border: #e2e8f0;
120
120
  --ylf-c-border-strong: #cbd5e1;
121
+ --ylf-c-border-control: #cbd5e1;
122
+ --ylf-c-border-indicator: #7d8ca0;
121
123
  --ylf-c-overlay: rgba(13, 17, 32, 0.45);
122
124
  --ylf-glass-bg: rgba(255, 255, 255, 0.82);
123
125
  --ylf-glass-border: rgba(255, 255, 255, 0.7);
@@ -133,14 +135,13 @@
133
135
  --ylf-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
134
136
  --ylf-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);
135
137
  --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-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(15, 23, 42, 0.05);
138
139
  --ylf-shadow-inset: inset 0 1px 3px rgba(15, 23, 42, 0.08);
139
140
  --ylf-shadow-panel:
140
141
  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
142
  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);
143
+ --ylf-glow-brand: 0 6px 18px -8px rgba(0, 106, 235, 0.35);
144
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(0, 106, 235, 0.4);
144
145
  --ylf-font-display:
145
146
  'Baloo 2', 'ZCOOL KuaiLe', ui-rounded, 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'PingFang SC',
146
147
  'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', sans-serif;
@@ -188,6 +189,8 @@
188
189
  --ylf-ring-width: 2px;
189
190
  --ylf-ring-offset: 2px;
190
191
  --ylf-ring-color: var(--ylf-c-brand);
192
+ --ylf-ring-soft: color-mix(in srgb, var(--ylf-ring-color) 16%, transparent);
193
+ --ylf-shadow-focus: 0 0 0 3px var(--ylf-ring-soft);
191
194
  --ylf-disabled-opacity: 0.48;
192
195
  --ylf-control-h-sm: 34px;
193
196
  --ylf-control-h: 44px;
@@ -199,8 +202,8 @@
199
202
  --ylf-control-font-size-sm: 0.8125rem;
200
203
  --ylf-control-font-size: 0.9375rem;
201
204
  --ylf-grid-size: 32px;
202
- --ylf-c-grid: rgba(37, 99, 235, 0.06);
203
- --ylf-c-sky: #dbeafe;
205
+ --ylf-c-grid: rgba(0, 106, 235, 0.06);
206
+ --ylf-c-sky: #d4ecff;
204
207
  --ylf-c-cloud: #ffffff;
205
208
  --ylf-cloud-highlight: #fffefa;
206
209
  --ylf-cloud-body: #f2f8ff;
@@ -242,10 +245,10 @@
242
245
 
243
246
  .dark,
244
247
  .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;
248
+ --ylf-c-brand: #38acff;
249
+ --ylf-c-brand-hover: #73c5ff;
250
+ --ylf-c-brand-active: #1a95f0;
251
+ --ylf-c-brand-soft: #102845;
249
252
  --ylf-accent-blue: var(--ylf-c-brand);
250
253
  --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
251
254
  --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
@@ -276,16 +279,13 @@
276
279
  --ylf-status-warning-on: var(--ylf-accent-sun-on);
277
280
  --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
278
281
  --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
282
  --ylf-status-info: var(--ylf-accent-cyan);
285
283
  --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
286
284
  --ylf-status-info-on: var(--ylf-accent-cyan-on);
287
285
  --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
288
286
  --ylf-status-info-text: var(--ylf-accent-cyan-text);
287
+ --ylf-status-danger-soft: #3b151a;
288
+ --ylf-status-danger-text: #fca5a5;
289
289
  --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
290
290
  --ylf-c-feature-text: var(--ylf-c-text);
291
291
  --ylf-c-text-on-accent: #0f172a;
@@ -295,19 +295,20 @@
295
295
  --ylf-c-edge: rgba(2, 6, 15, 0.55);
296
296
  --ylf-c-overlay: rgba(2, 6, 15, 0.72);
297
297
  --ylf-ring-color: var(--ylf-c-brand);
298
+ --ylf-ring-soft: color-mix(in srgb, var(--ylf-ring-color) 16%, transparent);
299
+ --ylf-shadow-focus: 0 0 0 3px var(--ylf-ring-soft);
298
300
  --ylf-glass-bg: rgba(20, 29, 43, 0.9);
299
- --ylf-glass-border: rgba(96, 165, 250, 0.18);
301
+ --ylf-glass-border: rgba(56, 172, 255, 0.18);
300
302
  --ylf-shadow-sm: 0 2px 10px -2px rgba(2, 6, 15, 0.55);
301
303
  --ylf-shadow: 0 12px 30px -8px rgba(2, 6, 15, 0.6);
302
304
  --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-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(2, 6, 15, 0.28);
305
306
  --ylf-shadow-inset: inset 0 1px 4px rgba(2, 6, 15, 0.4);
306
307
  --ylf-shadow-panel:
307
308
  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
309
  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);
310
+ --ylf-glow-brand: 0 6px 18px -8px rgba(56, 172, 255, 0.3);
311
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(56, 172, 255, 0.4);
311
312
  --ylf-c-bg: #0b111c;
312
313
  --ylf-c-bg-soft: #101826;
313
314
  --ylf-c-surface: #141d2b;
@@ -319,8 +320,10 @@
319
320
  --ylf-c-placeholder: var(--ylf-c-text-3);
320
321
  --ylf-c-border: #24324a;
321
322
  --ylf-c-border-strong: #36486a;
322
- --ylf-c-grid: rgba(96, 165, 250, 0.08);
323
- --ylf-c-sky: #13233a;
323
+ --ylf-c-border-control: #36486a;
324
+ --ylf-c-border-indicator: #64748b;
325
+ --ylf-c-grid: rgba(56, 172, 255, 0.08);
326
+ --ylf-c-sky: #0e233d;
324
327
  --ylf-c-cloud: #22304a;
325
328
  --ylf-cloud-highlight: #a6bcd8;
326
329
  --ylf-cloud-body: #3e5679;
package/styles/editor.css CHANGED
@@ -37,7 +37,9 @@
37
37
  --ylf-editor-fg: #292a2e;
38
38
  --ylf-editor-muted: #5c5d65;
39
39
  --ylf-editor-border: rgb(25 25 30 / 13%);
40
- --ylf-editor-accent: var(--ylf-c-brand, #2563eb);
40
+ --ylf-editor-border-control: #c9cad0;
41
+ --ylf-editor-border-indicator: #82848d;
42
+ --ylf-editor-accent: var(--ylf-c-brand, #006aeb);
41
43
  --ylf-editor-selection: color-mix(in srgb, var(--ylf-editor-accent) 10%, transparent);
42
44
  --ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 8%), 0 10px 28px -8px rgb(0 0 0 / 18%);
43
45
  }
@@ -52,7 +54,9 @@
52
54
  --ylf-editor-fg: #eeeef0;
53
55
  --ylf-editor-muted: #b1b1b8;
54
56
  --ylf-editor-border: rgb(255 255 255 / 11%);
55
- --ylf-editor-accent: var(--ylf-c-brand, #60a5fa);
57
+ --ylf-editor-border-control: #4d4f58;
58
+ --ylf-editor-border-indicator: #82848d;
59
+ --ylf-editor-accent: var(--ylf-c-brand, #38acff);
56
60
  --ylf-editor-selection: color-mix(in srgb, var(--ylf-editor-accent) 16%, transparent);
57
61
  --ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 20%), 0 10px 28px -8px rgb(0 0 0 / 40%);
58
62
  }
@@ -66,13 +70,15 @@
66
70
  --ylf-editor-fg: #292a2e;
67
71
  --ylf-editor-muted: #5c5d65;
68
72
  --ylf-editor-border: rgb(25 25 30 / 13%);
69
- --ylf-editor-accent: var(--ylf-c-brand, #2563eb);
73
+ --ylf-editor-border-control: #c9cad0;
74
+ --ylf-editor-border-indicator: #82848d;
75
+ --ylf-editor-accent: var(--ylf-c-brand, #006aeb);
70
76
  --ylf-editor-selection: color-mix(in srgb, var(--ylf-editor-accent) 10%, transparent);
71
77
  --ylf-editor-shadow: 0 1px 3px rgb(0 0 0 / 8%), 0 10px 28px -8px rgb(0 0 0 / 18%);
72
78
  --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;
79
+ --ylf-c-brand-hover: #0057c7;
80
+ --ylf-c-brand-active: #0047a6;
81
+ --ylf-c-brand-soft: #f0f7ff;
76
82
  --ylf-accent-blue: var(--ylf-c-brand);
77
83
  --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
78
84
  --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
@@ -103,16 +109,13 @@
103
109
  --ylf-status-warning-on: var(--ylf-accent-sun-on);
104
110
  --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
105
111
  --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
112
  --ylf-status-info: var(--ylf-accent-cyan);
112
113
  --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
113
114
  --ylf-status-info-on: var(--ylf-accent-cyan-on);
114
115
  --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
115
116
  --ylf-status-info-text: var(--ylf-accent-cyan-text);
117
+ --ylf-status-danger-soft: #fef2f2;
118
+ --ylf-status-danger-text: #b91c1c;
116
119
  --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
117
120
  --ylf-c-feature-text: var(--ylf-c-text);
118
121
  --ylf-c-text-on-accent: #ffffff;
@@ -122,19 +125,20 @@
122
125
  --ylf-c-edge: rgba(30, 64, 115, 0.12);
123
126
  --ylf-c-overlay: rgba(13, 17, 32, 0.45);
124
127
  --ylf-ring-color: var(--ylf-c-brand);
128
+ --ylf-ring-soft: color-mix(in srgb, var(--ylf-ring-color) 16%, transparent);
129
+ --ylf-shadow-focus: 0 0 0 3px var(--ylf-ring-soft);
125
130
  --ylf-glass-bg: rgba(255, 255, 255, 0.82);
126
131
  --ylf-glass-border: rgba(255, 255, 255, 0.7);
127
132
  --ylf-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
128
133
  --ylf-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);
129
134
  --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);
135
+ --ylf-shadow-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(15, 23, 42, 0.05);
132
136
  --ylf-shadow-inset: inset 0 1px 3px rgba(15, 23, 42, 0.08);
133
137
  --ylf-shadow-panel:
134
138
  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
139
  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);
140
+ --ylf-glow-brand: 0 6px 18px -8px rgba(0, 106, 235, 0.35);
141
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(0, 106, 235, 0.4);
138
142
  }
139
143
 
140
144
  [data-ylf-editor-theme='dark'] {
@@ -146,13 +150,15 @@
146
150
  --ylf-editor-fg: #eeeef0;
147
151
  --ylf-editor-muted: #b1b1b8;
148
152
  --ylf-editor-border: rgb(255 255 255 / 11%);
149
- --ylf-editor-accent: var(--ylf-c-brand, #60a5fa);
153
+ --ylf-editor-border-control: #4d4f58;
154
+ --ylf-editor-border-indicator: #82848d;
155
+ --ylf-editor-accent: var(--ylf-c-brand, #38acff);
150
156
  --ylf-editor-selection: color-mix(in srgb, var(--ylf-editor-accent) 16%, transparent);
151
157
  --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;
158
+ --ylf-c-brand: #38acff;
159
+ --ylf-c-brand-hover: #73c5ff;
160
+ --ylf-c-brand-active: #1a95f0;
161
+ --ylf-c-brand-soft: #102845;
156
162
  --ylf-accent-blue: var(--ylf-c-brand);
157
163
  --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
158
164
  --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
@@ -183,16 +189,13 @@
183
189
  --ylf-status-warning-on: var(--ylf-accent-sun-on);
184
190
  --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
185
191
  --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
192
  --ylf-status-info: var(--ylf-accent-cyan);
192
193
  --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
193
194
  --ylf-status-info-on: var(--ylf-accent-cyan-on);
194
195
  --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
195
196
  --ylf-status-info-text: var(--ylf-accent-cyan-text);
197
+ --ylf-status-danger-soft: #3b151a;
198
+ --ylf-status-danger-text: #fca5a5;
196
199
  --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
197
200
  --ylf-c-feature-text: var(--ylf-c-text);
198
201
  --ylf-c-text-on-accent: #0f172a;
@@ -202,19 +205,20 @@
202
205
  --ylf-c-edge: rgba(2, 6, 15, 0.55);
203
206
  --ylf-c-overlay: rgba(2, 6, 15, 0.72);
204
207
  --ylf-ring-color: var(--ylf-c-brand);
208
+ --ylf-ring-soft: color-mix(in srgb, var(--ylf-ring-color) 16%, transparent);
209
+ --ylf-shadow-focus: 0 0 0 3px var(--ylf-ring-soft);
205
210
  --ylf-glass-bg: rgba(20, 29, 43, 0.9);
206
- --ylf-glass-border: rgba(96, 165, 250, 0.18);
211
+ --ylf-glass-border: rgba(56, 172, 255, 0.18);
207
212
  --ylf-shadow-sm: 0 2px 10px -2px rgba(2, 6, 15, 0.55);
208
213
  --ylf-shadow: 0 12px 30px -8px rgba(2, 6, 15, 0.6);
209
214
  --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);
215
+ --ylf-shadow-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(2, 6, 15, 0.28);
212
216
  --ylf-shadow-inset: inset 0 1px 4px rgba(2, 6, 15, 0.4);
213
217
  --ylf-shadow-panel:
214
218
  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
219
  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);
220
+ --ylf-glow-brand: 0 6px 18px -8px rgba(56, 172, 255, 0.3);
221
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(56, 172, 255, 0.4);
218
222
  }
219
223
 
220
224
  @media (pointer: coarse) {
@@ -241,6 +245,8 @@
241
245
  --ylf-c-placeholder: var(--ylf-editor-muted);
242
246
  --ylf-c-border: var(--ylf-editor-border);
243
247
  --ylf-c-border-strong: var(--ylf-editor-border);
248
+ --ylf-c-border-control: var(--ylf-editor-border-control);
249
+ --ylf-c-border-indicator: var(--ylf-editor-border-indicator);
244
250
  --ylf-c-brand-soft: var(--ylf-editor-selection);
245
251
  --ylf-shadow-panel: var(--ylf-editor-shadow);
246
252
  --ylf-font-body: var(--ylf-editor-font);
package/styles/tokens.css CHANGED
@@ -9,7 +9,7 @@
9
9
  :root,
10
10
  .light,
11
11
  .ylf-theme-light {
12
- --ylf-palette-blue: #2563eb;
12
+ --ylf-palette-blue: #006aeb;
13
13
  --ylf-palette-sun: #facc15;
14
14
  --ylf-palette-cyan: #06b6d4;
15
15
  --ylf-palette-coral: #ff6b4a;
@@ -19,9 +19,9 @@
19
19
  var(--ylf-palette-blue) 0% 16.667%, var(--ylf-palette-cyan) 16.667% 33.333%, var(--ylf-palette-green) 33.333% 50%,
20
20
  var(--ylf-palette-sun) 50% 66.667%, var(--ylf-palette-coral) 66.667% 83.333%, var(--ylf-palette-pink) 83.333% 100%;
21
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;
22
+ --ylf-c-brand-hover: #0057c7;
23
+ --ylf-c-brand-active: #0047a6;
24
+ --ylf-c-brand-soft: #f0f7ff;
25
25
  --ylf-accent-blue: var(--ylf-c-brand);
26
26
  --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
27
27
  --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
@@ -32,12 +32,12 @@
32
32
  --ylf-accent-soft: var(--ylf-accent-blue-soft);
33
33
  --ylf-accent-text: var(--ylf-accent-blue-text);
34
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;
35
+ --ylf-hero-start: var(--ylf-palette-blue);
36
+ --ylf-hero-middle: #005ed6;
37
+ --ylf-hero-end: #0051bd;
38
+ --ylf-hero-hover-start: #0057c7;
39
+ --ylf-hero-hover-middle: #004db3;
40
+ --ylf-hero-hover-end: #004199;
41
41
  --ylf-hero-foreground: #ffffff;
42
42
  --ylf-hero-background: linear-gradient(
43
43
  115deg,
@@ -52,33 +52,33 @@
52
52
  var(--ylf-hero-hover-end)
53
53
  );
54
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);
55
+ --ylf-hero-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 12px 26px -14px rgb(0 81 189 / 0.58);
56
+ --ylf-hero-shadow-hover: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 14px 30px -14px rgb(0 81 189 / 0.58);
57
57
  --ylf-accent-sun: var(--ylf-palette-sun);
58
58
  --ylf-accent-sun-hover: #eab308;
59
59
  --ylf-accent-sun-soft: #fef9c3;
60
60
  --ylf-accent-sun-text: #854d0e;
61
61
  --ylf-accent-sun-on: #64380e;
62
62
  --ylf-accent-cyan: var(--ylf-palette-cyan);
63
- --ylf-accent-cyan-hover: #22d3ee;
63
+ --ylf-accent-cyan-hover: #059cb8;
64
64
  --ylf-accent-cyan-soft: #cffafe;
65
65
  --ylf-accent-cyan-text: #155e75;
66
- --ylf-accent-cyan-on: #083e4f;
66
+ --ylf-accent-cyan-on: #032530;
67
67
  --ylf-accent-coral: var(--ylf-palette-coral);
68
- --ylf-accent-coral-hover: #ff856b;
68
+ --ylf-accent-coral-hover: #ef5331;
69
69
  --ylf-accent-coral-soft: #ffede6;
70
70
  --ylf-accent-coral-text: #9a3412;
71
- --ylf-accent-coral-on: #551b0a;
71
+ --ylf-accent-coral-on: #3a0e03;
72
72
  --ylf-accent-pink: var(--ylf-palette-pink);
73
- --ylf-accent-pink-hover: #f472b6;
73
+ --ylf-accent-pink-hover: #e03588;
74
74
  --ylf-accent-pink-soft: #fce7f3;
75
75
  --ylf-accent-pink-text: #9d174d;
76
- --ylf-accent-pink-on: #400a2b;
76
+ --ylf-accent-pink-on: #240317;
77
77
  --ylf-accent-green: var(--ylf-palette-green);
78
- --ylf-accent-green-hover: #4ade80;
78
+ --ylf-accent-green-hover: #18a84e;
79
79
  --ylf-accent-green-soft: #dcfce7;
80
80
  --ylf-accent-green-text: #166534;
81
- --ylf-accent-green-on: #124324;
81
+ --ylf-accent-green-on: #052e16;
82
82
  --ylf-c-feature: var(--ylf-accent-sun);
83
83
  --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
84
84
  --ylf-c-feature-text: var(--ylf-c-text);
@@ -92,16 +92,16 @@
92
92
  --ylf-status-warning-on: var(--ylf-accent-sun-on);
93
93
  --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
94
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
95
  --ylf-status-info: var(--ylf-accent-cyan);
101
96
  --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
102
97
  --ylf-status-info-on: var(--ylf-accent-cyan-on);
103
98
  --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
104
99
  --ylf-status-info-text: var(--ylf-accent-cyan-text);
100
+ --ylf-status-danger: #dc2626;
101
+ --ylf-status-danger-hover: #b91c1c;
102
+ --ylf-status-danger-on: #ffffff;
103
+ --ylf-status-danger-soft: #fef2f2;
104
+ --ylf-status-danger-text: #b91c1c;
105
105
  --ylf-c-bg: #f8fafc;
106
106
  --ylf-c-bg-soft: #f1f5f9;
107
107
  --ylf-c-bg-mute: #e2e8f0;
@@ -118,6 +118,8 @@
118
118
  --ylf-c-text-on-accent: #ffffff;
119
119
  --ylf-c-border: #e2e8f0;
120
120
  --ylf-c-border-strong: #cbd5e1;
121
+ --ylf-c-border-control: #cbd5e1;
122
+ --ylf-c-border-indicator: #7d8ca0;
121
123
  --ylf-c-overlay: rgba(13, 17, 32, 0.45);
122
124
  --ylf-glass-bg: rgba(255, 255, 255, 0.82);
123
125
  --ylf-glass-border: rgba(255, 255, 255, 0.7);
@@ -133,14 +135,13 @@
133
135
  --ylf-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
134
136
  --ylf-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);
135
137
  --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-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(15, 23, 42, 0.05);
138
139
  --ylf-shadow-inset: inset 0 1px 3px rgba(15, 23, 42, 0.08);
139
140
  --ylf-shadow-panel:
140
141
  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
142
  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);
143
+ --ylf-glow-brand: 0 6px 18px -8px rgba(0, 106, 235, 0.35);
144
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(0, 106, 235, 0.4);
144
145
  --ylf-font-display:
145
146
  'Baloo 2', 'ZCOOL KuaiLe', ui-rounded, 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'PingFang SC',
146
147
  'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', sans-serif;
@@ -188,6 +189,8 @@
188
189
  --ylf-ring-width: 2px;
189
190
  --ylf-ring-offset: 2px;
190
191
  --ylf-ring-color: var(--ylf-c-brand);
192
+ --ylf-ring-soft: color-mix(in srgb, var(--ylf-ring-color) 16%, transparent);
193
+ --ylf-shadow-focus: 0 0 0 3px var(--ylf-ring-soft);
191
194
  --ylf-disabled-opacity: 0.48;
192
195
  --ylf-control-h-sm: 34px;
193
196
  --ylf-control-h: 44px;
@@ -199,8 +202,8 @@
199
202
  --ylf-control-font-size-sm: 0.8125rem;
200
203
  --ylf-control-font-size: 0.9375rem;
201
204
  --ylf-grid-size: 32px;
202
- --ylf-c-grid: rgba(37, 99, 235, 0.06);
203
- --ylf-c-sky: #dbeafe;
205
+ --ylf-c-grid: rgba(0, 106, 235, 0.06);
206
+ --ylf-c-sky: #d4ecff;
204
207
  --ylf-c-cloud: #ffffff;
205
208
  --ylf-cloud-highlight: #fffefa;
206
209
  --ylf-cloud-body: #f2f8ff;
@@ -242,10 +245,10 @@
242
245
 
243
246
  .dark,
244
247
  .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;
248
+ --ylf-c-brand: #38acff;
249
+ --ylf-c-brand-hover: #73c5ff;
250
+ --ylf-c-brand-active: #1a95f0;
251
+ --ylf-c-brand-soft: #102845;
249
252
  --ylf-accent-blue: var(--ylf-c-brand);
250
253
  --ylf-accent-blue-hover: var(--ylf-c-brand-hover);
251
254
  --ylf-accent-blue-soft: var(--ylf-c-brand-soft);
@@ -276,16 +279,13 @@
276
279
  --ylf-status-warning-on: var(--ylf-accent-sun-on);
277
280
  --ylf-status-warning-soft: var(--ylf-accent-sun-soft);
278
281
  --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
282
  --ylf-status-info: var(--ylf-accent-cyan);
285
283
  --ylf-status-info-hover: var(--ylf-accent-cyan-hover);
286
284
  --ylf-status-info-on: var(--ylf-accent-cyan-on);
287
285
  --ylf-status-info-soft: var(--ylf-accent-cyan-soft);
288
286
  --ylf-status-info-text: var(--ylf-accent-cyan-text);
287
+ --ylf-status-danger-soft: #3b151a;
288
+ --ylf-status-danger-text: #fca5a5;
289
289
  --ylf-c-feature-bg: var(--ylf-accent-sun-soft);
290
290
  --ylf-c-feature-text: var(--ylf-c-text);
291
291
  --ylf-c-text-on-accent: #0f172a;
@@ -295,19 +295,20 @@
295
295
  --ylf-c-edge: rgba(2, 6, 15, 0.55);
296
296
  --ylf-c-overlay: rgba(2, 6, 15, 0.72);
297
297
  --ylf-ring-color: var(--ylf-c-brand);
298
+ --ylf-ring-soft: color-mix(in srgb, var(--ylf-ring-color) 16%, transparent);
299
+ --ylf-shadow-focus: 0 0 0 3px var(--ylf-ring-soft);
298
300
  --ylf-glass-bg: rgba(20, 29, 43, 0.9);
299
- --ylf-glass-border: rgba(96, 165, 250, 0.18);
301
+ --ylf-glass-border: rgba(56, 172, 255, 0.18);
300
302
  --ylf-shadow-sm: 0 2px 10px -2px rgba(2, 6, 15, 0.55);
301
303
  --ylf-shadow: 0 12px 30px -8px rgba(2, 6, 15, 0.6);
302
304
  --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-control: inset 0 1px 0 var(--ylf-c-highlight), 0 1px 2px rgba(2, 6, 15, 0.28);
305
306
  --ylf-shadow-inset: inset 0 1px 4px rgba(2, 6, 15, 0.4);
306
307
  --ylf-shadow-panel:
307
308
  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
309
  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);
310
+ --ylf-glow-brand: 0 6px 18px -8px rgba(56, 172, 255, 0.3);
311
+ --ylf-glow-brand-hover: 0 8px 22px -8px rgba(56, 172, 255, 0.4);
311
312
  --ylf-c-bg: #0b111c;
312
313
  --ylf-c-bg-soft: #101826;
313
314
  --ylf-c-surface: #141d2b;
@@ -319,8 +320,10 @@
319
320
  --ylf-c-placeholder: var(--ylf-c-text-3);
320
321
  --ylf-c-border: #24324a;
321
322
  --ylf-c-border-strong: #36486a;
322
- --ylf-c-grid: rgba(96, 165, 250, 0.08);
323
- --ylf-c-sky: #13233a;
323
+ --ylf-c-border-control: #36486a;
324
+ --ylf-c-border-indicator: #64748b;
325
+ --ylf-c-grid: rgba(56, 172, 255, 0.08);
326
+ --ylf-c-sky: #0e233d;
324
327
  --ylf-c-cloud: #22304a;
325
328
  --ylf-cloud-highlight: #a6bcd8;
326
329
  --ylf-cloud-body: #3e5679;
package/tokens/index.d.ts CHANGED
@@ -24,7 +24,11 @@ export declare const ylfTokens: {
24
24
  readonly light: Readonly<Record<'base' | 'hover' | 'soft' | 'text' | 'on', string>>
25
25
  readonly dark: Readonly<Record<'soft' | 'text', string>>
26
26
  }>>
27
- readonly statusMap: Readonly<Record<YlfStatus, Exclude<YlfAccentTone, 'blue'>>>
27
+ readonly statusMap: Readonly<Record<Exclude<YlfStatus, 'danger'>, Exclude<YlfAccentTone, 'blue'>>>
28
+ readonly statusColors: Readonly<Record<'danger', {
29
+ readonly light: Readonly<Record<'base' | 'hover' | 'soft' | 'text' | 'on', string>>
30
+ readonly dark: Readonly<Record<'soft' | 'text', string>>
31
+ }>>
28
32
  readonly neutrals: {
29
33
  readonly light: Readonly<Record<string, string>>
30
34
  readonly dark: Readonly<Record<string, string>>
package/tokens/index.mjs CHANGED
@@ -24,6 +24,7 @@ import {
24
24
  ylfRadius,
25
25
  ylfShadow,
26
26
  ylfSpace,
27
+ ylfStatusColors,
27
28
  ylfStatuses,
28
29
  ylfStatusMap,
29
30
  ylfTypography,
@@ -41,6 +42,7 @@ export const ylfTokens = {
41
42
  hero: ylfHero,
42
43
  accents: ylfAccents,
43
44
  statusMap: ylfStatusMap,
45
+ statusColors: ylfStatusColors,
44
46
  neutrals: ylfNeutrals,
45
47
  glass: ylfGlass,
46
48
  radius: ylfRadius,