Skip to content

Commit 31a9860

Browse files
authored
Add fit-content utilities for (min/max) height and width (#5638)
1 parent 579e922 commit 31a9860

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stubs/defaultConfig.stub.js

+6
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ module.exports = {
504504
'5/6': '83.333333%',
505505
full: '100%',
506506
screen: '100vh',
507+
fit: 'fit-content',
507508
}),
508509
inset: ({ theme }) => ({
509510
auto: 'auto',
@@ -581,6 +582,7 @@ module.exports = {
581582
...theme('spacing'),
582583
full: '100%',
583584
screen: '100vh',
585+
fit: 'fit-content',
584586
}),
585587
maxWidth: ({ theme, breakpoints }) => ({
586588
none: 'none',
@@ -599,19 +601,22 @@ module.exports = {
599601
full: '100%',
600602
min: 'min-content',
601603
max: 'max-content',
604+
fit: 'fit-content',
602605
prose: '65ch',
603606
...breakpoints(theme('screens')),
604607
}),
605608
minHeight: {
606609
0: '0px',
607610
full: '100%',
608611
screen: '100vh',
612+
fit: 'fit-content',
609613
},
610614
minWidth: {
611615
0: '0px',
612616
full: '100%',
613617
min: 'min-content',
614618
max: 'max-content',
619+
fit: 'fit-content',
615620
},
616621
objectPosition: {
617622
bottom: 'bottom',
@@ -844,6 +849,7 @@ module.exports = {
844849
screen: '100vw',
845850
min: 'min-content',
846851
max: 'max-content',
852+
fit: 'fit-content',
847853
}),
848854
willChange: {
849855
auto: 'auto',

0 commit comments

Comments
 (0)