Change the color in table panel based on tag value

I have created the table panel and put a color background as well as a display mode.
Now I want to put color only when I choose a tag value is matching with a fixed value if that value if is not matching then the color will not be added in the table panel

You can see fieldName is now red but I want to make coloring conditional based on a tag value

You can see |> filter(fn: (r) => r["ignore"] == "0")
I want to put color only when |> filter(fn: (r) => r["ignore"] == "1") and one base color may be green when |> filter(fn: (r) => r["ignore"] == "0")

Thanks