Package-level declarations

Types

Link copied to clipboard

The property and tokens an Unstyled theme uses to carry a MaterialKolor scheme.

Functions

Link copied to clipboard
fun rememberDynamicColors(seedColor: Color, isDark: Boolean, primary: Color? = null, secondary: Color? = null, tertiary: Color? = null, neutral: Color? = null, neutralVariant: Color? = null, error: Color? = null, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, specVersion: ColorSpec.SpecVersion = ColorSpec.SpecVersion.Default, platform: DynamicScheme.Platform = DynamicScheme.Platform.Default): Map<ThemeToken<Color>, Color>

Generates one scheme from seedColor and remembers every MaterialKolorTokens token paired with its color.

Link copied to clipboard
fun rememberDynamicLightDarkColors(seedColor: Color, primary: Color? = null, secondary: Color? = null, tertiary: Color? = null, neutral: Color? = null, neutralVariant: Color? = null, error: Color? = null, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, specVersion: ColorSpec.SpecVersion = ColorSpec.SpecVersion.Default, platform: DynamicScheme.Platform = DynamicScheme.Platform.Default): Pair<Map<ThemeToken<Color>, Color>, Map<ThemeToken<Color>, Color>>

Generates a light and a dark scheme from seedColor and remembers the token values of each.

Link copied to clipboard

Every MaterialKolorTokens token paired with the color these roles give it.

fun DynamicScheme.toThemeValues(): Map<ThemeToken<Color>, Color>

Every MaterialKolorTokens token paired with the color this scheme gives it.