Skip to content

[JIT] Disabling opacity core plugins doesn't change output of color plugins #4071

@cossssmin

Description

@cossssmin

What version of Tailwind CSS are you using?

v2.1.1

What build tool (or framework if it abstracts the build tool) are you using?

Maizzle v3.3.0

What version of Node.js are you using?

v14.15.1

What browser are you using?

Chrome

What operating system are you using?

Windows 10

Reproduction repository

https://github.com/maizzle/maizzle

Describe your issue

When enabling JIT, you cannot disable core plugins:

module.exports = {
  mode: 'jit',
  purge: [
    'src/**/*.*',
  ],
  corePlugins: {
    textOpacity: false,
  },
}
<div class="text-red-400">example</div>

Result:

.text-red-400 {
  --tw-text-opacity: 1;
  color: rgba(248, 113, 113, var(--tw-text-opacity));
}

Expected:

.text-red-400 {
  color: #f87171;
}

Note I've only tested with the opacity plugins.

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