No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Space Tokens

Intended for use with margin, padding, grid gaps, positioning and other layout-related CSS properties. A space scale can be defined as either a plain object or an array, but by convention an array is preferred. This is an intentional constraint that makes it difficult to add one-off or in-between sizes that could lead to unwanted and rippling affects to layout.

Theme Specification - space

0 (0px)

1 (4px)

2 (8px)

3 (16px)

4 (32px)

5 (64px)

6 (128px)

7 (256px)

8 (512px)

0 (0px)

1 (4px)

2 (8px)

3 (16px)

4 (32px)

5 (64px)

6 (128px)

7 (256px)

8 (512px)

Size Tokens

Intended for use with layout-related CSS properties such as width and height. A size scale can be defined as either a plain object or an array, but by convention an array is preferred. This is an intentional constraint that makes it difficult to add one-off or in-between sizes that could lead to unwanted and rippling affects to layout.

Theme Specification - sizes

0 (8px)

1 (16px)

2 (32px)

3 (64px)

4 (128px)

5 (256px)

6 (512px)

7 (768px)

8 (1024px)

9 (1536px)

0 (8px)

1 (16px)

2 (32px)

3 (64px)

4 (128px)

5 (256px)

6 (512px)

7 (768px)

8 (1024px)

9 (1536px)

Breakpoints

Breakpoints are CSS lengths intended for use in media queries. In Styled System the breakpoints scale is used to create mobile-first responsive media queries based on array values.

Theme Specification - breakpoints

Small Breakpoint

< 40em

Medium Breakpoint

40em - 56em

Large Breakpoint

56em - 64em

Extra Large Breakpoint

64em+

Small Breakpoint

< 40em

Medium Breakpoint

40em - 56em

Large Breakpoint

56em - 64em

Extra Large Breakpoint

64em+

For example, using a margin value of [ 2, 3, 4 ] creates styles with multiple mobile-first min-width media queries.

{
   margin: '8px',
   '@media screen and (min-width: 40em)': {
     margin: '16px',
   },
   '@media screen and (min-width: 56em)': {
     margin: '32px',
   },
 }