definitions

Parameters

definitions

The AnsaTypography font definitions. If not provided, the default definitions will be used.

Coloring of the various definitions are handled internally based on size of the definition.

titleLarge = base.titleLarge.copy(
fontSize = 48.sp,
fontWeight = FontWeight.Bold,
color = colors.bold
),
titleMedium = base.titleMedium.copy(
fontSize = 20.sp,
fontWeight = FontWeight.SemiBold,
color = colors.gray
),
titleSmallSemiBold = base.titleSmallSemiBold.copy(
fontSize = 18.sp,
fontWeight = FontWeight.SemiBold,
color = colors.gray
),
titleSmallMedium = base.titleSmallMedium.copy(
fontSize = 18.sp,
fontWeight = FontWeight.Medium,
color = colors.bold
),
bodyBold = base.bodyBold.copy(
fontSize = 16.sp,
fontWeight = FontWeight.Bold,
color = colors.bold
),
bodySemiBold = base.bodySemiBold.copy(
fontSize = 16.sp,
fontWeight = FontWeight.SemiBold,
color = colors.primary
),
bodyMedium = base.bodyMedium.copy(
fontSize = 16.sp,
fontWeight = FontWeight.Medium,
color = colors.bold
),
subhead = base.subhead.copy(
fontSize = 14.sp,
fontWeight = FontWeight.Medium,
color = colors.secondary
),
footnote = base.footnote.copy(
fontSize = 13.sp,
fontWeight = FontWeight.Medium,
color = colors.secondary
),