rememberFluentColors
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.
FluentTheme(colors = rememberFluentColors(seedColor = Color(0xff8811aa))) {
Text("Themed from a seed colour")
}Content copied to clipboard
Colors holds fourteen pieces of state and derives twelve groups of colors in its constructor, so building one on every recomposition is work worth skipping. The parameters are the ones rememberDynamicScheme takes.
Return
The remembered Colors.
Parameters
seedColor
The color to base the scheme on.
isDark
Whether to build the dark variant.
primary
The primary color of the scheme.
secondary
The secondary color of the scheme.
tertiary
The tertiary color of the scheme.
neutral
The neutral color of the scheme.
neutralVariant
The neutral variant color of the scheme.
error
The error color of the scheme.
style
The style of the scheme.
contrastLevel
The contrast level of the scheme.
specVersion
The version of the color specification to use.
platform
The platform to use for the scheme.