https://kotlinlang.org logo
Title
c

Colton Idle

05/06/2023, 5:26 PM
For my custom color system I followed jetsnack example and basically have this defined
object MyTheme {
  val colors: MyColors
    @Composable get() = LocalCustomColors.current
}
To access colors I do
MyTheme.colors.whatever
. Is there an example for how to define custom type system in this same way so I can do
MyTheme.typography.h7
?
c

Colton Idle

05/06/2023, 5:37 PM
Well figures I read that page and only seemed to see Color and not Type. 🤦 Thanks @Marcin Wisniowski for the second pair of eyes!