title: How to access tailwind classes from a javascript file
body: <p>I've just started with tailwind-css and I am trying to change the color of a HTML element using tailwindcss.</p>
  <p>This is the HTML code - <code>&lt;h1 id=&quot;demo&quot; class=&quot;text-3xl font-bold tracking-wide text-center&quot;&gt;Hello&lt;/h1&gt;</code>.</p>
  <p>And this is the Javascript code - <code>document.getElementById(&quot;demo&quot;).style.color = &quot;text-blue-600&quot;;</code>.</p>
  <p>vanilla CSS works but I am not able to access the tailwind utility classes.</p>