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

Link copied to clipboard
val all: List<ThemeToken<Color>>
Link copied to clipboard
val background: ThemeToken<Color>

The token for the MaterialKolors.background role.

Link copied to clipboard
val colors: ThemeProperty<Color>

The property that holds the role colors, filled with rememberDynamicColors or toThemeValues.

Link copied to clipboard
val controlActivated: ThemeToken<Color>

The token for the MaterialKolors.controlActivated role.

Link copied to clipboard
val controlHighlight: ThemeToken<Color>

The token for the MaterialKolors.controlHighlight role.

Link copied to clipboard
val controlNormal: ThemeToken<Color>

The token for the MaterialKolors.controlNormal role.

Link copied to clipboard
val error: ThemeToken<Color>

The token for the MaterialKolors.error role.

Link copied to clipboard
val errorContainer: ThemeToken<Color>

The token for the MaterialKolors.errorContainer role.

Link copied to clipboard
val errorPaletteKeyColor: ThemeToken<Color>

The token for the MaterialKolors.errorPaletteKeyColor role.

Link copied to clipboard
val inverseOnSurface: ThemeToken<Color>

The token for the MaterialKolors.inverseOnSurface role.

Link copied to clipboard
val inversePrimary: ThemeToken<Color>

The token for the MaterialKolors.inversePrimary role.

Link copied to clipboard
val inverseSurface: ThemeToken<Color>

The token for the MaterialKolors.inverseSurface role.

Link copied to clipboard
Link copied to clipboard
val onBackground: ThemeToken<Color>

The token for the MaterialKolors.onBackground role.

Link copied to clipboard
val onError: ThemeToken<Color>

The token for the MaterialKolors.onError role.

Link copied to clipboard
val onErrorContainer: ThemeToken<Color>

The token for the MaterialKolors.onErrorContainer role.

Link copied to clipboard
val onPrimary: ThemeToken<Color>

The token for the MaterialKolors.onPrimary role.

Link copied to clipboard
val onPrimaryContainer: ThemeToken<Color>

The token for the MaterialKolors.onPrimaryContainer role.

Link copied to clipboard
val onPrimaryFixed: ThemeToken<Color>

The token for the MaterialKolors.onPrimaryFixed role.

Link copied to clipboard
val onPrimaryFixedVariant: ThemeToken<Color>

The token for the MaterialKolors.onPrimaryFixedVariant role.

Link copied to clipboard
val onSecondary: ThemeToken<Color>

The token for the MaterialKolors.onSecondary role.

Link copied to clipboard
val onSecondaryContainer: ThemeToken<Color>

The token for the MaterialKolors.onSecondaryContainer role.

Link copied to clipboard
val onSecondaryFixed: ThemeToken<Color>

The token for the MaterialKolors.onSecondaryFixed role.

Link copied to clipboard
Link copied to clipboard
val onSurface: ThemeToken<Color>

The token for the MaterialKolors.onSurface role.

Link copied to clipboard
val onSurfaceVariant: ThemeToken<Color>

The token for the MaterialKolors.onSurfaceVariant role.

Link copied to clipboard
val onTertiary: ThemeToken<Color>

The token for the MaterialKolors.onTertiary role.

Link copied to clipboard
val onTertiaryContainer: ThemeToken<Color>

The token for the MaterialKolors.onTertiaryContainer role.

Link copied to clipboard
val onTertiaryFixed: ThemeToken<Color>

The token for the MaterialKolors.onTertiaryFixed role.

Link copied to clipboard
Link copied to clipboard
val outline: ThemeToken<Color>

The token for the MaterialKolors.outline role.

Link copied to clipboard
val outlineVariant: ThemeToken<Color>

The token for the MaterialKolors.outlineVariant role.

Link copied to clipboard
val primary: ThemeToken<Color>

The token for the MaterialKolors.primary role.

Link copied to clipboard
val primaryContainer: ThemeToken<Color>

The token for the MaterialKolors.primaryContainer role.

Link copied to clipboard
val primaryFixed: ThemeToken<Color>

The token for the MaterialKolors.primaryFixed role.

Link copied to clipboard
val primaryFixedDim: ThemeToken<Color>

The token for the MaterialKolors.primaryFixedDim role.

Link copied to clipboard
Link copied to clipboard
val scrim: ThemeToken<Color>

The token for the MaterialKolors.scrim role.

Link copied to clipboard
val secondary: ThemeToken<Color>

The token for the MaterialKolors.secondary role.

Link copied to clipboard
val secondaryContainer: ThemeToken<Color>

The token for the MaterialKolors.secondaryContainer role.

Link copied to clipboard
val secondaryFixed: ThemeToken<Color>

The token for the MaterialKolors.secondaryFixed role.

Link copied to clipboard
val secondaryFixedDim: ThemeToken<Color>

The token for the MaterialKolors.secondaryFixedDim role.

Link copied to clipboard
Link copied to clipboard
val shadow: ThemeToken<Color>

The token for the MaterialKolors.shadow role.

Link copied to clipboard
val surface: ThemeToken<Color>

The token for the MaterialKolors.surface role.

Link copied to clipboard
val surfaceBright: ThemeToken<Color>

The token for the MaterialKolors.surfaceBright role.

Link copied to clipboard
val surfaceContainer: ThemeToken<Color>

The token for the MaterialKolors.surfaceContainer role.

Link copied to clipboard
val surfaceContainerHigh: ThemeToken<Color>

The token for the MaterialKolors.surfaceContainerHigh role.

Link copied to clipboard
Link copied to clipboard
val surfaceContainerLow: ThemeToken<Color>

The token for the MaterialKolors.surfaceContainerLow role.

Link copied to clipboard
Link copied to clipboard
val surfaceDim: ThemeToken<Color>

The token for the MaterialKolors.surfaceDim role.

Link copied to clipboard
val surfaceTint: ThemeToken<Color>

The token for the MaterialKolors.surfaceTint role.

Link copied to clipboard
val surfaceVariant: ThemeToken<Color>

The token for the MaterialKolors.surfaceVariant role.

Link copied to clipboard
val tertiary: ThemeToken<Color>

The token for the MaterialKolors.tertiary role.

Link copied to clipboard
val tertiaryContainer: ThemeToken<Color>

The token for the MaterialKolors.tertiaryContainer role.

Link copied to clipboard
val tertiaryFixed: ThemeToken<Color>

The token for the MaterialKolors.tertiaryFixed role.

Link copied to clipboard
val tertiaryFixedDim: ThemeToken<Color>

The token for the MaterialKolors.tertiaryFixedDim role.

Link copied to clipboard
Link copied to clipboard
val textHintInverse: ThemeToken<Color>

The token for the MaterialKolors.textHintInverse role.

Link copied to clipboard
val textPrimaryInverse: ThemeToken<Color>

The token for the MaterialKolors.textPrimaryInverse role.