How to use the bpk-tokens/tokens/base.es6.spacingSm function in bpk-tokens

To help you get started, we’ve selected a few bpk-tokens examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Skyscanner / backpack / packages / bpk-docs / src / pages / WebImagesPage / WebImagesPage.js View on Github external
(min-width: ${BREAKPOINTS.breakpointTablet}) calc(100vw - 18rem),
          calc(100vw - 4.5rem)`}
      />,
    ],
  },
  {
    id: 'background-image',
    title: 'As a background image',
    blurb:
      'Use the background image component when you want the image to be the background of an element, with inner content.',
    examples: [
      
        <div style="{{">
          
            I'm text overlaid on an image!
          
        </div>
      ,
    ],
  },
];

const WebImagesPage = ({ ...rest }) =&gt; (
github Skyscanner / backpack / packages / bpk-docs / src / pages / WebImagesPage / WebImagesPage.js View on Github external
calc(100vw - 4.5rem)`}
      /&gt;,
    ],
  },
  {
    id: 'background-image',
    title: 'As a background image',
    blurb:
      'Use the background image component when you want the image to be the background of an element, with inner content.',
    examples: [
      
        <div style="{{">
          
            I'm text overlaid on an image!
          
        </div>
      ,
    ],
  },
];

const WebImagesPage = ({ ...rest }) =&gt; (