labelTypography method

TextStyle labelTypography(
  1. NTBTextThemeVariant variant,
  2. ShadColorScheme scheme
)

Field-style label text: small is the default (Figma field row). muted keeps mutedForeground; others use scheme.foreground.

Implementation

//   TextStyle labelTypography(
//     NTBTextThemeVariant variant,
//     ShadColorScheme scheme,
//   ) {
//     final base = textStyleFor(variant);
//     if (variant == NTBTextThemeVariant.muted) return base;
//     return base.copyWith(color: scheme.foreground);
//   }
// }

TextStyle labelTypography(
  NTBTextThemeVariant variant,
  ShadColorScheme scheme,
) {
  final base = textStyleFor(variant);

  final packageBoundStyle = base.copyWith(
    fontFamily: NTBDesignFonts.sans,
    package: 'ntb_vistech_widgets',
  );

  if (variant == NTBTextThemeVariant.muted) return packageBoundStyle;
  return packageBoundStyle.copyWith(color: scheme.foreground);
}