extendedTones constant

List<int> const extendedTones

Extended one values in a FlexTonalPalette.

Contains custom tones 5 and 98, in addition to the 13 tones included in the Material 3 guide tonal palette. The tone 98 used to exist in the Web Material Theme Builder app, but no longer does. It never existed in Flutter or Material Color Utilities package. Tone 5 is custom addition used in e.g. in FlexTones.ultraContrast.

The added tones 4, 6, 12, 17, 22 are for new dark mode surfaces in revised Material 3 dark surface colors. Likewise added tones 97, 96, 94, 92, 87 are for light mode surfaces in the updated Material 3 color system. For more information, see: https://m3.material.io/styles/color/the-color-system/color-roles The additional tones in the Material 3 specification appeared during later pert of first half of 2023.

Tones 5, 97, and 98 are not in old or new M3 spec, but FlexSeedScheme includes them to enable even more fidelity in dark and even more so in the light tones.

Tone 98 provides optional tonal fidelity in the light and white end of the palette and tone 5 a more dark tone in the black end of the palette.

Implementation

static const List<int> extendedTones = <int>[
  0,
  4,
  5,
  6,
  10,
  12,
  17,
  20,
  22,
  30,
  40,
  50,
  60,
  70,
  80,
  87,
  90,
  92,
  94,
  95,
  96,
  97,
  98,
  99,
  100,
];