@tujyane/alf 1.0.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.
Files changed (87) hide show
  1. package/README.md +226 -0
  2. package/dist/atoms/common.d.ts +992 -0
  3. package/dist/atoms/common.d.ts.map +1 -0
  4. package/dist/atoms/common.js +1067 -0
  5. package/dist/atoms/common.js.map +1 -0
  6. package/dist/atoms/index.d.ts +2 -0
  7. package/dist/atoms/index.d.ts.map +1 -0
  8. package/dist/atoms/index.js +18 -0
  9. package/dist/atoms/index.js.map +1 -0
  10. package/dist/atoms/index.native.d.ts +1020 -0
  11. package/dist/atoms/index.native.d.ts.map +1 -0
  12. package/dist/atoms/index.native.js +119 -0
  13. package/dist/atoms/index.native.js.map +1 -0
  14. package/dist/atoms/types.d.ts +3 -0
  15. package/dist/atoms/types.d.ts.map +1 -0
  16. package/dist/atoms/types.js +3 -0
  17. package/dist/atoms/types.js.map +1 -0
  18. package/dist/index.d.ts +23 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +64 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/palette.d.ts +72 -0
  23. package/dist/palette.d.ts.map +1 -0
  24. package/dist/palette.js +152 -0
  25. package/dist/palette.js.map +1 -0
  26. package/dist/platform/index.d.ts +45 -0
  27. package/dist/platform/index.d.ts.map +1 -0
  28. package/dist/platform/index.js +55 -0
  29. package/dist/platform/index.js.map +1 -0
  30. package/dist/platform/index.native.d.ts +16 -0
  31. package/dist/platform/index.native.d.ts.map +1 -0
  32. package/dist/platform/index.native.js +20 -0
  33. package/dist/platform/index.native.js.map +1 -0
  34. package/dist/themes.d.ts +151 -0
  35. package/dist/themes.d.ts.map +1 -0
  36. package/dist/themes.js +191 -0
  37. package/dist/themes.js.map +1 -0
  38. package/dist/tokens.d.ts +49 -0
  39. package/dist/tokens.d.ts.map +1 -0
  40. package/dist/tokens.js +52 -0
  41. package/dist/tokens.js.map +1 -0
  42. package/dist/utils/alpha.d.ts +2 -0
  43. package/dist/utils/alpha.d.ts.map +1 -0
  44. package/dist/utils/alpha.js +30 -0
  45. package/dist/utils/alpha.js.map +1 -0
  46. package/dist/utils/flatten/index.d.ts +3 -0
  47. package/dist/utils/flatten/index.d.ts.map +1 -0
  48. package/dist/utils/flatten/index.js +9 -0
  49. package/dist/utils/flatten/index.js.map +1 -0
  50. package/dist/utils/flatten/index.native.d.ts +3 -0
  51. package/dist/utils/flatten/index.native.d.ts.map +1 -0
  52. package/dist/utils/flatten/index.native.js +6 -0
  53. package/dist/utils/flatten/index.native.js.map +1 -0
  54. package/dist/utils/flatten/index.web.d.ts +3 -0
  55. package/dist/utils/flatten/index.web.d.ts.map +1 -0
  56. package/dist/utils/flatten/index.web.js +6 -0
  57. package/dist/utils/flatten/index.web.js.map +1 -0
  58. package/dist/utils/index.d.ts +5 -0
  59. package/dist/utils/index.d.ts.map +1 -0
  60. package/dist/utils/index.js +21 -0
  61. package/dist/utils/index.js.map +1 -0
  62. package/dist/utils/leading.d.ts +14 -0
  63. package/dist/utils/leading.d.ts.map +1 -0
  64. package/dist/utils/leading.js +64 -0
  65. package/dist/utils/leading.js.map +1 -0
  66. package/dist/utils/select.d.ts +7 -0
  67. package/dist/utils/select.d.ts.map +1 -0
  68. package/dist/utils/select.js +16 -0
  69. package/dist/utils/select.js.map +1 -0
  70. package/package.json +45 -0
  71. package/src/atoms/common.ts +1049 -0
  72. package/src/atoms/index.native.ts +84 -0
  73. package/src/atoms/index.ts +1 -0
  74. package/src/atoms/types.ts +11 -0
  75. package/src/index.tsx +46 -0
  76. package/src/palette.ts +237 -0
  77. package/src/platform/index.native.ts +16 -0
  78. package/src/platform/index.ts +54 -0
  79. package/src/themes.ts +332 -0
  80. package/src/tokens.ts +54 -0
  81. package/src/utils/alpha.ts +25 -0
  82. package/src/utils/flatten/index.native.ts +3 -0
  83. package/src/utils/flatten/index.ts +8 -0
  84. package/src/utils/flatten/index.web.ts +3 -0
  85. package/src/utils/index.ts +4 -0
  86. package/src/utils/leading.ts +30 -0
  87. package/src/utils/select.ts +19 -0
@@ -0,0 +1,1049 @@
1
+ import { type ViewStyle } from "react-native";
2
+
3
+ import * as tokens from "../tokens";
4
+ import { type ShadowStyle } from "./types";
5
+
6
+ export const atoms = {
7
+ debug: {
8
+ borderColor: "red",
9
+ borderWidth: 1,
10
+ },
11
+
12
+ /*
13
+ * Positioning
14
+ */
15
+ fixed: {
16
+ position: "fixed" as ViewStyle["position"],
17
+ },
18
+ absolute: {
19
+ position: "absolute",
20
+ },
21
+ relative: {
22
+ position: "relative",
23
+ },
24
+ static: {
25
+ position: "static",
26
+ },
27
+ sticky: {
28
+ position: "sticky" as ViewStyle["position"],
29
+ },
30
+ inset_0: {
31
+ top: 0,
32
+ left: 0,
33
+ right: 0,
34
+ bottom: 0,
35
+ },
36
+ top_0: {
37
+ top: 0,
38
+ },
39
+ right_0: {
40
+ right: 0,
41
+ },
42
+ bottom_0: {
43
+ bottom: 0,
44
+ },
45
+ left_0: {
46
+ left: 0,
47
+ },
48
+ z_10: {
49
+ zIndex: 10,
50
+ },
51
+ z_20: {
52
+ zIndex: 20,
53
+ },
54
+ z_30: {
55
+ zIndex: 30,
56
+ },
57
+ z_40: {
58
+ zIndex: 40,
59
+ },
60
+ z_50: {
61
+ zIndex: 50,
62
+ },
63
+
64
+ overflow_visible: {
65
+ overflow: "visible",
66
+ },
67
+ overflow_x_visible: {
68
+ overflowX: "visible",
69
+ },
70
+ overflow_y_visible: {
71
+ overflowY: "visible",
72
+ },
73
+ overflow_hidden: {
74
+ overflow: "hidden",
75
+ },
76
+ overflow_x_hidden: {
77
+ overflowX: "hidden",
78
+ },
79
+ overflow_y_hidden: {
80
+ overflowY: "hidden",
81
+ },
82
+ overflow_auto: {
83
+ overflow: "auto",
84
+ },
85
+
86
+ /*
87
+ * Width & Height
88
+ */
89
+ w_full: {
90
+ width: "100%",
91
+ },
92
+ h_full: {
93
+ height: "100%",
94
+ },
95
+ h_full_vh: {
96
+ height: "100vh",
97
+ },
98
+ max_w_full: {
99
+ maxWidth: "100%",
100
+ },
101
+ max_h_full: {
102
+ maxHeight: "100%",
103
+ },
104
+
105
+ /*
106
+ * Border radius
107
+ */
108
+ rounded_0: {
109
+ borderRadius: 0,
110
+ },
111
+ rounded_2xs: {
112
+ borderRadius: tokens.borderRadius._2xs,
113
+ },
114
+ rounded_xs: {
115
+ borderRadius: tokens.borderRadius.xs,
116
+ },
117
+ rounded_sm: {
118
+ borderRadius: tokens.borderRadius.sm,
119
+ },
120
+ rounded_md: {
121
+ borderRadius: tokens.borderRadius.md,
122
+ },
123
+ rounded_lg: {
124
+ borderRadius: tokens.borderRadius.lg,
125
+ },
126
+ rounded_full: {
127
+ borderRadius: tokens.borderRadius.full,
128
+ },
129
+
130
+ /*
131
+ * Flex
132
+ */
133
+ gap_0: {
134
+ gap: 0,
135
+ },
136
+ gap_2xs: {
137
+ gap: tokens.space._2xs,
138
+ },
139
+ gap_xs: {
140
+ gap: tokens.space.xs,
141
+ },
142
+ gap_sm: {
143
+ gap: tokens.space.sm,
144
+ },
145
+ gap_md: {
146
+ gap: tokens.space.md,
147
+ },
148
+ gap_lg: {
149
+ gap: tokens.space.lg,
150
+ },
151
+ gap_xl: {
152
+ gap: tokens.space.xl,
153
+ },
154
+ gap_2xl: {
155
+ gap: tokens.space._2xl,
156
+ },
157
+ gap_3xl: {
158
+ gap: tokens.space._3xl,
159
+ },
160
+ gap_4xl: {
161
+ gap: tokens.space._4xl,
162
+ },
163
+ gap_5xl: {
164
+ gap: tokens.space._5xl,
165
+ },
166
+ flex: {
167
+ display: "flex",
168
+ },
169
+ flex_col: {
170
+ flexDirection: "column",
171
+ },
172
+ flex_row: {
173
+ flexDirection: "row",
174
+ },
175
+ flex_col_reverse: {
176
+ flexDirection: "column-reverse",
177
+ },
178
+ flex_row_reverse: {
179
+ flexDirection: "row-reverse",
180
+ },
181
+ flex_wrap: {
182
+ flexWrap: "wrap",
183
+ },
184
+ flex_nowrap: {
185
+ flexWrap: "nowrap",
186
+ },
187
+ flex_0: {
188
+ flex: "0 0 auto" as unknown as ViewStyle["flex"],
189
+ },
190
+ flex_1: {
191
+ flex: 1,
192
+ },
193
+ flex_grow: {
194
+ flexGrow: 1,
195
+ },
196
+ flex_grow_0: {
197
+ flexGrow: 0,
198
+ },
199
+ flex_shrink: {
200
+ flexShrink: 1,
201
+ },
202
+ flex_shrink_0: {
203
+ flexShrink: 0,
204
+ },
205
+ justify_start: {
206
+ justifyContent: "flex-start",
207
+ },
208
+ justify_center: {
209
+ justifyContent: "center",
210
+ },
211
+ justify_between: {
212
+ justifyContent: "space-between",
213
+ },
214
+ justify_end: {
215
+ justifyContent: "flex-end",
216
+ },
217
+ align_center: {
218
+ alignItems: "center",
219
+ },
220
+ align_start: {
221
+ alignItems: "flex-start",
222
+ },
223
+ align_end: {
224
+ alignItems: "flex-end",
225
+ },
226
+ align_baseline: {
227
+ alignItems: "baseline",
228
+ },
229
+ align_stretch: {
230
+ alignItems: "stretch",
231
+ },
232
+ self_auto: {
233
+ alignSelf: "auto",
234
+ },
235
+ self_start: {
236
+ alignSelf: "flex-start",
237
+ },
238
+ self_end: {
239
+ alignSelf: "flex-end",
240
+ },
241
+ self_center: {
242
+ alignSelf: "center",
243
+ },
244
+ self_stretch: {
245
+ alignSelf: "stretch",
246
+ },
247
+ self_baseline: {
248
+ alignSelf: "baseline",
249
+ },
250
+
251
+ /*
252
+ * Text
253
+ */
254
+ text_left: {
255
+ textAlign: "left",
256
+ },
257
+ text_center: {
258
+ textAlign: "center",
259
+ },
260
+ text_right: {
261
+ textAlign: "right",
262
+ },
263
+ text_2xs: {
264
+ fontSize: tokens.fontSize._2xs,
265
+ letterSpacing: tokens.TRACKING,
266
+ },
267
+ text_xs: {
268
+ fontSize: tokens.fontSize.xs,
269
+ letterSpacing: tokens.TRACKING,
270
+ },
271
+ text_sm: {
272
+ fontSize: tokens.fontSize.sm,
273
+ letterSpacing: tokens.TRACKING,
274
+ },
275
+ text_md: {
276
+ fontSize: tokens.fontSize.md,
277
+ letterSpacing: tokens.TRACKING,
278
+ },
279
+ text_lg: {
280
+ fontSize: tokens.fontSize.lg,
281
+ letterSpacing: tokens.TRACKING,
282
+ },
283
+ text_xl: {
284
+ fontSize: tokens.fontSize.xl,
285
+ letterSpacing: tokens.TRACKING,
286
+ },
287
+ text_2xl: {
288
+ fontSize: tokens.fontSize._2xl,
289
+ letterSpacing: tokens.TRACKING,
290
+ },
291
+ text_3xl: {
292
+ fontSize: tokens.fontSize._3xl,
293
+ letterSpacing: tokens.TRACKING,
294
+ },
295
+ text_4xl: {
296
+ fontSize: tokens.fontSize._4xl,
297
+ letterSpacing: tokens.TRACKING,
298
+ },
299
+ text_5xl: {
300
+ fontSize: tokens.fontSize._5xl,
301
+ letterSpacing: tokens.TRACKING,
302
+ },
303
+ leading_tight: {
304
+ lineHeight: tokens.lineHeight.tight,
305
+ },
306
+ leading_snug: {
307
+ lineHeight: tokens.lineHeight.snug,
308
+ },
309
+ leading_relaxed: {
310
+ lineHeight: tokens.lineHeight.relaxed,
311
+ },
312
+ /**
313
+ * @deprecated use `leading_relaxed` instead
314
+ */
315
+ leading_normal: {
316
+ lineHeight: tokens.lineHeight.relaxed,
317
+ },
318
+ tracking_normal: {
319
+ letterSpacing: tokens.TRACKING,
320
+ },
321
+ font_normal: {
322
+ fontWeight: tokens.fontWeight.normal,
323
+ },
324
+ font_medium: {
325
+ fontWeight: tokens.fontWeight.medium,
326
+ },
327
+ font_semi_bold: {
328
+ fontWeight: tokens.fontWeight.semiBold,
329
+ },
330
+ font_bold: {
331
+ fontWeight: tokens.fontWeight.bold,
332
+ },
333
+ italic: {
334
+ fontStyle: "italic",
335
+ },
336
+
337
+ /*
338
+ * Border
339
+ */
340
+ border_0: {
341
+ borderWidth: 0,
342
+ },
343
+ border_t_0: {
344
+ borderTopWidth: 0,
345
+ },
346
+ border_b_0: {
347
+ borderBottomWidth: 0,
348
+ },
349
+ border_l_0: {
350
+ borderLeftWidth: 0,
351
+ },
352
+ border_r_0: {
353
+ borderRightWidth: 0,
354
+ },
355
+ border_x_0: {
356
+ borderLeftWidth: 0,
357
+ borderRightWidth: 0,
358
+ },
359
+ border_y_0: {
360
+ borderTopWidth: 0,
361
+ borderBottomWidth: 0,
362
+ },
363
+ border: {
364
+ borderWidth: 1,
365
+ },
366
+ border_t: {
367
+ borderTopWidth: 1,
368
+ },
369
+ border_b: {
370
+ borderBottomWidth: 1,
371
+ },
372
+ border_l: {
373
+ borderLeftWidth: 1,
374
+ },
375
+ border_r: {
376
+ borderRightWidth: 1,
377
+ },
378
+ border_x: {
379
+ borderLeftWidth: 1,
380
+ borderRightWidth: 1,
381
+ },
382
+ border_y: {
383
+ borderTopWidth: 1,
384
+ borderBottomWidth: 1,
385
+ },
386
+ border_transparent: {
387
+ borderColor: "transparent",
388
+ },
389
+ curve_circular: {},
390
+ curve_continuous: {},
391
+
392
+ shadow_sm: {} as ShadowStyle,
393
+ shadow_md: {} as ShadowStyle,
394
+ shadow_lg: {} as ShadowStyle,
395
+
396
+ /*
397
+ * Gutters
398
+ */
399
+ gutter_tight: {
400
+ padding: tokens.space.sm,
401
+ },
402
+ gutter_x_tight: {
403
+ paddingLeft: tokens.space.sm,
404
+ paddingRight: tokens.space.sm,
405
+ },
406
+ gutter_y_tight: {
407
+ paddingTop: tokens.space.sm,
408
+ paddingBottom: tokens.space.sm,
409
+ },
410
+ gutter_snug: {
411
+ padding: tokens.space.md,
412
+ },
413
+ gutter_x_snug: {
414
+ paddingLeft: tokens.space.md,
415
+ paddingRight: tokens.space.md,
416
+ },
417
+ gutter_y_snug: {
418
+ paddingTop: tokens.space.md,
419
+ paddingBottom: tokens.space.md,
420
+ },
421
+ gutter_default: {
422
+ padding: tokens.space.lg,
423
+ },
424
+ gutter_x_default: {
425
+ paddingLeft: tokens.space.lg,
426
+ paddingRight: tokens.space.lg,
427
+ },
428
+ gutter_y_default: {
429
+ paddingTop: tokens.space.lg,
430
+ paddingBottom: tokens.space.lg,
431
+ },
432
+ gutter_wide: {
433
+ padding: tokens.space.xl,
434
+ },
435
+ gutter_x_wide: {
436
+ paddingLeft: tokens.space.xl,
437
+ paddingRight: tokens.space.xl,
438
+ },
439
+ gutter_y_wide: {
440
+ paddingTop: tokens.space.xl,
441
+ paddingBottom: tokens.space.xl,
442
+ },
443
+ gutter_extra_wide: {
444
+ padding: tokens.space._2xl,
445
+ },
446
+ gutter_x_extra_wide: {
447
+ paddingLeft: tokens.space._2xl,
448
+ paddingRight: tokens.space._2xl,
449
+ },
450
+ gutter_y_extra_wide: {
451
+ paddingTop: tokens.space._2xl,
452
+ paddingBottom: tokens.space._2xl,
453
+ },
454
+
455
+ /*
456
+ * Padding
457
+ */
458
+ p_0: {
459
+ padding: 0,
460
+ },
461
+ p_2xs: {
462
+ padding: tokens.space._2xs,
463
+ },
464
+ p_xs: {
465
+ padding: tokens.space.xs,
466
+ },
467
+ p_sm: {
468
+ padding: tokens.space.sm,
469
+ },
470
+ p_md: {
471
+ padding: tokens.space.md,
472
+ },
473
+ p_lg: {
474
+ padding: tokens.space.lg,
475
+ },
476
+ p_xl: {
477
+ padding: tokens.space.xl,
478
+ },
479
+ p_2xl: {
480
+ padding: tokens.space._2xl,
481
+ },
482
+ p_3xl: {
483
+ padding: tokens.space._3xl,
484
+ },
485
+ p_4xl: {
486
+ padding: tokens.space._4xl,
487
+ },
488
+ p_5xl: {
489
+ padding: tokens.space._5xl,
490
+ },
491
+ px_0: {
492
+ paddingLeft: 0,
493
+ paddingRight: 0,
494
+ },
495
+ px_2xs: {
496
+ paddingLeft: tokens.space._2xs,
497
+ paddingRight: tokens.space._2xs,
498
+ },
499
+ px_xs: {
500
+ paddingLeft: tokens.space.xs,
501
+ paddingRight: tokens.space.xs,
502
+ },
503
+ px_sm: {
504
+ paddingLeft: tokens.space.sm,
505
+ paddingRight: tokens.space.sm,
506
+ },
507
+ px_md: {
508
+ paddingLeft: tokens.space.md,
509
+ paddingRight: tokens.space.md,
510
+ },
511
+ px_lg: {
512
+ paddingLeft: tokens.space.lg,
513
+ paddingRight: tokens.space.lg,
514
+ },
515
+ px_xl: {
516
+ paddingLeft: tokens.space.xl,
517
+ paddingRight: tokens.space.xl,
518
+ },
519
+ px_2xl: {
520
+ paddingLeft: tokens.space._2xl,
521
+ paddingRight: tokens.space._2xl,
522
+ },
523
+ px_3xl: {
524
+ paddingLeft: tokens.space._3xl,
525
+ paddingRight: tokens.space._3xl,
526
+ },
527
+ px_4xl: {
528
+ paddingLeft: tokens.space._4xl,
529
+ paddingRight: tokens.space._4xl,
530
+ },
531
+ px_5xl: {
532
+ paddingLeft: tokens.space._5xl,
533
+ paddingRight: tokens.space._5xl,
534
+ },
535
+ py_0: {
536
+ paddingTop: 0,
537
+ paddingBottom: 0,
538
+ },
539
+ py_2xs: {
540
+ paddingTop: tokens.space._2xs,
541
+ paddingBottom: tokens.space._2xs,
542
+ },
543
+ py_xs: {
544
+ paddingTop: tokens.space.xs,
545
+ paddingBottom: tokens.space.xs,
546
+ },
547
+ py_sm: {
548
+ paddingTop: tokens.space.sm,
549
+ paddingBottom: tokens.space.sm,
550
+ },
551
+ py_md: {
552
+ paddingTop: tokens.space.md,
553
+ paddingBottom: tokens.space.md,
554
+ },
555
+ py_lg: {
556
+ paddingTop: tokens.space.lg,
557
+ paddingBottom: tokens.space.lg,
558
+ },
559
+ py_xl: {
560
+ paddingTop: tokens.space.xl,
561
+ paddingBottom: tokens.space.xl,
562
+ },
563
+ py_2xl: {
564
+ paddingTop: tokens.space._2xl,
565
+ paddingBottom: tokens.space._2xl,
566
+ },
567
+ py_3xl: {
568
+ paddingTop: tokens.space._3xl,
569
+ paddingBottom: tokens.space._3xl,
570
+ },
571
+ py_4xl: {
572
+ paddingTop: tokens.space._4xl,
573
+ paddingBottom: tokens.space._4xl,
574
+ },
575
+ py_5xl: {
576
+ paddingTop: tokens.space._5xl,
577
+ paddingBottom: tokens.space._5xl,
578
+ },
579
+ pt_0: {
580
+ paddingTop: 0,
581
+ },
582
+ pt_2xs: {
583
+ paddingTop: tokens.space._2xs,
584
+ },
585
+ pt_xs: {
586
+ paddingTop: tokens.space.xs,
587
+ },
588
+ pt_sm: {
589
+ paddingTop: tokens.space.sm,
590
+ },
591
+ pt_md: {
592
+ paddingTop: tokens.space.md,
593
+ },
594
+ pt_lg: {
595
+ paddingTop: tokens.space.lg,
596
+ },
597
+ pt_xl: {
598
+ paddingTop: tokens.space.xl,
599
+ },
600
+ pt_2xl: {
601
+ paddingTop: tokens.space._2xl,
602
+ },
603
+ pt_3xl: {
604
+ paddingTop: tokens.space._3xl,
605
+ },
606
+ pt_4xl: {
607
+ paddingTop: tokens.space._4xl,
608
+ },
609
+ pt_5xl: {
610
+ paddingTop: tokens.space._5xl,
611
+ },
612
+ pb_0: {
613
+ paddingBottom: 0,
614
+ },
615
+ pb_2xs: {
616
+ paddingBottom: tokens.space._2xs,
617
+ },
618
+ pb_xs: {
619
+ paddingBottom: tokens.space.xs,
620
+ },
621
+ pb_sm: {
622
+ paddingBottom: tokens.space.sm,
623
+ },
624
+ pb_md: {
625
+ paddingBottom: tokens.space.md,
626
+ },
627
+ pb_lg: {
628
+ paddingBottom: tokens.space.lg,
629
+ },
630
+ pb_xl: {
631
+ paddingBottom: tokens.space.xl,
632
+ },
633
+ pb_2xl: {
634
+ paddingBottom: tokens.space._2xl,
635
+ },
636
+ pb_3xl: {
637
+ paddingBottom: tokens.space._3xl,
638
+ },
639
+ pb_4xl: {
640
+ paddingBottom: tokens.space._4xl,
641
+ },
642
+ pb_5xl: {
643
+ paddingBottom: tokens.space._5xl,
644
+ },
645
+ pl_0: {
646
+ paddingLeft: 0,
647
+ },
648
+ pl_2xs: {
649
+ paddingLeft: tokens.space._2xs,
650
+ },
651
+ pl_xs: {
652
+ paddingLeft: tokens.space.xs,
653
+ },
654
+ pl_sm: {
655
+ paddingLeft: tokens.space.sm,
656
+ },
657
+ pl_md: {
658
+ paddingLeft: tokens.space.md,
659
+ },
660
+ pl_lg: {
661
+ paddingLeft: tokens.space.lg,
662
+ },
663
+ pl_xl: {
664
+ paddingLeft: tokens.space.xl,
665
+ },
666
+ pl_2xl: {
667
+ paddingLeft: tokens.space._2xl,
668
+ },
669
+ pl_3xl: {
670
+ paddingLeft: tokens.space._3xl,
671
+ },
672
+ pl_4xl: {
673
+ paddingLeft: tokens.space._4xl,
674
+ },
675
+ pl_5xl: {
676
+ paddingLeft: tokens.space._5xl,
677
+ },
678
+ pr_0: {
679
+ paddingRight: 0,
680
+ },
681
+ pr_2xs: {
682
+ paddingRight: tokens.space._2xs,
683
+ },
684
+ pr_xs: {
685
+ paddingRight: tokens.space.xs,
686
+ },
687
+ pr_sm: {
688
+ paddingRight: tokens.space.sm,
689
+ },
690
+ pr_md: {
691
+ paddingRight: tokens.space.md,
692
+ },
693
+ pr_lg: {
694
+ paddingRight: tokens.space.lg,
695
+ },
696
+ pr_xl: {
697
+ paddingRight: tokens.space.xl,
698
+ },
699
+ pr_2xl: {
700
+ paddingRight: tokens.space._2xl,
701
+ },
702
+ pr_3xl: {
703
+ paddingRight: tokens.space._3xl,
704
+ },
705
+ pr_4xl: {
706
+ paddingRight: tokens.space._4xl,
707
+ },
708
+ pr_5xl: {
709
+ paddingRight: tokens.space._5xl,
710
+ },
711
+
712
+ /*
713
+ * Margin
714
+ */
715
+ m_0: {
716
+ margin: 0,
717
+ },
718
+ m_2xs: {
719
+ margin: tokens.space._2xs,
720
+ },
721
+ m_xs: {
722
+ margin: tokens.space.xs,
723
+ },
724
+ m_sm: {
725
+ margin: tokens.space.sm,
726
+ },
727
+ m_md: {
728
+ margin: tokens.space.md,
729
+ },
730
+ m_lg: {
731
+ margin: tokens.space.lg,
732
+ },
733
+ m_xl: {
734
+ margin: tokens.space.xl,
735
+ },
736
+ m_2xl: {
737
+ margin: tokens.space._2xl,
738
+ },
739
+ m_3xl: {
740
+ margin: tokens.space._3xl,
741
+ },
742
+ m_4xl: {
743
+ margin: tokens.space._4xl,
744
+ },
745
+ m_5xl: {
746
+ margin: tokens.space._5xl,
747
+ },
748
+ m_auto: {
749
+ margin: "auto",
750
+ },
751
+ mx_0: {
752
+ marginLeft: 0,
753
+ marginRight: 0,
754
+ },
755
+ mx_2xs: {
756
+ marginLeft: tokens.space._2xs,
757
+ marginRight: tokens.space._2xs,
758
+ },
759
+ mx_xs: {
760
+ marginLeft: tokens.space.xs,
761
+ marginRight: tokens.space.xs,
762
+ },
763
+ mx_sm: {
764
+ marginLeft: tokens.space.sm,
765
+ marginRight: tokens.space.sm,
766
+ },
767
+ mx_md: {
768
+ marginLeft: tokens.space.md,
769
+ marginRight: tokens.space.md,
770
+ },
771
+ mx_lg: {
772
+ marginLeft: tokens.space.lg,
773
+ marginRight: tokens.space.lg,
774
+ },
775
+ mx_xl: {
776
+ marginLeft: tokens.space.xl,
777
+ marginRight: tokens.space.xl,
778
+ },
779
+ mx_2xl: {
780
+ marginLeft: tokens.space._2xl,
781
+ marginRight: tokens.space._2xl,
782
+ },
783
+ mx_3xl: {
784
+ marginLeft: tokens.space._3xl,
785
+ marginRight: tokens.space._3xl,
786
+ },
787
+ mx_4xl: {
788
+ marginLeft: tokens.space._4xl,
789
+ marginRight: tokens.space._4xl,
790
+ },
791
+ mx_5xl: {
792
+ marginLeft: tokens.space._5xl,
793
+ marginRight: tokens.space._5xl,
794
+ },
795
+ mx_auto: {
796
+ marginLeft: "auto",
797
+ marginRight: "auto",
798
+ },
799
+ my_0: {
800
+ marginTop: 0,
801
+ marginBottom: 0,
802
+ },
803
+ my_2xs: {
804
+ marginTop: tokens.space._2xs,
805
+ marginBottom: tokens.space._2xs,
806
+ },
807
+ my_xs: {
808
+ marginTop: tokens.space.xs,
809
+ marginBottom: tokens.space.xs,
810
+ },
811
+ my_sm: {
812
+ marginTop: tokens.space.sm,
813
+ marginBottom: tokens.space.sm,
814
+ },
815
+ my_md: {
816
+ marginTop: tokens.space.md,
817
+ marginBottom: tokens.space.md,
818
+ },
819
+ my_lg: {
820
+ marginTop: tokens.space.lg,
821
+ marginBottom: tokens.space.lg,
822
+ },
823
+ my_xl: {
824
+ marginTop: tokens.space.xl,
825
+ marginBottom: tokens.space.xl,
826
+ },
827
+ my_2xl: {
828
+ marginTop: tokens.space._2xl,
829
+ marginBottom: tokens.space._2xl,
830
+ },
831
+ my_3xl: {
832
+ marginTop: tokens.space._3xl,
833
+ marginBottom: tokens.space._3xl,
834
+ },
835
+ my_4xl: {
836
+ marginTop: tokens.space._4xl,
837
+ marginBottom: tokens.space._4xl,
838
+ },
839
+ my_5xl: {
840
+ marginTop: tokens.space._5xl,
841
+ marginBottom: tokens.space._5xl,
842
+ },
843
+ my_auto: {
844
+ marginTop: "auto",
845
+ marginBottom: "auto",
846
+ },
847
+ mt_0: {
848
+ marginTop: 0,
849
+ },
850
+ mt_2xs: {
851
+ marginTop: tokens.space._2xs,
852
+ },
853
+ mt_xs: {
854
+ marginTop: tokens.space.xs,
855
+ },
856
+ mt_sm: {
857
+ marginTop: tokens.space.sm,
858
+ },
859
+ mt_md: {
860
+ marginTop: tokens.space.md,
861
+ },
862
+ mt_lg: {
863
+ marginTop: tokens.space.lg,
864
+ },
865
+ mt_xl: {
866
+ marginTop: tokens.space.xl,
867
+ },
868
+ mt_2xl: {
869
+ marginTop: tokens.space._2xl,
870
+ },
871
+ mt_3xl: {
872
+ marginTop: tokens.space._3xl,
873
+ },
874
+ mt_4xl: {
875
+ marginTop: tokens.space._4xl,
876
+ },
877
+ mt_5xl: {
878
+ marginTop: tokens.space._5xl,
879
+ },
880
+ mt_auto: {
881
+ marginTop: "auto",
882
+ },
883
+ mb_0: {
884
+ marginBottom: 0,
885
+ },
886
+ mb_2xs: {
887
+ marginBottom: tokens.space._2xs,
888
+ },
889
+ mb_xs: {
890
+ marginBottom: tokens.space.xs,
891
+ },
892
+ mb_sm: {
893
+ marginBottom: tokens.space.sm,
894
+ },
895
+ mb_md: {
896
+ marginBottom: tokens.space.md,
897
+ },
898
+ mb_lg: {
899
+ marginBottom: tokens.space.lg,
900
+ },
901
+ mb_xl: {
902
+ marginBottom: tokens.space.xl,
903
+ },
904
+ mb_2xl: {
905
+ marginBottom: tokens.space._2xl,
906
+ },
907
+ mb_3xl: {
908
+ marginBottom: tokens.space._3xl,
909
+ },
910
+ mb_4xl: {
911
+ marginBottom: tokens.space._4xl,
912
+ },
913
+ mb_5xl: {
914
+ marginBottom: tokens.space._5xl,
915
+ },
916
+ mb_auto: {
917
+ marginBottom: "auto",
918
+ },
919
+ ml_0: {
920
+ marginLeft: 0,
921
+ },
922
+ ml_2xs: {
923
+ marginLeft: tokens.space._2xs,
924
+ },
925
+ ml_xs: {
926
+ marginLeft: tokens.space.xs,
927
+ },
928
+ ml_sm: {
929
+ marginLeft: tokens.space.sm,
930
+ },
931
+ ml_md: {
932
+ marginLeft: tokens.space.md,
933
+ },
934
+ ml_lg: {
935
+ marginLeft: tokens.space.lg,
936
+ },
937
+ ml_xl: {
938
+ marginLeft: tokens.space.xl,
939
+ },
940
+ ml_2xl: {
941
+ marginLeft: tokens.space._2xl,
942
+ },
943
+ ml_3xl: {
944
+ marginLeft: tokens.space._3xl,
945
+ },
946
+ ml_4xl: {
947
+ marginLeft: tokens.space._4xl,
948
+ },
949
+ ml_5xl: {
950
+ marginLeft: tokens.space._5xl,
951
+ },
952
+ ml_auto: {
953
+ marginLeft: "auto",
954
+ },
955
+ mr_0: {
956
+ marginRight: 0,
957
+ },
958
+ mr_2xs: {
959
+ marginRight: tokens.space._2xs,
960
+ },
961
+ mr_xs: {
962
+ marginRight: tokens.space.xs,
963
+ },
964
+ mr_sm: {
965
+ marginRight: tokens.space.sm,
966
+ },
967
+ mr_md: {
968
+ marginRight: tokens.space.md,
969
+ },
970
+ mr_lg: {
971
+ marginRight: tokens.space.lg,
972
+ },
973
+ mr_xl: {
974
+ marginRight: tokens.space.xl,
975
+ },
976
+ mr_2xl: {
977
+ marginRight: tokens.space._2xl,
978
+ },
979
+ mr_3xl: {
980
+ marginRight: tokens.space._3xl,
981
+ },
982
+ mr_4xl: {
983
+ marginRight: tokens.space._4xl,
984
+ },
985
+ mr_5xl: {
986
+ marginRight: tokens.space._5xl,
987
+ },
988
+ mr_auto: {
989
+ marginRight: "auto",
990
+ },
991
+
992
+ /*
993
+ * Pointer events & user select
994
+ */
995
+ pointer_events_none: {
996
+ pointerEvents: "none",
997
+ },
998
+ pointer_events_auto: {
999
+ pointerEvents: "auto",
1000
+ },
1001
+ pointer_events_box_only: {
1002
+ pointerEvents: "box-only",
1003
+ },
1004
+ pointer_events_box_none: {
1005
+ pointerEvents: "box-none",
1006
+ },
1007
+ user_select_none: {
1008
+ userSelect: "none",
1009
+ },
1010
+ user_select_text: {
1011
+ userSelect: "text",
1012
+ },
1013
+ user_select_all: {
1014
+ userSelect: "all",
1015
+ },
1016
+ outline_inset_1: {
1017
+ outlineOffset: -1,
1018
+ },
1019
+
1020
+ /*
1021
+ * Text decoration
1022
+ */
1023
+ underline: {
1024
+ textDecorationLine: "underline",
1025
+ },
1026
+ strike_through: {
1027
+ textDecorationLine: "line-through",
1028
+ },
1029
+
1030
+ /*
1031
+ * Display
1032
+ */
1033
+ hidden: {
1034
+ display: "none",
1035
+ },
1036
+ contents: {
1037
+ display: "contents",
1038
+ },
1039
+ inline: {
1040
+ display: "inline",
1041
+ } as unknown as Pick<ViewStyle, "display">,
1042
+ block: {
1043
+ display: "block",
1044
+ } as unknown as Pick<ViewStyle, "display">,
1045
+
1046
+ pointer: {
1047
+ cursor: "pointer",
1048
+ },
1049
+ } as const;