thymeleaf style text color css code example
Example: text color thymeleaf
<span th:style="#{yourProperties or field} != 0 ? 'color: white;' : 'color: white;'" th:text="#{yourProperties or field}"></span>
<span th:style="#{yourProperties or field} != 0 ? 'color: white;' : 'color: white;'" th:text="#{yourProperties or field}"></span>