Browse documentation
Reference / Variants & accessibility
Breakpoint ranges
Combine a minimum and an exclusive maximum to scope a layout change to a specific viewport range.
Working example
Manuscript review
With the default theme, the emphasized left rule applies from 768px up to, but excluding, 1024px.
<p class="border p-3 md:max-lg:border-l-4 md:max-lg:font-bold">
Manuscript review
</p>Class reference
| Class | CSS declarations |
|---|---|
max-sm:hidden | display: none; |
max-lg:p-3 | padding: 0.75rem; |
md:max-lg:grid-cols-2 | grid-template-columns: repeat(2, minmax(0, 1fr)); |
min-[36rem]:max-[60rem]:text-lg | font-size: 1.125rem;
line-height: 1.75rem; |
View full generated CSS
@media (width < 1024px) {
.max-lg\:p-3 {
padding: 0.75rem;
}
}
@media (width < 640px) {
.max-sm\:hidden {
display: none;
}
}
@media (width >= 36rem) {
@media (width < 60rem) {
.min-\[36rem\]\:max-\[60rem\]\:text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
}
}
@media (width >= 768px) {
@media (width < 1024px) {
.md\:max-lg\:grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
}