MaterialKolorTokens
The property and tokens an Unstyled theme uses to carry a MaterialKolor scheme.
Every token is named after the MaterialKolors role it carries, so reading Theme[MaterialKolorTokens.colors][MaterialKolorTokens.primary] gives you the same color MaterialKolors.primary returns for the scheme the theme was built from.
Nothing here is required. An application that prefers its own vocabulary declares its own property and tokens and maps the roles onto them.
properties[appColors] = remember(scheme) {
with(MaterialKolors(scheme)) {
mapOf(accent to primary(), onAccent to onPrimary())
}
}Properties
The token for the MaterialKolors.background role.
The property that holds the role colors, filled with rememberDynamicColors or toThemeValues.
The token for the MaterialKolors.controlActivated role.
The token for the MaterialKolors.controlHighlight role.
The token for the MaterialKolors.controlNormal role.
The token for the MaterialKolors.error role.
The token for the MaterialKolors.errorContainer role.
The token for the MaterialKolors.errorPaletteKeyColor role.
The token for the MaterialKolors.inverseOnSurface role.
The token for the MaterialKolors.inversePrimary role.
The token for the MaterialKolors.inverseSurface role.
The token for the MaterialKolors.neutralPaletteKeyColor role.
The token for the MaterialKolors.neutralVariantPaletteKeyColor role.
The token for the MaterialKolors.onBackground role.
The token for the MaterialKolors.onError role.
The token for the MaterialKolors.onErrorContainer role.
The token for the MaterialKolors.onPrimary role.
The token for the MaterialKolors.onPrimaryContainer role.
The token for the MaterialKolors.onPrimaryFixed role.
The token for the MaterialKolors.onPrimaryFixedVariant role.
The token for the MaterialKolors.onSecondary role.
The token for the MaterialKolors.onSecondaryContainer role.
The token for the MaterialKolors.onSecondaryFixed role.
The token for the MaterialKolors.onSecondaryFixedVariant role.
The token for the MaterialKolors.onSurface role.
The token for the MaterialKolors.onSurfaceVariant role.
The token for the MaterialKolors.onTertiary role.
The token for the MaterialKolors.onTertiaryContainer role.
The token for the MaterialKolors.onTertiaryFixed role.
The token for the MaterialKolors.onTertiaryFixedVariant role.
The token for the MaterialKolors.outline role.
The token for the MaterialKolors.outlineVariant role.
The token for the MaterialKolors.primary role.
The token for the MaterialKolors.primaryContainer role.
The token for the MaterialKolors.primaryFixed role.
The token for the MaterialKolors.primaryFixedDim role.
The token for the MaterialKolors.primaryPaletteKeyColor role.
The token for the MaterialKolors.scrim role.
The token for the MaterialKolors.secondary role.
The token for the MaterialKolors.secondaryContainer role.
The token for the MaterialKolors.secondaryFixed role.
The token for the MaterialKolors.secondaryFixedDim role.
The token for the MaterialKolors.secondaryPaletteKeyColor role.
The token for the MaterialKolors.shadow role.
The token for the MaterialKolors.surface role.
The token for the MaterialKolors.surfaceBright role.
The token for the MaterialKolors.surfaceContainer role.
The token for the MaterialKolors.surfaceContainerHigh role.
The token for the MaterialKolors.surfaceContainerHighest role.
The token for the MaterialKolors.surfaceContainerLow role.
The token for the MaterialKolors.surfaceContainerLowest role.
The token for the MaterialKolors.surfaceDim role.
The token for the MaterialKolors.surfaceTint role.
The token for the MaterialKolors.surfaceVariant role.
The token for the MaterialKolors.tertiary role.
The token for the MaterialKolors.tertiaryContainer role.
The token for the MaterialKolors.tertiaryFixed role.
The token for the MaterialKolors.tertiaryFixedDim role.
The token for the MaterialKolors.tertiaryPaletteKeyColor role.
The token for the MaterialKolors.textHintInverse role.
The token for the MaterialKolors.textPrimaryInverse role.
The token for the MaterialKolors.textPrimaryInverseDisableOnly role.
The token for the MaterialKolors.textSecondaryAndTertiaryInverse role.
The token for the MaterialKolors.textSecondaryAndTertiaryInverseDisabled role.