How to use the @kiwicom/orbit-design-tokens.defaultTokens.backgroundBody function in @kiwicom/orbit-design-tokens

To help you get started, we’ve selected a few @kiwicom/orbit-design-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 kiwicom / margarita / apps / mobile / src / screens / TimelineScreen.js View on Github external
import { View } from 'react-native';
import { StyleSheet } from '@kiwicom/universal-components';
import { defaultTokens } from '@kiwicom/orbit-design-tokens';

export default function TimelineScreen() {
  return (
    
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: defaultTokens.backgroundBody,
  },
});
github kiwicom / margarita / packages / components / src / contentContainer / ContentContainer.js View on Github external
) : (
    
  );
}

const styles = StyleSheet.create({
  backgroundColor: {
    backgroundColor: defaultTokens.backgroundBody,
  },
  outerContainer: {
    backgroundColor: defaultTokens.backgroundBody,
    web: {
      alignItems: 'center',
      paddingVertical: parseFloat(defaultTokens.spaceMedium),
    },
    flex: 1,
  },
  innerContainer: {
    width: '100%',
    web: {
      maxWidth: designTokens.widthScreenNormal,
    },
  },
});
ContentContainer.defaultProps = {
  isScroll: true,
};
github kiwicom / margarita / apps / mobile / src / screens / FlightServicesScreen.js View on Github external
import { View } from 'react-native';
import { StyleSheet } from '@kiwicom/universal-components';
import { defaultTokens } from '@kiwicom/orbit-design-tokens';

export default function FlightServicesScreen() {
  return (
    
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: defaultTokens.backgroundBody,
  },
});
github kiwicom / margarita / apps / mobile / src / screens / ShareBookingScreen.js View on Github external
import { View } from 'react-native';
import { StyleSheet } from '@kiwicom/universal-components';
import { defaultTokens } from '@kiwicom/orbit-design-tokens';

export default function ShareBookingScreen() {
  return (
    
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: defaultTokens.backgroundBody,
  },
});
github kiwicom / margarita / packages / components / src / sortTabs / SortTab.js View on Github external
height: containerHeight.web,
    paddingBottom: 3,
  },
  rowContainer: {
    flex: 1,
  },
  row: {
    flexDirection: 'row',
  },
  priceDurationContainerMobile: {
    paddingTop: 0,
    paddingHorizontal: parseInt(defaultTokens.spaceMedium, 10),
  },

  containerActiveWeb: {
    backgroundColor: defaultTokens.backgroundBody,
    borderTopColor: defaultTokens.paletteProductNormal,
  },
  containerActiveMobile: {
    backgroundColor: defaultTokens.paletteWhite,
    borderStartWidth: 4,
    borderStartColor: defaultTokens.paletteProductNormal,
  },
  containerHovered: {
    color: defaultTokens.paletteProductNormal,
  },
  priceDurationContainerWeb: {
    paddingTop: parseInt(defaultTokens.paddingTag, 10),
    flex: 1,
    flexDirection: 'row',
  },
  durationLabel: {
github kiwicom / margarita / apps / mobile / src / screens / ManageHelpScreen.js View on Github external
import { View } from 'react-native';
import { StyleSheet } from '@kiwicom/universal-components';
import { defaultTokens } from '@kiwicom/orbit-design-tokens';

export default function ManageHelpScreen() {
  return (
    
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: defaultTokens.backgroundBody,
  },
});
github kiwicom / margarita / packages / components / src / contentContainer / ContentContainer.js View on Github external
export default function ContentContainer({ children, style, isScroll }: Props) {
  return isScroll ? (
    
      
    
  ) : (
    
  );
}

const styles = StyleSheet.create({
  backgroundColor: {
    backgroundColor: defaultTokens.backgroundBody,
  },
  outerContainer: {
    backgroundColor: defaultTokens.backgroundBody,
    web: {
      alignItems: 'center',
      paddingVertical: parseFloat(defaultTokens.spaceMedium),
    },
    flex: 1,
  },
  innerContainer: {
    width: '100%',
    web: {
      maxWidth: designTokens.widthScreenNormal,
    },
  },
});
github kiwicom / margarita / apps / mobile / src / screens / ManageOtherScreen.js View on Github external
import { View } from 'react-native';
import { StyleSheet } from '@kiwicom/universal-components';
import { defaultTokens } from '@kiwicom/orbit-design-tokens';

export default function ManageOtherScreen() {
  return (
    
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: defaultTokens.backgroundBody,
  },
});
github kiwicom / margarita / apps / mobile / src / screens / PassengerDetailScreen.js View on Github external
import { View } from 'react-native';
import { StyleSheet } from '@kiwicom/universal-components';
import { defaultTokens } from '@kiwicom/orbit-design-tokens';

export default function PassengerDetailScreen() {
  return (
    
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: defaultTokens.backgroundBody,
  },
});
github kiwicom / margarita / apps / core / scenes / results / ResultsList.js View on Github external
export default createFragmentContainer(ResultsList, {
  data: graphql`
    fragment ResultsList_data on ItineraryInterfaceConnection {
      edges {
        node {
          id
          ...ItineraryCard_data
        }
      }
    }
  `,
});

const styles = StyleSheet.create({
  container: {
    backgroundColor: defaultTokens.backgroundBody,
    paddingTop: parseInt(defaultTokens.spaceXSmall, 10),
    web: {
      paddingTop: parseInt(defaultTokens.spaceMedium, 10),
      paddingHorizontal: parseInt(defaultTokens.spaceSmall, 10),
    },
  },
});