Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom theme unknown or invalid utility #190

Open
oktalk opened this issue Dec 9, 2022 · 1 comment
Open

Custom theme unknown or invalid utility #190

oktalk opened this issue Dec 9, 2022 · 1 comment

Comments

@oktalk
Copy link

oktalk commented Dec 9, 2022

After fresh install I'm getting warnings for all of my custom classes defined in the tailwind config.

The warning is as follows:
crimson unknown or invalid utility

Here is my tailwind.config.js setup:

module.exports = {
  content: ['*.{js,jsx,ts,tsx}', './src/**/*.{js,jsx,ts,tsx}'],
  theme: {
    extend: {
      color: {
        crimson: '#DC1E37',
      },
    },
  },
  plugins: [],
  corePlugins: require('tailwind-rn/unsupported-core-plugins'),
};

And here is how I'm using it in my component:

<Text style={tw.style('text-crimson')}>
  I should be a red color.
</Text>

Any thoughts on why I would be getting that error? The npx setup-tailwind-rn command pretty much set everything up for me. And, all of the other Tailwind classes are working.

@disrae
Copy link

disrae commented Apr 26, 2023

Upvote?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants