I have followed several examples but I cant seem to get the colors to apply, any help appreciated.
I dont get any errors, but the colors/styles do not apply.
This code:
<Text style={tailwind("text-red-600")}>Hello world</Text>
converts to this in tailwind.css:
.text-red-600 { --tw-text-opacity: 1; color: rgb(220 38 38 / var(--tw-text-opacity, 1)) }
which does not output the text to red, if i manually change tailwind.css to this:
.text-red-600 { --tw-text-opacity: 1; color: #FF0000 }
it works and updates the text to red. all the examples seem to suggest that text colors are supported so im unsure what im doing wrong?
heres my files:








I have followed several examples but I cant seem to get the colors to apply, any help appreciated.
I dont get any errors, but the colors/styles do not apply.
This code:
<Text style={tailwind("text-red-600")}>Hello world</Text>converts to this in
tailwind.css:.text-red-600 { --tw-text-opacity: 1; color: rgb(220 38 38 / var(--tw-text-opacity, 1)) }which does not output the text to red, if i manually change tailwind.css to this:
.text-red-600 { --tw-text-opacity: 1; color: #FF0000 }it works and updates the text to red. all the examples seem to suggest that text colors are supported so im unsure what im doing wrong?
heres my files: