Set default color for text in Tailwind

Viewed 1829

What is the correct way to assign default values to all text on the website using Tailwind CSS?

Is there a setting in tailwind.config.js for that?

1 Answers

You cannot directly do that in tailwind, meanwhile you can set the text to use a specific color globally with something like

* {
  @apply text-blue-500; // can also customize it to have a `text-primary-500`
}

And customize the blue color values to your liking: https://tailwindcss.com/docs/customizing-colors#curating-colors

Related