-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Control Backdrop Opacity variants #888
Comments
This is a bug in the framework, whoops! Will be fixed in the next release, probably tomorrow or Tuesday. In the mean time, you can fix it in your project by just not using module.exports = {
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
fontFamily: {
sans: ['DM Sans', 'sans-serif'],
serif: ['DM Serif Display', 'serif'],
},
extend: {
colors: {
primary: { DEFAULT: '#FE5245', dark: '#FE4638' },
gray: { DEFAULT: '#1C2C2D' },
oil: { DEFAULT: '#435448' },
pink: { DEFAULT: '#FACFB0' },
},
},
},
variants: {
backdropOpacity: ['responsive', 'hover'],
extend: {
cursor: ['disabled'],
opacity: ['disabled'],
textOpacity: ['disabled'],
},
},
plugins: [],
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the documentation, you can control Variants with Backdrop Opacity utilities.
When I follow the example, the browser show this error:
I tried same conf in tailwind play and show this error:
this is the code I've attempted:
If TailwindCSS doesn't support this control, we should remove this section en the doc.
The text was updated successfully, but these errors were encountered: