JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>

  <head>
    <title></title>
    <style>
      body {
        background-color: gray;
      }

      .a {
        background-color: white;
      }

      .b {
        background-color: black;
        color: white;
      }

    </style>
  </head>

  <body>
    <div class="a">Sample Text
      <div class="b">Sample Text</div>
      <p>Sample Text</p>
    </div>
    <div class="a b">Sample Text</div>
  </body>

</html>