For my personal project, I am utilizing tailwind CSS and I would like to incorporate custom colors. Currently, I am using the hover:text-[#007560]
trick, but I believe it would be more convenient if I could have my entire color palette defined in the tailwind.config.js
file.
https://i.sstatic.net/VJqn7.png
In the image provided, you can see the desired code that I am aiming to achieve.
I have tried various solutions mentioned in other resources, but none of them seem to work in my case.
Furthermore, I am encountering the same issue with dark mode - it does not seem to work for me either. It appears that the file is not being read correctly.
My code currently includes the use of bg-cherry
, but unfortunately, nothing is happening. The default colors persist, and my custom colors are not being displayed.
Is there a way to resolve this issue?
I have also attempted to restart both the project and execute the following command
npx tailwindcss -i ./src/assets/style/input.css -o ./dist/output.css --watch
.
(I store all CSS files in the specified path for better project organization)