How to use the @bbc/psammead-styles/font-styles.getSerifMedium function in @bbc/psammead-styles

To help you get started, we’ve selected a few @bbc/psammead-styles 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 bbc / simorgh / src / app / components / OnwardJourneys / index.jsx View on Github external
list-style-type: none;
    margin: 0 ${GEL_SPACING_DBL};
    padding: 0;
  `;
  const Card = styled.li`
    background-color: ${C_WHITE};
    display: inline-block;
    width: calc(20% - 4 * ${GEL_SPACING});
    margin: 0 ${GEL_SPACING} ${GEL_SPACING_DBL} ${GEL_SPACING};
  `;
  const CardLink = styled.a`
    text-decoration: none;
  `;
  const CardHeadline = styled.h4`
    color: ${C_EBON};
    ${getSerifMedium(service)}
    ${getPica(script)}
  `;
  const TopicLink = styled(InlineLink)`
    ${getPica(script)};
    ${getSansRegular(service)}
    color: ${C_EBON};
    margin: ${GEL_SPACING_DBL}
`;
  const OnwardJourneysHeading = styled.h2`
    ${getDoublePica(script)};
    ${getSansRegular(service)};
    color: ${C_EBON};
    margin: 0 ${GEL_SPACING_DBL};
  `;

  return (
github bbc / psammead / packages / components / psammead-bulletin / src / index.jsx View on Github external
  ${({ service }) => service && getSerifMedium(service)}
  ${({ script }) => script && getPica(script)}
github bbc / simorgh / src / app / components / ErrorPage / index.jsx View on Github external
  ${({ service }) => getSerifMedium(service)}
  color: ${C_SHADOW};
github bbc / psammead / packages / components / psammead-headings / src / index.jsx View on Github external
  ${({ service }) => getSerifMedium(service)}
  color: ${C_SHADOW};
github bbc / psammead / packages / components / psammead-useful-links / src / index.jsx View on Github external
  ${({ service }) => service && getSerifMedium(service)};
  color: ${C_EBON};
github bbc / simorgh / src / app / components / MostRead / Item / index.jsx View on Github external
  ${({ service }) => getSerifMedium(service)}
  text-decoration: none;

@bbc/psammead-styles

A collection of string constants for use in CSS, containing non-GEL styling details that are bespoke to specific BBC services and products.

Apache-2.0
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis