@wcomp/elementum 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +266 -2
- package/custom-elements.json +3613 -0
- package/mcp/server.js +408 -0
- package/package.json +72 -4
- package/skills/elementum-break-ui/CATALOG.md +11 -0
- package/skills/elementum-break-ui/SKILL.md +16 -0
- package/skills/elementum-mobile/SKILL.md +18 -0
- package/skills/elementum-motion/SKILL.md +18 -0
- package/skills/elementum-motion/STANDARDS.md +15 -0
- package/skills/elementum-penpot/SKILL.md +45 -0
- package/skills/elementum-ui/CATALOG.md +14 -0
- package/skills/elementum-ui/SKILL.md +21 -0
- package/src/ag-ui.js +474 -0
- package/src/components/el-accordion.js +201 -0
- package/src/components/el-alert-dialog.js +186 -0
- package/src/components/el-alert.js +254 -0
- package/src/components/el-aspect-ratio.js +73 -0
- package/src/components/el-autocomplete.js +775 -0
- package/src/components/el-avatar.js +271 -0
- package/src/components/el-badge.js +131 -0
- package/src/components/el-border-beam.js +135 -0
- package/src/components/el-breadcrumb.js +203 -0
- package/src/components/el-button.js +220 -0
- package/src/components/el-calendar.js +413 -0
- package/src/components/el-callout.js +158 -0
- package/src/components/el-card.js +298 -0
- package/src/components/el-carousel.js +308 -0
- package/src/components/el-chart.js +632 -0
- package/src/components/el-checkbox-card.js +221 -0
- package/src/components/el-checkbox.js +208 -0
- package/src/components/el-chip.js +276 -0
- package/src/components/el-code-block.js +228 -0
- package/src/components/el-collapsible.js +124 -0
- package/src/components/el-command.js +556 -0
- package/src/components/el-context-menu.js +328 -0
- package/src/components/el-data-list.js +210 -0
- package/src/components/el-datepicker.js +192 -0
- package/src/components/el-dialog.js +272 -0
- package/src/components/el-diff-viewer.js +441 -0
- package/src/components/el-drawer.js +782 -0
- package/src/components/el-dropdown.js +182 -0
- package/src/components/el-dropzone.js +242 -0
- package/src/components/el-empty-state.js +130 -0
- package/src/components/el-field.js +394 -0
- package/src/components/el-form.js +185 -0
- package/src/components/el-input.js +212 -0
- package/src/components/el-inset.js +90 -0
- package/src/components/el-insight-card.js +263 -0
- package/src/components/el-kbd.js +151 -0
- package/src/components/el-menubar.js +254 -0
- package/src/components/el-meter.js +182 -0
- package/src/components/el-navbar.js +294 -0
- package/src/components/el-navigation-menu.js +327 -0
- package/src/components/el-number-field.js +510 -0
- package/src/components/el-number-flow.js +153 -0
- package/src/components/el-otp-input.js +266 -0
- package/src/components/el-pagination.js +229 -0
- package/src/components/el-popover.js +288 -0
- package/src/components/el-preview-card.js +202 -0
- package/src/components/el-progress.js +179 -0
- package/src/components/el-prompt-input.js +383 -0
- package/src/components/el-radio-card.js +360 -0
- package/src/components/el-radio.js +257 -0
- package/src/components/el-rating.js +165 -0
- package/src/components/el-reasoning-card.js +293 -0
- package/src/components/el-resizable.js +324 -0
- package/src/components/el-router.js +305 -0
- package/src/components/el-scroll-area.js +150 -0
- package/src/components/el-segmented-control.js +282 -0
- package/src/components/el-select.js +219 -0
- package/src/components/el-separator.js +85 -0
- package/src/components/el-sidebar.js +386 -0
- package/src/components/el-skeleton.js +156 -0
- package/src/components/el-slider.js +351 -0
- package/src/components/el-sources.js +288 -0
- package/src/components/el-spinner.js +159 -0
- package/src/components/el-streaming-text.js +199 -0
- package/src/components/el-switch.js +221 -0
- package/src/components/el-table.js +397 -0
- package/src/components/el-tabs.js +235 -0
- package/src/components/el-task-list.js +230 -0
- package/src/components/el-textarea.js +175 -0
- package/src/components/el-theme-switch.js +120 -0
- package/src/components/el-timeline.js +254 -0
- package/src/components/el-toast.js +778 -0
- package/src/components/el-toggle.js +311 -0
- package/src/components/el-tool-call.js +386 -0
- package/src/components/el-toolbar.js +183 -0
- package/src/components/el-tooltip.js +172 -0
- package/src/components/el-tree-view.js +261 -0
- package/src/components/el-visually-hidden.js +32 -0
- package/src/elementum.js +485 -0
- package/src/index.d.ts +1007 -0
- package/src/index.js +99 -0
- package/src/signal.js +194 -0
- package/src/ssr.js +136 -0
- package/src/template.js +321 -0
- package/src/tokens.css +416 -0
- package/tokens/figma-tokens.json +69 -0
- package/tokens/penpot-tokens.json +98 -0
package/src/tokens.css
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Elementum Design Tokens
|
|
3
|
+
* Auto-generated from penpot-tokens.json (Unified Penpot & Figma parser)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root,
|
|
7
|
+
:root[data-theme="light"] {
|
|
8
|
+
/* Brand Colors */
|
|
9
|
+
--el-color-primary: #2563eb;
|
|
10
|
+
--el-color-primary-hover: #1d4ed8;
|
|
11
|
+
--el-color-secondary: #4b5563;
|
|
12
|
+
--el-color-danger: #dc2626;
|
|
13
|
+
--el-color-success: #16a34a;
|
|
14
|
+
|
|
15
|
+
/* Surfaces & Elevation */
|
|
16
|
+
--el-surface-base: #ffffff;
|
|
17
|
+
--el-surface-card: #ffffff;
|
|
18
|
+
--el-surface-elevated: #ffffff;
|
|
19
|
+
--el-surface-muted: #f3f4f6;
|
|
20
|
+
--el-surface-border: #e5e7eb;
|
|
21
|
+
--el-border-translucent: rgba(15, 23, 42, 0.08);
|
|
22
|
+
|
|
23
|
+
/* Subtle Ambient Shadows (Ban the AI look) */
|
|
24
|
+
--el-shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
25
|
+
--el-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
|
|
26
|
+
--el-shadow-popover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
|
|
27
|
+
--el-shadow-glow: 0 0 20px -5px rgba(37, 99, 235, 0.25);
|
|
28
|
+
|
|
29
|
+
/* Physical Motion & Natural Easing Curves */
|
|
30
|
+
--el-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
|
|
31
|
+
--el-ease-in-fast: cubic-bezier(0.7, 0, 0.84, 0);
|
|
32
|
+
--el-transition-snappy: 150ms var(--el-ease-in-fast);
|
|
33
|
+
--el-transition-fluid: 280ms var(--el-ease-out-expo);
|
|
34
|
+
|
|
35
|
+
/* Typography Colors */
|
|
36
|
+
--el-text-base: #111827;
|
|
37
|
+
--el-text-primary: #0f172a;
|
|
38
|
+
--el-text-secondary: #475569;
|
|
39
|
+
--el-text-muted: #6b7280;
|
|
40
|
+
--el-text-inverse: #ffffff;
|
|
41
|
+
|
|
42
|
+
/* Font Families */
|
|
43
|
+
--el-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
44
|
+
--el-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
45
|
+
|
|
46
|
+
/* Spacing */
|
|
47
|
+
--el-spacing-xs: 4px;
|
|
48
|
+
--el-spacing-sm: 8px;
|
|
49
|
+
--el-spacing-md: 16px;
|
|
50
|
+
--el-spacing-lg: 24px;
|
|
51
|
+
--el-spacing-xl: 32px;
|
|
52
|
+
|
|
53
|
+
/* Radii */
|
|
54
|
+
--el-radius-sm: 4px;
|
|
55
|
+
--el-radius-md: 8px;
|
|
56
|
+
--el-radius-lg: 16px;
|
|
57
|
+
--el-radius-full: 9999px;
|
|
58
|
+
|
|
59
|
+
/* Chart Data Series Tokens */
|
|
60
|
+
--el-chart-1: #2563eb;
|
|
61
|
+
--el-chart-2: #10b981;
|
|
62
|
+
--el-chart-3: #f59e0b;
|
|
63
|
+
--el-chart-4: #8b5cf6;
|
|
64
|
+
--el-chart-5: #ec4899;
|
|
65
|
+
|
|
66
|
+
/* Typographic Rhythm Tokens */
|
|
67
|
+
--el-typeset-size: 1rem;
|
|
68
|
+
--el-typeset-leading: 1.75;
|
|
69
|
+
--el-typeset-flow: 1.25em;
|
|
70
|
+
--el-typeset-font-body: var(--el-font-sans);
|
|
71
|
+
|
|
72
|
+
/* Radix Colors 12-Step Accessible Scale (Light Theme) */
|
|
73
|
+
--el-step-1: #fbfcfd; /* App canvas background */
|
|
74
|
+
--el-step-2: #f8fafc; /* Subtle component background */
|
|
75
|
+
--el-step-3: #f1f5f9; /* Normal component surface */
|
|
76
|
+
--el-step-4: #e2e8f0; /* Hovered component surface */
|
|
77
|
+
--el-step-5: #cbd5e1; /* Active/selected surface */
|
|
78
|
+
--el-step-6: #e2e8f0; /* Subtle borders / dividers */
|
|
79
|
+
--el-step-7: #cbd5e1; /* Interactive borders */
|
|
80
|
+
--el-step-8: #94a3b8; /* Focus rings & hover borders */
|
|
81
|
+
--el-step-9: #2563eb; /* Solid primary accent */
|
|
82
|
+
--el-step-10: #1d4ed8; /* Hovered solid primary */
|
|
83
|
+
--el-step-11: #475569; /* Secondary/muted text */
|
|
84
|
+
--el-step-12: #0f172a; /* High-contrast primary text */
|
|
85
|
+
--el-typeset-font-heading: var(--el-font-sans);
|
|
86
|
+
|
|
87
|
+
/* Component specific tokens (Light) */
|
|
88
|
+
--el-tooltip-bg: #0f172a;
|
|
89
|
+
--el-tooltip-text: #ffffff;
|
|
90
|
+
--el-tooltip-border: rgba(255, 255, 255, 0.12);
|
|
91
|
+
--el-skeleton-bg: #e2e8f0;
|
|
92
|
+
--el-skeleton-shimmer: rgba(255, 255, 255, 0.6);
|
|
93
|
+
|
|
94
|
+
color-scheme: light;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:root[data-theme="dark"] {
|
|
98
|
+
/* Brand Colors */
|
|
99
|
+
--el-color-primary: #3b82f6;
|
|
100
|
+
--el-color-primary-hover: #60a5fa;
|
|
101
|
+
--el-color-secondary: #9ca3af;
|
|
102
|
+
--el-color-danger: #ef4444;
|
|
103
|
+
--el-color-success: #22c55e;
|
|
104
|
+
|
|
105
|
+
/* Surfaces (Dark Mode) */
|
|
106
|
+
--el-surface-base: #0b0f19;
|
|
107
|
+
--el-surface-card: #111827;
|
|
108
|
+
--el-surface-elevated: #1e293b;
|
|
109
|
+
--el-surface-muted: #1e293b;
|
|
110
|
+
--el-surface-border: #334155;
|
|
111
|
+
--el-border-translucent: rgba(255, 255, 255, 0.08);
|
|
112
|
+
|
|
113
|
+
--el-shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
114
|
+
--el-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
|
|
115
|
+
--el-shadow-popover: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
|
|
116
|
+
--el-shadow-glow: 0 0 25px -5px rgba(59, 130, 246, 0.35);
|
|
117
|
+
|
|
118
|
+
/* Typography Colors (Dark Mode) */
|
|
119
|
+
--el-text-base: #f9fafb;
|
|
120
|
+
--el-text-primary: #f8fafc;
|
|
121
|
+
--el-text-secondary: #94a3b8;
|
|
122
|
+
--el-text-muted: #64748b;
|
|
123
|
+
--el-text-inverse: #0f172a;
|
|
124
|
+
|
|
125
|
+
/* Chart Colors (Dark Mode) */
|
|
126
|
+
--el-chart-1: #3b82f6;
|
|
127
|
+
--el-chart-2: #34d399;
|
|
128
|
+
--el-chart-3: #fbbf24;
|
|
129
|
+
--el-chart-4: #a78bfa;
|
|
130
|
+
--el-chart-5: #f472b6;
|
|
131
|
+
|
|
132
|
+
/* Radix Colors 12-Step Accessible Scale (Dark Theme) */
|
|
133
|
+
--el-step-1: #090d16; /* App canvas background */
|
|
134
|
+
--el-step-2: #0f172a; /* Subtle component background */
|
|
135
|
+
--el-step-3: #1e293b; /* Normal component surface */
|
|
136
|
+
--el-step-4: #334155; /* Hovered component surface */
|
|
137
|
+
--el-step-5: #475569; /* Active/selected surface */
|
|
138
|
+
--el-step-6: #1e293b; /* Subtle borders / dividers */
|
|
139
|
+
--el-step-7: #334155; /* Interactive borders */
|
|
140
|
+
--el-step-8: #64748b; /* Focus rings & hover borders */
|
|
141
|
+
--el-step-9: #3b82f6; /* Solid primary accent */
|
|
142
|
+
--el-step-10: #2563eb; /* Hovered solid primary */
|
|
143
|
+
--el-step-11: #94a3b8; /* Secondary/muted text */
|
|
144
|
+
--el-step-12: #f8fafc; /* High-contrast primary text */
|
|
145
|
+
|
|
146
|
+
/* Component specific tokens (Dark) */
|
|
147
|
+
--el-tooltip-bg: #1e293b;
|
|
148
|
+
--el-tooltip-text: #f8fafc;
|
|
149
|
+
--el-tooltip-border: #475569;
|
|
150
|
+
--el-skeleton-bg: #334155;
|
|
151
|
+
--el-skeleton-shimmer: rgba(255, 255, 255, 0.15);
|
|
152
|
+
|
|
153
|
+
color-scheme: dark;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@media (prefers-color-scheme: dark) {
|
|
157
|
+
:root:not([data-theme="light"]):not([data-theme="dark"]) {
|
|
158
|
+
--el-color-primary: #3b82f6;
|
|
159
|
+
--el-color-primary-hover: #60a5fa;
|
|
160
|
+
--el-color-secondary: #9ca3af;
|
|
161
|
+
--el-color-danger: #ef4444;
|
|
162
|
+
--el-color-success: #22c55e;
|
|
163
|
+
|
|
164
|
+
--el-surface-base: #0b0f19;
|
|
165
|
+
--el-surface-card: #111827;
|
|
166
|
+
--el-surface-elevated: #1e293b;
|
|
167
|
+
--el-surface-muted: #1e293b;
|
|
168
|
+
--el-surface-border: #334155;
|
|
169
|
+
--el-border-translucent: rgba(255, 255, 255, 0.08);
|
|
170
|
+
|
|
171
|
+
--el-shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
172
|
+
--el-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
|
|
173
|
+
--el-shadow-popover: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
|
|
174
|
+
--el-shadow-glow: 0 0 25px -5px rgba(59, 130, 246, 0.35);
|
|
175
|
+
|
|
176
|
+
--el-text-base: #f9fafb;
|
|
177
|
+
--el-text-primary: #f8fafc;
|
|
178
|
+
--el-text-secondary: #94a3b8;
|
|
179
|
+
--el-text-muted: #64748b;
|
|
180
|
+
--el-text-inverse: #0f172a;
|
|
181
|
+
|
|
182
|
+
--el-chart-1: #3b82f6;
|
|
183
|
+
--el-chart-2: #34d399;
|
|
184
|
+
--el-chart-3: #fbbf24;
|
|
185
|
+
--el-chart-4: #a78bfa;
|
|
186
|
+
--el-chart-5: #f472b6;
|
|
187
|
+
|
|
188
|
+
/* Radix Colors 12-Step Accessible Scale (Dark Theme) */
|
|
189
|
+
--el-step-1: #090d16;
|
|
190
|
+
--el-step-2: #0f172a;
|
|
191
|
+
--el-step-3: #1e293b;
|
|
192
|
+
--el-step-4: #334155;
|
|
193
|
+
--el-step-5: #475569;
|
|
194
|
+
--el-step-6: #1e293b;
|
|
195
|
+
--el-step-7: #334155;
|
|
196
|
+
--el-step-8: #64748b;
|
|
197
|
+
--el-step-9: #3b82f6;
|
|
198
|
+
--el-step-10: #2563eb;
|
|
199
|
+
--el-step-11: #94a3b8;
|
|
200
|
+
--el-step-12: #f8fafc;
|
|
201
|
+
|
|
202
|
+
/* Component specific tokens (Dark Media) */
|
|
203
|
+
--el-tooltip-bg: #1e293b;
|
|
204
|
+
--el-tooltip-text: #f8fafc;
|
|
205
|
+
--el-tooltip-border: #475569;
|
|
206
|
+
--el-skeleton-bg: #334155;
|
|
207
|
+
--el-skeleton-shimmer: rgba(255, 255, 255, 0.15);
|
|
208
|
+
|
|
209
|
+
color-scheme: dark;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* ========================================================
|
|
214
|
+
Typographic Rhythm Container (.el-typeset)
|
|
215
|
+
======================================================== */
|
|
216
|
+
.el-typeset {
|
|
217
|
+
font-family: var(--el-typeset-font-body, var(--el-font-sans));
|
|
218
|
+
font-size: var(--el-typeset-size, 1rem);
|
|
219
|
+
line-height: var(--el-typeset-leading, 1.75);
|
|
220
|
+
color: var(--el-text-primary, #0f172a);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.el-typeset :is(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table) {
|
|
224
|
+
margin-block: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.el-typeset :is(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table) + * {
|
|
228
|
+
margin-top: var(--el-typeset-flow, 1.25em);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.el-typeset h1 {
|
|
232
|
+
font-family: var(--el-typeset-font-heading, var(--el-font-sans));
|
|
233
|
+
font-size: 2.25em;
|
|
234
|
+
font-weight: 800;
|
|
235
|
+
letter-spacing: -0.025em;
|
|
236
|
+
line-height: 1.2;
|
|
237
|
+
color: var(--el-text-base, #111827);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.el-typeset h2 {
|
|
241
|
+
font-family: var(--el-typeset-font-heading, var(--el-font-sans));
|
|
242
|
+
font-size: 1.5em;
|
|
243
|
+
font-weight: 700;
|
|
244
|
+
letter-spacing: -0.02em;
|
|
245
|
+
line-height: 1.3;
|
|
246
|
+
color: var(--el-text-base, #111827);
|
|
247
|
+
border-bottom: 1px solid var(--el-surface-border, #e2e8f0);
|
|
248
|
+
padding-bottom: 0.3em;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.el-typeset h3 {
|
|
252
|
+
font-family: var(--el-typeset-font-heading, var(--el-font-sans));
|
|
253
|
+
font-size: 1.25em;
|
|
254
|
+
font-weight: 600;
|
|
255
|
+
letter-spacing: -0.015em;
|
|
256
|
+
line-height: 1.4;
|
|
257
|
+
color: var(--el-text-base, #111827);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.el-typeset p {
|
|
261
|
+
color: var(--el-text-secondary, #475569);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.el-typeset blockquote {
|
|
265
|
+
border-left: 3px solid var(--el-color-primary, #2563eb);
|
|
266
|
+
padding-left: 1em;
|
|
267
|
+
font-style: italic;
|
|
268
|
+
color: var(--el-text-muted, #64748b);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.el-typeset ul, .el-typeset ol {
|
|
272
|
+
padding-left: 1.5em;
|
|
273
|
+
color: var(--el-text-secondary, #475569);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.el-typeset li + li {
|
|
277
|
+
margin-top: calc(var(--el-typeset-flow, 1.25em) * 0.35);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.el-typeset code {
|
|
281
|
+
font-family: var(--el-font-mono);
|
|
282
|
+
background: var(--el-surface-muted, #f1f5f9);
|
|
283
|
+
padding: 0.2em 0.4em;
|
|
284
|
+
border-radius: var(--el-radius-sm, 4px);
|
|
285
|
+
font-size: 0.875em;
|
|
286
|
+
color: var(--el-text-primary, #0f172a);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.el-typeset pre {
|
|
290
|
+
background: var(--el-surface-elevated, #1e293b);
|
|
291
|
+
color: #f8fafc;
|
|
292
|
+
padding: 1em 1.25em;
|
|
293
|
+
border-radius: var(--el-radius-md, 8px);
|
|
294
|
+
overflow-x: auto;
|
|
295
|
+
font-family: var(--el-font-mono);
|
|
296
|
+
font-size: 0.875em;
|
|
297
|
+
line-height: 1.6;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.el-typeset pre code {
|
|
301
|
+
background: transparent;
|
|
302
|
+
padding: 0;
|
|
303
|
+
color: inherit;
|
|
304
|
+
font-size: inherit;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* ========================================================
|
|
308
|
+
FOUC & Layout-Shift Prevention for Custom Elements
|
|
309
|
+
======================================================== */
|
|
310
|
+
el-command:not(:defined),
|
|
311
|
+
el-dialog:not(:defined),
|
|
312
|
+
el-drawer:not(:defined),
|
|
313
|
+
el-toaster:not(:defined),
|
|
314
|
+
el-dropdown:not(:defined) {
|
|
315
|
+
display: none !important;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
:not(:defined):is(
|
|
319
|
+
el-button,
|
|
320
|
+
el-badge,
|
|
321
|
+
el-input,
|
|
322
|
+
el-calendar,
|
|
323
|
+
el-datepicker,
|
|
324
|
+
el-tabs,
|
|
325
|
+
el-tab,
|
|
326
|
+
el-select,
|
|
327
|
+
el-switch,
|
|
328
|
+
el-tooltip,
|
|
329
|
+
el-accordion,
|
|
330
|
+
el-accordion-item,
|
|
331
|
+
el-table,
|
|
332
|
+
el-progress,
|
|
333
|
+
el-spinner,
|
|
334
|
+
el-avatar,
|
|
335
|
+
el-avatar-group,
|
|
336
|
+
el-segmented-control,
|
|
337
|
+
el-pagination,
|
|
338
|
+
el-chip,
|
|
339
|
+
el-autocomplete,
|
|
340
|
+
el-number-flow,
|
|
341
|
+
el-otp-input,
|
|
342
|
+
el-prompt-input,
|
|
343
|
+
el-reasoning-card,
|
|
344
|
+
el-border-beam,
|
|
345
|
+
el-streaming-text,
|
|
346
|
+
el-chart,
|
|
347
|
+
el-theme-switch
|
|
348
|
+
) {
|
|
349
|
+
opacity: 0;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
:defined {
|
|
353
|
+
animation: el-defined-in 120ms var(--el-ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
@keyframes el-defined-in {
|
|
357
|
+
from { opacity: 0; }
|
|
358
|
+
to { opacity: 1; }
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* ========================================================
|
|
362
|
+
Sidebar Layout & State Helpers
|
|
363
|
+
======================================================== */
|
|
364
|
+
el-sidebar[collapsed] .collapsible-text,
|
|
365
|
+
[collapsed] .collapsible-text {
|
|
366
|
+
display: none !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
el-sidebar[collapsed] el-sidebar-header > div,
|
|
370
|
+
el-sidebar[collapsed] el-sidebar-header {
|
|
371
|
+
justify-content: center !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
el-sidebar[collapsed] el-sidebar-content el-button,
|
|
375
|
+
el-sidebar[collapsed] el-sidebar-content button {
|
|
376
|
+
width: 36px !important;
|
|
377
|
+
min-width: 36px !important;
|
|
378
|
+
max-width: 36px !important;
|
|
379
|
+
padding: 6px 0 !important;
|
|
380
|
+
justify-content: center !important;
|
|
381
|
+
text-align: center !important;
|
|
382
|
+
margin: 0 auto !important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
el-sidebar[collapsed] el-sidebar-content div {
|
|
386
|
+
align-items: center !important;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* ========================================================
|
|
390
|
+
High-Contrast Button & Theme Switch Shadow Part Overrides
|
|
391
|
+
======================================================== */
|
|
392
|
+
:root[data-theme="dark"] el-button[variant="secondary"]::part(button) {
|
|
393
|
+
background-color: #1e293b;
|
|
394
|
+
color: #f8fafc;
|
|
395
|
+
border-color: #334155;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
:root[data-theme="dark"] el-button[variant="secondary"]::part(button):hover {
|
|
399
|
+
background-color: #334155;
|
|
400
|
+
color: #f8fafc;
|
|
401
|
+
border-color: #475569;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
:root[data-theme="dark"] el-theme-switch::part(button) {
|
|
405
|
+
background-color: #1e293b;
|
|
406
|
+
color: #f8fafc;
|
|
407
|
+
border-color: #334155;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
:root[data-theme="dark"] el-theme-switch::part(button):hover {
|
|
411
|
+
background-color: #334155;
|
|
412
|
+
color: #f8fafc;
|
|
413
|
+
border-color: var(--el-color-primary, #3b82f6);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design-tokens.github.io/community-group/format/",
|
|
3
|
+
"color": {
|
|
4
|
+
"brand": {
|
|
5
|
+
"primary": {
|
|
6
|
+
"$value": "#2563eb",
|
|
7
|
+
"$type": "color",
|
|
8
|
+
"$description": "Primary action color from Figma"
|
|
9
|
+
},
|
|
10
|
+
"primary-hover": {
|
|
11
|
+
"$value": "#1d4ed8",
|
|
12
|
+
"$type": "color"
|
|
13
|
+
},
|
|
14
|
+
"secondary": {
|
|
15
|
+
"$value": "#4b5563",
|
|
16
|
+
"$type": "color"
|
|
17
|
+
},
|
|
18
|
+
"danger": {
|
|
19
|
+
"$value": "#dc2626",
|
|
20
|
+
"$type": "color"
|
|
21
|
+
},
|
|
22
|
+
"success": {
|
|
23
|
+
"$value": "#16a34a",
|
|
24
|
+
"$type": "color"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"surface": {
|
|
28
|
+
"base": {
|
|
29
|
+
"$value": "#ffffff",
|
|
30
|
+
"$type": "color"
|
|
31
|
+
},
|
|
32
|
+
"muted": {
|
|
33
|
+
"$value": "#f3f4f6",
|
|
34
|
+
"$type": "color"
|
|
35
|
+
},
|
|
36
|
+
"border": {
|
|
37
|
+
"$value": "#e5e7eb",
|
|
38
|
+
"$type": "color"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"text": {
|
|
42
|
+
"base": {
|
|
43
|
+
"$value": "#111827",
|
|
44
|
+
"$type": "color"
|
|
45
|
+
},
|
|
46
|
+
"muted": {
|
|
47
|
+
"$value": "#6b7280",
|
|
48
|
+
"$type": "color"
|
|
49
|
+
},
|
|
50
|
+
"inverse": {
|
|
51
|
+
"$value": "#ffffff",
|
|
52
|
+
"$type": "color"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"spacing": {
|
|
57
|
+
"xs": { "$value": "4px", "$type": "dimension" },
|
|
58
|
+
"sm": { "$value": "8px", "$type": "dimension" },
|
|
59
|
+
"md": { "$value": "16px", "$type": "dimension" },
|
|
60
|
+
"lg": { "$value": "24px", "$type": "dimension" },
|
|
61
|
+
"xl": { "$value": "32px", "$type": "dimension" }
|
|
62
|
+
},
|
|
63
|
+
"radius": {
|
|
64
|
+
"sm": { "$value": "4px", "$type": "dimension" },
|
|
65
|
+
"md": { "$value": "8px", "$type": "dimension" },
|
|
66
|
+
"lg": { "$value": "16px", "$type": "dimension" },
|
|
67
|
+
"full": { "$value": "9999px", "$type": "dimension" }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design-tokens.github.io/community-group/format/",
|
|
3
|
+
"color": {
|
|
4
|
+
"brand": {
|
|
5
|
+
"primary": {
|
|
6
|
+
"$value": "#2563eb",
|
|
7
|
+
"$type": "color",
|
|
8
|
+
"$description": "Primary action color from Figma"
|
|
9
|
+
},
|
|
10
|
+
"primary-hover": {
|
|
11
|
+
"$value": "#1d4ed8",
|
|
12
|
+
"$type": "color"
|
|
13
|
+
},
|
|
14
|
+
"secondary": {
|
|
15
|
+
"$value": "#4b5563",
|
|
16
|
+
"$type": "color"
|
|
17
|
+
},
|
|
18
|
+
"danger": {
|
|
19
|
+
"$value": "#dc2626",
|
|
20
|
+
"$type": "color"
|
|
21
|
+
},
|
|
22
|
+
"success": {
|
|
23
|
+
"$value": "#16a34a",
|
|
24
|
+
"$type": "color"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"surface": {
|
|
28
|
+
"base": {
|
|
29
|
+
"$value": "#ffffff",
|
|
30
|
+
"$type": "color"
|
|
31
|
+
},
|
|
32
|
+
"muted": {
|
|
33
|
+
"$value": "#f3f4f6",
|
|
34
|
+
"$type": "color"
|
|
35
|
+
},
|
|
36
|
+
"border": {
|
|
37
|
+
"$value": "#e5e7eb",
|
|
38
|
+
"$type": "color"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"text": {
|
|
42
|
+
"base": {
|
|
43
|
+
"$value": "#111827",
|
|
44
|
+
"$type": "color"
|
|
45
|
+
},
|
|
46
|
+
"primary": {
|
|
47
|
+
"$value": "#0f172a",
|
|
48
|
+
"$type": "color"
|
|
49
|
+
},
|
|
50
|
+
"secondary": {
|
|
51
|
+
"$value": "#475569",
|
|
52
|
+
"$type": "color"
|
|
53
|
+
},
|
|
54
|
+
"muted": {
|
|
55
|
+
"$value": "#6b7280",
|
|
56
|
+
"$type": "color"
|
|
57
|
+
},
|
|
58
|
+
"inverse": {
|
|
59
|
+
"$value": "#ffffff",
|
|
60
|
+
"$type": "color"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"step": {
|
|
64
|
+
"1": { "$value": "#fbfcfd", "$type": "color" },
|
|
65
|
+
"2": { "$value": "#f8fafc", "$type": "color" },
|
|
66
|
+
"3": { "$value": "#f1f5f9", "$type": "color" },
|
|
67
|
+
"4": { "$value": "#e2e8f0", "$type": "color" },
|
|
68
|
+
"5": { "$value": "#cbd5e1", "$type": "color" },
|
|
69
|
+
"6": { "$value": "#e2e8f0", "$type": "color" },
|
|
70
|
+
"7": { "$value": "#cbd5e1", "$type": "color" },
|
|
71
|
+
"8": { "$value": "#94a3b8", "$type": "color" },
|
|
72
|
+
"9": { "$value": "#2563eb", "$type": "color" },
|
|
73
|
+
"10": { "$value": "#1d4ed8", "$type": "color" },
|
|
74
|
+
"11": { "$value": "#475569", "$type": "color" },
|
|
75
|
+
"12": { "$value": "#0f172a", "$type": "color" }
|
|
76
|
+
},
|
|
77
|
+
"chart": {
|
|
78
|
+
"1": { "$value": "#2563eb", "$type": "color" },
|
|
79
|
+
"2": { "$value": "#10b981", "$type": "color" },
|
|
80
|
+
"3": { "$value": "#f59e0b", "$type": "color" },
|
|
81
|
+
"4": { "$value": "#8b5cf6", "$type": "color" },
|
|
82
|
+
"5": { "$value": "#ec4899", "$type": "color" }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"spacing": {
|
|
86
|
+
"xs": { "$value": "4px", "$type": "dimension" },
|
|
87
|
+
"sm": { "$value": "8px", "$type": "dimension" },
|
|
88
|
+
"md": { "$value": "16px", "$type": "dimension" },
|
|
89
|
+
"lg": { "$value": "24px", "$type": "dimension" },
|
|
90
|
+
"xl": { "$value": "32px", "$type": "dimension" }
|
|
91
|
+
},
|
|
92
|
+
"radius": {
|
|
93
|
+
"sm": { "$value": "4px", "$type": "dimension" },
|
|
94
|
+
"md": { "$value": "8px", "$type": "dimension" },
|
|
95
|
+
"lg": { "$value": "16px", "$type": "dimension" },
|
|
96
|
+
"full": { "$value": "9999px", "$type": "dimension" }
|
|
97
|
+
}
|
|
98
|
+
}
|