How to use the bpk-tokens/tokens/base.common.spacingXxl 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-component-logo / src / BpkStackedLogo.js View on Github external
import React, { PropTypes } from 'react';
import TOKENS from 'bpk-tokens/tokens/base.common';
import StackedLogo from 'bpk-svgs/dist/js/logos/stacked';

const BpkStackedLogo = props => ;

BpkStackedLogo.propTypes = {
  fill: PropTypes.string,
  height: PropTypes.string,
};

BpkStackedLogo.defaultProps = {
  fill: TOKENS.colorGray700,
  height: TOKENS.spacingXxl,
};

export default BpkStackedLogo;
github Skyscanner / backpack / packages / bpk-component-logo / src / BpkTianxunLogo.js View on Github external
import React, { PropTypes } from 'react';
import TOKENS from 'bpk-tokens/tokens/base.common';
import TianxunLogo from 'bpk-svgs/dist/js/logos/tianxun';

const BpkTianxunLogo = props => ;

BpkTianxunLogo.propTypes = {
  fill: PropTypes.string,
  height: PropTypes.string,
};

BpkTianxunLogo.defaultProps = {
  fill: TOKENS.colorGray700,
  height: TOKENS.spacingXxl,
};

export default BpkTianxunLogo;
github Skyscanner / backpack / packages / bpk-component-logo / src / BpkInlineLogo.js View on Github external
import React, { PropTypes } from 'react';
import TOKENS from 'bpk-tokens/tokens/base.common';
import InlineLogo from 'bpk-svgs/dist/js/logos/inline';

const BpkInlineLogo = props => ;

BpkInlineLogo.propTypes = {
  fill: PropTypes.string,
  height: PropTypes.string,
};

BpkInlineLogo.defaultProps = {
  fill: TOKENS.colorGray700,
  height: TOKENS.spacingXxl,
};

export default BpkInlineLogo;