@@ -257,8 +257,8 @@ export const colors = {
257
257
258
258
export const baseFonts = {
259
259
sans :
260
- '- apple-system, BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"' ,
261
- serif : 'Georgia, Cambria, "Times New Roman", Times, serif' ,
260
+ 'system-ui,- apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"' ,
261
+ serif : 'Georgia,Cambria,"Times New Roman",Times,serif' ,
262
262
mono : 'Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace' ,
263
263
}
264
264
@@ -377,11 +377,12 @@ export const radii = {
377
377
none : '0' ,
378
378
sm : '0.125rem' ,
379
379
default : '0.25rem' ,
380
+ md : '0.375rem' ,
380
381
lg : '0.5rem' ,
381
382
full : '9999px' ,
382
383
}
383
384
384
- export const sizes = {
385
+ const tailwindSpacing = {
385
386
px : '1px' ,
386
387
'0' : '0' ,
387
388
'1' : '0.25rem' ,
@@ -401,6 +402,9 @@ export const sizes = {
401
402
'48' : '12rem' ,
402
403
'56' : '14rem' ,
403
404
'64' : '16rem' ,
405
+ }
406
+
407
+ const tailwindMaxWidth = {
404
408
xs : '20rem' ,
405
409
sm : '24rem' ,
406
410
md : '28rem' ,
@@ -411,6 +415,9 @@ export const sizes = {
411
415
'4xl' : '56rem' ,
412
416
'5xl' : '64rem' ,
413
417
'6xl' : '72rem' ,
418
+ }
419
+
420
+ const tailwindWidth = {
414
421
'1/2' : '50%' ,
415
422
'1/3' : '33.333333%' ,
416
423
'2/3' : '66.666667%' ,
@@ -437,12 +444,20 @@ export const sizes = {
437
444
'9/12' : '75%' ,
438
445
'10/12' : '83.333333%' ,
439
446
'11/12' : '91.666667%' ,
447
+ }
448
+
449
+ export const sizes = {
450
+ ...tailwindSpacing ,
451
+ ...tailwindMaxWidth ,
452
+ ...tailwindWidth ,
440
453
full : '100%' ,
441
454
screenHeight : '100vh' ,
442
455
screenWidth : '100vw' ,
443
456
}
444
457
445
458
export const shadows = {
459
+ xs : '0 0 0 1px rgba(0, 0, 0, 0.05)' ,
460
+ sm : '0 1px 2px 0 rgba(0, 0, 0, 0.05)' ,
446
461
default : '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)' ,
447
462
md : '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)' ,
448
463
lg : '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)' ,
@@ -535,6 +550,85 @@ export const styles = {
535
550
} ,
536
551
}
537
552
553
+ export const transforms = {
554
+ transformOrigin : {
555
+ center : 'center' ,
556
+ top : 'top' ,
557
+ 'top-right' : 'top right' ,
558
+ right : 'right' ,
559
+ 'bottom-right' : 'bottom right' ,
560
+ bottom : 'bottom' ,
561
+ 'bottom-left' : 'bottom left' ,
562
+ left : 'left' ,
563
+ 'top-left' : 'top left' ,
564
+ } ,
565
+ translate : {
566
+ ...tailwindSpacing ,
567
+ '-full' : '-100%' ,
568
+ '-1/2' : '-50%' ,
569
+ '1/2' : '50%' ,
570
+ full : '100%' ,
571
+ } ,
572
+ scale : {
573
+ '0' : '0' ,
574
+ '50' : '.5' ,
575
+ '75' : '.75' ,
576
+ '90' : '.9' ,
577
+ '95' : '.95' ,
578
+ '100' : '1' ,
579
+ '105' : '1.05' ,
580
+ '110' : '1.1' ,
581
+ '125' : '1.25' ,
582
+ '150' : '1.5' ,
583
+ } ,
584
+ rotate : {
585
+ '-180' : '-180deg' ,
586
+ '-90' : '-90deg' ,
587
+ '-45' : '-45deg' ,
588
+ '0' : '0' ,
589
+ '45' : '45deg' ,
590
+ '90' : '90deg' ,
591
+ '180' : '180deg' ,
592
+ } ,
593
+ skew : {
594
+ '-12' : '-12deg' ,
595
+ '-6' : '-6deg' ,
596
+ '-3' : '-3deg' ,
597
+ '0' : '0' ,
598
+ '3' : '3deg' ,
599
+ '6' : '6deg' ,
600
+ '12' : '12deg' ,
601
+ } ,
602
+ }
603
+
604
+ export const transitions = {
605
+ property : {
606
+ none : 'none' ,
607
+ all : 'all' ,
608
+ default : 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform' ,
609
+ colors : 'background-color, border-color, color, fill, stroke' ,
610
+ opacity : 'opacity' ,
611
+ shadow : 'box-shadow' ,
612
+ transform : 'transform' ,
613
+ } ,
614
+ timingFunction : {
615
+ linear : 'linear' ,
616
+ in : 'cubic-bezier(0.4, 0, 1, 1)' ,
617
+ out : 'cubic-bezier(0, 0, 0.2, 1)' ,
618
+ 'in-out' : 'cubic-bezier(0.4, 0, 0.2, 1)' ,
619
+ } ,
620
+ duration : {
621
+ '75' : '75ms' ,
622
+ '100' : '100ms' ,
623
+ '150' : '150ms' ,
624
+ '200' : '200ms' ,
625
+ '300' : '300ms' ,
626
+ '500' : '500ms' ,
627
+ '700' : '700ms' ,
628
+ '1000' : '1000ms' ,
629
+ } ,
630
+ }
631
+
538
632
export const tailwind = {
539
633
borderWidths,
540
634
breakpoints,
@@ -552,6 +646,8 @@ export const tailwind = {
552
646
styles,
553
647
buttons,
554
648
inputs,
649
+ transforms,
650
+ transitions,
555
651
}
556
652
557
653
export default tailwind
0 commit comments