Skip to content

Commit

Permalink
Add fit-content utilities for (min/max) height and width (#5638)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow authored Oct 7, 2021
1 parent 579e922 commit 31a9860
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stubs/defaultConfig.stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ module.exports = {
'5/6': '83.333333%',
full: '100%',
screen: '100vh',
fit: 'fit-content',
}),
inset: ({ theme }) => ({
auto: 'auto',
Expand Down Expand Up @@ -581,6 +582,7 @@ module.exports = {
...theme('spacing'),
full: '100%',
screen: '100vh',
fit: 'fit-content',
}),
maxWidth: ({ theme, breakpoints }) => ({
none: 'none',
Expand All @@ -599,19 +601,22 @@ module.exports = {
full: '100%',
min: 'min-content',
max: 'max-content',
fit: 'fit-content',
prose: '65ch',
...breakpoints(theme('screens')),
}),
minHeight: {
0: '0px',
full: '100%',
screen: '100vh',
fit: 'fit-content',
},
minWidth: {
0: '0px',
full: '100%',
min: 'min-content',
max: 'max-content',
fit: 'fit-content',
},
objectPosition: {
bottom: 'bottom',
Expand Down Expand Up @@ -844,6 +849,7 @@ module.exports = {
screen: '100vw',
min: 'min-content',
max: 'max-content',
fit: 'fit-content',
}),
willChange: {
auto: 'auto',
Expand Down

0 comments on commit 31a9860

Please sign in to comment.