Reference
Breakpoints
The default screen widths, the media query each one produces, and how to change them.
Defaults
| Variant | Min width | Media query |
|---|---|---|
sm: |
640px |
@media (min-width: 640px)
|
md: |
768px |
@media (min-width: 768px)
|
lg: |
1024px |
@media (min-width: 1024px)
|
xl: |
1280px |
@media (min-width: 1280px)
|
2xl: |
1536px |
@media (min-width: 1536px)
|
Generated CSS
md
:
p
:
8
@media (min-width: 768px) {
.md\:p\:8 {
padding: 2rem;
}
}
lg
:
hover
:
bg
:
blue
@media (min-width: 1024px) {
.lg\:hover\:bg\:blue:hover {
background-color: #3b82f6;
}
}
Changing them
theme.extend.breakpoints
adds keys or changes widths; theme.override.breakpoints
replaces the whole list. Widths are given in px,
em or rem.
theme:
extend:
breakpoints:
xs: 480px
3xl: 1920px