windy-radix-palette icon indicating copy to clipboard operation
windy-radix-palette copied to clipboard

Add fallback values for P3A colors

Open Itsnotaka opened this issue 1 year ago • 2 comments

This project is fantastic and serves as a superior substitute for other radix color implementations due to its expanded color range. However, P3A colors do not display on unsupported machines. Is there any way to incorporate a fallback option to RGB/HSL when P3A isn't a feasible choice?

Itsnotaka avatar Nov 06 '23 17:11 Itsnotaka

Which version of the package are you using? In v1 there was an issue where P3 colors would never display, even on supported displays. However, in v2.0.0-beta.x this issue is fixed, and P3 colors should be displayed if the display supports it, otherwise, the colors will fall back to RGB

brattonross avatar Nov 11 '23 18:11 brattonross

That is really weird, while I am having no problem seeing P3 colors in my MacBook (indicating it is working), I am not getting fallback colors on non-supported machines. Package versions

"windy-radix-palette": "2.0.0-beta.7",
"windy-radix-typography": "1.0.0-beta.0"

Itsnotaka avatar Nov 11 '23 20:11 Itsnotaka