Skip to content

Instantly share code, notes, and snippets.

@harmittaa
Last active March 12, 2025 19:54
Show Gist options
  • Save harmittaa/507079cbbf2b63d4a02316509512522f to your computer and use it in GitHub Desktop.
Save harmittaa/507079cbbf2b63d4a02316509512522f to your computer and use it in GitHub Desktop.
AppTheme
@Composable
fun AppTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
content: @Composable() () -> Unit
) {
val colorScheme = when {
darkTheme -> darkScheme
else -> lightScheme
}
MaterialTheme(
colorScheme = colorScheme,
typography = AppTypography,
content = content
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment