365 |
366 | Box with custom spacing scale and breakpoints
367 |
368 |
369 | )
370 | ```
371 |
372 | ### Breakpoints
373 |
374 | The Flex and Box components use a mobile-first responsive approach,
375 | where any value set works from that breakpoint and wider.
376 | Breakpoints are hard-coded to the following min-widths: `40em`, `52em`, `64em`.
377 |
378 | To customize, provide an array of string values that will be converted to media queries.
379 |
380 | ### Spacing Scale
381 |
382 | Rebass Grid components' margin and padding props use a 4 step spacing scale to help
383 | keep things aligned and keep layouts consistent.
384 |
385 | The default scale is based on an 8px/powers-of-two grid: `[ 0, 4, 8, 16, 32, 64, 128, 256, 512 ]`,
386 | which helps keep spacing consistent and elements aligned even when nesting components.
387 |
388 | ## Styled Space
389 |
390 | Rebass Grid also works with the optional [Rebass Space][] package.
391 |
392 | ```jsx
393 | import React from 'react'
394 | import { Flex, Box } from '@rebass/grid'
395 | import Space from '@rebass/space'
396 |
397 | const App = () => (
398 |