Ionic 4 Variable Colors why RGB?

  /** primary **/
  --ion-color-primary: #3880ff;
  --ion-color-primary-rgb: 56, 128, 255;
  --ion-color-primary-contrast: #ffffff;
  --ion-color-primary-contrast-rgb: 255, 255, 255;
  --ion-color-primary-shade: #3171e0;
  --ion-color-primary-tint: #4c8dff;

Why is there a rgb for some colors? It’s redundancy.
And why not for shade and tint?
It’s a bit annoying what I have to set the same color twice in different format.
And btw. VS Code handles hex-code for the color picker. But not for this RGB format.

Per the docs:

1 Like