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
3131- Increase default values for ` grid-rows-* ` utilities from 1–6 to 1–12 ([ #12180 ] ( https://github.com/tailwindlabs/tailwindcss/pull/12180 ) )
3232- Add ` size-* ` utilities ([ #12287 ] ( https://github.com/tailwindlabs/tailwindcss/pull/12287 ) )
3333- 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 ) )
3435
3536### Changed
3637
Original file line number Diff line number Diff line change @@ -651,8 +651,8 @@ module.exports = {
651651 fit : 'fit-content' ,
652652 } ) ,
653653 maxWidth : ( { theme, breakpoints } ) => ( {
654+ ...theme ( 'spacing' ) ,
654655 none : 'none' ,
655- 0 : '0rem' ,
656656 xs : '20rem' ,
657657 sm : '24rem' ,
658658 md : '28rem' ,
@@ -671,8 +671,8 @@ module.exports = {
671671 prose : '65ch' ,
672672 ...breakpoints ( theme ( 'screens' ) ) ,
673673 } ) ,
674- minHeight : {
675- 0 : '0px' ,
674+ minHeight : ( { theme } ) => ( {
675+ ... theme ( 'spacing' ) ,
676676 full : '100%' ,
677677 screen : '100vh' ,
678678 svh : '100svh' ,
@@ -681,14 +681,14 @@ module.exports = {
681681 min : 'min-content' ,
682682 max : 'max-content' ,
683683 fit : 'fit-content' ,
684- } ,
685- minWidth : {
686- 0 : '0px' ,
684+ } ) ,
685+ minWidth : ( { theme } ) => ( {
686+ ... theme ( 'spacing' ) ,
687687 full : '100%' ,
688688 min : 'min-content' ,
689689 max : 'max-content' ,
690690 fit : 'fit-content' ,
691- } ,
691+ } ) ,
692692 objectPosition : {
693693 bottom : 'bottom' ,
694694 center : 'center' ,
Original file line number Diff line number Diff line change @@ -6,30 +6,162 @@ exports[`should test the 'maxWidth' plugin 1`] = `
66 max - width : 0 ;
77}
88
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+
961.max-w-2xl {
1062 max - width : 42rem ;
1163}
1264
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+
1381.max-w-3xl {
1482 max - width : 48rem ;
1583}
1684
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+
17101.max-w-4xl {
18102 max - width : 56rem ;
19103}
20104
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+
21117.max-w-5xl {
22118 max - width : 64rem ;
23119}
24120
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+
25133.max-w-6xl {
26134 max - width : 72rem ;
27135}
28136
137+ .max-w-7 {
138+ max - width : 1.75rem ;
139+ }
140+
141+ .max-w-72 {
142+ max - width : 18rem ;
143+ }
144+
29145.max-w-7xl {
30146 max - width : 80rem ;
31147}
32148
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+
33165.max-w-\\ [12px\\ ] {
34166 max - width : 12px ;
35167}
@@ -71,6 +203,10 @@ exports[`should test the 'maxWidth' plugin 1`] = `
71203 max - width : 65ch ;
72204}
73205
206+ .max-w-px {
207+ max - width : 1px ;
208+ }
209+
74210.max-w-screen-2xl {
75211 max - width : 1536px ;
76212}
Original file line number Diff line number Diff line change @@ -6,6 +6,138 @@ exports[`should test the 'minHeight' plugin 1`] = `
66 min - height : 0 ;
77}
88
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+
9141.min-h-\\ [12px\\ ] {
10142 min - height : 12px ;
11143}
@@ -39,6 +171,10 @@ exports[`should test the 'minHeight' plugin 1`] = `
39171 min - height : min - content ;
40172}
41173
174+ .min-h-px {
175+ min - height : 1px ;
176+ }
177+
42178.min-h-screen {
43179 min - height : 100vh ;
44180}
You can’t perform that action at this time.
0 commit comments