Loading
The system has six breakpoints, from base up to xxl. They are mobile-first: each one starts at its minimum width and applies upward until the next one takes over. Breakpoint names are the keys a responsive prop takes, so one prop can hold a different value per screen size.
import { Box, NEB_LENGTH } from '@nebula-kit/core' export const Panel = ({ children }) => ( // 16px on phones, 32px from md, 48px from xl <Box p={{ base: NEB_LENGTH.px_016, md: NEB_LENGTH.px_032, xl: NEB_LENGTH.px_048 }}> {children} </Box>)You only list the breakpoints where the value changes. A breakpoint without a value keeps the value of the closest smaller one.
| Name | Min width | Max width | Typical screens |
|---|---|---|---|
base | 0px | 479px | Phones |
sm | 480px | 767px | Large phones |
md | 768px | 1023px | Tablets |
lg | 1024px | 1279px | Tablets in landscape and small laptops |
xl | 1280px | 1535px | Laptops and desktops |
xxl | 1536px | - | Large desktops |