FlexTones.candyPop constructor

FlexTones.candyPop(
  1. Brightness brightness
)

Creates a tonal palette setup that results in a high contrast colorful candy pop like theme.

It has white surface and background (tone 100) in light mode and low chroma on neutrals (2 and 4). Dark mode uses dark surface and background tone 6.

The FlexPaletteType.extended is used as palette type for more fidelity in high tones and for more tones options.

Implementation

factory FlexTones.candyPop(Brightness brightness) =>
    brightness == Brightness.light
        ? const FlexTones.light(
            primaryTone: 40,
            primaryContainerTone: 80,
            onPrimaryContainerTone: 4,
            secondaryTone: 60,
            secondaryContainerTone: 92,
            onSecondaryContainerTone: 10,
            tertiaryTone: 50,
            tertiaryContainerTone: 95,
            onTertiaryContainerTone: 6,
            //
            backgroundTone: 100,
            onBackgroundTone: 6,
            surfaceTone: 100,
            onSurfaceTone: 6,
            surfaceVariantTone: 92,
            onSurfaceVariantTone: 10,
            onInverseSurfaceTone: 98,
            inversePrimaryTone: 90,
            outlineTone: 30,
            outlineVariantTone: 70,
            surfaceTintTone: 30,
            //
            primaryMinChroma: 60,
            secondaryMinChroma: 44,
            tertiaryMinChroma: 50,
            neutralChroma: 2,
            neutralVariantChroma: 4,
            paletteType: FlexPaletteType.extended,
          )
        : const FlexTones.dark(
            primaryTone: 80,
            onPrimaryTone: 12,
            primaryContainerTone: 40,
            onPrimaryContainerTone: 97,
            secondaryTone: 70,
            onSecondaryTone: 4,
            secondaryContainerTone: 50,
            onSecondaryContainerTone: 96,
            tertiaryTone: 87,
            onTertiaryTone: 5,
            onTertiaryContainerTone: 92,
            onErrorTone: 6,
            onErrorContainerTone: 95,
            //
            backgroundTone: 6,
            onBackgroundTone: 95,
            surfaceTone: 6,
            onSurfaceTone: 95,
            surfaceVariantTone: 20,
            onSurfaceVariantTone: 90,
            onInverseSurfaceTone: 10,
            outlineTone: 60,
            outlineVariantTone: 40,
            surfaceTintTone: 95,
            //
            primaryMinChroma: 60,
            secondaryMinChroma: 44,
            tertiaryMinChroma: 50,
            neutralChroma: 2,
            neutralVariantChroma: 4,
            paletteType: FlexPaletteType.extended,
          );