tailwindcss 4.0.0-alpha.34 → 4.0.0-alpha.36
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.
- package/dist/default-theme.d.mts +1 -1
- package/dist/lib.d.mts +3 -3
- package/dist/lib.js +19 -17
- package/dist/lib.mjs +19 -17
- package/dist/plugin.d.mts +2 -2
- package/dist/{resolve-config-Oupdq5Vo.d.mts → resolve-config-QUZ9b-Gn.d.mts} +6 -0
- package/dist/{types-1Gt9iRen.d.mts → types-CAsznCh5.d.mts} +1 -1
- package/index.css +180 -71
- package/package.json +2 -2
- package/preflight.css +174 -67
- package/theme.css +4 -4
package/dist/plugin.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-
|
2
|
-
import './resolve-config-
|
1
|
+
import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-CAsznCh5.mjs';
|
2
|
+
import './resolve-config-QUZ9b-Gn.mjs';
|
3
3
|
import './colors.mjs';
|
4
4
|
|
5
5
|
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
|
@@ -6,6 +6,9 @@ type ArbitraryUtilityValue = {
|
|
6
6
|
* ```
|
7
7
|
* bg-[color:var(--my-color)]
|
8
8
|
* ^^^^^
|
9
|
+
*
|
10
|
+
* bg-(color:--my-color)
|
11
|
+
* ^^^^^
|
9
12
|
* ```
|
10
13
|
*/
|
11
14
|
dataType: string | null;
|
@@ -16,6 +19,9 @@ type ArbitraryUtilityValue = {
|
|
16
19
|
*
|
17
20
|
* bg-[var(--my_variable)]
|
18
21
|
* ^^^^^^^^^^^^^^^^^^
|
22
|
+
*
|
23
|
+
* bg-(--my_variable)
|
24
|
+
* ^^^^^^^^^^^^^^
|
19
25
|
* ```
|
20
26
|
*/
|
21
27
|
value: string;
|
package/index.css
CHANGED
@@ -373,10 +373,10 @@
|
|
373
373
|
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
374
374
|
|
375
375
|
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
376
|
-
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.
|
377
|
-
--drop-shadow-md: 0
|
378
|
-
--drop-shadow-lg: 0
|
379
|
-
--drop-shadow-xl: 0
|
376
|
+
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
377
|
+
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
378
|
+
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
379
|
+
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
380
380
|
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
381
381
|
|
382
382
|
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
@@ -487,6 +487,7 @@
|
|
487
487
|
5. Use the user's configured `sans` font-feature-settings by default.
|
488
488
|
6. Use the user's configured `sans` font-variation-settings by default.
|
489
489
|
7. Disable tap highlights on iOS.
|
490
|
+
8. Set a default `color-scheme`.
|
490
491
|
*/
|
491
492
|
|
492
493
|
html,
|
@@ -510,6 +511,7 @@
|
|
510
511
|
normal
|
511
512
|
); /* 6 */
|
512
513
|
-webkit-tap-highlight-color: transparent; /* 7 */
|
514
|
+
color-scheme: light; /* 8 */
|
513
515
|
}
|
514
516
|
|
515
517
|
/*
|
@@ -648,67 +650,102 @@
|
|
648
650
|
}
|
649
651
|
|
650
652
|
/*
|
651
|
-
|
653
|
+
Use the modern Firefox focus style for all focusable elements.
|
652
654
|
*/
|
653
655
|
|
654
|
-
|
655
|
-
|
656
|
-
optgroup,
|
657
|
-
select,
|
658
|
-
textarea,
|
659
|
-
::file-selector-button {
|
660
|
-
font: inherit;
|
661
|
-
font-feature-settings: inherit;
|
662
|
-
font-variation-settings: inherit;
|
663
|
-
letter-spacing: inherit;
|
664
|
-
color: inherit;
|
656
|
+
:-moz-focusring {
|
657
|
+
outline: auto;
|
665
658
|
}
|
666
659
|
|
667
660
|
/*
|
668
|
-
|
669
|
-
2. Correct the inability to style the border radius in iOS Safari.
|
661
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
670
662
|
*/
|
671
663
|
|
672
|
-
|
673
|
-
|
674
|
-
::file-selector-button {
|
675
|
-
background: transparent; /* 1 */
|
676
|
-
appearance: button; /* 2 */
|
664
|
+
progress {
|
665
|
+
vertical-align: baseline;
|
677
666
|
}
|
678
667
|
|
679
668
|
/*
|
680
|
-
|
669
|
+
Add the correct display in Chrome and Safari.
|
681
670
|
*/
|
682
671
|
|
683
|
-
|
684
|
-
|
672
|
+
summary {
|
673
|
+
display: list-item;
|
685
674
|
}
|
686
675
|
|
687
676
|
/*
|
688
|
-
|
677
|
+
Make lists unstyled by default.
|
689
678
|
*/
|
690
679
|
|
691
|
-
|
692
|
-
|
680
|
+
ol,
|
681
|
+
ul,
|
682
|
+
menu {
|
683
|
+
list-style: none;
|
693
684
|
}
|
694
685
|
|
695
686
|
/*
|
696
|
-
|
687
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
688
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
689
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
697
690
|
*/
|
698
691
|
|
699
|
-
|
700
|
-
|
692
|
+
img,
|
693
|
+
svg,
|
694
|
+
video,
|
695
|
+
canvas,
|
696
|
+
audio,
|
697
|
+
iframe,
|
698
|
+
embed,
|
699
|
+
object {
|
700
|
+
display: block; /* 1 */
|
701
|
+
vertical-align: middle; /* 2 */
|
701
702
|
}
|
702
703
|
|
703
704
|
/*
|
704
|
-
|
705
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
705
706
|
*/
|
706
707
|
|
707
|
-
|
708
|
-
|
708
|
+
img,
|
709
|
+
video {
|
710
|
+
max-width: 100%;
|
709
711
|
height: auto;
|
710
712
|
}
|
711
713
|
|
714
|
+
/*
|
715
|
+
Inherit font styles in all browsers.
|
716
|
+
*/
|
717
|
+
|
718
|
+
button,
|
719
|
+
input,
|
720
|
+
select,
|
721
|
+
optgroup,
|
722
|
+
textarea,
|
723
|
+
::file-selector-button {
|
724
|
+
font: inherit;
|
725
|
+
font-feature-settings: inherit;
|
726
|
+
font-variation-settings: inherit;
|
727
|
+
letter-spacing: inherit;
|
728
|
+
color: inherit;
|
729
|
+
}
|
730
|
+
|
731
|
+
/*
|
732
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
733
|
+
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
734
|
+
*/
|
735
|
+
|
736
|
+
::placeholder {
|
737
|
+
opacity: 1; /* 1 */
|
738
|
+
color: color-mix(in oklch, currentColor 50%, transparent); /* 2 */
|
739
|
+
}
|
740
|
+
|
741
|
+
/*
|
742
|
+
Prevent resizing textareas horizontally by default.
|
743
|
+
*/
|
744
|
+
|
745
|
+
textarea {
|
746
|
+
resize: vertical;
|
747
|
+
}
|
748
|
+
|
712
749
|
/*
|
713
750
|
Remove the inner padding in Chrome and Safari on macOS.
|
714
751
|
*/
|
@@ -756,67 +793,139 @@
|
|
756
793
|
}
|
757
794
|
|
758
795
|
/*
|
759
|
-
|
796
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
760
797
|
*/
|
761
798
|
|
762
|
-
|
763
|
-
|
799
|
+
:-moz-ui-invalid {
|
800
|
+
box-shadow: none;
|
764
801
|
}
|
765
802
|
|
766
803
|
/*
|
767
|
-
|
804
|
+
Correct the inability to style the border radius in iOS Safari.
|
768
805
|
*/
|
769
806
|
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
807
|
+
button,
|
808
|
+
input:where([type="button"], [type="reset"], [type="submit"]),
|
809
|
+
::file-selector-button {
|
810
|
+
appearance: button;
|
774
811
|
}
|
775
812
|
|
776
813
|
/*
|
777
|
-
|
814
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
778
815
|
*/
|
779
816
|
|
780
|
-
|
781
|
-
|
817
|
+
::-webkit-inner-spin-button,
|
818
|
+
::-webkit-outer-spin-button {
|
819
|
+
height: auto;
|
782
820
|
}
|
783
821
|
|
784
822
|
/*
|
785
|
-
|
786
|
-
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
823
|
+
Apply consistent base form control styles across browsers.
|
787
824
|
*/
|
788
825
|
|
789
|
-
|
790
|
-
|
791
|
-
|
826
|
+
select,
|
827
|
+
textarea,
|
828
|
+
input:where(
|
829
|
+
[type="text"],
|
830
|
+
[type="email"],
|
831
|
+
[type="password"],
|
832
|
+
[type="date"],
|
833
|
+
[type="datetime-local"],
|
834
|
+
[type="month"],
|
835
|
+
[type="number"],
|
836
|
+
[type="search"],
|
837
|
+
[type="time"],
|
838
|
+
[type="week"],
|
839
|
+
[type="tel"],
|
840
|
+
[type="url"]
|
841
|
+
) {
|
842
|
+
border-radius: 3px;
|
843
|
+
padding-inline: 4px;
|
844
|
+
padding-block: 2px;
|
845
|
+
color: light-dark(black, white);
|
846
|
+
background-color: light-dark(white, rgb(255 255 255 / 10%));
|
847
|
+
border: 1px solid light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 25%));
|
848
|
+
}
|
849
|
+
|
850
|
+
:where(select:not([multiple], [size])) option,
|
851
|
+
:where(select:not([multiple], [size])) optgroup {
|
852
|
+
color: FieldText;
|
853
|
+
background-color: Field;
|
854
|
+
}
|
855
|
+
|
856
|
+
:where(select:is([multiple], [size])) optgroup {
|
857
|
+
font-weight: bold;
|
858
|
+
}
|
859
|
+
|
860
|
+
:where(select:is([multiple], [size])) optgroup option {
|
861
|
+
padding-inline-start: 20px;
|
862
|
+
}
|
863
|
+
|
864
|
+
select:where(:disabled),
|
865
|
+
textarea:where(:disabled),
|
866
|
+
input:where(
|
867
|
+
[type="text"],
|
868
|
+
[type="email"],
|
869
|
+
[type="password"],
|
870
|
+
[type="date"],
|
871
|
+
[type="datetime-local"],
|
872
|
+
[type="month"],
|
873
|
+
[type="number"],
|
874
|
+
[type="search"],
|
875
|
+
[type="time"],
|
876
|
+
[type="week"],
|
877
|
+
[type="tel"],
|
878
|
+
[type="url"]
|
879
|
+
):where(:disabled) {
|
880
|
+
opacity: 1;
|
881
|
+
color: light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 50%));
|
882
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 10%));
|
883
|
+
border-color: light-dark(rgb(0 0 0 / 20%), rgb(255 255 255 / 15%));
|
792
884
|
}
|
793
885
|
|
794
886
|
/*
|
795
|
-
|
796
|
-
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
797
|
-
This can trigger a poorly considered lint error in some tools but is included by design.
|
887
|
+
Apply consistent base button styles across browsers.
|
798
888
|
*/
|
799
889
|
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
vertical-align: middle; /* 2 */
|
890
|
+
button,
|
891
|
+
::file-selector-button,
|
892
|
+
input:where([type="button"], [type="reset"], [type="submit"]) {
|
893
|
+
border-radius: 4px;
|
894
|
+
padding-inline: 4px;
|
895
|
+
padding-block: 2px;
|
896
|
+
color: light-dark(#000, #fff);
|
897
|
+
background-color: light-dark(rgb(0 0 0 / 5%), rgb(255 255 255 / 40%));
|
898
|
+
border: 1px solid light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 10%));
|
810
899
|
}
|
811
900
|
|
812
|
-
|
813
|
-
|
814
|
-
|
901
|
+
button:where(:hover),
|
902
|
+
::file-selector-button:where(:hover),
|
903
|
+
input:where([type="button"], [type="reset"], [type="submit"]):where(:hover) {
|
904
|
+
background-color: light-dark(rgb(0 0 0 / 10%), rgb(255 255 255 / 45%));
|
905
|
+
}
|
815
906
|
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
907
|
+
button:where(:active),
|
908
|
+
::file-selector-button:where(:active),
|
909
|
+
input:where([type="button"], [type="reset"], [type="submit"]):where(:active) {
|
910
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 30%));
|
911
|
+
}
|
912
|
+
|
913
|
+
button:where(:disabled),
|
914
|
+
:where(input:disabled)::file-selector-button,
|
915
|
+
input:where([type="button"], [type="reset"], [type="submit"]):where(
|
916
|
+
:disabled
|
917
|
+
) {
|
918
|
+
opacity: 1;
|
919
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 25%));
|
920
|
+
border-color: light-dark(rgb(0 0 0 / 20%), rgb(255 255 255 / 10%));
|
921
|
+
}
|
922
|
+
|
923
|
+
input:where([type="file"]:disabled) {
|
924
|
+
color: light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 50%));
|
925
|
+
}
|
926
|
+
|
927
|
+
::file-selector-button {
|
928
|
+
margin-inline-end: 4px;
|
820
929
|
}
|
821
930
|
|
822
931
|
/*
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "tailwindcss",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.36",
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -67,7 +67,7 @@
|
|
67
67
|
"@types/node": "^20.14.8",
|
68
68
|
"lightningcss": "^1.26.0",
|
69
69
|
"dedent": "1.5.3",
|
70
|
-
"@tailwindcss/oxide": "4.0.0-alpha.
|
70
|
+
"@tailwindcss/oxide": "4.0.0-alpha.36"
|
71
71
|
},
|
72
72
|
"scripts": {
|
73
73
|
"lint": "tsc --noEmit",
|