@once-ui-system/foundations 0.0.0-stage → 3.0.0-beta.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 (35) hide show
  1. package/README.md +31 -2
  2. package/dist/css/styles.css +1 -0
  3. package/dist/css/styles.css.map +1 -0
  4. package/dist/css/tokens.css +1 -0
  5. package/dist/css/tokens.css.map +1 -0
  6. package/package.json +56 -4
  7. package/scss/styles/background.generated.scss +395 -0
  8. package/scss/styles/border.generated.scss +528 -0
  9. package/scss/styles/breakpoints.scss +39 -0
  10. package/scss/styles/color.generated.scss +175 -0
  11. package/scss/styles/cursor.generated.scss +88 -0
  12. package/scss/styles/density.scss +74 -0
  13. package/scss/styles/display.generated.scss +1496 -0
  14. package/scss/styles/flex.generated.scss +867 -0
  15. package/scss/styles/global.scss +57 -0
  16. package/scss/styles/grid.generated.scss +649 -0
  17. package/scss/styles/index.scss +15 -0
  18. package/scss/styles/position.generated.scss +1957 -0
  19. package/scss/styles/shadow.generated.scss +23 -0
  20. package/scss/styles/size.generated.scss +69 -0
  21. package/scss/styles/spacing.generated.scss +9447 -0
  22. package/scss/styles/touch.scss +29 -0
  23. package/scss/styles/typography.generated.scss +334 -0
  24. package/scss/styles/utilities.scss +23 -0
  25. package/scss/tokens/border.scss +95 -0
  26. package/scss/tokens/data.scss +107 -0
  27. package/scss/tokens/function.scss +742 -0
  28. package/scss/tokens/index.scss +8 -0
  29. package/scss/tokens/layout.scss +317 -0
  30. package/scss/tokens/scheme.scss +352 -0
  31. package/scss/tokens/shadow.scss +7 -0
  32. package/scss/tokens/theme.scss +777 -0
  33. package/scss/tokens/typography.scss +118 -0
  34. package/tokens/README.md +49 -0
  35. package/tokens/once-ui.tokens.json +2794 -0
@@ -0,0 +1,867 @@
1
+ /* GENERATED by scripts/generate-utilities.mjs — do not edit.
2
+ * The class matrix lives in scripts/utilities.spec.mjs; change it there and
3
+ * re-run `pnpm generate:utilities`. */
4
+
5
+ .display-flex {
6
+ display: flex;
7
+ }
8
+
9
+ .display-inline-flex {
10
+ display: inline-flex;
11
+ }
12
+
13
+ .flex-column {
14
+ flex-direction: column;
15
+ }
16
+
17
+ .flex-row {
18
+ flex-direction: row;
19
+ }
20
+
21
+ .flex-column-reverse {
22
+ flex-direction: column-reverse;
23
+ }
24
+
25
+ .flex-row-reverse {
26
+ flex-direction: row-reverse;
27
+ }
28
+
29
+ .justify-start {
30
+ justify-content: flex-start;
31
+ }
32
+
33
+ .justify-center {
34
+ justify-content: center;
35
+ }
36
+
37
+ .justify-end {
38
+ justify-content: flex-end;
39
+ }
40
+
41
+ .justify-between {
42
+ justify-content: space-between;
43
+ }
44
+
45
+ .justify-around {
46
+ justify-content: space-around;
47
+ }
48
+
49
+ .justify-even {
50
+ justify-content: space-evenly;
51
+ }
52
+
53
+ .justify-stretch {
54
+ justify-content: stretch;
55
+ }
56
+
57
+ .align-start {
58
+ align-items: flex-start;
59
+ }
60
+
61
+ .align-center {
62
+ align-items: center;
63
+ }
64
+
65
+ .align-end {
66
+ align-items: flex-end;
67
+ }
68
+
69
+ .align-stretch {
70
+ align-items: stretch;
71
+ }
72
+
73
+ .align-baseline {
74
+ align-items: baseline;
75
+ }
76
+
77
+ .center {
78
+ align-items: center;
79
+ justify-content: center;
80
+ }
81
+
82
+ .flex-wrap {
83
+ flex-wrap: wrap;
84
+ }
85
+
86
+ .flex-nowrap {
87
+ flex-wrap: nowrap;
88
+ }
89
+
90
+ .flex-wrap-reverse {
91
+ flex-wrap: wrap-reverse;
92
+ }
93
+
94
+ .flex-0 {
95
+ flex: 0;
96
+ }
97
+
98
+ .flex-1 {
99
+ flex: 1;
100
+ }
101
+
102
+ .flex-2 {
103
+ flex: 2;
104
+ }
105
+
106
+ .flex-3 {
107
+ flex: 3;
108
+ }
109
+
110
+ .flex-4 {
111
+ flex: 4;
112
+ }
113
+
114
+ .flex-5 {
115
+ flex: 5;
116
+ }
117
+
118
+ .flex-6 {
119
+ flex: 6;
120
+ }
121
+
122
+ .flex-7 {
123
+ flex: 7;
124
+ }
125
+
126
+ .flex-8 {
127
+ flex: 8;
128
+ }
129
+
130
+ .flex-9 {
131
+ flex: 9;
132
+ }
133
+
134
+ .flex-10 {
135
+ flex: 10;
136
+ }
137
+
138
+ .flex-11 {
139
+ flex: 11;
140
+ }
141
+
142
+ .flex-12 {
143
+ flex: 12;
144
+ }
145
+
146
+ .flex-hide {
147
+ display: none;
148
+ }
149
+
150
+ .flex-show {
151
+ display: flex;
152
+ }
153
+
154
+ @media (min-width: 1441px) {
155
+ .xl-flex-hide {
156
+ display: none;
157
+ }
158
+
159
+ .xl-flex-show {
160
+ display: flex;
161
+ }
162
+
163
+ .xl-flex-column {
164
+ flex-direction: column;
165
+ }
166
+
167
+ .xl-flex-row {
168
+ flex-direction: row;
169
+ }
170
+
171
+ .xl-flex-column-reverse {
172
+ flex-direction: column-reverse;
173
+ }
174
+
175
+ .xl-flex-row-reverse {
176
+ flex-direction: row-reverse;
177
+ }
178
+
179
+ .xl-justify-start {
180
+ justify-content: flex-start;
181
+ }
182
+
183
+ .xl-justify-center {
184
+ justify-content: center;
185
+ }
186
+
187
+ .xl-justify-end {
188
+ justify-content: flex-end;
189
+ }
190
+
191
+ .xl-justify-between {
192
+ justify-content: space-between;
193
+ }
194
+
195
+ .xl-justify-around {
196
+ justify-content: space-around;
197
+ }
198
+
199
+ .xl-justify-even {
200
+ justify-content: space-evenly;
201
+ }
202
+
203
+ .xl-justify-stretch {
204
+ justify-content: stretch;
205
+ }
206
+
207
+ .xl-align-start {
208
+ align-items: flex-start;
209
+ }
210
+
211
+ .xl-align-center {
212
+ align-items: center;
213
+ }
214
+
215
+ .xl-align-end {
216
+ align-items: flex-end;
217
+ }
218
+
219
+ .xl-align-stretch {
220
+ align-items: stretch;
221
+ }
222
+
223
+ .xl-align-baseline {
224
+ align-items: baseline;
225
+ }
226
+
227
+ .xl-center {
228
+ align-items: center;
229
+ justify-content: center;
230
+ }
231
+
232
+ .xl-flex-wrap {
233
+ flex-wrap: wrap;
234
+ }
235
+
236
+ .xl-flex-nowrap {
237
+ flex-wrap: nowrap;
238
+ }
239
+
240
+ .xl-flex-wrap-reverse {
241
+ flex-wrap: wrap-reverse;
242
+ }
243
+
244
+ .xl-flex-0 {
245
+ flex: 0;
246
+ }
247
+
248
+ .xl-flex-1 {
249
+ flex: 1;
250
+ }
251
+
252
+ .xl-flex-2 {
253
+ flex: 2;
254
+ }
255
+
256
+ .xl-flex-3 {
257
+ flex: 3;
258
+ }
259
+
260
+ .xl-flex-4 {
261
+ flex: 4;
262
+ }
263
+
264
+ .xl-flex-5 {
265
+ flex: 5;
266
+ }
267
+
268
+ .xl-flex-6 {
269
+ flex: 6;
270
+ }
271
+
272
+ .xl-flex-7 {
273
+ flex: 7;
274
+ }
275
+
276
+ .xl-flex-8 {
277
+ flex: 8;
278
+ }
279
+
280
+ .xl-flex-9 {
281
+ flex: 9;
282
+ }
283
+
284
+ .xl-flex-10 {
285
+ flex: 10;
286
+ }
287
+
288
+ .xl-flex-11 {
289
+ flex: 11;
290
+ }
291
+
292
+ .xl-flex-12 {
293
+ flex: 12;
294
+ }
295
+ }
296
+
297
+ @media (max-width: 1440px) {
298
+ .l-flex-hide {
299
+ display: none;
300
+ }
301
+
302
+ .l-flex-show {
303
+ display: flex;
304
+ }
305
+
306
+ .l-flex-column {
307
+ flex-direction: column;
308
+ }
309
+
310
+ .l-flex-row {
311
+ flex-direction: row;
312
+ }
313
+
314
+ .l-flex-column-reverse {
315
+ flex-direction: column-reverse;
316
+ }
317
+
318
+ .l-flex-row-reverse {
319
+ flex-direction: row-reverse;
320
+ }
321
+
322
+ .l-justify-start {
323
+ justify-content: flex-start;
324
+ }
325
+
326
+ .l-justify-center {
327
+ justify-content: center;
328
+ }
329
+
330
+ .l-justify-end {
331
+ justify-content: flex-end;
332
+ }
333
+
334
+ .l-justify-between {
335
+ justify-content: space-between;
336
+ }
337
+
338
+ .l-justify-around {
339
+ justify-content: space-around;
340
+ }
341
+
342
+ .l-justify-even {
343
+ justify-content: space-evenly;
344
+ }
345
+
346
+ .l-justify-stretch {
347
+ justify-content: stretch;
348
+ }
349
+
350
+ .l-align-start {
351
+ align-items: flex-start;
352
+ }
353
+
354
+ .l-align-center {
355
+ align-items: center;
356
+ }
357
+
358
+ .l-align-end {
359
+ align-items: flex-end;
360
+ }
361
+
362
+ .l-align-stretch {
363
+ align-items: stretch;
364
+ }
365
+
366
+ .l-align-baseline {
367
+ align-items: baseline;
368
+ }
369
+
370
+ .l-center {
371
+ align-items: center;
372
+ justify-content: center;
373
+ }
374
+
375
+ .l-flex-wrap {
376
+ flex-wrap: wrap;
377
+ }
378
+
379
+ .l-flex-nowrap {
380
+ flex-wrap: nowrap;
381
+ }
382
+
383
+ .l-flex-wrap-reverse {
384
+ flex-wrap: wrap-reverse;
385
+ }
386
+
387
+ .l-flex-0 {
388
+ flex: 0;
389
+ }
390
+
391
+ .l-flex-1 {
392
+ flex: 1;
393
+ }
394
+
395
+ .l-flex-2 {
396
+ flex: 2;
397
+ }
398
+
399
+ .l-flex-3 {
400
+ flex: 3;
401
+ }
402
+
403
+ .l-flex-4 {
404
+ flex: 4;
405
+ }
406
+
407
+ .l-flex-5 {
408
+ flex: 5;
409
+ }
410
+
411
+ .l-flex-6 {
412
+ flex: 6;
413
+ }
414
+
415
+ .l-flex-7 {
416
+ flex: 7;
417
+ }
418
+
419
+ .l-flex-8 {
420
+ flex: 8;
421
+ }
422
+
423
+ .l-flex-9 {
424
+ flex: 9;
425
+ }
426
+
427
+ .l-flex-10 {
428
+ flex: 10;
429
+ }
430
+
431
+ .l-flex-11 {
432
+ flex: 11;
433
+ }
434
+
435
+ .l-flex-12 {
436
+ flex: 12;
437
+ }
438
+ }
439
+
440
+ @media (max-width: 1024px) {
441
+ .m-flex-hide {
442
+ display: none;
443
+ }
444
+
445
+ .m-flex-show {
446
+ display: flex;
447
+ }
448
+
449
+ .m-flex-column {
450
+ flex-direction: column;
451
+ }
452
+
453
+ .m-flex-row {
454
+ flex-direction: row;
455
+ }
456
+
457
+ .m-flex-column-reverse {
458
+ flex-direction: column-reverse;
459
+ }
460
+
461
+ .m-flex-row-reverse {
462
+ flex-direction: row-reverse;
463
+ }
464
+
465
+ .m-justify-start {
466
+ justify-content: flex-start;
467
+ }
468
+
469
+ .m-justify-center {
470
+ justify-content: center;
471
+ }
472
+
473
+ .m-justify-end {
474
+ justify-content: flex-end;
475
+ }
476
+
477
+ .m-justify-between {
478
+ justify-content: space-between;
479
+ }
480
+
481
+ .m-justify-around {
482
+ justify-content: space-around;
483
+ }
484
+
485
+ .m-justify-even {
486
+ justify-content: space-evenly;
487
+ }
488
+
489
+ .m-justify-stretch {
490
+ justify-content: stretch;
491
+ }
492
+
493
+ .m-align-start {
494
+ align-items: flex-start;
495
+ }
496
+
497
+ .m-align-center {
498
+ align-items: center;
499
+ }
500
+
501
+ .m-align-end {
502
+ align-items: flex-end;
503
+ }
504
+
505
+ .m-align-stretch {
506
+ align-items: stretch;
507
+ }
508
+
509
+ .m-align-baseline {
510
+ align-items: baseline;
511
+ }
512
+
513
+ .m-center {
514
+ align-items: center;
515
+ justify-content: center;
516
+ }
517
+
518
+ .m-flex-wrap {
519
+ flex-wrap: wrap;
520
+ }
521
+
522
+ .m-flex-nowrap {
523
+ flex-wrap: nowrap;
524
+ }
525
+
526
+ .m-flex-wrap-reverse {
527
+ flex-wrap: wrap-reverse;
528
+ }
529
+
530
+ .m-flex-0 {
531
+ flex: 0;
532
+ }
533
+
534
+ .m-flex-1 {
535
+ flex: 1;
536
+ }
537
+
538
+ .m-flex-2 {
539
+ flex: 2;
540
+ }
541
+
542
+ .m-flex-3 {
543
+ flex: 3;
544
+ }
545
+
546
+ .m-flex-4 {
547
+ flex: 4;
548
+ }
549
+
550
+ .m-flex-5 {
551
+ flex: 5;
552
+ }
553
+
554
+ .m-flex-6 {
555
+ flex: 6;
556
+ }
557
+
558
+ .m-flex-7 {
559
+ flex: 7;
560
+ }
561
+
562
+ .m-flex-8 {
563
+ flex: 8;
564
+ }
565
+
566
+ .m-flex-9 {
567
+ flex: 9;
568
+ }
569
+
570
+ .m-flex-10 {
571
+ flex: 10;
572
+ }
573
+
574
+ .m-flex-11 {
575
+ flex: 11;
576
+ }
577
+
578
+ .m-flex-12 {
579
+ flex: 12;
580
+ }
581
+ }
582
+
583
+ @media (max-width: 768px) {
584
+ .s-flex-hide {
585
+ display: none;
586
+ }
587
+
588
+ .s-flex-show {
589
+ display: flex;
590
+ }
591
+
592
+ .s-flex-column {
593
+ flex-direction: column;
594
+ }
595
+
596
+ .s-flex-row {
597
+ flex-direction: row;
598
+ }
599
+
600
+ .s-flex-column-reverse {
601
+ flex-direction: column-reverse;
602
+ }
603
+
604
+ .s-flex-row-reverse {
605
+ flex-direction: row-reverse;
606
+ }
607
+
608
+ .s-justify-start {
609
+ justify-content: flex-start;
610
+ }
611
+
612
+ .s-justify-center {
613
+ justify-content: center;
614
+ }
615
+
616
+ .s-justify-end {
617
+ justify-content: flex-end;
618
+ }
619
+
620
+ .s-justify-between {
621
+ justify-content: space-between;
622
+ }
623
+
624
+ .s-justify-around {
625
+ justify-content: space-around;
626
+ }
627
+
628
+ .s-justify-even {
629
+ justify-content: space-evenly;
630
+ }
631
+
632
+ .s-justify-stretch {
633
+ justify-content: stretch;
634
+ }
635
+
636
+ .s-align-start {
637
+ align-items: flex-start;
638
+ }
639
+
640
+ .s-align-center {
641
+ align-items: center;
642
+ }
643
+
644
+ .s-align-end {
645
+ align-items: flex-end;
646
+ }
647
+
648
+ .s-align-stretch {
649
+ align-items: stretch;
650
+ }
651
+
652
+ .s-align-baseline {
653
+ align-items: baseline;
654
+ }
655
+
656
+ .s-center {
657
+ align-items: center;
658
+ justify-content: center;
659
+ }
660
+
661
+ .s-flex-wrap {
662
+ flex-wrap: wrap;
663
+ }
664
+
665
+ .s-flex-nowrap {
666
+ flex-wrap: nowrap;
667
+ }
668
+
669
+ .s-flex-wrap-reverse {
670
+ flex-wrap: wrap-reverse;
671
+ }
672
+
673
+ .s-flex-0 {
674
+ flex: 0;
675
+ }
676
+
677
+ .s-flex-1 {
678
+ flex: 1;
679
+ }
680
+
681
+ .s-flex-2 {
682
+ flex: 2;
683
+ }
684
+
685
+ .s-flex-3 {
686
+ flex: 3;
687
+ }
688
+
689
+ .s-flex-4 {
690
+ flex: 4;
691
+ }
692
+
693
+ .s-flex-5 {
694
+ flex: 5;
695
+ }
696
+
697
+ .s-flex-6 {
698
+ flex: 6;
699
+ }
700
+
701
+ .s-flex-7 {
702
+ flex: 7;
703
+ }
704
+
705
+ .s-flex-8 {
706
+ flex: 8;
707
+ }
708
+
709
+ .s-flex-9 {
710
+ flex: 9;
711
+ }
712
+
713
+ .s-flex-10 {
714
+ flex: 10;
715
+ }
716
+
717
+ .s-flex-11 {
718
+ flex: 11;
719
+ }
720
+
721
+ .s-flex-12 {
722
+ flex: 12;
723
+ }
724
+ }
725
+
726
+ @media (max-width: 480px) {
727
+ .xs-flex-hide {
728
+ display: none;
729
+ }
730
+
731
+ .xs-flex-show {
732
+ display: flex;
733
+ }
734
+
735
+ .xs-flex-column {
736
+ flex-direction: column;
737
+ }
738
+
739
+ .xs-flex-row {
740
+ flex-direction: row;
741
+ }
742
+
743
+ .xs-flex-column-reverse {
744
+ flex-direction: column-reverse;
745
+ }
746
+
747
+ .xs-flex-row-reverse {
748
+ flex-direction: row-reverse;
749
+ }
750
+
751
+ .xs-justify-start {
752
+ justify-content: flex-start;
753
+ }
754
+
755
+ .xs-justify-center {
756
+ justify-content: center;
757
+ }
758
+
759
+ .xs-justify-end {
760
+ justify-content: flex-end;
761
+ }
762
+
763
+ .xs-justify-between {
764
+ justify-content: space-between;
765
+ }
766
+
767
+ .xs-justify-around {
768
+ justify-content: space-around;
769
+ }
770
+
771
+ .xs-justify-even {
772
+ justify-content: space-evenly;
773
+ }
774
+
775
+ .xs-justify-stretch {
776
+ justify-content: stretch;
777
+ }
778
+
779
+ .xs-align-start {
780
+ align-items: flex-start;
781
+ }
782
+
783
+ .xs-align-center {
784
+ align-items: center;
785
+ }
786
+
787
+ .xs-align-end {
788
+ align-items: flex-end;
789
+ }
790
+
791
+ .xs-align-stretch {
792
+ align-items: stretch;
793
+ }
794
+
795
+ .xs-align-baseline {
796
+ align-items: baseline;
797
+ }
798
+
799
+ .xs-center {
800
+ align-items: center;
801
+ justify-content: center;
802
+ }
803
+
804
+ .xs-flex-wrap {
805
+ flex-wrap: wrap;
806
+ }
807
+
808
+ .xs-flex-nowrap {
809
+ flex-wrap: nowrap;
810
+ }
811
+
812
+ .xs-flex-wrap-reverse {
813
+ flex-wrap: wrap-reverse;
814
+ }
815
+
816
+ .xs-flex-0 {
817
+ flex: 0;
818
+ }
819
+
820
+ .xs-flex-1 {
821
+ flex: 1;
822
+ }
823
+
824
+ .xs-flex-2 {
825
+ flex: 2;
826
+ }
827
+
828
+ .xs-flex-3 {
829
+ flex: 3;
830
+ }
831
+
832
+ .xs-flex-4 {
833
+ flex: 4;
834
+ }
835
+
836
+ .xs-flex-5 {
837
+ flex: 5;
838
+ }
839
+
840
+ .xs-flex-6 {
841
+ flex: 6;
842
+ }
843
+
844
+ .xs-flex-7 {
845
+ flex: 7;
846
+ }
847
+
848
+ .xs-flex-8 {
849
+ flex: 8;
850
+ }
851
+
852
+ .xs-flex-9 {
853
+ flex: 9;
854
+ }
855
+
856
+ .xs-flex-10 {
857
+ flex: 10;
858
+ }
859
+
860
+ .xs-flex-11 {
861
+ flex: 11;
862
+ }
863
+
864
+ .xs-flex-12 {
865
+ flex: 12;
866
+ }
867
+ }