How do I define my textstyle to have custom color ...
# compose
v
How do I define my textstyle to have custom color pulled from the material theme? What I have below returns an error because
@Composable invocations can only happen from the context of a @Composable function
Copy code
val Typography = Typography(
    h1 = TextStyle(
        fontFamily = myFont,
        fontSize = 50.sp,
        color = MaterialTheme.colors.primary,
    )