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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With