
ColorOS-styled UI components calibrated to ColorOS 16 visuals, metrics, motion curves and press feedback; theme controller with Monet dynamic colors, icons, blur and preference modules.
A ColorOS-styled UI library for Compose Multiplatform, based on Miuix.
Components are calibrated against ColorOS 17 (COUI 17) design: colors, metrics, motion curves and press feedback are transcribed from the real system implementation.
This library is experimental. APIs may change without notice.
| Module | Description |
|---|---|
coui-ui |
Core UI component library (automatically includes coui-core) |
coui-preference |
Preference components (SwitchPreference, CheckboxPreference, etc.), depends on coui-ui
|
coui-icons |
Extended icon library, can be used independently or with coui-ui (automatically includes coui-core) |
coui-blur |
Blur effect library, can be used independently |
coui-navigation3-ui |
Navigation3 UI library, can be used independently |
kotlin {
sourceSets {
commonMain.dependencies {
implementation("io.github.suqi8.coui.kmp:coui-ui:2.1.0")
// Optional: Add coui-preference for preference components
implementation("io.github.suqi8.coui.kmp:coui-preference:2.1.0")
// Optional: Add coui-icons for more icons
implementation("io.github.suqi8.coui.kmp:coui-icons:2.1.0")
// Optional: Add coui-blur for blur effects
implementation("io.github.suqi8.coui.kmp:coui-blur:2.1.0")
// Optional: Add coui-navigation3-ui for navigation3 support
implementation("io.github.suqi8.coui.kmp:coui-navigation3-ui:2.1.0")
// Other dependencies...
}
// Other sourceSets...
}
// Other configurations...
}COUITheme(colors = ...), e.g., lightColorScheme() or darkColorScheme().@Composable
fun AppTheme(
content: @Composable () -> Unit
) {
val colors = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme()
return COUITheme(
colors = colors,
content = content
)
}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 COUITheme(
controller = controller,
content = content
)
}COUI ships an agent skill, coui-app (.claude/skills/coui-app), that teaches AI coding
assistants to build screens the way ColorOS 17 does: page scaffold, preference cards, material blur, bilingual strings.
Claude Code: copy the folder into your project (or ~/.claude/skills/ for every project). It loads on its own
when your code uses io.github.suqi8.coui.kmp or you ask for a ColorOS-style screen.
mkdir -p .claude/skills && cp -r <path-to-COUI>/.claude/skills/coui-app .claude/skills/New-Item -ItemType Directory -Force .claude\skills; Copy-Item -Recurse <path-to-COUI>\.claude\skills\coui-app .claude\skills\Cursor / Copilot / Codex and others: copy the same folder anywhere in your project and reference it from the
tool's rules file (.cursor/rules/coui.mdc, .github/copilot-instructions.md, AGENTS.md), e.g.
"When writing UI with COUI, follow .claude/skills/coui-app/SKILL.md and its references/."
More in the Writing with AI guide.
COUI is a fork of Miuix by YuKongA and the compose-miuix-ui contributors, rethemed to the ColorOS 17 design language. Both projects are licensed under Apache-2.0.
A ColorOS-styled UI library for Compose Multiplatform, based on Miuix.
Components are calibrated against ColorOS 17 (COUI 17) design: colors, metrics, motion curves and press feedback are transcribed from the real system implementation.
This library is experimental. APIs may change without notice.
| Module | Description |
|---|---|
coui-ui |
Core UI component library (automatically includes coui-core) |
coui-preference |
Preference components (SwitchPreference, CheckboxPreference, etc.), depends on coui-ui
|
coui-icons |
Extended icon library, can be used independently or with coui-ui (automatically includes coui-core) |
coui-blur |
Blur effect library, can be used independently |
coui-navigation3-ui |
Navigation3 UI library, can be used independently |
kotlin {
sourceSets {
commonMain.dependencies {
implementation("io.github.suqi8.coui.kmp:coui-ui:2.1.0")
// Optional: Add coui-preference for preference components
implementation("io.github.suqi8.coui.kmp:coui-preference:2.1.0")
// Optional: Add coui-icons for more icons
implementation("io.github.suqi8.coui.kmp:coui-icons:2.1.0")
// Optional: Add coui-blur for blur effects
implementation("io.github.suqi8.coui.kmp:coui-blur:2.1.0")
// Optional: Add coui-navigation3-ui for navigation3 support
implementation("io.github.suqi8.coui.kmp:coui-navigation3-ui:2.1.0")
// Other dependencies...
}
// Other sourceSets...
}
// Other configurations...
}COUITheme(colors = ...), e.g., lightColorScheme() or darkColorScheme().@Composable
fun AppTheme(
content: @Composable () -> Unit
) {
val colors = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme()
return COUITheme(
colors = colors,
content = content
)
}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 COUITheme(
controller = controller,
content = content
)
}COUI ships an agent skill, coui-app (.claude/skills/coui-app), that teaches AI coding
assistants to build screens the way ColorOS 17 does: page scaffold, preference cards, material blur, bilingual strings.
Claude Code: copy the folder into your project (or ~/.claude/skills/ for every project). It loads on its own
when your code uses io.github.suqi8.coui.kmp or you ask for a ColorOS-style screen.
mkdir -p .claude/skills && cp -r <path-to-COUI>/.claude/skills/coui-app .claude/skills/New-Item -ItemType Directory -Force .claude\skills; Copy-Item -Recurse <path-to-COUI>\.claude\skills\coui-app .claude\skills\Cursor / Copilot / Codex and others: copy the same folder anywhere in your project and reference it from the
tool's rules file (.cursor/rules/coui.mdc, .github/copilot-instructions.md, AGENTS.md), e.g.
"When writing UI with COUI, follow .claude/skills/coui-app/SKILL.md and its references/."
More in the Writing with AI guide.
COUI is a fork of Miuix by YuKongA and the compose-miuix-ui contributors, rethemed to the ColorOS 17 design language. Both projects are licensed under Apache-2.0.