A UI library for Compose Multiplatform.
This library is experimental. APIs may change without notice.
kotlin {
sourceSets {
commonMain.dependencies {
+ implementation("top.yukonga.miuix.kmp:miuix:<version>")
// Other dependencies...
}
// Other sourceSets...
}
// Other configurations...
}- Provide a color scheme via
MiuixTheme(colors = ...), e.g.,lightColorScheme()ordarkColorScheme().
@Composable
fun AppTheme(
content: @Composable () -> Unit
) {
val colors = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme()
return MiuixTheme(
colors = colors,
content = content
)
}- Use
ThemeControllerto manage modes and enable Monet dynamic colors. PasskeyColorto set a custom seed color.
@Composable
fun AppTheme(
content: @Composable () -> Unit
) {
val controller = remember {
ThemeController(
ColorSchemeMode.MonetSystem,
keyColor = Color(0xFF3482FF)
)
}
return MiuixTheme(
controller = controller,
content = content
)
}![]() |
![]() |
![]() |
![]() |
![]() |
![]() |





