PaletteonDynamicTheme

fun PaletteonDynamicTheme(seedColor: Color, useDarkTheme: Boolean = isSystemInDarkTheme(), withAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrast: Contrast = Contrast.Default, isExtendedFidelity: Boolean = false, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, animate: Boolean = false, animationSpec: AnimationSpec<Color> = spring(stiffness = Spring.StiffnessLow), content: @Composable () -> Unit)

A custom theme based on Paletteon, which adapts to the provided seed color and other configuration parameters.

This theme allows for extensive customization, including the ability to animate color transitions, adjust contrast levels, and use an extended fidelity color set, all while following the Material Design guidelines.

Parameters

seedColor

The base color used to generate the entire color scheme.

useDarkTheme

Whether to apply a dark theme based on system preferences.

withAmoled

Whether to enforce pure black for AMOLED displays when using dark theme.

style

The desired color scheme style, defined by PaletteStyle.

contrast

The contrast to apply across the color scheme.

shapes

The shape styles to be used in this theme, defaulting to Material shapes.

typography

The typography styles to be used in this theme, defaulting to Material typography.

isExtendedFidelity

Whether to use an extended set of color fidelity rules.

animate

Whether to animate transitions between color states.

animationSpec

The animation specification, defining the animation behavior.

content

The content to be displayed within this theme.

See also