javascriptcsstailwind-css

Tailwind css, how to set default font color?


I'm using tailwind css in my project, due to our application styles we are using a default font color, however I cannot seem to find how to do this in tailwind, the documentation page only talks about extending the color palette, but not how to set a default color.

Any ideas on how to achieve this?


Solution

  • I ended up solving this in the dumbest way possible, on a global css file:

    html {
      @apply text-gray-800
    }
    

    Not pretty but at least I can use the tailwind classes