Skip to content

Conversation

@ayrton
Copy link
Contributor

@ayrton ayrton commented Apr 6, 2021

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

With the following config:

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

Before:

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

After:

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

Fixes #3963

@ayrton
Copy link
Contributor Author

ayrton commented Apr 6, 2021

This was backported from tailwindlabs/tailwindcss-jit#196

@adamwathan
Copy link
Member

Thanks!

@ayrton ayrton deleted the alphaless-colors-jit branch June 5, 2021 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alpha-less colors

2 participants