Adding a variant of red in extend.colors.red
overrides the entire red shade. Why?
#2085
-
I don't know it's bug or this is the way tailwind behaviour.
After extending, the default config is gone. After I extend red color, all property related to default red is gone. And the property of red only can be use by If I extend using:
This follow the manual of extending can work properly. Adding a new color is work fine:
What if I want to extend bunch of red colors? Should I just write
Or there's a shortcut way |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have a look at this: Although this talks about overriding, adding a new color shade works exactly the same. |
Beta Was this translation helpful? Give feedback.
Have a look at this:
https://tailwindcss.com/docs/customizing-colors#overriding-a-single-shade
Although this talks about overriding, adding a new color shade works exactly the same.