How to use the @times-components/styleguide.fonts.headline function in @times-components/styleguide

To help you get started, we’ve selected a few @times-components/styleguide 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 newsuk / times-components / packages / edition-slices / src / tiles / tile-y / styles / index.js View on Github external
export default breakpoint => ({
  container: {
    paddingHorizontal: spacing(2),
    paddingTop: spacing(2),
    paddingBottom: spacing(4)
  },
  headline: {
    ...globalSpacingStyles.tabletHeadline,
    fontFamily: fonts.headline,
    fontSize: fontSizeResolver[breakpoint],
    lineHeight: fontSizeResolver[breakpoint]
  },
  summary: {
    ...globalSpacingStyles.tabletTeaser
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-b / styles / index.js View on Github external
import {
  fonts,
  spacing,
  editionBreakpoints,
  globalSpacingStyles
} from "@times-components/styleguide";

const sharedStyles = {
  container: {
    flex: 1
  },
  headline: {
    ...globalSpacingStyles.tabletHeadline,
    fontFamily: fonts.headline
  }
};

const smallBreakpointStyles = {
  container: {
    ...sharedStyles.container,
    padding: spacing(2),
    paddingBottom: spacing(4)
  },
  headline: {
    ...sharedStyles.headline,
    fontSize: 25,
    lineHeight: 25,
    marginBottom: spacing(1)
  },
  summary: {
github newsuk / times-components / packages / edition-slices / src / tiles / tile-r / styles / index.js View on Github external
...mediumBreakpointStyles,
  container: {
    flex: 1,
    paddingVertical: spacing(3),
    paddingHorizontal: spacing(4)
  },
  imageContainer: {
    width: "100%",
    marginBottom: spacing(3)
  }
};

const hugeBreakpointStyles = {
  ...wideBreakpointStyles,
  headline: {
    fontFamily: fonts.headline,
    fontSize: 45,
    lineHeight: 45,
    marginBottom: 0
  }
};

const stylesResolver = {
  [editionBreakpoints.medium]: mediumBreakpointStyles,
  [editionBreakpoints.wide]: wideBreakpointStyles,
  [editionBreakpoints.huge]: hugeBreakpointStyles
};

export default breakpoint => stylesResolver[breakpoint];
github newsuk / times-components / packages / edition-slices / src / tiles / tile-o / styles / index.js View on Github external
[editionBreakpoints.wide]: 20,
  [editionBreakpoints.huge]: 22
};

const sharedStyles = {
  container: {
    flex: 1,
    backgroundColor: colours.functional.darkSupplement,
    padding: spacing(2)
  },
  flagColour: {
    color: colours.functional.greyLabel
  },
  headlineStyle: {
    color: colours.functional.white,
    fontFamily: fonts.headline
  },
  summaryContainer: {
    flex: 1
  }
};

const smallBreakpointStyles = breakpoint => ({
  ...sharedStyles,
  container: {
    ...sharedStyles.container,
    paddingHorizontal: 12,
    marginRight: spacing(1)
  },
  headlineStyle: {
    ...sharedStyles.headlineStyle,
    fontSize: fontSizeResolver[breakpoint],
github newsuk / times-components / packages / edition-slices / src / tiles / tile-e / styles / index.js View on Github external
imageContainer: {
    width: "50%"
  },
  summaryContainer: {
    paddingLeft: spacing(2),
    paddingBottom: spacing(1)
  }
};

const mediumBreakpointStyles = {
  container: {
    padding: spacing(2),
    paddingTop: spacing(3)
  },
  headline: {
    fontFamily: fonts.headline,
    fontSize: 20,
    lineHeight: 20,
    marginBottom: 0
  },
  imageContainer: {
    width: "100%",
    marginBottom: spacing(2)
  }
};

const wideBreakpointStyles = {
  ...mediumBreakpointStyles,
  container: {
    flex: 1,
    paddingHorizontal: spacing(2),
    paddingVertical: spacing(3)
github newsuk / times-components / packages / edition-slices / src / tiles / tile-m / styles / index.js View on Github external
color: colours.functional.secondary,
    fontFamily: fonts.bodyRegular,
    fontSize: 14,
    lineHeight: 20,
    textAlign: "center",
    paddingHorizontal: spacing(8)
  }
};

const mediumBreakpointStyles = {
  container: {
    paddingBottom: spacing(6)
  },
  headline: {
    color: colours.functional.brandColour,
    fontFamily: fonts.headline,
    fontSize: 20,
    lineHeight: 20,
    marginTop: spacing(6),
    textAlign: "center"
  },
  strapline: {
    color: colours.functional.primary,
    fontSize: 16,
    lineHeight: 19,
    textAlign: "center",
    paddingBottom: spacing(1)
  }
};

const wideBreakpointStyles = {
  ...mediumBreakpointStyles,
github newsuk / times-components / packages / edition-slices / src / tiles / tile-ae / styles / index.js View on Github external
export default breakpoint => ({
  container: {
    flex: 1,
    paddingHorizontal: spacing(2),
    paddingVertical: spacing(3),
    paddingTop: spacing(3)
  },
  headline: {
    ...globalSpacingStyles.tabletHeadline,
    fontFamily: fonts.headline,
    fontSize: headlineFontResolver[breakpoint],
    lineHeight: headlineFontResolver[breakpoint]
  },
  summary: {
    ...globalSpacingStyles.tabletTeaser
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-p / styles / index.js View on Github external
color: colours.section.comment,
    fontFamily: fonts.supporting,
    fontSize: fontSizes.cardMetaMobile,
    letterSpacing: 0.6,
    lineHeight: 12,
    marginTop: spacing(3),
    textTransform: "uppercase"
  },
  container: {
    alignItems: "center",
    paddingTop: spacing(4),
    paddingBottom: spacing(2)
  },
  headline: {
    color: colours.functional.brandColour,
    fontFamily: fonts.headline,
    fontSize: fontSizes.tileLeadHeadline,
    lineHeight: 35,
    paddingHorizontal: spacing(2),
    textAlign: "center"
  },
  imageContainer: {
    overflow: "hidden",
    width: "30%"
  },
  strapline: {
    fontFamily: fonts.bodyRegular,
    color: colours.functional.secondary,
    fontSize: fontSizes.meta,
    lineHeight: 20,
    paddingHorizontal: spacing(8),
    textAlign: "center"
github newsuk / times-components / packages / edition-slices / src / tiles / tile-as / styles / index.js View on Github external
export default breakpoint => ({
  container: {
    flex: 1,
    paddingVertical: spacing(2),
    paddingHorizontal: spacing(2)
  },
  headline: {
    ...globalSpacingStyles.tabletHeadline,
    fontFamily: fonts.headline,
    fontSize: headlineFontSize[breakpoint],
    lineHeight: headlineFontSize[breakpoint]
  },
  summaryContainer: {
    flex: 1
  },
  imageContainer: {
    marginBottom: spacing(2),
    width: "100%"
  },
  summary: {
    ...globalSpacingStyles.tabletTeaser
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-v / styles / index.js View on Github external
import { fonts, spacing } from "@times-components/styleguide";

const styles = {
  container: {
    paddingHorizontal: spacing(2),
    paddingTop: spacing(2),
    flex: 1
  },
  headline: {
    fontFamily: fonts.headline,
    fontSize: 30,
    lineHeight: 30,
    marginBottom: spacing(2)
  },
  summaryContainer: {
    flex: 1
  },
  imageContainer: {
    marginBottom: spacing(2),
    width: "100%"
  }
};

export default styles;