JSFiddle - React, Tailwind, and code Playground
HTML
<div style="font-weight: 500">500 text</div>
<div style="font-weight: 700">700 text</div>
CSS
*[style~="font-weight:"][style~="500;"]
{
color: red;
}
*[style~="font-weight:"][style~="700;"]
{
color: green;
}