We have set up our own colors in the config but tailwind is still allowing the use of their default colors. Can this be removed? #10900
Answered
by
wongjn
CarelessCourage
asked this question in
Help
-
|
I would like to strictly dictate what colors are availabe for our devs to use. We have moved over to a scemantic color strategy and we dont need any direct colors like you see in this screenshot. It would be really nice if we could just strip these away entierly and not even have the option to pick any other colors than the once defined in the config. Is this possible? |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Mar 29, 2023
Replies: 1 comment 1 reply
-
|
As per the documentation, use module.exports = {
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
foo: {
// …
},
bar: {
// …
},
baz: {
// …
},
},
},
}; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CarelessCourage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

As per the documentation, use
theme.colorsinstead oftheme.extend.colors: