The goal is to modernize the Badge component to the latest Material Design specs by reusing theme tokens (shape, typography, colors etc).
Current state
Badge
MD3 spec: Badges
Specs link: https://m3.material.io/components/badges/specs
Color tokens
- Background
error ✅
- Label text
onError ✅
Spacing / sizing
Behavior
The goal is to modernize the Badge component to the latest Material Design specs by reusing theme tokens (shape, typography, colors etc).
Current state
Badge
MD3 spec: Badges
Specs link: https://m3.material.io/components/badges/specs
Color tokens
error✅onError✅Spacing / sizing
sizeis 20dp. MD3 defines small badge at 6dp (no label) and large badge at 16dp (with label)paddingHorizontal: 3. Spec requires 4dp between badge edge and textfontSize = size * 0.5yields 8sp at 16dp. Spec requires 11sp for large badge label textBehavior