Android
Generated from DESIGN_SYSTEM.md
Rules
Token consumption:
- Colors:
MaterialTheme.colorScheme.*โ never hardcoded values - Spacing:
Dimens.ktconstants (same 8pt grid values as web/iOS) - Typography:
MaterialTheme.typography.*โ never hardcodedsp - Shape:
MaterialTheme.shapes.*maps toAppShape.kt
Active nav state:
kotlin // NavigationDrawerItem / NavigationBarItem active state colors = NavigationDrawerItemDefaults.colors( selectedContainerColor = MaterialTheme.colorScheme.primaryContainer, selectedIconColor = MaterialTheme.colorScheme.onPrimaryContainer, selectedTextColor = MaterialTheme.colorScheme.onPrimaryContainer, )
Live specimens
MaterialTheme.colorScheme- Color
Dimens.kt- Spacing
MaterialTheme.shapes โ AppShape.kt- Corner radius
MaterialTheme.typography- Typography
Card (elevation 0.dp)- Flat card
Switch- Switch
NavigationDrawerItem ยท primaryContainer- Active navigation item
AlertDialog- Destructive confirm
ModalBottomSheet- Task sheet
ShimmerEffect- Loading skeleton