Closed silveltman closed 1 year ago
Yeah thats a pretty good idea, you mean to select between the dark fg and light fg colors?
Something like darkfg:text-black lightfg:text-white
?
I think there could potentially be some magic stuff here to allow an extra color to come with the hue 0-12 for fg, maybe even like fg[1..12]
etc
I don't think it would have to be difficult, it's only about this part of the docs:
The following classes would suffice:
-bluefg -redfg Etc.
-huefg
For sky-amber it would be black, for the other colors it would be white
I suppose 11 and 12 are universal foregrounds for lower numbered backgrounds, could just add another color to every palette for the appropriate high contrast foreground color. I'll look into it.
Yes you're right, for the lower numbered backgrounds 11 and 12 are fine indeed.
You solution sounds fine 👌🏼
Added in 2.5.2. You can use like text-amber-fg
or text-hue-fg
. Detection doesn't seem quite as flexible as the colors so huefg
and amberfg
don't work I think.
Some radix scales use black on hue9, some use white. A selector for this would be great.
Just sharing my personal fix for this: