FlexTones.vividBackground constructor
FlexTones.vividBackground(
- Brightness brightness
Creates a tonal palette extraction setup that results in M3 like ColorsSchemes with chroma like FlexTones.vividSurfaces, but tone mapping surface and background are swapped.
Implementation
factory FlexTones.vividBackground(Brightness brightness) =>
brightness == Brightness.light
? const FlexTones.light(
primaryTone: 30,
onPrimaryTone: 98,
onSecondaryTone: 98,
onTertiaryTone: 98,
onErrorTone: 98,
surfaceTone: 98,
onSurfaceVariantTone: 20,
inverseSurfaceTone: 30,
backgroundTone: 95,
surfaceTintTone: 30,
//
primaryMinChroma: 50,
neutralChroma: 5,
neutralVariantChroma: 10,
)
: const FlexTones.dark(
onPrimaryTone: 10,
onSecondaryTone: 10,
onTertiaryTone: 10,
primaryContainerTone: 20,
backgroundTone: 20,
onSurfaceVariantTone: 95,
inverseSurfaceTone: 95,
//
primaryMinChroma: 50,
neutralChroma: 5,
neutralVariantChroma: 10,
);