How to use the kitsu/constants/colors.white function in kitsu

To help you get started, we’ve selected a few kitsu 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 hummingbird-me / kitsu-mobile / src / components / MediaUploader / MediaFilter.js View on Github external
);
  }
}

const styles = StyleSheet.create({
  wrapper: {
    justifyContent: 'center',
    width: '120%', // We need to overflow our parent, as we're actually wider than we technically should be.
    height: 45,
  },
  filterContext: {
    color: colors.white,
    fontFamily: 'OpenSans',
    fontWeight: '800',
    fontSize: 13,
    textAlign: 'center',
  },
  instructions: {
    color: colors.lightGrey,
    fontFamily: 'OpenSans',
    fontSize: 11,
    fontWeight: '600',
    textAlign: 'center',
  },
});
github hummingbird-me / kitsu-mobile / src / screens / Profiles / UserLibrary / components / UserLibraryEditScreen / styles.js View on Github external
import { StyleSheet } from 'react-native';
import * as colors from 'kitsu/constants/colors';
import { flattenCommon } from 'kitsu/common/styles';

export const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: colors.white,
  },
  loadingContainer: {
    position: 'absolute',
    top: 0,
    left: 0,
    bottom: 0,
    right: 0,
    backgroundColor: 'rgba(0,0,0,0.7)',
    alignItems: 'center',
    justifyContent: 'center',
    zIndex: 666,
  },
  error: {
    backgroundColor: colors.red,
    padding: 6,
  },
github hummingbird-me / kitsu-mobile / src / common / styles / index.js View on Github external
text: {
    fontFamily: 'OpenSans',
    fontSize: 12,
    fontWeight: '600',
  },
  textSmall: {
    fontSize: 10,
  },
  textHeavy: {
    fontWeight: '800',
  },
  transparent: {
    backgroundColor: 'transparent',
  },
  colorWhite: {
    color: colors.white,
  },
  colorActiveRed: {
    color: colors.activeRed,
  },
  colorLightGrey: {
    color: colors.lightGrey,
  },
});

export const flattenCommon = (...styles) => {
  const includedStyles = styles.map(style => commonStyles[style]);
  return StyleSheet.flatten(includedStyles);
};
github hummingbird-me / kitsu-mobile / src / screens / QuickUpdateScreen / QuickUpdateCard / styles.js View on Github external
posterImage: {
    flexGrow: 1,
    borderRadius: 10,
    justifyContent: 'flex-end',
    padding: 4,
  },
  posterImageGradient: {
    position: 'absolute',
    top: 0,
    bottom: 0,
    left: 0,
    right: 0,
  },
  currentEpisodeText: {
    backgroundColor: 'transparent',
    color: colors.white,
    fontFamily: 'OpenSans',
    fontSize: 12,
  },
  totalEpisodesText: {
    backgroundColor: 'transparent',
    color: '#999999',
    fontFamily: 'OpenSans',
    fontSize: 12,
    flex: 1,
  },
  episodeName: {
    backgroundColor: 'transparent',
    color: colors.white,
    fontFamily: 'OpenSans',
    fontWeight: '700',
    fontSize: 16,
github hummingbird-me / kitsu-mobile / src / screens / Onboarding / Aozora / styles.js View on Github external
height: 40,
    borderRadius: 20,
    resizeMode: 'contain',
  },
  brandImage: {
    width: 32,
    height: 32,
    borderRadius: 16,
    resizeMode: 'contain',
  },
  textWrapper: {
    marginHorizontal: 8,
    flex: 1,
  },
  libraryCount: {
    color: colors.white,
    fontFamily: 'OpenSans',
    fontWeight: '200',
    fontSize: 11,
  },
  ps: {
    marginVertical: 16,
    color: colors.white,
    fontFamily: 'OpenSans',
    textAlign: 'center',
    fontSize: 11,
  },
  iceBackground: {
    width: Dimensions.get('window').width,
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
github hummingbird-me / kitsu-mobile / src / screens / Notifications / NotificationOverlay / components / NotificationPopover / styles.js View on Github external
height: 80 + (isX ? paddingX : 0),
    flexDirection: 'row',
    alignItems: 'center',
    backgroundColor: 'rgba(44, 34, 43, 0.95)',
    borderBottomWidth: 1,
    borderBottomColor: 'rgb(46, 34, 45)',
  },
  text: {
    color: colors.offWhite,
    fontWeight: '700',
    fontFamily: 'OpenSans',
    fontSize: 12,
    margin: 10,
  },
  userAvatar: { width: 40, height: 40, borderRadius: 20 },
  activityText: { color: colors.white, fontFamily: 'OpenSans', fontSize: 12 },
  activityTextHighlight: { fontWeight: 'bold', color: colors.tabRed },
});
github hummingbird-me / kitsu-mobile / src / screens / Feed / components / PostCreator / components / EmbedModal / styles.js View on Github external
itemUrl__selected: {
    color: colors.white,
  },
  checkmark: {
    width: 20,
    height: 20,
    borderRadius: 10,
    borderWidth: StyleSheet.hairlineWidth,
    borderColor: colors.darkGrey,
    alignItems: 'center',
    justifyContent: 'center',
    marginLeft: 8,
  },
  checkmark__selected: {
    backgroundColor: colors.green,
    borderColor: colors.white,
  },
  checkmarkIcon: {
    fontSize: 24,
    backgroundColor: 'transparent',
    paddingTop: Platform.select({ ios: 4, android: 0 }),
  },
});
github hummingbird-me / kitsu-mobile / src / screens / Onboarding / common / styles.js View on Github external
rowRating: {
    paddingHorizontal: 14,
    minHeight: 58,
    borderRadius: 8,
  },
  text: {
    color: colors.white,
    fontFamily: 'OpenSans',
    fontWeight: '600',
  },
  textSelected: {
    color: colors.darkPurple,
  },
  tutorialText: {
    marginVertical: 16,
    color: colors.white,
    fontFamily: 'OpenSans',
    textAlign: 'center',
    fontWeight: '600',
    fontSize: 16,
  },
  button: {
    marginHorizontal: 0,
  },
  buttonSecondary: {
    backgroundColor: colors.transparent,
    borderWidth: StyleSheet.hairlineWidth,
    borderColor: colors.lightGrey,
  },
  buttonTitleStyle: {
    fontWeight: '600',
  },
github hummingbird-me / kitsu-mobile / src / screens / QuickUpdateScreen / QuickUpdateCard / styles.js View on Github external
totalEpisodesText: {
    backgroundColor: 'transparent',
    color: '#999999',
    fontFamily: 'OpenSans',
    fontSize: 12,
    flex: 1,
  },
  episodeName: {
    backgroundColor: 'transparent',
    color: colors.white,
    fontFamily: 'OpenSans',
    fontWeight: '700',
    fontSize: 16,
  },
  cardWrapper: {
    backgroundColor: colors.white,
    top: 80,
    width: Dimensions.get('window').width * 0.85,
    height: 198,
    borderRadius: 10,
    zIndex: 3,
  },
  cardHeaderWrapper: { flex: 1, justifyContent: 'flex-end' },
  cardHeaderArea: {
    backgroundColor: 'rgb(250, 250, 250)',
    borderBottomWidth: 1,
    borderColor: 'rgb(236, 236, 236)',
    padding: 8,
  },
  episodeRow: {
    justifyContent: 'center',
    alignItems: 'center',