-
Notifications
You must be signed in to change notification settings - Fork 44
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
Tailwind 2 #20
Comments
@microliving This works in Tailwind 2 |
Also struggling with this. Given the config below I'm expecting const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: {
options: {
safelist: ['type'],
},
preserveHtmlElements: true,
content: [
'./app/views/**/*.erb',
'./app/components/**/*.erb',
'./app/components/**/*.rb',
'./app/helpers/*.rb',
'./app/javascript/controllers/**/*.js',
],
},
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
},
themeVariants: ['user', 'driver'],
},
variants: {
extend: {
textColor: ['user', 'driver'],
backgroundColor: ['user', 'driver'],
},
},
plugins: [require('@tailwindcss/forms'), require('tailwindcss-multi-theme')],
} |
@Circuit8 Seems correct. Have you tried disable the purge? |
@kayue went too early! purge disabled and it works! Now how to enable the purge to keep the built size small? Do we add the variants to the safelist? |
@simmerz Glad to hear that. Purge options actually works for me, but I have a simpler setup. You might want to play with the purge settings.
|
It's also not working for me with tailwind2.0.2
any luck for tailwind2 |
it's working fine with |
Doesn't work with tailwind2x. Nor can I update from 1.03 to 1.04: npm ERR! Could not resolve dependency: the package.json lists "tailwindcss": "1.4.6" as a dependency. and that is removed per the Tailwind 2.x upgrade instructions. |
The problem is the version in the peerDependecies, which is not compatible with the v2. |
I believe this package is abandoned and should be marked as such. No updates for two years, tailwind dependencies are very outdated. Projects that are using this package cannot update anymore. It would be great if the person that developed this package offered an alternative. |
Hi here,
Any chance to upgrade to Tailwind 2 by any chance?
The text was updated successfully, but these errors were encountered: