Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha-less colors #3984

Merged
merged 1 commit into from
Apr 30, 2021
Merged

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