title: Tailwind appearance-none class not working for input field of type number
body: <p>I am trying to remove the arrow/spinners that come natively with a <a href="https://i.stack.imgur.com/N4TDF.png" rel="nofollow noreferrer">number typed input field</a>. I understand that this can easily be done following the article <a href="https://www.w3schools.com/howto/howto_css_hide_arrow_number.asp" rel="nofollow noreferrer">here</a>, by setting the <code>-webkit-appearance</code> and  <code>-moz-appearance</code>. With that said, here is my current implementation using a CSS class called <code>.no-spin</code>.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.no-spin::-webkit-inner-spin-button,
  .no-spin::-webkit-outer-spin-button {
      -webkit-appearance: none !important;
      margin: 0 !important;
  }
  
  .no-spin {
      -moz-appearance: textfield !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;label&gt;Number Input Field w/o spinner&lt;/label&gt;
    &lt;input class="no-spin" type="number"&gt;
  &lt;/div&gt;
  &lt;div&gt;
    &lt;label&gt;Number Input Field w/ spinner&lt;/label&gt;
    &lt;input type="number"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>However, since I am using Tailwind, I am looking for a possible solution where I do not have to resort to CSS classes, just like the other components of my project. I have already tried using an <code>appearance-none</code> class as suggested by the <a href="https://tailwindcss.com/docs/appearance" rel="nofollow noreferrer">Tailwind Docs</a> but it did not work for me.</p>