Skip to content

undefined doesn't remove the class #609

@babakfp

Description

@babakfp

What version of Tailwind CSS are you using?

v3.1.8

Reproduction URL

https://play.tailwindcss.com/3kRy1GbH6z

Describe your issue

For example, I want to remove black: #000 from the colors object, So, I do this:

module.exports = {
  theme: {
    extend: {
      colors: {
        black: undefined,
      },
    },
  },
}

The issue is that the color black will still be suggested.

Maybe it's something related to tailwind itself because the key black still does exist in the colors object. Maybe tailwind can remove the item if the value is equal to undefined.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions