DynamicScheme

open class DynamicScheme(val sourceColorHct: Hct, val variant: Variant, val isDark: Boolean, val contrastLevel: Double, val primaryPalette: TonalPalette, val secondaryPalette: TonalPalette, val tertiaryPalette: TonalPalette, val neutralPalette: TonalPalette, val neutralVariantPalette: TonalPalette, val errorPalette: TonalPalette = TonalPalette.fromHueAndChroma(hue = 25.0, chroma = 84.0))

Provides important settings for creating colors dynamically, and 6 color palettes. Requires: 1. A color. (source color) 2. A theme. (Variant) 3. Whether or not its dark mode. 4. Contrast level. (-1 to 1, currently contrast ratio 3.0 and 7.0)

Inheritors

Constructors

Link copied to clipboard
constructor(sourceColorHct: Hct, variant: Variant, isDark: Boolean, contrastLevel: Double, primaryPalette: TonalPalette, secondaryPalette: TonalPalette, tertiaryPalette: TonalPalette, neutralPalette: TonalPalette, neutralVariantPalette: TonalPalette, errorPalette: TonalPalette = TonalPalette.fromHueAndChroma(hue = 25.0, chroma = 84.0))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard