This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val Shapes = Shapes( | |
small = RoundedCornerShape(percent = 50), | |
medium = RoundedCornerShape(0f), | |
large = CutCornerShape( | |
topStart = 16.dp, | |
topEnd = 0.dp, | |
bottomEnd = 0.dp, | |
bottomStart = 16.dp | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Text( | |
text = "This is merge style text", | |
color = MaterialTheme.colors.primary, | |
style = MaterialTheme.typography.subtitle1.merge( | |
TextStyle( | |
fontFamily = FontFamily( | |
Font(resId = R.font.poppins_semi_bold) | |
) | |
) | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun ComposeSeriesTheme( | |
darkTheme: Boolean = isSystemInDarkTheme(), | |
content: @Composable() () -> Unit | |
) { | |
val colors = if (darkTheme) { | |
DarkColorPalette | |
} else { | |
LightColorPalette | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val Typography = Typography( | |
h3 = TextStyle( | |
fontFamily = Poppins, | |
fontWeight = FontWeight.W600, | |
fontSize = 32.sp | |
), | |
h4 = TextStyle( | |
fontFamily = Poppins, | |
fontWeight = FontWeight.W600, | |
fontSize = 30.sp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val Poppins = FontFamily( | |
Font(R.font.poppins_regular, FontWeight.Normal), | |
Font(R.font.poppins_medium, FontWeight.W500), | |
Font(R.font.poppins_semi_bold, FontWeight.W600) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Text( | |
text = "Hello $name!", | |
style = MaterialTheme.typography.h5, | |
color = MaterialTheme.colors.secondary | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val DarkColorPalette = darkColors( | |
primary = DarkBlue, | |
primaryVariant = DarkViolet, | |
secondary = DarkViolet | |
) | |
private val LightColorPalette = lightColors( | |
primary = Orange, | |
primaryVariant = GrayishViolet, | |
secondary = DarkViolet, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val DarkBlue = Color(0xFF3C5186) | |
val DarkViolet = Color(0xFF9B72AA) | |
val GrayishViolet = Color(0xFFC6B4CE) | |
val Orange = Color(0xFFFFF5DE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun lightColors( | |
primary: Color = Color(0xFF6200EE), | |
primaryVariant: Color = Color(0xFF3700B3), | |
secondary: Color = Color(0xFF03DAC6), | |
secondaryVariant: Color = Color(0xFF018786), | |
background: Color = Color.White, | |
surface: Color = Color.White, | |
error: Color = Color(0xFFB00020), | |
onPrimary: Color = Color.White, | |
onSecondary: Color = Color.Black, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun Greeting(name: String) { | |
Text(text = "Hello $name!") | |
} |