Spectra v0.1

Fundamentals / responsive

Priority 1

Breakpoints

Back to docs

Breakpoints are documented as tokens, but media queries should still use literal values. Keep the token name in comments so the contract stays readable.

Breakpoint scale

PreviewTokenRangeValueComputed
480px
--sp-bp-xsLarge phones / small tablets30rem
640px
--sp-bp-smTablets40rem
832px
--sp-bp-mdWide tablets / small laptops52rem
1200px
--sp-bp-lgDesktop75rem
1440px
--sp-bp-xlLarge desktop90rem

Recommended usage

Spectra is mobile-first. Start from the base layout, then widen at the point where the composition genuinely needs more room.

/* --sp-bp-md */
@media (min-width: 52rem) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}