File tree Expand file tree Collapse file tree 5 files changed +416
-7
lines changed
tests/plugins/__snapshots__ Expand file tree Collapse file tree 5 files changed +416
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
31
- Increase default values for ` grid-rows-* ` utilities from 1–6 to 1–12 ([ #12180 ] ( https://github.com/tailwindlabs/tailwindcss/pull/12180 ) )
32
32
- Add ` size-* ` utilities ([ #12287 ] ( https://github.com/tailwindlabs/tailwindcss/pull/12287 ) )
33
33
- Add utilities for CSS subgrid ([ #12298 ] ( https://github.com/tailwindlabs/tailwindcss/pull/12298 ) )
34
+ - Add spacing scale to ` min-w-* ` , ` min-h-* ` , and ` max-w-* ` utilities ([ #12300 ] ( https://github.com/tailwindlabs/tailwindcss/pull/12300 ) )
34
35
35
36
### Changed
36
37
Original file line number Diff line number Diff line change @@ -651,8 +651,8 @@ module.exports = {
651
651
fit : 'fit-content' ,
652
652
} ) ,
653
653
maxWidth : ( { theme, breakpoints } ) => ( {
654
+ ...theme ( 'spacing' ) ,
654
655
none : 'none' ,
655
- 0 : '0rem' ,
656
656
xs : '20rem' ,
657
657
sm : '24rem' ,
658
658
md : '28rem' ,
@@ -671,8 +671,8 @@ module.exports = {
671
671
prose : '65ch' ,
672
672
...breakpoints ( theme ( 'screens' ) ) ,
673
673
} ) ,
674
- minHeight : {
675
- 0 : '0px' ,
674
+ minHeight : ( { theme } ) => ( {
675
+ ... theme ( 'spacing' ) ,
676
676
full : '100%' ,
677
677
screen : '100vh' ,
678
678
svh : '100svh' ,
@@ -681,14 +681,14 @@ module.exports = {
681
681
min : 'min-content' ,
682
682
max : 'max-content' ,
683
683
fit : 'fit-content' ,
684
- } ,
685
- minWidth : {
686
- 0 : '0px' ,
684
+ } ) ,
685
+ minWidth : ( { theme } ) => ( {
686
+ ... theme ( 'spacing' ) ,
687
687
full : '100%' ,
688
688
min : 'min-content' ,
689
689
max : 'max-content' ,
690
690
fit : 'fit-content' ,
691
- } ,
691
+ } ) ,
692
692
objectPosition : {
693
693
bottom : 'bottom' ,
694
694
center : 'center' ,
Original file line number Diff line number Diff line change @@ -6,30 +6,162 @@ exports[`should test the 'maxWidth' plugin 1`] = `
6
6
max - width : 0 ;
7
7
}
8
8
9
+ .max-w-0\\ .5 {
10
+ max - width : .125rem ;
11
+ }
12
+
13
+ .max-w-1 {
14
+ max - width : .25rem ;
15
+ }
16
+
17
+ .max-w-1\\ .5 {
18
+ max - width : .375rem ;
19
+ }
20
+
21
+ .max-w-10 {
22
+ max - width : 2.5rem ;
23
+ }
24
+
25
+ .max-w-11 {
26
+ max - width : 2.75rem ;
27
+ }
28
+
29
+ .max-w-12 {
30
+ max - width : 3rem ;
31
+ }
32
+
33
+ .max-w-14 {
34
+ max - width : 3.5rem ;
35
+ }
36
+
37
+ .max-w-16 {
38
+ max - width : 4rem ;
39
+ }
40
+
41
+ .max-w-2 {
42
+ max - width : .5rem ;
43
+ }
44
+
45
+ .max-w-2\\ .5 {
46
+ max - width : .625rem ;
47
+ }
48
+
49
+ .max-w-20 {
50
+ max - width : 5rem ;
51
+ }
52
+
53
+ .max-w-24 {
54
+ max - width : 6rem ;
55
+ }
56
+
57
+ .max-w-28 {
58
+ max - width : 7rem ;
59
+ }
60
+
9
61
.max-w-2xl {
10
62
max - width : 42rem ;
11
63
}
12
64
65
+ .max-w-3 {
66
+ max - width : .75rem ;
67
+ }
68
+
69
+ .max-w-3\\ .5 {
70
+ max - width : .875rem ;
71
+ }
72
+
73
+ .max-w-32 {
74
+ max - width : 8rem ;
75
+ }
76
+
77
+ .max-w-36 {
78
+ max - width : 9rem ;
79
+ }
80
+
13
81
.max-w-3xl {
14
82
max - width : 48rem ;
15
83
}
16
84
85
+ .max-w-4 {
86
+ max - width : 1rem ;
87
+ }
88
+
89
+ .max-w-40 {
90
+ max - width : 10rem ;
91
+ }
92
+
93
+ .max-w-44 {
94
+ max - width : 11rem ;
95
+ }
96
+
97
+ .max-w-48 {
98
+ max - width : 12rem ;
99
+ }
100
+
17
101
.max-w-4xl {
18
102
max - width : 56rem ;
19
103
}
20
104
105
+ .max-w-5 {
106
+ max - width : 1.25rem ;
107
+ }
108
+
109
+ .max-w-52 {
110
+ max - width : 13rem ;
111
+ }
112
+
113
+ .max-w-56 {
114
+ max - width : 14rem ;
115
+ }
116
+
21
117
.max-w-5xl {
22
118
max - width : 64rem ;
23
119
}
24
120
121
+ .max-w-6 {
122
+ max - width : 1.5rem ;
123
+ }
124
+
125
+ .max-w-60 {
126
+ max - width : 15rem ;
127
+ }
128
+
129
+ .max-w-64 {
130
+ max - width : 16rem ;
131
+ }
132
+
25
133
.max-w-6xl {
26
134
max - width : 72rem ;
27
135
}
28
136
137
+ .max-w-7 {
138
+ max - width : 1.75rem ;
139
+ }
140
+
141
+ .max-w-72 {
142
+ max - width : 18rem ;
143
+ }
144
+
29
145
.max-w-7xl {
30
146
max - width : 80rem ;
31
147
}
32
148
149
+ .max-w-8 {
150
+ max - width : 2rem ;
151
+ }
152
+
153
+ .max-w-80 {
154
+ max - width : 20rem ;
155
+ }
156
+
157
+ .max-w-9 {
158
+ max - width : 2.25rem ;
159
+ }
160
+
161
+ .max-w-96 {
162
+ max - width : 24rem ;
163
+ }
164
+
33
165
.max-w-\\ [12px\\ ] {
34
166
max - width : 12px ;
35
167
}
@@ -71,6 +203,10 @@ exports[`should test the 'maxWidth' plugin 1`] = `
71
203
max - width : 65ch ;
72
204
}
73
205
206
+ .max-w-px {
207
+ max - width : 1px ;
208
+ }
209
+
74
210
.max-w-screen-2xl {
75
211
max - width : 1536px ;
76
212
}
Original file line number Diff line number Diff line change @@ -6,6 +6,138 @@ exports[`should test the 'minHeight' plugin 1`] = `
6
6
min - height : 0 ;
7
7
}
8
8
9
+ .min-h-0\\ .5 {
10
+ min - height : .125rem ;
11
+ }
12
+
13
+ .min-h-1 {
14
+ min - height : .25rem ;
15
+ }
16
+
17
+ .min-h-1\\ .5 {
18
+ min - height : .375rem ;
19
+ }
20
+
21
+ .min-h-10 {
22
+ min - height : 2.5rem ;
23
+ }
24
+
25
+ .min-h-11 {
26
+ min - height : 2.75rem ;
27
+ }
28
+
29
+ .min-h-12 {
30
+ min - height : 3rem ;
31
+ }
32
+
33
+ .min-h-14 {
34
+ min - height : 3.5rem ;
35
+ }
36
+
37
+ .min-h-16 {
38
+ min - height : 4rem ;
39
+ }
40
+
41
+ .min-h-2 {
42
+ min - height : .5rem ;
43
+ }
44
+
45
+ .min-h-2\\ .5 {
46
+ min - height : .625rem ;
47
+ }
48
+
49
+ .min-h-20 {
50
+ min - height : 5rem ;
51
+ }
52
+
53
+ .min-h-24 {
54
+ min - height : 6rem ;
55
+ }
56
+
57
+ .min-h-28 {
58
+ min - height : 7rem ;
59
+ }
60
+
61
+ .min-h-3 {
62
+ min - height : .75rem ;
63
+ }
64
+
65
+ .min-h-3\\ .5 {
66
+ min - height : .875rem ;
67
+ }
68
+
69
+ .min-h-32 {
70
+ min - height : 8rem ;
71
+ }
72
+
73
+ .min-h-36 {
74
+ min - height : 9rem ;
75
+ }
76
+
77
+ .min-h-4 {
78
+ min - height : 1rem ;
79
+ }
80
+
81
+ .min-h-40 {
82
+ min - height : 10rem ;
83
+ }
84
+
85
+ .min-h-44 {
86
+ min - height : 11rem ;
87
+ }
88
+
89
+ .min-h-48 {
90
+ min - height : 12rem ;
91
+ }
92
+
93
+ .min-h-5 {
94
+ min - height : 1.25rem ;
95
+ }
96
+
97
+ .min-h-52 {
98
+ min - height : 13rem ;
99
+ }
100
+
101
+ .min-h-56 {
102
+ min - height : 14rem ;
103
+ }
104
+
105
+ .min-h-6 {
106
+ min - height : 1.5rem ;
107
+ }
108
+
109
+ .min-h-60 {
110
+ min - height : 15rem ;
111
+ }
112
+
113
+ .min-h-64 {
114
+ min - height : 16rem ;
115
+ }
116
+
117
+ .min-h-7 {
118
+ min - height : 1.75rem ;
119
+ }
120
+
121
+ .min-h-72 {
122
+ min - height : 18rem ;
123
+ }
124
+
125
+ .min-h-8 {
126
+ min - height : 2rem ;
127
+ }
128
+
129
+ .min-h-80 {
130
+ min - height : 20rem ;
131
+ }
132
+
133
+ .min-h-9 {
134
+ min - height : 2.25rem ;
135
+ }
136
+
137
+ .min-h-96 {
138
+ min - height : 24rem ;
139
+ }
140
+
9
141
.min-h-\\ [12px\\ ] {
10
142
min - height : 12px ;
11
143
}
@@ -39,6 +171,10 @@ exports[`should test the 'minHeight' plugin 1`] = `
39
171
min - height : min - content ;
40
172
}
41
173
174
+ .min-h-px {
175
+ min - height : 1px ;
176
+ }
177
+
42
178
.min-h-screen {
43
179
min - height : 100vh ;
44
180
}
You can’t perform that action at this time.
0 commit comments