How to use the bpk-tokens/tokens/base.es6.colors.colorWhite 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-icon / stories.js View on Github external
.add('Align to large button (RTL support)', () => (
    
      Search 
    
  ));
github Skyscanner / backpack / packages / bpk-docs / src / pages / AlignmentPage / AlignmentPage.js View on Github external
import { withLargeButtonAlignment } from 'bpk-component-icon';

const AlignedArrow = withLargeButtonAlignment(LongArrowRightIcon);


  Button Text
   
  

`}
      ,
    ],
    examples: [
      
        Button Text  
        
      ,
    ],
  },
];

const blurb = [
  
    Alignment higher-order-components (HOCs) allow components to be aligned
    vertically within a given space.
  ,
  Installation,
  
    The alignment HOCs are provided in the <code>bpk-component-icon</code>{' '}
    package. See Icons for installation
    instructions.
  ,
github Skyscanner / backpack / packages / bpk-docs / src / pages / ColorsPage / ColorsPage.js View on Github external
{
    id: 'primary',
    title: 'Primary',
    blurb: [
      <div>
        
        
        
      </div>,
    ],
    examples: [],
  },
  {
    id: 'secondary',
    title: 'Secondary',
    blurb: [
      <div>
        
        
        </div>
github Skyscanner / backpack / packages / bpk-docs / src / pages / WebButtonsPage / ButtonsPage.js View on Github external
id: 'with-icons',
    title: 'With icons',
    blurb: [
      
        All buttons support the nesting of icons, which is useful for improving
        affordance.
      ,
    ],
    examples: [
      
         Search
      ,
      <br>,
      <br>,
      
         Search
      ,
    ],
  },
  {
    id: 'icon-only',
    title: 'Icon-only buttons',
    blurb: [
      
        Buttons may contain only an icon (without visible text), which is useful
        for small screen sizes.
      ,
    ],
    examples: [
      <div>
        
          </div>