apply tailwind classes to styled code example
Example 1: tailwind @apply
@tailwind base;
@tailwind components;
.btn-blue {
@apply bg-blue-500 text-white font-bold py-2 px-4 rounded;
}
.btn-blue:hover {
@apply bg-blue-700;
}
@tailwind utilities;
Example 2: tailwind classes
.text-center {
text-align: center;
}