Customize row font of a grid

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

:host([theme~="gridsteel-theme"]
) [part~="row"]
[selected]
 [part~="body-cell"]
:not([part~="details-cell"]
) {
    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:
https://cookbook.vaadin.com/dynamic-grid-row-background-color

Thank you for your answer.
I’ve found this post that help me
https://vaadin.com/forum/thread/18109237/how-to-conditionally-change-grid-row-color

Both use same method.