pub enum Variant {
Monochrome,
Neutral,
TonalSpot,
Vibrant,
Expressive,
Fidelity,
Content,
Rainbow,
FruitSalad,
}Expand description
Enumeration of dynamic color scheme variants for Material Design 3.
Each variant represents a different approach to generating color schemes from a source color, balancing different aesthetic and functional properties.
Variants§
Monochrome
Monochrome variant using only lightness and saturation variations.
Creates a scheme using a single hue, varying only the tone (lightness). Useful for minimalist, accessibility-focused designs.
Neutral
Neutral variant with subtle color shifts.
Generates a scheme that is mostly neutral with very subtle chromatic content. Best for conservative, professional designs.
TonalSpot
Tonal spot variant emphasizing the source color with tonal adjustments.
Uses the source color as an accent with complementary tones. This is the most commonly used variant and the default.
Vibrant
Vibrant variant with saturated, bold colors.
Generates a scheme with maximum saturation while maintaining readability. Ideal for energetic, modern designs.
Expressive
Expressive variant with creative color manipulation.
Uses complex color transformations to create unexpected but harmonious combinations. Best for distinctive, artistic designs.
Fidelity
Fidelity variant that closely follows the source color’s hue and chroma.
Prioritizes accuracy in reproducing the source color’s visual characteristics. Useful when precise color representation is critical.
Content
Content variant that extracts dominant colors from images.
Designed to work with extracted colors from images or artwork. Adapts to the dominant colors in visual content.
Rainbow
Rainbow variant creating a spectrum-inspired color scheme.
Generates colors distributed across the full hue range. Best for playful, colorful designs.
FruitSalad
Fruit salad variant with warm, saturated colors.
Creates a scheme with warm hues and high saturation, inspired by fruit colors. Ideal for fun, appetizing designs.