ColorSpec2025
ColorSpec implementation for the 2025 spec.
Functions
colorControlActivated documented as colorAccent in M3 & GM3. colorAccent documented as colorSecondary in M3 and colorPrimary in GM3. Android used Material's Container as Primary/Secondary/Tertiary at launch. Therefore, this is a duplicated version of Primary Container.
colorControlHighlight documented, in both M3 & GM3: Light mode: #1f000000 dark mode: #33ffffff. These are black and white with some alpha. 1F hex = 31 decimal; 31 / 255 = 12% alpha. 33 hex = 51 decimal; 51 / 255 = 20% alpha. DynamicColors do not support alpha currently, and may not need it for this use case, depending on how MDC resolved alpha for the other cases. Returning black in dark mode, white in light mode.
colorControlNormal documented as textColorSecondary in M3 & GM3. In Material, textColorSecondary points to onSurfaceVariant in the non-disabled state, which is Neutral Variant T30/80 in light/dark.
textColorHintInverse documented, in both M3 & GM3, as N10/N90
textColorPrimaryInverse documented, in both M3 & GM3, documented as N10/N90.
textColorPrimaryInverseDisableOnly documented, in both M3 & GM3, as N10/N90
textColorSecondaryInverse and textColorTertiaryInverse both documented, in both M3 & GM3, as NV30/NV80
textColorSecondaryInverse and textColorTertiaryInverse in disabled state both documented, in both M3 & GM3, as N10/N90