How to disable all tailwind default neutral color shades? #3012
-
Forgive me if I missed where to correctly configure something but it seems I'm not able. My custom theme consists of all the colors defined explicitly:
I see all the Line 133 in 4b7cdb8 I do not want to have these shades be available in my project, but I see no way to remove them. Love the project - keep up the great work! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The colors will be in your CSS only if you use their associated utility class names ( |
Beta Was this translation helpful? Give feedback.
-
daisyUI had a Because of this name conflict, when daisyUI was adding its colors, it used to simply replace Tailwind's So we had to re-add the Tailwind I'm not sure if currently there's a way to remove them again. Let me do some tests… |
Beta Was this translation helpful? Give feedback.
-
Here's a way to disable theme: {
extend: {
colors: {
'neutral-50': {},
'neutral-100': {},
'neutral-200': {},
'neutral-300': {},
'neutral-400': {},
'neutral-500': {},
'neutral-600': {},
'neutral-700': {},
'neutral-800': {},
'neutral-900': {},
'neutral-950': {},
},
},
}, |
Beta Was this translation helpful? Give feedback.
Here's a way to disable
neutral-*
colors:https://play.tailwindcss.com/yjAoOTMHZL?file=config