Skip to content

Responsive Breakpoints

WP-Nexus uses a mobile-first responsive system with three breakpoints. Styles cascade from desktop down -- tablet inherits desktop values, mobile inherits tablet values.

Breakpoints

BreakpointWidth RangeDescription
Desktop1024px and aboveDefault styles. Applied to all screen sizes unless overridden.
Tablet768px to 1023pxOverrides desktop styles on medium screens.
MobileBelow 768pxOverrides tablet (and desktop) styles on small screens.

How It Works

  1. You set styles at the Desktop breakpoint first. These are the base styles.
  2. Switch to Tablet to override only the properties that need to change on medium screens.
  3. Switch to Mobile to override properties for small screens.

Properties that you do not override at a smaller breakpoint inherit the value from the next larger breakpoint.

Example Cascade

PropertyDesktopTabletMobileEffective Mobile Value
fontSize18px16px14px14px (set explicitly)
padding24px16px--16px (inherited from tablet)
displayflex----flex (inherited from desktop)

Switching Breakpoints

In the style editor, click the breakpoint selector at the top of the Styles panel:

  • Desktop icon -- Edit desktop styles (default).
  • Tablet icon -- Edit tablet overrides.
  • Mobile icon -- Edit mobile overrides.

A colored indicator shows which properties have overrides at the current breakpoint.

Common Responsive Patterns

Stack columns on mobile

PropertyDesktopMobile
displayflexflex
flexDirectionrowcolumn
gap24px12px

Full-width on mobile

PropertyDesktopMobile
width50%100%
maxWidth600px100%

Hide on mobile

PropertyDesktopMobile
displayblocknone

Smaller text on mobile

PropertyDesktopTabletMobile
fontSize32px24px20px

Reduced spacing on mobile

PropertyDesktopMobile
padding32px16px
margin0 auto0 8px

Best Practices

  1. Design desktop first. Set all your base styles at the desktop breakpoint.
  2. Override sparingly. Only set tablet/mobile values for properties that actually need to change.
  3. Test at each breakpoint. Use the breakpoint preview to check your layout.
  4. Use flex and percentages. These naturally adapt to screen size, reducing the number of overrides needed.
  5. Reduce font sizes gradually. A common ratio: desktop 18px, tablet 16px, mobile 14px.