Skip to content

Commit ab207ce

Browse files
Add a paragraph on breakpoint sorting (#2107)
This has been causing repeated confusion already so let's add a section to clarify this. Closes #2099 --------- Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
1 parent 62c0556 commit ab207ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/docs/responsive-design.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ This updates the `2xl` breakpoint to use `100rem` instead of the default `96rem`
324324
</div>
325325
```
326326

327+
Note that it's important to always use the same unit for defining your breakpoints or the generated utilities may be sorted in an unexpected order, causing breakpoint classes to override each other in unexpected ways.
328+
329+
Tailwind uses `rem` for the default breakpoints, so if you are adding additional breakpoints to the defaults, make sure you use `rem` as well.
330+
327331
Learn more about customizing your theme in the [theme documentation](/docs/theme).
328332

329333
### Removing default breakpoints

0 commit comments

Comments
 (0)