Skip to content

How to disable all tailwind default neutral color shades? #3012

Closed Answered by saadeghi
taylor-xlmedia asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure if currently there's a way to remove them again. Let me do some tests…

Here's a way to disable neutral-* colors:
https://play.tailwindcss.com/yjAoOTMHZL?file=config

  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': {},
      },
    },
  },

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@taylor-xlmedia
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@taylor-xlmedia
Comment options

Answer selected by taylor-xlmedia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants