@umkmall/proto 0.1.0-hcb64dbae397f → 0.1.0-hd20dca21b978
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/package.json +1 -1
- package/umkmall-components.md +25 -13
- package/umkmall-prototype-starter.html +93 -18
- package/umkmall-rules.md +5 -5
- package/umkmall-starter-app.md +2 -2
- package/umkmall-starter.md +72 -9
- package/umkmall-tailwind.js +53 -1
- package/umkmall-tokens.css +63 -0
- package/umkmall-ui.js +30 -18
package/package.json
CHANGED
package/umkmall-components.md
CHANGED
|
@@ -6,13 +6,13 @@ Every component below is published on `window.UmkmallUI` by the browser bundle.
|
|
|
6
6
|
axis values listed, and pass every REQUIRED prop an entry names.
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
UMKMall UI —
|
|
9
|
+
UMKMall UI — 58 components, and the values each axis accepts.
|
|
10
10
|
Generated from packages/ui/src/contract/variants.ts. Do not hand-edit.
|
|
11
11
|
|
|
12
12
|
Button (Foundations)
|
|
13
|
-
type: primary | ghost | text
|
|
13
|
+
type: primary | ghost | outline | text
|
|
14
14
|
color: primary | light | danger | dark
|
|
15
|
-
size: large | medium | small | micro
|
|
15
|
+
size: large | medium | small | micro | compact
|
|
16
16
|
width: auto | full
|
|
17
17
|
booleans: disabled, isLoading
|
|
18
18
|
|
|
@@ -25,18 +25,18 @@ Alert (Feedback)
|
|
|
25
25
|
|
|
26
26
|
Badge (Content)
|
|
27
27
|
color: primary | warning | success | danger | light | bestseller | gradient
|
|
28
|
-
size: xlarge | medium | small | micro
|
|
28
|
+
size: xlarge | medium | small | micro | compact | compactTight
|
|
29
29
|
appearance: default | a2ui
|
|
30
30
|
booleans: showIconLeft, showIconRight
|
|
31
31
|
|
|
32
32
|
Chip (Content)
|
|
33
33
|
state: default | active
|
|
34
|
-
size: huge | xlarge | large | medium | small | micro
|
|
34
|
+
size: huge | xlarge | large | medium | small | micro | compact
|
|
35
35
|
appearance: default | a2ui
|
|
36
36
|
booleans: showIconLeft, showIconRight
|
|
37
37
|
|
|
38
38
|
TextField (Form)
|
|
39
|
-
size: large | small | xsmall
|
|
39
|
+
size: large | small | xsmall | compact
|
|
40
40
|
appearance: default | a2ui | bare
|
|
41
41
|
counterPlacement: below | inside
|
|
42
42
|
prefixPlacement: inside | outside
|
|
@@ -64,6 +64,7 @@ Switch (Form)
|
|
|
64
64
|
|
|
65
65
|
Slider (Form)
|
|
66
66
|
size: large | small
|
|
67
|
+
appearance: default | scrubber
|
|
67
68
|
booleans: disabled
|
|
68
69
|
|
|
69
70
|
DateTimeInput (Form)
|
|
@@ -95,11 +96,11 @@ Skeleton (Feedback)
|
|
|
95
96
|
Text (Foundations)
|
|
96
97
|
role: display | h1 | h2 | h3 | h4 | h5 | h6 | paragraph | bodyLg | bodyMd | bodySm
|
|
97
98
|
weight: bold | semibold | medium | regular
|
|
98
|
-
color: primary | secondary | disable | invert | brand | success | error | warning
|
|
99
|
+
color: primary | secondary | disable | invert | brand | success | error | warning | muted
|
|
99
100
|
|
|
100
101
|
Icon (Foundations)
|
|
101
102
|
size: xs | sm | md | lg | xl
|
|
102
|
-
color: primary | secondary | disable | invert | brand | success | error | warning
|
|
103
|
+
color: primary | secondary | disable | invert | brand | success | error | warning | muted
|
|
103
104
|
REQUIRED props (not axes): name
|
|
104
105
|
|
|
105
106
|
Sidebar (Shell)
|
|
@@ -115,7 +116,8 @@ AppShell (Shell)
|
|
|
115
116
|
booleans: scrolled
|
|
116
117
|
|
|
117
118
|
Lightbox (Overlays)
|
|
118
|
-
|
|
119
|
+
scrim: default | light
|
|
120
|
+
REQUIRED props (not axes): open, onOpenChange
|
|
119
121
|
|
|
120
122
|
ChatComposer (Chat)
|
|
121
123
|
tone: neutral | info | warning | danger
|
|
@@ -125,28 +127,33 @@ ChatComposerInput (Chat)
|
|
|
125
127
|
REQUIRED props (not axes): value, onValueChange, label
|
|
126
128
|
|
|
127
129
|
ChatDrawer (Chat)
|
|
128
|
-
variant: inherit | neutral | info | warning | danger
|
|
130
|
+
variant: inherit | neutral | info | warning | danger | floating
|
|
129
131
|
booleans: collapsed
|
|
130
132
|
|
|
131
133
|
ChatAttachment (Chat)
|
|
132
|
-
variant: image | file
|
|
134
|
+
variant: image | file | tile
|
|
135
|
+
size: default | large
|
|
133
136
|
booleans: showSize
|
|
134
137
|
REQUIRED props (not axes): name
|
|
135
138
|
|
|
136
139
|
ChatToolsButton (Chat)
|
|
137
140
|
state: default | active
|
|
141
|
+
size: compact | landing
|
|
138
142
|
REQUIRED props (not axes): label
|
|
139
143
|
|
|
140
144
|
ChatAttachmentButton (Chat)
|
|
141
145
|
state: default | active
|
|
146
|
+
size: compact | landing
|
|
142
147
|
REQUIRED props (not axes): label
|
|
143
148
|
|
|
144
149
|
ChatVoiceButton (Chat)
|
|
145
150
|
state: default | active
|
|
151
|
+
size: compact | landing
|
|
146
152
|
REQUIRED props (not axes): label
|
|
147
153
|
|
|
148
154
|
ChatSendButton (Chat)
|
|
149
155
|
state: send | stop | waiting
|
|
156
|
+
size: compact | landing
|
|
150
157
|
REQUIRED props (not axes): label
|
|
151
158
|
|
|
152
159
|
ChatSoundWave (Chat)
|
|
@@ -172,7 +179,7 @@ ChatMessageList (Chat)
|
|
|
172
179
|
density: compact | balanced | spacious
|
|
173
180
|
align: top | bottom
|
|
174
181
|
gap: none | 2xs | xs | sm | md | lg
|
|
175
|
-
booleans: streaming
|
|
182
|
+
booleans: streaming, flush
|
|
176
183
|
|
|
177
184
|
ChatThread (Chat)
|
|
178
185
|
|
|
@@ -188,7 +195,8 @@ ChatMessageTTSButton (Chat)
|
|
|
188
195
|
Dialog (Overlays)
|
|
189
196
|
size: small | medium | large | xlarge
|
|
190
197
|
side: none | left | right
|
|
191
|
-
|
|
198
|
+
rounded: default | lg
|
|
199
|
+
booleans: centered, fullHeight, keyboardAware, showCloseButton, dismissible, dismissOnOutsidePress, closeDisabled
|
|
192
200
|
REQUIRED props (not axes): open, onOpenChange
|
|
193
201
|
|
|
194
202
|
Menu (Overlays)
|
|
@@ -278,6 +286,10 @@ Label (Form)
|
|
|
278
286
|
look: default | field-large | field-small
|
|
279
287
|
booleans: required
|
|
280
288
|
|
|
289
|
+
TabBar (Navigation)
|
|
290
|
+
booleans: active
|
|
291
|
+
REQUIRED props (not axes): label
|
|
292
|
+
|
|
281
293
|
TRAPS — each of these renders or ignores silently, with no error:
|
|
282
294
|
|
|
283
295
|
1. `Text` roles are camelCase: `bodyLg`, `paragraphSm`, `labelMd`. A kebab-case or Title-Case role matches no variant and the text renders with no type styling at all.
|
|
@@ -18,8 +18,8 @@ HOW TO USE THIS FILE
|
|
|
18
18
|
WHAT THIS FILE NEEDS FROM THE NETWORK
|
|
19
19
|
Four hosts, every time it is opened — not just the first time:
|
|
20
20
|
|
|
21
|
-
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
22
|
-
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
21
|
+
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-tailwind.js
|
|
22
|
+
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-ui.js
|
|
23
23
|
https://cdn.jsdelivr.net/npm/@babel/standalone@7.26.4/babel.min.js
|
|
24
24
|
— all on jsDelivr: the design system's assets (pinned) and the JSX compiler.
|
|
25
25
|
The token CSS is NOT fetched: it is inlined in the <style> below, because a claude.ai
|
|
@@ -33,17 +33,17 @@ WHAT THIS FILE NEEDS FROM THE NETWORK
|
|
|
33
33
|
|
|
34
34
|
YOU DO NOT HAVE TO START FROM THIS FILE
|
|
35
35
|
Four tags add UMKMall styling to a page you already have: the token CSS as a <link> to
|
|
36
|
-
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
36
|
+
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-tokens.css
|
|
37
37
|
then the Play CDN, the config and the bundle below. Keep the order — the config must come after
|
|
38
38
|
the Play CDN script, or the theme arrives too late and every class resolves to nothing.
|
|
39
39
|
|
|
40
|
-
UMKMall UI —
|
|
40
|
+
UMKMall UI — 58 components, and the values each axis accepts.
|
|
41
41
|
Generated from packages/ui/src/contract/variants.ts. Do not hand-edit.
|
|
42
42
|
|
|
43
43
|
Button (Foundations)
|
|
44
|
-
type: primary | ghost | text
|
|
44
|
+
type: primary | ghost | outline | text
|
|
45
45
|
color: primary | light | danger | dark
|
|
46
|
-
size: large | medium | small | micro
|
|
46
|
+
size: large | medium | small | micro | compact
|
|
47
47
|
width: auto | full
|
|
48
48
|
booleans: disabled, isLoading
|
|
49
49
|
|
|
@@ -56,18 +56,18 @@ Alert (Feedback)
|
|
|
56
56
|
|
|
57
57
|
Badge (Content)
|
|
58
58
|
color: primary | warning | success | danger | light | bestseller | gradient
|
|
59
|
-
size: xlarge | medium | small | micro
|
|
59
|
+
size: xlarge | medium | small | micro | compact | compactTight
|
|
60
60
|
appearance: default | a2ui
|
|
61
61
|
booleans: showIconLeft, showIconRight
|
|
62
62
|
|
|
63
63
|
Chip (Content)
|
|
64
64
|
state: default | active
|
|
65
|
-
size: huge | xlarge | large | medium | small | micro
|
|
65
|
+
size: huge | xlarge | large | medium | small | micro | compact
|
|
66
66
|
appearance: default | a2ui
|
|
67
67
|
booleans: showIconLeft, showIconRight
|
|
68
68
|
|
|
69
69
|
TextField (Form)
|
|
70
|
-
size: large | small | xsmall
|
|
70
|
+
size: large | small | xsmall | compact
|
|
71
71
|
appearance: default | a2ui | bare
|
|
72
72
|
counterPlacement: below | inside
|
|
73
73
|
prefixPlacement: inside | outside
|
|
@@ -95,6 +95,7 @@ Switch (Form)
|
|
|
95
95
|
|
|
96
96
|
Slider (Form)
|
|
97
97
|
size: large | small
|
|
98
|
+
appearance: default | scrubber
|
|
98
99
|
booleans: disabled
|
|
99
100
|
|
|
100
101
|
DateTimeInput (Form)
|
|
@@ -126,11 +127,11 @@ Skeleton (Feedback)
|
|
|
126
127
|
Text (Foundations)
|
|
127
128
|
role: display | h1 | h2 | h3 | h4 | h5 | h6 | paragraph | bodyLg | bodyMd | bodySm
|
|
128
129
|
weight: bold | semibold | medium | regular
|
|
129
|
-
color: primary | secondary | disable | invert | brand | success | error | warning
|
|
130
|
+
color: primary | secondary | disable | invert | brand | success | error | warning | muted
|
|
130
131
|
|
|
131
132
|
Icon (Foundations)
|
|
132
133
|
size: xs | sm | md | lg | xl
|
|
133
|
-
color: primary | secondary | disable | invert | brand | success | error | warning
|
|
134
|
+
color: primary | secondary | disable | invert | brand | success | error | warning | muted
|
|
134
135
|
REQUIRED props (not axes): name
|
|
135
136
|
|
|
136
137
|
Sidebar (Shell)
|
|
@@ -146,7 +147,8 @@ AppShell (Shell)
|
|
|
146
147
|
booleans: scrolled
|
|
147
148
|
|
|
148
149
|
Lightbox (Overlays)
|
|
149
|
-
|
|
150
|
+
scrim: default | light
|
|
151
|
+
REQUIRED props (not axes): open, onOpenChange
|
|
150
152
|
|
|
151
153
|
ChatComposer (Chat)
|
|
152
154
|
tone: neutral | info | warning | danger
|
|
@@ -156,28 +158,33 @@ ChatComposerInput (Chat)
|
|
|
156
158
|
REQUIRED props (not axes): value, onValueChange, label
|
|
157
159
|
|
|
158
160
|
ChatDrawer (Chat)
|
|
159
|
-
variant: inherit | neutral | info | warning | danger
|
|
161
|
+
variant: inherit | neutral | info | warning | danger | floating
|
|
160
162
|
booleans: collapsed
|
|
161
163
|
|
|
162
164
|
ChatAttachment (Chat)
|
|
163
|
-
variant: image | file
|
|
165
|
+
variant: image | file | tile
|
|
166
|
+
size: default | large
|
|
164
167
|
booleans: showSize
|
|
165
168
|
REQUIRED props (not axes): name
|
|
166
169
|
|
|
167
170
|
ChatToolsButton (Chat)
|
|
168
171
|
state: default | active
|
|
172
|
+
size: compact | landing
|
|
169
173
|
REQUIRED props (not axes): label
|
|
170
174
|
|
|
171
175
|
ChatAttachmentButton (Chat)
|
|
172
176
|
state: default | active
|
|
177
|
+
size: compact | landing
|
|
173
178
|
REQUIRED props (not axes): label
|
|
174
179
|
|
|
175
180
|
ChatVoiceButton (Chat)
|
|
176
181
|
state: default | active
|
|
182
|
+
size: compact | landing
|
|
177
183
|
REQUIRED props (not axes): label
|
|
178
184
|
|
|
179
185
|
ChatSendButton (Chat)
|
|
180
186
|
state: send | stop | waiting
|
|
187
|
+
size: compact | landing
|
|
181
188
|
REQUIRED props (not axes): label
|
|
182
189
|
|
|
183
190
|
ChatSoundWave (Chat)
|
|
@@ -203,7 +210,7 @@ ChatMessageList (Chat)
|
|
|
203
210
|
density: compact | balanced | spacious
|
|
204
211
|
align: top | bottom
|
|
205
212
|
gap: none | 2xs | xs | sm | md | lg
|
|
206
|
-
booleans: streaming
|
|
213
|
+
booleans: streaming, flush
|
|
207
214
|
|
|
208
215
|
ChatThread (Chat)
|
|
209
216
|
|
|
@@ -219,7 +226,8 @@ ChatMessageTTSButton (Chat)
|
|
|
219
226
|
Dialog (Overlays)
|
|
220
227
|
size: small | medium | large | xlarge
|
|
221
228
|
side: none | left | right
|
|
222
|
-
|
|
229
|
+
rounded: default | lg
|
|
230
|
+
booleans: centered, fullHeight, keyboardAware, showCloseButton, dismissible, dismissOnOutsidePress, closeDisabled
|
|
223
231
|
REQUIRED props (not axes): open, onOpenChange
|
|
224
232
|
|
|
225
233
|
Menu (Overlays)
|
|
@@ -309,6 +317,10 @@ Label (Form)
|
|
|
309
317
|
look: default | field-large | field-small
|
|
310
318
|
booleans: required
|
|
311
319
|
|
|
320
|
+
TabBar (Navigation)
|
|
321
|
+
booleans: active
|
|
322
|
+
REQUIRED props (not axes): label
|
|
323
|
+
|
|
312
324
|
TRAPS — each of these renders or ignores silently, with no error:
|
|
313
325
|
|
|
314
326
|
1. `Text` roles are camelCase: `bodyLg`, `paragraphSm`, `labelMd`. A kebab-case or Title-Case role matches no variant and the text renders with no type styling at all.
|
|
@@ -443,6 +455,7 @@ TRAPS — each of these renders or ignores silently, with no error:
|
|
|
443
455
|
--text-default-success: 14 160 110;
|
|
444
456
|
--text-default-error: 219 0 0;
|
|
445
457
|
--text-default-warning: 245 158 11;
|
|
458
|
+
--text-default-muted: 49 77 105;
|
|
446
459
|
--text-hover-primary: 3 32 61;
|
|
447
460
|
--text-hover-secondary: 97 118 140;
|
|
448
461
|
--text-hover-invert: 246 246 246;
|
|
@@ -469,6 +482,15 @@ TRAPS — each of these renders or ignores silently, with no error:
|
|
|
469
482
|
--text-disable-error: 245 150 150;
|
|
470
483
|
--text-disable-warning: 253 228 152;
|
|
471
484
|
--text-disable-invert: 49 77 105;
|
|
485
|
+
--text-chip-price: 138 74 0;
|
|
486
|
+
--text-chip-free: 0 88 71;
|
|
487
|
+
--text-tile-blue: 0 116 231;
|
|
488
|
+
--text-tile-green: 14 160 110;
|
|
489
|
+
--text-tile-yellow: 179 116 0;
|
|
490
|
+
--text-tile-red: 219 0 0;
|
|
491
|
+
--text-tile-purple: 91 69 194;
|
|
492
|
+
--text-tile-orange: 201 98 10;
|
|
493
|
+
--text-coin-default: 240 138 28;
|
|
472
494
|
--icon-default-primary: 4 38 72;
|
|
473
495
|
--icon-default-secondary: 147 162 176;
|
|
474
496
|
--icon-default-invert: 255 255 255;
|
|
@@ -502,6 +524,13 @@ TRAPS — each of these renders or ignores silently, with no error:
|
|
|
502
524
|
--icon-disable-error: 245 150 150;
|
|
503
525
|
--icon-disable-warning: 253 228 152;
|
|
504
526
|
--icon-disable-invert: 49 77 105;
|
|
527
|
+
--icon-tile-blue: 0 116 231;
|
|
528
|
+
--icon-tile-green: 14 160 110;
|
|
529
|
+
--icon-tile-yellow: 179 116 0;
|
|
530
|
+
--icon-tile-red: 219 0 0;
|
|
531
|
+
--icon-tile-purple: 91 69 194;
|
|
532
|
+
--icon-tile-orange: 201 98 10;
|
|
533
|
+
--icon-coin-default: 240 138 28;
|
|
505
534
|
--surface-default-primary: 255 255 255;
|
|
506
535
|
--surface-default-secondary: 246 246 246;
|
|
507
536
|
--surface-default-invert: 0 0 0;
|
|
@@ -547,6 +576,16 @@ TRAPS — each of these renders or ignores silently, with no error:
|
|
|
547
576
|
--surface-gradient-yellow-end: 172 111 8;
|
|
548
577
|
--surface-gradient-callout-start: 0 81 162;
|
|
549
578
|
--surface-gradient-callout-end: 8 118 96;
|
|
579
|
+
--surface-glass-strong: 255 255 255;
|
|
580
|
+
--surface-tile-blue: 240 247 255;
|
|
581
|
+
--surface-tile-green: 236 253 247;
|
|
582
|
+
--surface-tile-yellow: 255 248 230;
|
|
583
|
+
--surface-tile-red: 255 243 243;
|
|
584
|
+
--surface-tile-purple: 239 235 252;
|
|
585
|
+
--surface-tile-orange: 255 240 227;
|
|
586
|
+
--surface-chip-price: 255 248 230;
|
|
587
|
+
--surface-chip-free: 236 253 247;
|
|
588
|
+
--surface-badge-promo: 231 0 0;
|
|
550
589
|
--surface-hover-neutral: 247 248 250;
|
|
551
590
|
--surface-selected-hover: 227 239 252;
|
|
552
591
|
--surface-default-subtle: 249 250 251;
|
|
@@ -582,6 +621,7 @@ TRAPS — each of these renders or ignores silently, with no error:
|
|
|
582
621
|
--border-disable-error: 245 150 150;
|
|
583
622
|
--border-disable-warning: 253 228 152;
|
|
584
623
|
--border-disable-invert: 49 77 105;
|
|
624
|
+
--border-glass-default: 255 255 255;
|
|
585
625
|
--radius-null: 0;
|
|
586
626
|
--radius-xs: 4;
|
|
587
627
|
--radius-sm: 6;
|
|
@@ -617,6 +657,8 @@ TRAPS — each of these renders or ignores silently, with no error:
|
|
|
617
657
|
--shadow-position-md: 4;
|
|
618
658
|
--shadow-position-lg: 8;
|
|
619
659
|
--shadow-position-xl: 12;
|
|
660
|
+
--shadow-nav: 0 -2px 10px 0 #0000001f;
|
|
661
|
+
--shadow-float: 0 20px 50px 0 #04264847;
|
|
620
662
|
--shadow-5-pct: 0 4px 12px 0 #0000000d;
|
|
621
663
|
--shadow-card: 0 2px 8px 0 #0000001a;
|
|
622
664
|
--shadow-10-pct: 0 4px 16px 0 #0000001a;
|
|
@@ -628,6 +670,39 @@ TRAPS — each of these renders or ignores silently, with no error:
|
|
|
628
670
|
--border-width-sm: 1;
|
|
629
671
|
--border-width-md: 2;
|
|
630
672
|
--border-width-l: 4;
|
|
673
|
+
--motion-duration-press: 120;
|
|
674
|
+
--motion-duration-fast: 180;
|
|
675
|
+
--motion-duration-base: 280;
|
|
676
|
+
--motion-duration-slow: 380;
|
|
677
|
+
--motion-duration-ring: 100;
|
|
678
|
+
--motion-duration-exit: 200;
|
|
679
|
+
--motion-easing-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
680
|
+
--motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
|
|
681
|
+
--motion-spring-press-damping: 18;
|
|
682
|
+
--motion-spring-press-stiffness: 320;
|
|
683
|
+
--motion-spring-sheet-damping: 22;
|
|
684
|
+
--motion-spring-sheet-stiffness: 220;
|
|
685
|
+
--motion-spring-snappy-damping: 26;
|
|
686
|
+
--motion-spring-snappy-stiffness: 400;
|
|
687
|
+
--motion-spring-pop-damping: 12;
|
|
688
|
+
--motion-spring-pop-stiffness: 380;
|
|
689
|
+
--motion-stagger-step: 40;
|
|
690
|
+
--motion-stagger-max: 8;
|
|
691
|
+
--motion-distance-enter: 12;
|
|
692
|
+
--motion-distance-sidebar: 24;
|
|
693
|
+
--motion-distance-label: 6;
|
|
694
|
+
--motion-distance-page: 8;
|
|
695
|
+
--motion-distance-nudge: 2;
|
|
696
|
+
--motion-delay-toast-icon: 150;
|
|
697
|
+
--motion-scale-press-default: 0.97;
|
|
698
|
+
--motion-scale-press-card: 0.98;
|
|
699
|
+
--motion-scale-press-icon: 0.92;
|
|
700
|
+
--motion-scale-pop-squash: 0.82;
|
|
701
|
+
--motion-scale-pop-overshoot: 1.14;
|
|
702
|
+
--motion-rotate-ring-1: -14;
|
|
703
|
+
--motion-rotate-ring-2: 12;
|
|
704
|
+
--motion-rotate-ring-3: -8;
|
|
705
|
+
--motion-rotate-ring-4: 5;
|
|
631
706
|
--callout-default-surface: 240 247 255;
|
|
632
707
|
--callout-default-border: 0 116 231;
|
|
633
708
|
--callout-default-text: 0 81 162;
|
|
@@ -738,8 +813,8 @@ TRAPS — each of these renders or ignores silently, with no error:
|
|
|
738
813
|
body { color: rgb(var(--text-default-primary)); }
|
|
739
814
|
</style>
|
|
740
815
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
741
|
-
<script src="https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
742
|
-
<script src="https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
816
|
+
<script src="https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-tailwind.js"></script>
|
|
817
|
+
<script src="https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-ui.js"></script>
|
|
743
818
|
<script src="https://cdn.jsdelivr.net/npm/@babel/standalone@7.26.4/babel.min.js"></script>
|
|
744
819
|
</head>
|
|
745
820
|
<body class="bg-default-primary text-default-primary">
|
package/umkmall-rules.md
CHANGED
|
@@ -29,10 +29,10 @@ When I answer, build the whole thing in one file and hand it back.
|
|
|
29
29
|
Each of these is plain markdown, published for you rather than for a person.
|
|
30
30
|
Fetch them if you have web access; they are always current.
|
|
31
31
|
|
|
32
|
-
the whole starter, in a code block https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
33
|
-
the demo block on its own https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
34
|
-
the component vocabulary https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
35
|
-
the starter as a raw .html file https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
32
|
+
the whole starter, in a code block https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-starter.md
|
|
33
|
+
the demo block on its own https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-starter-app.md
|
|
34
|
+
the component vocabulary https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-components.md
|
|
35
|
+
the starter as a raw .html file https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-prototype-starter.html
|
|
36
36
|
|
|
37
37
|
TAKE THE FIRST ONE. It is the entire working file — <head>, mount node and a
|
|
38
38
|
demo that already renders a chat room — inside a single fenced block, so you
|
|
@@ -150,7 +150,7 @@ THE COMPONENT LIST
|
|
|
150
150
|
Not written here. It is a published file, always current, and it carries each
|
|
151
151
|
component's axes AND the props it will not render without:
|
|
152
152
|
|
|
153
|
-
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
153
|
+
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-components.md
|
|
154
154
|
|
|
155
155
|
Fetch it, or ask me to paste it. Do not work from memory of another design
|
|
156
156
|
system — an invented axis value renders unstyled with no error, and a missing
|
package/umkmall-starter-app.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# UMKMall prototyping starter — the editable block
|
|
2
2
|
|
|
3
|
-
This is the `<script type="text/babel">` block from [the starter](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
3
|
+
This is the `<script type="text/babel">` block from [the starter](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-prototype-starter.html), on its own
|
|
4
4
|
so it can be read or pasted without the surrounding HTML.
|
|
5
5
|
|
|
6
6
|
It renders a working chat room: a header, the journey's progress rail and quota meters, a
|
|
7
7
|
scrolling transcript and a pinned composer. Edit the part between the `REPLACE THIS` and
|
|
8
8
|
`end of the part you replace` markers; keep the shell around it.
|
|
9
9
|
|
|
10
|
-
The `<head>` it needs is in the starter, or in section 3 of [the prompt](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
10
|
+
The `<head>` it needs is in the starter, or in section 3 of [the prompt](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-rules.md).
|
|
11
11
|
|
|
12
12
|
```jsx
|
|
13
13
|
/*
|
package/umkmall-starter.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
The starter in a code block, so it can be read without fetching HTML. Save it as `.html` and
|
|
4
4
|
open it; there is no build step and no install.
|
|
5
5
|
|
|
6
|
-
It is the same file as [the raw starter](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
6
|
+
It is the same file as [the raw starter](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-prototype-starter.html) with one deliberate difference: the
|
|
7
7
|
`.html` carries the whole component list inside a comment in its `<head>`, and here that is
|
|
8
|
-
replaced by a link to [the same list](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
8
|
+
replaced by a link to [the same list](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-components.md). Nothing else differs, and nothing the
|
|
9
9
|
page needs to run is in the part that was swapped.
|
|
10
10
|
|
|
11
11
|
**Take the `<head>` exactly as it is.** Its tags load in one order that works: the config
|
|
@@ -14,7 +14,7 @@ CDN the global does not exist and after it the theme arrives too late — every
|
|
|
14
14
|
class then resolves to nothing, with no error. Edit only the `<script type="text/babel">`
|
|
15
15
|
block at the bottom.
|
|
16
16
|
|
|
17
|
-
The component list is not inline here; it is [its own file](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
17
|
+
The component list is not inline here; it is [its own file](https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-components.md).
|
|
18
18
|
|
|
19
19
|
````html
|
|
20
20
|
<!doctype html>
|
|
@@ -37,8 +37,8 @@ HOW TO USE THIS FILE
|
|
|
37
37
|
WHAT THIS FILE NEEDS FROM THE NETWORK
|
|
38
38
|
Four hosts, every time it is opened — not just the first time:
|
|
39
39
|
|
|
40
|
-
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
41
|
-
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
40
|
+
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-tailwind.js
|
|
41
|
+
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-ui.js
|
|
42
42
|
https://cdn.jsdelivr.net/npm/@babel/standalone@7.26.4/babel.min.js
|
|
43
43
|
— all on jsDelivr: the design system's assets (pinned) and the JSX compiler.
|
|
44
44
|
The token CSS is NOT fetched: it is inlined in the <style> below, because a claude.ai
|
|
@@ -52,14 +52,14 @@ WHAT THIS FILE NEEDS FROM THE NETWORK
|
|
|
52
52
|
|
|
53
53
|
YOU DO NOT HAVE TO START FROM THIS FILE
|
|
54
54
|
Four tags add UMKMall styling to a page you already have: the token CSS as a <link> to
|
|
55
|
-
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
55
|
+
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-tokens.css
|
|
56
56
|
then the Play CDN, the config and the bundle below. Keep the order — the config must come after
|
|
57
57
|
the Play CDN script, or the theme arrives too late and every class resolves to nothing.
|
|
58
58
|
|
|
59
59
|
THE COMPONENT LIST IS NOT IN THIS FILE.
|
|
60
60
|
It is published separately, and it is always current:
|
|
61
61
|
|
|
62
|
-
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
62
|
+
https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-components.md
|
|
63
63
|
|
|
64
64
|
It carries every component, its axes, and the props it will not render without.
|
|
65
65
|
-->
|
|
@@ -187,6 +187,7 @@ It carries every component, its axes, and the props it will not render without.
|
|
|
187
187
|
--text-default-success: 14 160 110;
|
|
188
188
|
--text-default-error: 219 0 0;
|
|
189
189
|
--text-default-warning: 245 158 11;
|
|
190
|
+
--text-default-muted: 49 77 105;
|
|
190
191
|
--text-hover-primary: 3 32 61;
|
|
191
192
|
--text-hover-secondary: 97 118 140;
|
|
192
193
|
--text-hover-invert: 246 246 246;
|
|
@@ -213,6 +214,15 @@ It carries every component, its axes, and the props it will not render without.
|
|
|
213
214
|
--text-disable-error: 245 150 150;
|
|
214
215
|
--text-disable-warning: 253 228 152;
|
|
215
216
|
--text-disable-invert: 49 77 105;
|
|
217
|
+
--text-chip-price: 138 74 0;
|
|
218
|
+
--text-chip-free: 0 88 71;
|
|
219
|
+
--text-tile-blue: 0 116 231;
|
|
220
|
+
--text-tile-green: 14 160 110;
|
|
221
|
+
--text-tile-yellow: 179 116 0;
|
|
222
|
+
--text-tile-red: 219 0 0;
|
|
223
|
+
--text-tile-purple: 91 69 194;
|
|
224
|
+
--text-tile-orange: 201 98 10;
|
|
225
|
+
--text-coin-default: 240 138 28;
|
|
216
226
|
--icon-default-primary: 4 38 72;
|
|
217
227
|
--icon-default-secondary: 147 162 176;
|
|
218
228
|
--icon-default-invert: 255 255 255;
|
|
@@ -246,6 +256,13 @@ It carries every component, its axes, and the props it will not render without.
|
|
|
246
256
|
--icon-disable-error: 245 150 150;
|
|
247
257
|
--icon-disable-warning: 253 228 152;
|
|
248
258
|
--icon-disable-invert: 49 77 105;
|
|
259
|
+
--icon-tile-blue: 0 116 231;
|
|
260
|
+
--icon-tile-green: 14 160 110;
|
|
261
|
+
--icon-tile-yellow: 179 116 0;
|
|
262
|
+
--icon-tile-red: 219 0 0;
|
|
263
|
+
--icon-tile-purple: 91 69 194;
|
|
264
|
+
--icon-tile-orange: 201 98 10;
|
|
265
|
+
--icon-coin-default: 240 138 28;
|
|
249
266
|
--surface-default-primary: 255 255 255;
|
|
250
267
|
--surface-default-secondary: 246 246 246;
|
|
251
268
|
--surface-default-invert: 0 0 0;
|
|
@@ -291,6 +308,16 @@ It carries every component, its axes, and the props it will not render without.
|
|
|
291
308
|
--surface-gradient-yellow-end: 172 111 8;
|
|
292
309
|
--surface-gradient-callout-start: 0 81 162;
|
|
293
310
|
--surface-gradient-callout-end: 8 118 96;
|
|
311
|
+
--surface-glass-strong: 255 255 255;
|
|
312
|
+
--surface-tile-blue: 240 247 255;
|
|
313
|
+
--surface-tile-green: 236 253 247;
|
|
314
|
+
--surface-tile-yellow: 255 248 230;
|
|
315
|
+
--surface-tile-red: 255 243 243;
|
|
316
|
+
--surface-tile-purple: 239 235 252;
|
|
317
|
+
--surface-tile-orange: 255 240 227;
|
|
318
|
+
--surface-chip-price: 255 248 230;
|
|
319
|
+
--surface-chip-free: 236 253 247;
|
|
320
|
+
--surface-badge-promo: 231 0 0;
|
|
294
321
|
--surface-hover-neutral: 247 248 250;
|
|
295
322
|
--surface-selected-hover: 227 239 252;
|
|
296
323
|
--surface-default-subtle: 249 250 251;
|
|
@@ -326,6 +353,7 @@ It carries every component, its axes, and the props it will not render without.
|
|
|
326
353
|
--border-disable-error: 245 150 150;
|
|
327
354
|
--border-disable-warning: 253 228 152;
|
|
328
355
|
--border-disable-invert: 49 77 105;
|
|
356
|
+
--border-glass-default: 255 255 255;
|
|
329
357
|
--radius-null: 0;
|
|
330
358
|
--radius-xs: 4;
|
|
331
359
|
--radius-sm: 6;
|
|
@@ -361,6 +389,8 @@ It carries every component, its axes, and the props it will not render without.
|
|
|
361
389
|
--shadow-position-md: 4;
|
|
362
390
|
--shadow-position-lg: 8;
|
|
363
391
|
--shadow-position-xl: 12;
|
|
392
|
+
--shadow-nav: 0 -2px 10px 0 #0000001f;
|
|
393
|
+
--shadow-float: 0 20px 50px 0 #04264847;
|
|
364
394
|
--shadow-5-pct: 0 4px 12px 0 #0000000d;
|
|
365
395
|
--shadow-card: 0 2px 8px 0 #0000001a;
|
|
366
396
|
--shadow-10-pct: 0 4px 16px 0 #0000001a;
|
|
@@ -372,6 +402,39 @@ It carries every component, its axes, and the props it will not render without.
|
|
|
372
402
|
--border-width-sm: 1;
|
|
373
403
|
--border-width-md: 2;
|
|
374
404
|
--border-width-l: 4;
|
|
405
|
+
--motion-duration-press: 120;
|
|
406
|
+
--motion-duration-fast: 180;
|
|
407
|
+
--motion-duration-base: 280;
|
|
408
|
+
--motion-duration-slow: 380;
|
|
409
|
+
--motion-duration-ring: 100;
|
|
410
|
+
--motion-duration-exit: 200;
|
|
411
|
+
--motion-easing-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
412
|
+
--motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
|
|
413
|
+
--motion-spring-press-damping: 18;
|
|
414
|
+
--motion-spring-press-stiffness: 320;
|
|
415
|
+
--motion-spring-sheet-damping: 22;
|
|
416
|
+
--motion-spring-sheet-stiffness: 220;
|
|
417
|
+
--motion-spring-snappy-damping: 26;
|
|
418
|
+
--motion-spring-snappy-stiffness: 400;
|
|
419
|
+
--motion-spring-pop-damping: 12;
|
|
420
|
+
--motion-spring-pop-stiffness: 380;
|
|
421
|
+
--motion-stagger-step: 40;
|
|
422
|
+
--motion-stagger-max: 8;
|
|
423
|
+
--motion-distance-enter: 12;
|
|
424
|
+
--motion-distance-sidebar: 24;
|
|
425
|
+
--motion-distance-label: 6;
|
|
426
|
+
--motion-distance-page: 8;
|
|
427
|
+
--motion-distance-nudge: 2;
|
|
428
|
+
--motion-delay-toast-icon: 150;
|
|
429
|
+
--motion-scale-press-default: 0.97;
|
|
430
|
+
--motion-scale-press-card: 0.98;
|
|
431
|
+
--motion-scale-press-icon: 0.92;
|
|
432
|
+
--motion-scale-pop-squash: 0.82;
|
|
433
|
+
--motion-scale-pop-overshoot: 1.14;
|
|
434
|
+
--motion-rotate-ring-1: -14;
|
|
435
|
+
--motion-rotate-ring-2: 12;
|
|
436
|
+
--motion-rotate-ring-3: -8;
|
|
437
|
+
--motion-rotate-ring-4: 5;
|
|
375
438
|
--callout-default-surface: 240 247 255;
|
|
376
439
|
--callout-default-border: 0 116 231;
|
|
377
440
|
--callout-default-text: 0 81 162;
|
|
@@ -482,8 +545,8 @@ It carries every component, its axes, and the props it will not render without.
|
|
|
482
545
|
body { color: rgb(var(--text-default-primary)); }
|
|
483
546
|
</style>
|
|
484
547
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
485
|
-
<script src="https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
486
|
-
<script src="https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-
|
|
548
|
+
<script src="https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-tailwind.js"></script>
|
|
549
|
+
<script src="https://cdn.jsdelivr.net/npm/@umkmall/proto@0.1.0-hd20dca21b978/umkmall-ui.js"></script>
|
|
487
550
|
<script src="https://cdn.jsdelivr.net/npm/@babel/standalone@7.26.4/babel.min.js"></script>
|
|
488
551
|
</head>
|
|
489
552
|
<body class="bg-default-primary text-default-primary">
|