@polyxd/ds-mantine 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,450 @@
1
+ {
2
+ "$description": "Polyxd semantic tier for Mantine 8. Every token aliases a Mantine variable wherever one exists; polyxd.* marks what Mantine leaves to its components. The file is the same in both schemes.",
3
+ "color": {
4
+ "$type": "color",
5
+ "surface": {
6
+ "default": {
7
+ "$value": "{mantine.color-body}"
8
+ },
9
+ "subtle": {
10
+ "$value": "{mantine.color-default-hover}",
11
+ "$description": "Mantine's hovered default surface, its subtle fill"
12
+ },
13
+ "raised": {
14
+ "$value": "{mantine.color-default}",
15
+ "$description": "Mantine Paper and Card"
16
+ },
17
+ "overlay": {
18
+ "$value": "{mantine.color-default}"
19
+ },
20
+ "inverse": {
21
+ "$value": "{mantine.color-text}",
22
+ "$description": "Mantine has no inverse surface; its text colour is the opposite end of the same ramp"
23
+ }
24
+ },
25
+ "scrim": {
26
+ "$value": "rgba(0, 0, 0, 0.6)",
27
+ "$description": "Mantine's Overlay default is #000 at 60%"
28
+ },
29
+ "text": {
30
+ "default": {
31
+ "$value": "{mantine.color-text}"
32
+ },
33
+ "muted": {
34
+ "$value": "{polyxd.sys.text-muted}"
35
+ },
36
+ "inverse": {
37
+ "$value": "{mantine.color-body}"
38
+ },
39
+ "link": {
40
+ "$value": "{polyxd.sys.text-link}"
41
+ }
42
+ },
43
+ "border": {
44
+ "default": {
45
+ "$value": "{mantine.color-default-border}"
46
+ },
47
+ "strong": {
48
+ "$value": "{polyxd.sys.border-strong}"
49
+ },
50
+ "focus": {
51
+ "$value": "{mantine.primary-color-filled}"
52
+ }
53
+ },
54
+ "action": {
55
+ "primary": {
56
+ "background": {
57
+ "$value": "{polyxd.sys.action-primary}"
58
+ },
59
+ "foreground": {
60
+ "$value": "{mantine.color-white}"
61
+ }
62
+ },
63
+ "secondary": {
64
+ "background": {
65
+ "$value": "{mantine.color-default}"
66
+ },
67
+ "foreground": {
68
+ "$value": "{mantine.color-text}"
69
+ },
70
+ "border": {
71
+ "$value": "{mantine.color-default-border}"
72
+ }
73
+ },
74
+ "danger": {
75
+ "background": {
76
+ "$value": "{polyxd.sys.action-danger}"
77
+ },
78
+ "foreground": {
79
+ "$value": "{mantine.color-white}"
80
+ }
81
+ }
82
+ },
83
+ "selection": {
84
+ "background": {
85
+ "$value": "{mantine.primary-color-light}",
86
+ "$description": "Mantine's light variant of the primary colour"
87
+ },
88
+ "foreground": {
89
+ "$value": "{mantine.primary-color-light-color}"
90
+ }
91
+ },
92
+ "status": {
93
+ "info": {
94
+ "background": {
95
+ "$value": "{polyxd.sys.status-info-background}"
96
+ },
97
+ "foreground": {
98
+ "$value": "{polyxd.sys.status-info-foreground}"
99
+ },
100
+ "emphasis": {
101
+ "$value": "{polyxd.sys.status-info-emphasis}"
102
+ }
103
+ },
104
+ "success": {
105
+ "background": {
106
+ "$value": "{polyxd.sys.status-success-background}"
107
+ },
108
+ "foreground": {
109
+ "$value": "{polyxd.sys.status-success-foreground}"
110
+ },
111
+ "emphasis": {
112
+ "$value": "{polyxd.sys.status-success-emphasis}"
113
+ }
114
+ },
115
+ "warning": {
116
+ "background": {
117
+ "$value": "{polyxd.sys.status-warning-background}"
118
+ },
119
+ "foreground": {
120
+ "$value": "{polyxd.sys.status-warning-foreground}"
121
+ },
122
+ "emphasis": {
123
+ "$value": "{polyxd.sys.status-warning-emphasis}"
124
+ }
125
+ },
126
+ "danger": {
127
+ "background": {
128
+ "$value": "{polyxd.sys.status-danger-background}"
129
+ },
130
+ "foreground": {
131
+ "$value": "{polyxd.sys.status-danger-foreground}"
132
+ },
133
+ "emphasis": {
134
+ "$value": "{polyxd.sys.status-danger-emphasis}"
135
+ }
136
+ }
137
+ },
138
+ "data": {
139
+ "categorical": {
140
+ "1": {
141
+ "$value": "{polyxd.sys.data-1}"
142
+ },
143
+ "2": {
144
+ "$value": "{polyxd.sys.data-2}"
145
+ },
146
+ "3": {
147
+ "$value": "{polyxd.sys.data-3}"
148
+ },
149
+ "4": {
150
+ "$value": "{polyxd.sys.data-4}"
151
+ },
152
+ "5": {
153
+ "$value": "{polyxd.sys.data-5}"
154
+ },
155
+ "6": {
156
+ "$value": "{polyxd.sys.data-6}"
157
+ }
158
+ },
159
+ "positive": {
160
+ "$value": "{polyxd.sys.data-positive}"
161
+ },
162
+ "negative": {
163
+ "$value": "{polyxd.sys.data-negative}"
164
+ },
165
+ "neutral": {
166
+ "$value": "{polyxd.sys.data-neutral}"
167
+ }
168
+ }
169
+ },
170
+ "type": {
171
+ "$type": "typography",
172
+ "title": {
173
+ "page": {
174
+ "$value": {
175
+ "fontFamily": "{mantine.font-family}",
176
+ "fontSize": "{mantine.font-size-xl}",
177
+ "fontWeight": 700,
178
+ "lineHeight": "{mantine.line-height-sm}",
179
+ "letterSpacing": {
180
+ "value": 0,
181
+ "unit": "px"
182
+ }
183
+ }
184
+ },
185
+ "section": {
186
+ "$value": {
187
+ "fontFamily": "{mantine.font-family}",
188
+ "fontSize": "{mantine.font-size-lg}",
189
+ "fontWeight": 600,
190
+ "lineHeight": "{mantine.line-height-sm}",
191
+ "letterSpacing": {
192
+ "value": 0,
193
+ "unit": "px"
194
+ }
195
+ }
196
+ },
197
+ "item": {
198
+ "$value": {
199
+ "fontFamily": "{mantine.font-family}",
200
+ "fontSize": "{mantine.font-size-md}",
201
+ "fontWeight": 600,
202
+ "lineHeight": "{mantine.line-height-md}",
203
+ "letterSpacing": {
204
+ "value": 0,
205
+ "unit": "px"
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "body": {
211
+ "default": {
212
+ "$value": {
213
+ "fontFamily": "{mantine.font-family}",
214
+ "fontSize": "{mantine.font-size-md}",
215
+ "fontWeight": 400,
216
+ "lineHeight": "{mantine.line-height-md}",
217
+ "letterSpacing": {
218
+ "value": 0,
219
+ "unit": "px"
220
+ }
221
+ }
222
+ },
223
+ "small": {
224
+ "$value": {
225
+ "fontFamily": "{mantine.font-family}",
226
+ "fontSize": "{mantine.font-size-sm}",
227
+ "fontWeight": 400,
228
+ "lineHeight": "{mantine.line-height-md}",
229
+ "letterSpacing": {
230
+ "value": 0,
231
+ "unit": "px"
232
+ }
233
+ }
234
+ }
235
+ },
236
+ "label": {
237
+ "default": {
238
+ "$value": {
239
+ "fontFamily": "{mantine.font-family}",
240
+ "fontSize": "{mantine.font-size-sm}",
241
+ "fontWeight": 500,
242
+ "lineHeight": "{mantine.line-height-md}",
243
+ "letterSpacing": {
244
+ "value": 0,
245
+ "unit": "px"
246
+ }
247
+ }
248
+ },
249
+ "small": {
250
+ "$value": {
251
+ "fontFamily": "{mantine.font-family}",
252
+ "fontSize": "{mantine.font-size-xs}",
253
+ "fontWeight": 500,
254
+ "lineHeight": "{mantine.line-height-md}",
255
+ "letterSpacing": {
256
+ "value": 0,
257
+ "unit": "px"
258
+ }
259
+ }
260
+ }
261
+ },
262
+ "numeric": {
263
+ "display": {
264
+ "$value": {
265
+ "fontFamily": "{mantine.font-family}",
266
+ "fontSize": "{mantine.font-size-xl}",
267
+ "fontWeight": 700,
268
+ "lineHeight": "{mantine.line-height-sm}",
269
+ "letterSpacing": {
270
+ "value": 0,
271
+ "unit": "px"
272
+ }
273
+ },
274
+ "$extensions": {
275
+ "com.polyxd": {
276
+ "numeric": "tabular"
277
+ }
278
+ }
279
+ }
280
+ }
281
+ },
282
+ "space": {
283
+ "$type": "dimension",
284
+ "inset": {
285
+ "compact": {
286
+ "$value": "{mantine.spacing-xs}"
287
+ },
288
+ "default": {
289
+ "$value": "{mantine.spacing-md}"
290
+ },
291
+ "comfortable": {
292
+ "$value": "{mantine.spacing-lg}"
293
+ }
294
+ },
295
+ "stack": {
296
+ "tight": {
297
+ "$value": "{mantine.spacing-xs}"
298
+ },
299
+ "default": {
300
+ "$value": "{mantine.spacing-sm}"
301
+ },
302
+ "loose": {
303
+ "$value": "{mantine.spacing-md}"
304
+ },
305
+ "section": {
306
+ "$value": "{mantine.spacing-xl}"
307
+ }
308
+ },
309
+ "inline": {
310
+ "tight": {
311
+ "$value": "{mantine.spacing-xs}"
312
+ },
313
+ "default": {
314
+ "$value": "{mantine.spacing-sm}"
315
+ },
316
+ "loose": {
317
+ "$value": "{mantine.spacing-md}"
318
+ }
319
+ }
320
+ },
321
+ "size": {
322
+ "$type": "dimension",
323
+ "target": {
324
+ "min": {
325
+ "$value": "{polyxd.sys.target.min}"
326
+ }
327
+ },
328
+ "icon": {
329
+ "small": {
330
+ "$value": "{mantine.font-size-sm}"
331
+ },
332
+ "default": {
333
+ "$value": "{mantine.font-size-lg}"
334
+ }
335
+ }
336
+ },
337
+ "radius": {
338
+ "$type": "dimension",
339
+ "small": {
340
+ "$value": "{mantine.radius-xs}"
341
+ },
342
+ "control": {
343
+ "$value": "{mantine.radius-sm}",
344
+ "$description": "Mantine's default control radius"
345
+ },
346
+ "default": {
347
+ "$value": "{mantine.radius-md}"
348
+ },
349
+ "large": {
350
+ "$value": "{mantine.radius-lg}"
351
+ },
352
+ "full": {
353
+ "$value": {
354
+ "value": 9999,
355
+ "unit": "px"
356
+ },
357
+ "$description": "Mantine's radius=\"xl\" on a round control"
358
+ }
359
+ },
360
+ "border": {
361
+ "width": {
362
+ "$type": "dimension",
363
+ "default": {
364
+ "$value": {
365
+ "value": 1,
366
+ "unit": "px"
367
+ }
368
+ },
369
+ "strong": {
370
+ "$value": {
371
+ "value": 2,
372
+ "unit": "px"
373
+ }
374
+ }
375
+ }
376
+ },
377
+ "focus": {
378
+ "ring": {
379
+ "$type": "dimension",
380
+ "width": {
381
+ "$value": "{polyxd.sys.focusRing.width}"
382
+ },
383
+ "offset": {
384
+ "$value": "{polyxd.sys.focusRing.offset}"
385
+ }
386
+ }
387
+ },
388
+ "measure": {
389
+ "max": {
390
+ "$value": 65,
391
+ "$type": "number",
392
+ "$description": "Characters per line for running text (Polyxd; Mantine has no measure token)"
393
+ }
394
+ },
395
+ "opacity": {
396
+ "state": {
397
+ "$type": "number",
398
+ "hover": {
399
+ "$value": "{polyxd.sys.state.hover}"
400
+ },
401
+ "pressed": {
402
+ "$value": "{polyxd.sys.state.pressed}"
403
+ },
404
+ "focus": {
405
+ "$value": "{polyxd.sys.state.focus}"
406
+ },
407
+ "disabled": {
408
+ "$value": "{polyxd.sys.state.disabled}"
409
+ }
410
+ }
411
+ },
412
+ "shadow": {
413
+ "$type": "shadow",
414
+ "raised": {
415
+ "$value": "{mantine.shadow-sm}"
416
+ },
417
+ "overlay": {
418
+ "$value": "{mantine.shadow-lg}"
419
+ }
420
+ },
421
+ "motion": {
422
+ "duration": {
423
+ "$type": "duration",
424
+ "instant": {
425
+ "$value": "{polyxd.sys.motion.instant}"
426
+ },
427
+ "short": {
428
+ "$value": "{polyxd.sys.motion.short}"
429
+ },
430
+ "medium": {
431
+ "$value": "{polyxd.sys.motion.medium}"
432
+ },
433
+ "long": {
434
+ "$value": "{polyxd.sys.motion.long}"
435
+ }
436
+ },
437
+ "easing": {
438
+ "$type": "cubicBezier",
439
+ "standard": {
440
+ "$value": "{polyxd.sys.easing.standard}"
441
+ },
442
+ "enter": {
443
+ "$value": "{polyxd.sys.easing.enter}"
444
+ },
445
+ "exit": {
446
+ "$value": "{polyxd.sys.easing.exit}"
447
+ }
448
+ }
449
+ }
450
+ }