SchemeFidelity

class SchemeFidelity(val sourceColorHct: Hct, val isDark: Boolean, val contrastLevel: Double) : DynamicScheme

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

Primary Container is the source color, adjusted for color relativity. It maintains constant appearance in light mode and dark mode. This adds ~5 tone in light mode, and subtracts ~5 tone in dark mode.

Tertiary Container is the complement to the source color, using TemperatureCache. It also maintains constant appearance.

Constructors

Link copied to clipboard
constructor(sourceColorHct: Hct, isDark: Boolean, contrastLevel: Double)

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