question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tailwind 2 compatibility?

See original GitHub issue

First of all thanks for the amazing work on this plugin, it really came at the right time for our project!

I’m currently trying to upgrade from tailwind 1.9.6 tailwind 2.0.2. After completing the upgrade guide I noticed the themes were not loading correctly. Looking at the generated css it seems all the color class names are being suffixed with -default now. For example the color named on-background will generate text-on-background-default.

This issue is happening in 2.4.3 and v3.0.0-beta.2.

Any ideas on how we complete the upgrade?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
john-griffincommented, Dec 31, 2020

Yeah good point - I had an issue in the purge config. Looks good now!

0reactions
innocenzicommented, Dec 30, 2020

Can you share your config? The plugin really just edits your color configuration and doesn’t do more magic than that, so I’m not sure what would be the issue.

Make sure you have followed the whole documentation on purge: https://tailwindcss.com/docs/optimizing-for-production

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tailwind CSS v2.2
It's fully backwards-compatible with the previous CLI, so if you've got any scripts set up already you should be able to upgrade to...
Read more >
Tailwind v2 and IE11 compatibility - Incoherent.ch
Tailwind v2 uses color definitions that are not compatible with IE11. With Tailwind v1 it had a fallback specifically for IE11, but v2...
Read more >
Compatibility with PostCSS 8 #2396 - tailwindlabs/tailwindcss
Yep looks like PostCSS 8.0.7 broke Tailwind again. Works with PostCSS 8.0.2-8.0.6. Will investigate, thanks.
Read more >
How to install Tailwind CSS 2 with Laravel 8
If you want to use the latest version of Tailwind CSS (version 2 ... PostCSS compatibility: "PostCSS plugin tailwindcss requires PostCSS 8".
Read more >
Module tailwind.config.js merging - Hyvä Docs
Often compatibility modules need to add their templates and layout XML files to a themes ... 2. Add the module to the app/etc/hyva-themes.json...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found