nativewind: custom color in tailwind config file not being recognized
Everything works great on this package. The docs are clear and helpful. I only have one issue. When I add a custom color to tailwind.config.js it’s not registering. I’ve restarted expo but still doesn’t work. This is my config file for tailwind:
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./screens/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
"regal-blue": "#50d71e", // this part is not working
},
},
},
plugins: [],
};
Do you have any suggestions? It’s running
expo 5.4.11
react-native": "0.68.2
react": "17.0.2
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 29 (12 by maintainers)
Instead of commenting “same here” can you please share either your
tailwind.config.jsor your repo. This issue should be resolved, so if it’s still occuring then I need more information.This doesn’t appear to be an issue with NativeWind, an unfortunately I do not have the capacity to debug your project.
I would recommend following simple troubleshooting:
Then you can use simple isolation techniques to find your cause.
@vital-tech-results did you find what the problem was in your code? Running into the same issue.