JSFiddle - React, Tailwind, and code Playground

HTML

<html data-highcontrast-applied="1">

  <head>

  </head>

  <body>
    <div class="row-centered">
      <p>
        Helllllllooooooooooo
      </p>
    </div>
  </body>

</html>

JavaScript

$(document).ready(function() {

  if (parseInt($("html").attr('data-highcontrast-applied')) === 1) {
    $(".row-centered").css({
      "background-color": "red"
    });
  }
});