Consolidate rgb and rgba into single function (rgb)
Created by: SamuelMiller
Prerequisites
-
I have searched for duplicate or closed feature requests -
I have read the contributing guidelines
Proposal
According to this article (https://dev.to/alvaromontoro/the-ultimate-guide-to-css-colors-2020-edition-1bh1), rather than two separate color functions rgb and rgba (the same for hsl and hsla), the newer simplified format drops the ending alpha "a" suffix and instead uses forward slash "/", merging the two separate functions into one. For example,
/* old notation */
color: rgb(255, 255, 255);
color: rgba(255, 255, 255, 1);
/* new notation */
color: rgb(255 255 255);
color: rgb(255 255 255 / 1);
I suggest Bootstrap consider implementing the newer notation.
Motivation and context
Simplify code. Keep up with the times, man.