@yunlefun/ui 0.0.7 → 0.2.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.
- package/dist/adapters/nuxt-ui.css +1 -0
- package/dist/adapters/shadcn.css +1 -0
- package/dist/adapters/tdesign.css +1 -0
- package/dist/admin.css +1 -0
- package/dist/compat.css +1 -0
- package/dist/editor.css +1 -0
- package/dist/fonts.css +1 -0
- package/dist/index.css +1 -1
- package/dist/patterns.css +1 -1
- package/dist/tokens.css +1 -0
- package/dist/tokens.json +1371 -0
- package/package.json +53 -8
- package/styles/adapters/nuxt-ui.css +36 -0
- package/styles/adapters/shadcn.css +38 -0
- package/styles/adapters/tdesign.css +160 -0
- package/styles/admin.css +239 -43
- package/styles/compat.css +48 -0
- package/styles/css-vars.scss +427 -396
- package/styles/editor.css +255 -52
- package/styles/tokens.css +402 -0
- package/tokens/index.d.ts +73 -0
- package/tokens/index.mjs +75 -0
- package/tokens/source.mjs +734 -0
- package/unocss.d.ts +17 -0
- package/unocss.mjs +150 -0
|
@@ -0,0 +1,402 @@
|
|
|
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: #006aeb;
|
|
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: #0057c7;
|
|
23
|
+
--ylf-c-brand-active: #0047a6;
|
|
24
|
+
--ylf-c-brand-soft: #f0f7ff;
|
|
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: 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
|
+
--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(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
|
+
--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: #059cb8;
|
|
64
|
+
--ylf-accent-cyan-soft: #cffafe;
|
|
65
|
+
--ylf-accent-cyan-text: #155e75;
|
|
66
|
+
--ylf-accent-cyan-on: #032530;
|
|
67
|
+
--ylf-accent-coral: var(--ylf-palette-coral);
|
|
68
|
+
--ylf-accent-coral-hover: #ef5331;
|
|
69
|
+
--ylf-accent-coral-soft: #ffede6;
|
|
70
|
+
--ylf-accent-coral-text: #9a3412;
|
|
71
|
+
--ylf-accent-coral-on: #3a0e03;
|
|
72
|
+
--ylf-accent-pink: var(--ylf-palette-pink);
|
|
73
|
+
--ylf-accent-pink-hover: #e03588;
|
|
74
|
+
--ylf-accent-pink-soft: #fce7f3;
|
|
75
|
+
--ylf-accent-pink-text: #9d174d;
|
|
76
|
+
--ylf-accent-pink-on: #240317;
|
|
77
|
+
--ylf-accent-green: var(--ylf-palette-green);
|
|
78
|
+
--ylf-accent-green-hover: #18a84e;
|
|
79
|
+
--ylf-accent-green-soft: #dcfce7;
|
|
80
|
+
--ylf-accent-green-text: #166534;
|
|
81
|
+
--ylf-accent-green-on: #052e16;
|
|
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-info: var(--ylf-accent-cyan);
|
|
96
|
+
--ylf-status-info-hover: var(--ylf-accent-cyan-hover);
|
|
97
|
+
--ylf-status-info-on: var(--ylf-accent-cyan-on);
|
|
98
|
+
--ylf-status-info-soft: var(--ylf-accent-cyan-soft);
|
|
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
|
+
--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-border-control: #7d8ca0;
|
|
122
|
+
--ylf-c-overlay: rgba(13, 17, 32, 0.45);
|
|
123
|
+
--ylf-glass-bg: rgba(255, 255, 255, 0.82);
|
|
124
|
+
--ylf-glass-border: rgba(255, 255, 255, 0.7);
|
|
125
|
+
--ylf-glass-blur: saturate(160%) blur(16px);
|
|
126
|
+
--ylf-overlay-blur: saturate(85%) blur(10px);
|
|
127
|
+
--ylf-radius-2xs: 4px;
|
|
128
|
+
--ylf-radius-xs: 6px;
|
|
129
|
+
--ylf-radius-sm: 10px;
|
|
130
|
+
--ylf-radius: 14px;
|
|
131
|
+
--ylf-radius-lg: 20px;
|
|
132
|
+
--ylf-radius-xl: 28px;
|
|
133
|
+
--ylf-radius-pill: 999px;
|
|
134
|
+
--ylf-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
|
|
135
|
+
--ylf-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);
|
|
136
|
+
--ylf-shadow-lg: 0 22px 56px -14px rgba(15, 23, 42, 0.22);
|
|
137
|
+
--ylf-shadow-control:
|
|
138
|
+
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);
|
|
139
|
+
--ylf-shadow-inset: inset 0 1px 3px rgba(15, 23, 42, 0.08);
|
|
140
|
+
--ylf-shadow-panel:
|
|
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),
|
|
142
|
+
0 28px 64px -20px rgba(24, 52, 102, 0.24);
|
|
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);
|
|
145
|
+
--ylf-font-display:
|
|
146
|
+
'Baloo 2', 'ZCOOL KuaiLe', ui-rounded, 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'PingFang SC',
|
|
147
|
+
'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', sans-serif;
|
|
148
|
+
--ylf-font-wordmark: var(--ylf-font-display);
|
|
149
|
+
--ylf-font-heading:
|
|
150
|
+
ui-rounded, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', system-ui,
|
|
151
|
+
sans-serif;
|
|
152
|
+
--ylf-font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
|
|
153
|
+
--ylf-font-ui:
|
|
154
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui,
|
|
155
|
+
sans-serif;
|
|
156
|
+
--ylf-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
|
|
157
|
+
--ylf-text-2xs: 0.6875rem;
|
|
158
|
+
--ylf-text-xs: 0.75rem;
|
|
159
|
+
--ylf-text-sm: 0.875rem;
|
|
160
|
+
--ylf-text-base: 1rem;
|
|
161
|
+
--ylf-text-lg: 1.25rem;
|
|
162
|
+
--ylf-text-xl: 1.5rem;
|
|
163
|
+
--ylf-text-2xl: 2rem;
|
|
164
|
+
--ylf-text-display: clamp(2.25rem, 4.5vw, 4rem);
|
|
165
|
+
--ylf-leading-heading: 1.25;
|
|
166
|
+
--ylf-leading-normal: 1.5;
|
|
167
|
+
--ylf-leading-body: 1.75;
|
|
168
|
+
--ylf-space-1: 4px;
|
|
169
|
+
--ylf-space-2: 8px;
|
|
170
|
+
--ylf-space-3: 12px;
|
|
171
|
+
--ylf-space-4: 16px;
|
|
172
|
+
--ylf-space-5: 20px;
|
|
173
|
+
--ylf-space-6: 24px;
|
|
174
|
+
--ylf-space-8: 32px;
|
|
175
|
+
--ylf-space-10: 40px;
|
|
176
|
+
--ylf-space-12: 48px;
|
|
177
|
+
--ylf-space-16: 64px;
|
|
178
|
+
--ylf-space-0_5: 2px;
|
|
179
|
+
--ylf-space-1_5: 6px;
|
|
180
|
+
--ylf-layout-page: 1200px;
|
|
181
|
+
--ylf-layout-reading: 720px;
|
|
182
|
+
--ylf-z-base: 1;
|
|
183
|
+
--ylf-z-sticky: 50;
|
|
184
|
+
--ylf-z-overlay: 100;
|
|
185
|
+
--ylf-z-modal: 101;
|
|
186
|
+
--ylf-z-popover: 105;
|
|
187
|
+
--ylf-z-tooltip: 110;
|
|
188
|
+
--ylf-z-toast: 120;
|
|
189
|
+
--ylf-ring-width: 2px;
|
|
190
|
+
--ylf-ring-offset: 2px;
|
|
191
|
+
--ylf-ring-color: var(--ylf-c-brand);
|
|
192
|
+
--ylf-disabled-opacity: 0.48;
|
|
193
|
+
--ylf-control-h-sm: 34px;
|
|
194
|
+
--ylf-control-h: 44px;
|
|
195
|
+
--ylf-control-h-lg: 48px;
|
|
196
|
+
--ylf-control-h-xl: 56px;
|
|
197
|
+
--ylf-control-radius-sm: var(--ylf-radius-sm);
|
|
198
|
+
--ylf-control-radius: var(--ylf-radius);
|
|
199
|
+
--ylf-panel-radius: var(--ylf-radius-lg);
|
|
200
|
+
--ylf-control-font-size-sm: 0.8125rem;
|
|
201
|
+
--ylf-control-font-size: 0.9375rem;
|
|
202
|
+
--ylf-grid-size: 32px;
|
|
203
|
+
--ylf-c-grid: rgba(0, 106, 235, 0.06);
|
|
204
|
+
--ylf-c-sky: #d4ecff;
|
|
205
|
+
--ylf-c-cloud: #ffffff;
|
|
206
|
+
--ylf-cloud-highlight: #fffefa;
|
|
207
|
+
--ylf-cloud-body: #f2f8ff;
|
|
208
|
+
--ylf-cloud-shade: #c6dff5;
|
|
209
|
+
--ylf-cloud-shadow: #83addb;
|
|
210
|
+
--ylf-cloud-rim: #ffffff;
|
|
211
|
+
--ylf-cloud-face: #5a7fae;
|
|
212
|
+
--ylf-cloud-haze-color: #9cc6ef;
|
|
213
|
+
--ylf-touch-target: 44px;
|
|
214
|
+
--ylf-viewport-gutter: 16px;
|
|
215
|
+
--ylf-duration-press: 100ms;
|
|
216
|
+
--ylf-duration-enter: 240ms;
|
|
217
|
+
--ylf-duration-exit: 160ms;
|
|
218
|
+
--ylf-press-scale: 0.98;
|
|
219
|
+
--ylf-hover-lift: -1px;
|
|
220
|
+
--ylf-duration-fast: 160ms;
|
|
221
|
+
--ylf-duration-normal: 240ms;
|
|
222
|
+
--ylf-duration-slow: 480ms;
|
|
223
|
+
--ylf-ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
224
|
+
--ylf-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
225
|
+
--ylf-ease-spring: linear(
|
|
226
|
+
0,
|
|
227
|
+
0.009,
|
|
228
|
+
0.035 2.1%,
|
|
229
|
+
0.141 4.4%,
|
|
230
|
+
0.723 12.9%,
|
|
231
|
+
0.938 16.7%,
|
|
232
|
+
1.017 19.4%,
|
|
233
|
+
1.067,
|
|
234
|
+
1.089 24.6%,
|
|
235
|
+
1.088 27.4%,
|
|
236
|
+
1.061 31.2%,
|
|
237
|
+
1.008 38.7%,
|
|
238
|
+
0.988 44.4%,
|
|
239
|
+
0.999 61.5%,
|
|
240
|
+
1
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.dark,
|
|
245
|
+
.ylf-theme-dark {
|
|
246
|
+
--ylf-c-brand: #38acff;
|
|
247
|
+
--ylf-c-brand-hover: #73c5ff;
|
|
248
|
+
--ylf-c-brand-active: #1a95f0;
|
|
249
|
+
--ylf-c-brand-soft: #102845;
|
|
250
|
+
--ylf-accent-blue: var(--ylf-c-brand);
|
|
251
|
+
--ylf-accent-blue-hover: var(--ylf-c-brand-hover);
|
|
252
|
+
--ylf-accent-blue-soft: var(--ylf-c-brand-soft);
|
|
253
|
+
--ylf-accent-blue-text: var(--ylf-c-brand);
|
|
254
|
+
--ylf-accent-blue-on: var(--ylf-c-text-on-accent);
|
|
255
|
+
--ylf-accent: var(--ylf-accent-blue);
|
|
256
|
+
--ylf-accent-hover: var(--ylf-accent-blue-hover);
|
|
257
|
+
--ylf-accent-soft: var(--ylf-accent-blue-soft);
|
|
258
|
+
--ylf-accent-text: var(--ylf-accent-blue-text);
|
|
259
|
+
--ylf-accent-on: var(--ylf-accent-blue-on);
|
|
260
|
+
--ylf-accent-sun-soft: #30290f;
|
|
261
|
+
--ylf-accent-sun-text: #fde047;
|
|
262
|
+
--ylf-accent-cyan-soft: #10313d;
|
|
263
|
+
--ylf-accent-cyan-text: #67e8f9;
|
|
264
|
+
--ylf-accent-coral-soft: #39231f;
|
|
265
|
+
--ylf-accent-coral-text: #fda48c;
|
|
266
|
+
--ylf-accent-pink-soft: #351e32;
|
|
267
|
+
--ylf-accent-pink-text: #f9a8d4;
|
|
268
|
+
--ylf-accent-green-soft: #142e26;
|
|
269
|
+
--ylf-accent-green-text: #86efac;
|
|
270
|
+
--ylf-status-success: var(--ylf-accent-green);
|
|
271
|
+
--ylf-status-success-hover: var(--ylf-accent-green-hover);
|
|
272
|
+
--ylf-status-success-on: var(--ylf-accent-green-on);
|
|
273
|
+
--ylf-status-success-soft: var(--ylf-accent-green-soft);
|
|
274
|
+
--ylf-status-success-text: var(--ylf-accent-green-text);
|
|
275
|
+
--ylf-status-warning: var(--ylf-accent-sun);
|
|
276
|
+
--ylf-status-warning-hover: var(--ylf-accent-sun-hover);
|
|
277
|
+
--ylf-status-warning-on: var(--ylf-accent-sun-on);
|
|
278
|
+
--ylf-status-warning-soft: var(--ylf-accent-sun-soft);
|
|
279
|
+
--ylf-status-warning-text: var(--ylf-accent-sun-text);
|
|
280
|
+
--ylf-status-info: var(--ylf-accent-cyan);
|
|
281
|
+
--ylf-status-info-hover: var(--ylf-accent-cyan-hover);
|
|
282
|
+
--ylf-status-info-on: var(--ylf-accent-cyan-on);
|
|
283
|
+
--ylf-status-info-soft: var(--ylf-accent-cyan-soft);
|
|
284
|
+
--ylf-status-info-text: var(--ylf-accent-cyan-text);
|
|
285
|
+
--ylf-status-danger-soft: #3b151a;
|
|
286
|
+
--ylf-status-danger-text: #fca5a5;
|
|
287
|
+
--ylf-c-feature-bg: var(--ylf-accent-sun-soft);
|
|
288
|
+
--ylf-c-feature-text: var(--ylf-c-text);
|
|
289
|
+
--ylf-c-text-on-accent: #0f172a;
|
|
290
|
+
--ylf-c-bg-mute: #22304a;
|
|
291
|
+
--ylf-c-panel: rgba(20, 29, 43, 0.96);
|
|
292
|
+
--ylf-c-highlight: rgba(186, 214, 255, 0.1);
|
|
293
|
+
--ylf-c-edge: rgba(2, 6, 15, 0.55);
|
|
294
|
+
--ylf-c-overlay: rgba(2, 6, 15, 0.72);
|
|
295
|
+
--ylf-ring-color: var(--ylf-c-brand);
|
|
296
|
+
--ylf-glass-bg: rgba(20, 29, 43, 0.9);
|
|
297
|
+
--ylf-glass-border: rgba(56, 172, 255, 0.18);
|
|
298
|
+
--ylf-shadow-sm: 0 2px 10px -2px rgba(2, 6, 15, 0.55);
|
|
299
|
+
--ylf-shadow: 0 12px 30px -8px rgba(2, 6, 15, 0.6);
|
|
300
|
+
--ylf-shadow-lg: 0 24px 60px -14px rgba(2, 6, 15, 0.65);
|
|
301
|
+
--ylf-shadow-control:
|
|
302
|
+
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);
|
|
303
|
+
--ylf-shadow-inset: inset 0 1px 4px rgba(2, 6, 15, 0.4);
|
|
304
|
+
--ylf-shadow-panel:
|
|
305
|
+
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),
|
|
306
|
+
0 32px 72px -18px rgba(2, 6, 15, 0.6);
|
|
307
|
+
--ylf-glow-brand: 0 6px 18px -8px rgba(56, 172, 255, 0.3);
|
|
308
|
+
--ylf-glow-brand-hover: 0 8px 22px -8px rgba(56, 172, 255, 0.4);
|
|
309
|
+
--ylf-c-bg: #0b111c;
|
|
310
|
+
--ylf-c-bg-soft: #101826;
|
|
311
|
+
--ylf-c-surface: #141d2b;
|
|
312
|
+
--ylf-c-surface-raised: #1b2638;
|
|
313
|
+
--ylf-c-surface-inset: #080d16;
|
|
314
|
+
--ylf-c-text: #e7eef8;
|
|
315
|
+
--ylf-c-text-2: #b9c6d9;
|
|
316
|
+
--ylf-c-text-3: #8d9db4;
|
|
317
|
+
--ylf-c-placeholder: var(--ylf-c-text-3);
|
|
318
|
+
--ylf-c-border: #24324a;
|
|
319
|
+
--ylf-c-border-strong: #36486a;
|
|
320
|
+
--ylf-c-border-control: #64748b;
|
|
321
|
+
--ylf-c-grid: rgba(56, 172, 255, 0.08);
|
|
322
|
+
--ylf-c-sky: #0e233d;
|
|
323
|
+
--ylf-c-cloud: #22304a;
|
|
324
|
+
--ylf-cloud-highlight: #a6bcd8;
|
|
325
|
+
--ylf-cloud-body: #3e5679;
|
|
326
|
+
--ylf-cloud-shade: #1c2b44;
|
|
327
|
+
--ylf-cloud-shadow: #0a1424;
|
|
328
|
+
--ylf-cloud-rim: #cfdff2;
|
|
329
|
+
--ylf-cloud-face: #0e1a2d;
|
|
330
|
+
--ylf-cloud-haze-color: #1f3354;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
@media (prefers-reduced-motion: reduce) {
|
|
334
|
+
:root,
|
|
335
|
+
.light,
|
|
336
|
+
.dark,
|
|
337
|
+
.ylf-theme-light,
|
|
338
|
+
.ylf-theme-dark {
|
|
339
|
+
--ylf-duration-press: 0ms;
|
|
340
|
+
--ylf-duration-enter: 0ms;
|
|
341
|
+
--ylf-duration-exit: 0ms;
|
|
342
|
+
--ylf-press-scale: 1;
|
|
343
|
+
--ylf-hover-lift: 0px;
|
|
344
|
+
--ylf-duration-fast: 0ms;
|
|
345
|
+
--ylf-duration-normal: 0ms;
|
|
346
|
+
--ylf-duration-slow: 0ms;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
[data-ylf-tone='blue'] {
|
|
351
|
+
--ylf-accent-blue: var(--ylf-c-brand);
|
|
352
|
+
--ylf-accent-blue-hover: var(--ylf-c-brand-hover);
|
|
353
|
+
--ylf-accent-blue-soft: var(--ylf-c-brand-soft);
|
|
354
|
+
--ylf-accent-blue-text: var(--ylf-c-brand);
|
|
355
|
+
--ylf-accent-blue-on: var(--ylf-c-text-on-accent);
|
|
356
|
+
--ylf-accent: var(--ylf-accent-blue);
|
|
357
|
+
--ylf-accent-hover: var(--ylf-accent-blue-hover);
|
|
358
|
+
--ylf-accent-soft: var(--ylf-accent-blue-soft);
|
|
359
|
+
--ylf-accent-text: var(--ylf-accent-blue-text);
|
|
360
|
+
--ylf-accent-on: var(--ylf-accent-blue-on);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
[data-ylf-tone='sun'] {
|
|
364
|
+
--ylf-accent: var(--ylf-accent-sun);
|
|
365
|
+
--ylf-accent-hover: var(--ylf-accent-sun-hover);
|
|
366
|
+
--ylf-accent-soft: var(--ylf-accent-sun-soft);
|
|
367
|
+
--ylf-accent-text: var(--ylf-accent-sun-text);
|
|
368
|
+
--ylf-accent-on: var(--ylf-accent-sun-on);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
[data-ylf-tone='cyan'] {
|
|
372
|
+
--ylf-accent: var(--ylf-accent-cyan);
|
|
373
|
+
--ylf-accent-hover: var(--ylf-accent-cyan-hover);
|
|
374
|
+
--ylf-accent-soft: var(--ylf-accent-cyan-soft);
|
|
375
|
+
--ylf-accent-text: var(--ylf-accent-cyan-text);
|
|
376
|
+
--ylf-accent-on: var(--ylf-accent-cyan-on);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
[data-ylf-tone='coral'] {
|
|
380
|
+
--ylf-accent: var(--ylf-accent-coral);
|
|
381
|
+
--ylf-accent-hover: var(--ylf-accent-coral-hover);
|
|
382
|
+
--ylf-accent-soft: var(--ylf-accent-coral-soft);
|
|
383
|
+
--ylf-accent-text: var(--ylf-accent-coral-text);
|
|
384
|
+
--ylf-accent-on: var(--ylf-accent-coral-on);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
[data-ylf-tone='pink'] {
|
|
388
|
+
--ylf-accent: var(--ylf-accent-pink);
|
|
389
|
+
--ylf-accent-hover: var(--ylf-accent-pink-hover);
|
|
390
|
+
--ylf-accent-soft: var(--ylf-accent-pink-soft);
|
|
391
|
+
--ylf-accent-text: var(--ylf-accent-pink-text);
|
|
392
|
+
--ylf-accent-on: var(--ylf-accent-pink-on);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
[data-ylf-tone='green'] {
|
|
396
|
+
--ylf-accent: var(--ylf-accent-green);
|
|
397
|
+
--ylf-accent-hover: var(--ylf-accent-green-hover);
|
|
398
|
+
--ylf-accent-soft: var(--ylf-accent-green-soft);
|
|
399
|
+
--ylf-accent-text: var(--ylf-accent-green-text);
|
|
400
|
+
--ylf-accent-on: var(--ylf-accent-green-on);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type YlfAccentTone = 'blue' | 'sun' | 'cyan' | 'coral' | 'pink' | 'green'
|
|
2
|
+
export type YlfStatus = 'success' | 'warning' | 'danger' | 'info'
|
|
3
|
+
export type YlfProfile = 'consumer' | 'admin' | 'editor'
|
|
4
|
+
export type YlfCloudShape = 'billow' | 'heap' | 'bank' | 'puff' | 'wisp'
|
|
5
|
+
|
|
6
|
+
export declare const ylfPalette: Readonly<Record<YlfAccentTone, string>>
|
|
7
|
+
export declare const ylfAccentTones: readonly YlfAccentTone[]
|
|
8
|
+
export declare const ylfStatuses: readonly YlfStatus[]
|
|
9
|
+
export declare const ylfProfiles: readonly YlfProfile[]
|
|
10
|
+
export declare const ylfCloudShapes: readonly YlfCloudShape[]
|
|
11
|
+
export declare const ylfCloudSilhouettes: Readonly<Record<YlfCloudShape, string>>
|
|
12
|
+
export declare const ylfTokenNames: readonly string[]
|
|
13
|
+
export declare const ylfCompatTokenNames: readonly string[]
|
|
14
|
+
export declare const ylfComponentTokenNames: readonly string[]
|
|
15
|
+
|
|
16
|
+
export declare const ylfTokens: {
|
|
17
|
+
readonly palette: typeof ylfPalette
|
|
18
|
+
readonly brand: {
|
|
19
|
+
readonly light: Readonly<Record<string, string>>
|
|
20
|
+
readonly dark: Readonly<Record<string, string>>
|
|
21
|
+
}
|
|
22
|
+
readonly hero: Readonly<Record<string, string>>
|
|
23
|
+
readonly accents: Readonly<Record<Exclude<YlfAccentTone, 'blue'>, {
|
|
24
|
+
readonly light: Readonly<Record<'base' | 'hover' | 'soft' | 'text' | 'on', string>>
|
|
25
|
+
readonly dark: Readonly<Record<'soft' | 'text', string>>
|
|
26
|
+
}>>
|
|
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
|
+
}>>
|
|
32
|
+
readonly neutrals: {
|
|
33
|
+
readonly light: Readonly<Record<string, string>>
|
|
34
|
+
readonly dark: Readonly<Record<string, string>>
|
|
35
|
+
}
|
|
36
|
+
readonly glass: {
|
|
37
|
+
readonly light: Readonly<Record<string, string>>
|
|
38
|
+
readonly dark: Readonly<Record<string, string>>
|
|
39
|
+
}
|
|
40
|
+
readonly radius: Readonly<Record<string, string>>
|
|
41
|
+
readonly shadow: {
|
|
42
|
+
readonly light: Readonly<Record<string, string>>
|
|
43
|
+
readonly dark: Readonly<Record<string, string>>
|
|
44
|
+
}
|
|
45
|
+
readonly typography: {
|
|
46
|
+
readonly fontFamily: Readonly<Record<'display' | 'wordmark' | 'heading' | 'body' | 'ui' | 'mono', string>>
|
|
47
|
+
readonly fontSize: Readonly<Record<'2xs' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | 'display', string>>
|
|
48
|
+
readonly lineHeight: Readonly<Record<'heading' | 'normal' | 'body', string>>
|
|
49
|
+
}
|
|
50
|
+
readonly space: Readonly<Record<string, string>>
|
|
51
|
+
readonly layout: Readonly<Record<'page' | 'reading', string>>
|
|
52
|
+
readonly zIndex: Readonly<Record<'base' | 'sticky' | 'overlay' | 'modal' | 'popover' | 'tooltip' | 'toast', string>>
|
|
53
|
+
readonly focusAndControls: Readonly<Record<string, string>>
|
|
54
|
+
readonly interactionAndMotion: Readonly<Record<string, string>>
|
|
55
|
+
readonly atmosphere: {
|
|
56
|
+
readonly light: Readonly<Record<string, string>>
|
|
57
|
+
readonly dark: Readonly<Record<string, string>>
|
|
58
|
+
}
|
|
59
|
+
readonly cloud: {
|
|
60
|
+
readonly light: Readonly<Record<string, string>>
|
|
61
|
+
readonly dark: Readonly<Record<string, string>>
|
|
62
|
+
}
|
|
63
|
+
readonly profiles: {
|
|
64
|
+
readonly admin: Readonly<Record<'base' | 'coarse' | 'light' | 'dark', Readonly<Record<string, string>>>>
|
|
65
|
+
readonly editor: Readonly<Record<'base' | 'coarse' | 'light' | 'dark', Readonly<Record<string, string>>>>
|
|
66
|
+
}
|
|
67
|
+
readonly light: Readonly<Record<string, string>>
|
|
68
|
+
readonly dark: Readonly<Record<string, string>>
|
|
69
|
+
readonly compat: {
|
|
70
|
+
readonly light: Readonly<Record<string, string>>
|
|
71
|
+
readonly dark: Readonly<Record<string, string>>
|
|
72
|
+
}
|
|
73
|
+
}
|
package/tokens/index.mjs
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildAllTokenNames,
|
|
3
|
+
buildBaseDarkTokens,
|
|
4
|
+
buildBaseLightTokens,
|
|
5
|
+
buildCompatDarkTokens,
|
|
6
|
+
buildCompatLightTokens,
|
|
7
|
+
ylfAccents,
|
|
8
|
+
ylfAccentTones,
|
|
9
|
+
ylfAtmosphere,
|
|
10
|
+
ylfBrand,
|
|
11
|
+
ylfCloud,
|
|
12
|
+
ylfCloudShapes,
|
|
13
|
+
ylfCloudSilhouettes,
|
|
14
|
+
ylfComponentTokenNames,
|
|
15
|
+
ylfFocusAndControls,
|
|
16
|
+
ylfGlass,
|
|
17
|
+
ylfHero,
|
|
18
|
+
ylfInteractionAndMotion,
|
|
19
|
+
ylfLayout,
|
|
20
|
+
ylfNeutrals,
|
|
21
|
+
ylfPalette,
|
|
22
|
+
ylfProfiles,
|
|
23
|
+
ylfProfileTokens,
|
|
24
|
+
ylfRadius,
|
|
25
|
+
ylfShadow,
|
|
26
|
+
ylfSpace,
|
|
27
|
+
ylfStatusColors,
|
|
28
|
+
ylfStatuses,
|
|
29
|
+
ylfStatusMap,
|
|
30
|
+
ylfTypography,
|
|
31
|
+
ylfZIndex,
|
|
32
|
+
} from './source.mjs'
|
|
33
|
+
|
|
34
|
+
const tokenNames = buildAllTokenNames()
|
|
35
|
+
|
|
36
|
+
export const ylfTokenNames = tokenNames.core
|
|
37
|
+
export const ylfCompatTokenNames = tokenNames.compat
|
|
38
|
+
|
|
39
|
+
export const ylfTokens = {
|
|
40
|
+
palette: ylfPalette,
|
|
41
|
+
brand: ylfBrand,
|
|
42
|
+
hero: ylfHero,
|
|
43
|
+
accents: ylfAccents,
|
|
44
|
+
statusMap: ylfStatusMap,
|
|
45
|
+
statusColors: ylfStatusColors,
|
|
46
|
+
neutrals: ylfNeutrals,
|
|
47
|
+
glass: ylfGlass,
|
|
48
|
+
radius: ylfRadius,
|
|
49
|
+
shadow: ylfShadow,
|
|
50
|
+
typography: ylfTypography,
|
|
51
|
+
space: ylfSpace,
|
|
52
|
+
layout: ylfLayout,
|
|
53
|
+
zIndex: ylfZIndex,
|
|
54
|
+
focusAndControls: ylfFocusAndControls,
|
|
55
|
+
interactionAndMotion: ylfInteractionAndMotion,
|
|
56
|
+
atmosphere: ylfAtmosphere,
|
|
57
|
+
cloud: ylfCloud,
|
|
58
|
+
profiles: ylfProfileTokens,
|
|
59
|
+
light: buildBaseLightTokens(),
|
|
60
|
+
dark: buildBaseDarkTokens(),
|
|
61
|
+
compat: {
|
|
62
|
+
light: buildCompatLightTokens(),
|
|
63
|
+
dark: buildCompatDarkTokens(),
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
ylfAccentTones,
|
|
69
|
+
ylfCloudShapes,
|
|
70
|
+
ylfCloudSilhouettes,
|
|
71
|
+
ylfComponentTokenNames,
|
|
72
|
+
ylfPalette,
|
|
73
|
+
ylfProfiles,
|
|
74
|
+
ylfStatuses,
|
|
75
|
+
}
|