Skip to content

Alpha-less colors  #3963

@ayrton

Description

@ayrton

What version of @tailwindcss/jit are you using?

0.1.18

What version of Node.js are you using?

14.x

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

postcss@^8.2.0

What browser are you using?

N/A

What operating system are you using?

macOS

Reproduction repository

N/A

When certain core plugins have been disabled (eg. backgroundOpacity) tailwind-jit does not output alpha-less colors like tailwind does.

Is this is an intended breaking change or missing functionality? Happy to contribute if there is interest in supporting this use case.

Implementation difference:
tailwind-jit vs. tailwind

Example

With the following config:

module.exports = {
  corePlugins: {
    backgroundOpacity: false,
  },
}

Outcome:

.bg-gray-100{
	--tw-bg-opacity: 1;
	background-color: rgba(243, 244, 246, var(--tw-bg-opacity));
}

Expected outcome:

.bg-gray-100{
	background-color: #F3F4F6;
}

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