TypeSystem

data class TypeSystem(val fontFamily: <Error class: unknown class> = FontFamily.Default, val definitions: AnsaTypography? = null)

The Typography system behind the Ansa components and screens. Updating the fontFamily and/or definitions here will update the entire SDK UI components accordingly.

Parameters

fontFamily

The FontFamily supporting the definitions.

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
),

Constructors

Link copied to clipboard
constructor(fontFamily: <Error class: unknown class> = FontFamily.Default, definitions: AnsaTypography? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val fontFamily: <Error class: unknown class>

Functions

Link copied to clipboard