copyWith method

NomoTypographyTheme copyWith({
  1. NomoColors? colors,
  2. NomoSizes? sizes,
})

Implementation

NomoTypographyTheme copyWith({
  NomoColors? colors,
  NomoSizes? sizes,
}) {
  return NomoTypographyTheme(
    b1: b1.copyWith(
      color: colors?.foreground1,
      fontSize: sizes?.fontSizeB1,
    ),
    b2: b2.copyWith(
      color: colors?.foreground2,
      fontSize: sizes?.fontSizeB2,
    ),
    b3: b3.copyWith(
      color: colors?.foreground3,
      fontSize: sizes?.fontSizeB3,
    ),
    h1: h1.copyWith(
      color: colors?.foreground1,
      fontSize: sizes?.fontSizeH1,
    ),
    h2: h2.copyWith(
      color: colors?.foreground1,
      fontSize: sizes?.fontSizeH2,
    ),
    h3: h3.copyWith(
      color: colors?.foreground1,
      fontSize: sizes?.fontSizeH3,
    ),
  );
}