I posted an example flow at https://discourse.nodered.org/t/css-styling-ui-button-widgets-on-dashboard-2/90969 showing some examples of styling ui-buttons on dashboard 2, including changing the button label colour (see the Bilge Pump button)
ps your picture shows a switch and 4 buttons. I assume, despite the title, that you are referring to the buttons?