Skip to content
المشاريع

حول

مكتبة واجهة مستخدم لـ Compose Multiplatform.

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

1,832 نجمة149 التفرعات +12 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+١٢
خلال 7 أيام
+٧٧
خلال 15 يومًا
+١٤٨
خلال شهر
+٢٧٤

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Miuix

A UI library for Compose Multiplatform.

This library is experimental. APIs may change without notice.

Kotlin Compose Multiplatform Maven Central License

Supported Platforms

Android iOS macOS Desktop Web

Demos

Web Other

Modules

Module Description
miuix-ui Core UI component library
miuix-preference Preference components library, depends on miuix-ui
miuix-icons-symbol Built-in variable symbol icon library, can be used independently
miuix-material Render primitives and material definitions
miuix-blur Blur effect library, can be used independently
miuix-squircle Squircle shapes library, can be used independently
miuix-glass Glass surfaces and components library
miuix-nav Navigation library, can be used independently
miuix-window Desktop window & caption bar styling library (Desktop JVM)

Getting Started

kotlin {
    sourceSets {
        commonMain.dependencies {
+           implementation("top.yukonga.miuix.kmp:miuix-ui:<version>")
            // Optional: Add miuix-preference for preference components
            implementation("top.yukonga.miuix.kmp:miuix-preference:<version>")
            // Optional: Add miuix-icons-symbol for the variable Symbol icon set
            implementation("top.yukonga.miuix.kmp:miuix-icons-symbol:<version>")
            // Optional: Add miuix-blur for blur effects
            implementation("top.yukonga.miuix.kmp:miuix-blur:<version>")
            // Optional: Add miuix-squircle for squircle (smooth rounded corner) shapes
            implementation("top.yukonga.miuix.kmp:miuix-squircle:<version>")
            // Optional: Add miuix-glass for the glass surfaces and components
            implementation("top.yukonga.miuix.kmp:miuix-glass:<version>")
            // Optional: Add miuix-nav for navigation
            implementation("top.yukonga.miuix.kmp:miuix-nav:<version>")
            // Other dependencies...
        }
        // Optional: Add miuix-window for desktop window and caption bar styling (Desktop JVM)
        desktopMain.dependencies {
            implementation("top.yukonga.miuix.kmp:miuix-window:<version>")
        }
        // Other sourceSets...
    }
    // Other configurations...
}

Usage

  • Provide a color scheme via MiuixTheme(colors = ...), e.g., lightColorScheme() or darkColorScheme().
@Composable
fun AppTheme(
    content: @Composable () -> Unit
) {
    val colors = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme()
    return MiuixTheme(
        colors = colors,
        content = content
    )
}
  • Use ThemeController to manage modes and enable Monet dynamic colors. Pass keyColor to 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
    )
}

Screenshots

Home (Light)Icons (Light)Colors (Light)Text Styles (Light)Settings (Light)Theme Settings (Light)About (Light)
Home (Dark)Icons (Dark)Colors (Dark)Text Styles (Dark)Settings (Dark)Theme Settings (Dark)About (Dark)

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…