Skip to content

Commit 30158c7

Browse files
committed
Add spacing scale to min-width, min-height, and max-width (#12300)
* Add spacing scale to `min-width`, `min-height`, and `max-width` * Update snapshots * Update changelog
1 parent 62aa0e3 commit 30158c7

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Increase default values for `grid-rows-*` utilities from 1–6 to 1–12 ([#12180](https://github.com/tailwindlabs/tailwindcss/pull/12180))
1818
- Add `size-*` utilities ([#12287](https://github.com/tailwindlabs/tailwindcss/pull/12287))
1919
- Add utilities for CSS subgrid ([#12298](https://github.com/tailwindlabs/tailwindcss/pull/12298))
20+
- Add spacing scale to `min-w-*`, `min-h-*`, and `max-w-*` utilities ([#12300](https://github.com/tailwindlabs/tailwindcss/pull/12300))
2021

2122

2223
## [3.3.6] - 2023-12-04

stubs/config.full.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ module.exports = {
658658
fit: 'fit-content',
659659
}),
660660
maxWidth: ({ theme, breakpoints }) => ({
661+
...theme('spacing'),
661662
none: 'none',
662-
0: '0rem',
663663
xs: '20rem',
664664
sm: '24rem',
665665
md: '28rem',
@@ -678,8 +678,8 @@ module.exports = {
678678
prose: '65ch',
679679
...breakpoints(theme('screens')),
680680
}),
681-
minHeight: {
682-
0: '0px',
681+
minHeight: ({ theme }) => ({
682+
...theme('spacing'),
683683
full: '100%',
684684
screen: '100vh',
685685
svh: '100svh',
@@ -688,14 +688,14 @@ module.exports = {
688688
min: 'min-content',
689689
max: 'max-content',
690690
fit: 'fit-content',
691-
},
692-
minWidth: {
693-
0: '0px',
691+
}),
692+
minWidth: ({ theme }) => ({
693+
...theme('spacing'),
694694
full: '100%',
695695
min: 'min-content',
696696
max: 'max-content',
697697
fit: 'fit-content',
698-
},
698+
}),
699699
objectPosition: {
700700
bottom: 'bottom',
701701
center: 'center',

0 commit comments

Comments
 (0)