Android
How Android uses the system: every value comes from the Material theme and Dimens.
Rules
Views use the Material theme, never raw values.
| Token | Use | Never |
|---|---|---|
| Color | MaterialTheme.colorScheme.* | A hardcoded color |
| Spacing | Dimens.kt constants (the same 8-point grid as web and iOS) | A raw dp value |
| Type | MaterialTheme.typography.* | A hardcoded sp |
| Shape | MaterialTheme.shapes.*, mapped in AppShape.kt | A raw corner radius |
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