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