threadTypographyShadTextTheme function
ShadTextTheme
threadTypographyShadTextTheme(
- ShadTextTheme base,
- String fontFamily
)
Implementation
ShadTextTheme threadTypographyShadTextTheme(ShadTextTheme base, String fontFamily) {
TextStyle apply(TextStyle style) => _plainTextStyleWithFontFamily(style, fontFamily: fontFamily);
return ShadTextTheme.custom(
canMerge: base.canMerge,
h1Large: apply(base.h1Large),
h1: apply(base.h1),
h2: apply(base.h2),
h3: apply(base.h3),
h4: apply(base.h4),
p: apply(base.p),
blockquote: apply(base.blockquote),
table: apply(base.table),
list: apply(base.list),
lead: apply(base.lead),
large: apply(base.large),
small: apply(base.small),
muted: apply(base.muted),
family: fontFamily,
custom: {for (final entry in base.custom.entries) entry.key: apply(entry.value)},
);
}