Skip to content

color classes not being applied #203

@gixxy22

Description

@gixxy22

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:

Image

Image

Image

Image

Image

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions