FlexTones.ultraContrast constructor
FlexTones.ultraContrast(
- Brightness brightness
Creates a tonal palette extraction setup that results in a very high contrast version of selected ColorsSchemes.
Implementation
factory FlexTones.ultraContrast(Brightness brightness) =>
brightness == Brightness.light
? const FlexTones.light(
primaryTone: 20,
onPrimaryContainerTone: 5,
onSecondaryContainerTone: 5,
tertiaryTone: 30,
tertiaryContainerTone: 95,
onTertiaryContainerTone: 5,
errorContainerTone: 95,
onErrorContainerTone: 5,
//
surfaceTone: 100,
surfaceContainerLowTone: 98,
surfaceContainerTone: 96,
onSurfaceTone: 0,
onSurfaceVariantTone: 6,
onInverseSurfaceTone: 99,
inversePrimaryTone: 90,
outlineTone: 40,
outlineVariantTone: 70,
surfaceTintTone: 30,
//
primaryMinChroma: 60,
secondaryMinChroma: 70,
tertiaryMinChroma: 65,
neutralChroma: 3,
neutralVariantChroma: 6,
)
: const FlexTones.dark(
primaryTone: 90,
onPrimaryTone: 2,
onPrimaryContainerTone: 98,
secondaryTone: 95,
onSecondaryTone: 2,
onSecondaryContainerTone: 98,
tertiaryTone: 95,
onTertiaryTone: 2,
onTertiaryContainerTone: 98,
onErrorTone: 2,
onErrorContainerTone: 98,
//
surfaceTone: 2,
surfaceContainerLowestTone: 0,
surfaceContainerLowTone: 6,
onSurfaceTone: 99,
onSurfaceVariantTone: 95,
onInverseSurfaceTone: 10,
outlineTone: 80,
outlineVariantTone: 50,
surfaceTintTone: 95,
//
primaryMinChroma: 60,
secondaryMinChroma: 70,
tertiaryMinChroma: 65,
neutralChroma: 3,
neutralVariantChroma: 6,
);