Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set default color for text in Tailwind

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?

like image 780
Ahmad Shiddiq Avatar asked Nov 07 '25 08:11

Ahmad Shiddiq


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

like image 85
kissu Avatar answered Nov 09 '25 21:11

kissu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!