Package-level declarations

Functions

Link copied to clipboard
fun animateFluentColors(colors: Colors, animationSpec: @Composable Transition.Segment<Shades>.() -> FiniteAnimationSpec<Color> = { defaultColorSpring }, label: String = "FluentColorsAnimation"): Colors

Animates the accent ramp behind colors so a change of seed fades rather than jumps.

Link copied to clipboard
fun rememberFluentColors(seedColor: Color, isDark: Boolean = isSystemInDarkTheme(), primary: Color? = null, secondary: Color? = null, tertiary: Color? = null, neutral: Color? = null, neutralVariant: Color? = null, error: Color? = null, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, specVersion: ColorSpec.SpecVersion = ColorSpec.SpecVersion.Default, platform: DynamicScheme.Platform = DynamicScheme.Platform.Default): Colors

Generates Fluent Colors from seedColor and remembers them.

Link copied to clipboard
fun DynamicScheme.toFluentColors(): Colors

Builds Fluent Colors from this scheme's primary ramp.

Link copied to clipboard
fun TonalPalette.toFluentShades(): Shades

Turns a tonal ramp into the seven shades Fluent themes from.