Tailwind custom color not working
Hi,
I'm pretty new to Tailwind and to programming in general so forgive me if this is a stupid question but I'm having trouble adding custom colors to Tailwind.
I added the "venice-blue" color in tailwind.config.js but nothing happens when I use a class like "bg-venice-blue."
I'm pretty new to Tailwind and to programming in general so forgive me if this is a stupid question but I'm having trouble adding custom colors to Tailwind.
I added the "venice-blue" color in tailwind.config.js but nothing happens when I use a class like "bg-venice-blue."
theme: { // Extend (add to) the default theme in the `extend` key extend: { // Create your own at: https://javisperez.github.io/tailwindcolorshades colors: { 'venice-blue': '#30547E', //orange: colors.orange, primary: colors.blue, secondary: colors.emerald, tertiary: colors.gray, danger: colors.red, "code-400": "#fefcf9", "code-600": "#3c455b", }, fontFamily: { sans: ['Inter', ...defaultTheme.fontFamily.sans], }, }, },
I tried restarting the server and running npx tailwindcss -o tailwind.css but it made no difference.
Any idea what I'm missing?
Thanks
Any idea what I'm missing?
Thanks
I am having a similar issue. The issue is that when I have custom helpers to make badges etc. the other colors won't work.
Is this the work around - to simply add a static file that calls the various colors (bg, text, etc) that you always want available and not purged? Can you just have them all available? Also where is that config file stored? Just in /config?
Is this the work around - to simply add a static file that calls the various colors (bg, text, etc) that you always want available and not purged? Can you just have them all available? Also where is that config file stored? Just in /config?
Notifications
You’re not receiving notifications from this thread.