Tailwind CSS
If Tailwind CSS is already enabled in your project, you have nothing else to do. Otherwise, please refer to your framework documentation.
@apply (Tailwind v3)
In v3, you can use the Tailwind’s @apply
directive.
CSS Variables (Tailwind v4)
In v4, Tailwind provides CSS variables that can be used in your CSS.
JavaScript
You can also import Tailwind’s theme and apply it from there.