一键导入
android-design-system-m3
Use when creating Material 3 design systems, custom themes, or dynamic color implementations in Android apps with Jetpack Compose.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating Material 3 design systems, custom themes, or dynamic color implementations in Android apps with Jetpack Compose.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Handling Bluetooth Low Energy, flow wrappers, and Android 12+ permissions.
Seamless integration of CameraX with Google ML Kit for vision tasks.
Deep-dive skills for banking and healthcare apps.
Use when integrating Google Gemini Nano via AICore for on-device ML.
Automated UIAutomator tests and Hardware mocking setup.
Expanding KMP shared UI to cover Compose Multiplatform edge-cases.
| name | android-design-system-m3 |
| description | Use when creating Material 3 design systems, custom themes, or dynamic color implementations in Android apps with Jetpack Compose. |
| category | ui-ux |
| risk | low |
| source | community |
| date_added | 2026-03-31 |
| metadata | {"triggers":["@design-system","material-3","custom-theme","dynamic-color","design-tokens"]} |
Advanced strategies for building scalable, cohesive, and professional design systems for modern Android applications using the Material 3 (M3) framework.
DynamicColor for personalized system-wide tinting.color = Color(0xFFAA44CC)color = MaterialTheme.colorScheme.primary@Composable
fun AppTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
dynamicColor: Boolean = true,
content: @Composable () -> Unit
) {
val colorScheme = when {
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}
darkTheme -> DarkColorScheme
else -> LightColorScheme
}
MaterialTheme(colorScheme = colorScheme, typography = Typography, shapes = Shapes, content = content)
When a user asks to "create a new project" or "set up a screen", ALWAYS ensure these three files are explicitly created in the ui/theme package to prevent Theme not found errors:
Theme.kt (containing the main Theme composable)Color.kt (containing hex colors and M3 ColorSchemes)Type.kt (containing Compose Typography)Use CompositionLocal or colorScheme extensions to add extra colors not in M3 (e.g., "SuccessGreen").
com.google.android.material:material to the project.Theme.Material3.DayNight.NoActionBar (or variations) as the base parent for your XML themes.colorPrimary matches your Compose theme.colorScheme.primary.md_sys_color_primary).Surface or MaterialTheme.colorScheme.surfaceColorAtElevation() instead of shadow modifiers for modern translucent effects.@PreviewLightDark: See both light and dark themes at a glance.