Customize row font of a grid

I manage to change font color of a grid row when I click on the line.
with this css code

) [part~="row"]
) {
    background-color: LightSkyBlue;

But I would like to change the font color depending a value in the row.

Is comeone know how can I do that ?

I think this example does what you want:

Thank you for your answer.
I’ve found this post that help me

Both use same method.