commonTones constant

List<int> const commonTones

Commonly-used tone 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.

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> commonTones = <int>[
  0,
  5,
  10,
  20,
  30,
  40,
  50,
  60,
  70,
  80,
  90,
  95,
  98,
  99,
  100,
];