Package-level declarations

Types

Link copied to clipboard
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)

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)

Link copied to clipboard
class SchemeContent(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A scheme that places the source color in Scheme.primaryContainer.

Link copied to clipboard
class SchemeExpressive(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A playful theme - the source color's hue does not appear in the theme.

Link copied to clipboard
class SchemeFidelity(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A scheme that places the source color in Scheme.primaryContainer.

Link copied to clipboard
class SchemeFruitSalad(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A playful theme - the source color's hue does not appear in the theme.

Link copied to clipboard
class SchemeMonochrome(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A monochrome theme, colors are purely black / white / gray.

Link copied to clipboard
class SchemeNeutral(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A theme that's slightly more chromatic than monochrome, which is purely black / white / gray.

Link copied to clipboard
class SchemeRainbow(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A playful theme - the source color's hue does not appear in the theme.

Link copied to clipboard
class SchemeTonalSpot(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A calm theme, sedated colors that aren't particularly chromatic.

Link copied to clipboard
class SchemeVibrant(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

A loud theme, colorfulness is maximum for Primary palette, increased for others.

Link copied to clipboard

Themes for Dynamic Color.