Current proposal for the contrast(< percentage >) function
Is there a way I could request that you consider adding a way to adjust a color’s contrast to another color?
contrast(desiredContrastRatio, foregroundColor, backgroundColor);
I find that this is my use case more times than not. I hardly ever know the percent needed to increase or decrease by in the real world. Even better would be the ability to pass the minimum accessibility level desired as in
contrast(‘AA’, foregroundColor, backgroundColor);