Good morning everyone and thanks for answering, I am using Ionic 4 and I know that the way to declare new colors is different from Ionic 3, and I also know that there is an online color generator for this purpose. This tool is good but I would like to improve this by creating a better one. my question is how I calculate the colors ‘shade’ and ‘tint’.
.ion-color-orange {
--ion-color-base: #F0B50C;
--ion-color-base-rgb: 240,181,12;
--ion-color-contrast: #000000;
--ion-color-contrast-rgb: 0,0,0;
--ion-color-shade: #d39f0b; /*How can I calculate this color?*/
--ion-color-tint: #f2bc24; /*How can I calculate this color?*/
}
Hello, i see that this is an old thread but i’ll post anyways,
the percentage for the shade is 12%, and 10% for the tint.
it can be done if you’re using sass: