Skip to content

Instantly share code, notes, and snippets.

@gustavkarlsson
Last active March 27, 2021 09:28
Show Gist options
  • Save gustavkarlsson/af7deeb45b3aed0faae181157d4fbd04 to your computer and use it in GitHub Desktop.
Save gustavkarlsson/af7deeb45b3aed0faae181157d4fbd04 to your computer and use it in GitHub Desktop.
data class MyColors(
val material: Colors,
val warning: Color,
val onWarning: Color,
) {
val primary: Color get() = material.primary
val primaryVariant: Color get() = material.primaryVariant
val secondary: Color get() = material.secondary
val secondaryVariant: Color get() = material.secondaryVariant
val background: Color get() = material.background
val surface: Color get() = material.surface
val error: Color get() = material.error
val onPrimary: Color get() = material.onPrimary
val onSecondary: Color get() = material.onSecondary
val onBackground: Color get() = material.onBackground
val onSurface: Color get() = material.onSurface
val onError: Color get() = material.onError
val isLight: Boolean get() = material.isLight
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment